Merge pull request #206 from realModusOperandi/branding

Update look and add OpenLiberty tie in branding to Login
This commit is contained in:
Liam Westby 2019-07-01 15:53:47 -05:00 committed by GitHub
commit adbcf97c9b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
12 changed files with 202 additions and 108 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.2 KiB

After

Width:  |  Height:  |  Size: 36 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 235 KiB

View File

@ -1,5 +1,5 @@
:host {
position: absolute;
height: 100vh;
width: 100vw;
height: 100%;
width: 100%;
}

View File

@ -5,7 +5,9 @@
</div>
<div id="login-icon">
<img id="icon" src="../../assets/images/icon.png" width="130" alt="" />
<a href="https://openliberty.io" target="_blank">
<img id="icon" class="glow" src="../../assets/images/OL_badge.png" width="200" alt="" />
</a>
</div>
<div class="slider">
@ -116,3 +118,18 @@
</div>
</div>
</div>
<div id="footer">
<div id="logo" >
<img src="../../assets/images/bike_green.png" style="transform: rotate(90deg)" alt="" />
</div>
<div class="gallery">
<a href="https://github.com/OpenLiberty/liberty-bikes" target="_blank">
<div class="gallery-item glow">
<img class="gallery-icon" src="../../assets/images/github.png" alt="GitHub" />
<div class="gallery-label">Explore the code on Github</div>
</div>
</a>
</div>
</div>

View File

@ -1,103 +1,14 @@
// Global styles for component
:host {
min-height: 100%;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
justify-content: space-around;
}
#login-container {
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
padding: 10px;
height: inherit;
top: 0;
}
#login-container h1 {
color: #fff;
font-weight: 300;
font-variant: small-caps;
text-transform: uppercase;
text-align: center;
letter-spacing: .7em;
line-height: 1.5em;
padding-left: .8em;
}
#login-content {
flex: 1;
width: 100%;
display: flex;
height: auto;
flex-direction: column;
align-items: center;
}
#login-title {
margin-top: 10px;
padding-bottom: 10px;
}
#login-icon {
padding-bottom: 40px;
}
#player-card {
height: 60px;
}
.form-group {
width: 100%;
margin-bottom: 30px;
display: flex;
flex-flow: column;
padding-left: 10px;
padding-right: 10px;
}
.form-item {
width: 100%;
margin-bottom: 10px;
}
.form-item label {
display: initial;
width: 100%;
margin-bottom: -4px;
padding-bottom: 0px;
font-size: 0.8em;
font-variant: small-caps;
text-transform: lowercase;
color: #bbb;
}
.form-item input {
width: 100%;
padding-top: 2px;
padding-bottom: 2px;
border: none;
color: #fff;
background: rgba(0, 0, 0, 0.2);
border-bottom: 1px solid #bbb;
border-radius: 0px;
transition: all 0.3s ease-in-out;
}
.form-item input:hover {
text-shadow: 0 0 5px #fff;
}
.form-item input:focus {
border-color: #fff;
outline: none;
}
#partyid {
text-transform: uppercase;
a:hover {
text-decoration: none;
}
button {
@ -116,6 +27,61 @@ h2 {
color: #fff;
}
.glow {
transition: all 0.3s ease-in-out;
&:hover {
filter: drop-shadow(0 0 4px #fff);
}
}
.form-group {
width: 100%;
margin-bottom: 30px;
display: flex;
flex-flow: column;
padding-left: 10px;
padding-right: 10px;
}
.form-item {
width: 100%;
margin-bottom: 10px;
& label {
display: initial;
width: 100%;
margin-bottom: -4px;
padding-bottom: 0px;
font-size: 0.8em;
font-variant: small-caps;
text-transform: lowercase;
color: #bbb;
}
& input {
width: 100%;
padding-top: 2px;
padding-bottom: 2px;
border: none;
color: #fff;
background: rgba(0, 0, 0, 0.2);
border-bottom: 1px solid #bbb;
border-radius: 0px;
transition: all 0.3s ease-in-out;
&:hover {
text-shadow: 0 0 5px #fff;
}
&:focus {
border-color: #fff;
outline: none;
}
}
}
.section-header {
width: 100%;
margin-bottom: 15px;
@ -141,11 +107,121 @@ h2 {
width: 100%;
}
.gallery {
display: flex;
flex-direction: row;
align-items: center;
}
.gallery-item {
display: flex;
flex-direction: column;
align-items: center;
}
.gallery-icon {
width: 50px;
margin: 0 20px;
}
.gallery-label {
margin-top: 15px;
color: #ccc;
font-size: 0.8em;
}
// Main content elements
#login-container {
transform: translateZ(0); // Hack to force Safari to render some effects properly
flex-grow: 1;
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
justify-self: center;
padding: 10px;
height: 100%;
top: 0;
}
#login-container h1 {
color: #fff;
font-weight: 300;
font-variant: small-caps;
text-transform: uppercase;
text-align: center;
letter-spacing: .7em;
line-height: 1.5em;
padding-left: .8em;
}
#login-content {
flex: 1;
width: 100%;
display: flex;
flex-direction: column;
align-items: center;
}
#login-title {
margin-top: 10px;
padding-bottom: 10px;
}
#icon {
padding-bottom: 40px;
transform: translateZ(0); // Hack to force Safari to render some effects properly
}
#player-card {
height: 60px;
}
#partyid {
text-transform: uppercase;
}
// Footer section elements
#footer {
position: relative;
width: 100%;
height: 150px;
margin: 0;
background: radial-gradient(ellipse at top, rgba(0,0,0,0.666), rgba(0,0,0,0.2));
border-top: 1px solid rgba(171,209,85,0.666);
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
&.gallery {
margin-top: 15px;
}
}
#logo {
position: absolute;
top: -40px;
& img {
height: 80px;
}
}
// Format-specific overrides
@media screen and (min-width: 550px) {
#login-container {
width: 500px;
// border-radius: 4px;
// border: 1px solid #fff;
display: flex;
flex-direction: column;
}
@ -163,19 +239,13 @@ h2 {
display: inline-block;
min-height: 50px;
}
:host::after {
content: "";
display: inline-block;
min-height: 50px;
}
}
@media screen and (max-width: 549px) {
#login-container {
width: 100%;
min-height: 100%;
position: absolute;
background: none;
top: 0px;
}
@ -184,3 +254,9 @@ h2 {
min-height: 100%;
}
}
@media screen and (max-width: 350px) {
#login-title h1 {
font-size: 2em;
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.2 KiB

After

Width:  |  Height:  |  Size: 32 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 50 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.0 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 9.6 KiB

View File

@ -15,7 +15,7 @@ html {
min-height: 100%;
}
body {
background: linear-gradient(#01001d, #03004e, #700067) fixed;
background: linear-gradient(to bottom, #131427, #2c2d4f) fixed;
min-height: 100%;
margin: 0;
padding: 0;
@ -26,6 +26,7 @@ body {
a {
cursor: pointer;
cursor: hand;
text-decoration: none;
}
button {
@ -54,11 +55,11 @@ nav a {
border-radius: 4px;
}
nav a:visited, a:link {
color: #607D8B;
color: #607d8b;
}
nav a:hover {
color: #039be5;
background-color: #CFD8DC;
background-color: #cfd8dc;
}
nav a.active {
color: #039be5;