Skip to content

Commit

Permalink
Add landing page styling
Browse files Browse the repository at this point in the history
relates issue #56
  • Loading branch information
thejoefriel committed Sep 20, 2018
1 parent 0b57eff commit cc2b015
Show file tree
Hide file tree
Showing 14 changed files with 261 additions and 43 deletions.
10 changes: 10 additions & 0 deletions private/sass/_colors.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,13 @@ $orange1: #ff9b71;
// black and white
$white: #fbf6f1;
$black: #1d2425;

// gradient
$gradient1: linear-gradient(
to right top,
#00ba9f,
#00a0aa,
#0083a7,
#1f6693,
#404973
);
80 changes: 57 additions & 23 deletions private/sass/navbar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
@import "fonts";
@import "sizes";

nav{
.nav-main {
position: fixed;
top:0;
top: 0;
right: 0;
min-width: 70%;
height: $large;
Expand All @@ -19,23 +19,23 @@ nav{
}

// XP and XP-BAR STYLING
#xp-section{
display:flex;
align-items:center;
justify-content: space-around;
min-width: 60%;
#xp-section {
display: flex;
align-items: center;
justify-content: space-around;
min-width: 60%;
}
#xp-section > h3{
#xp-section > h3 {
margin: 0 $small;
font-weight: 500;
}
#xp-bar{
#xp-bar {
margin: $small;
}
#xp-bar[value] {
/* Reset the default appearance */
-webkit-appearance: none;
appearance: none;
-webkit-appearance: none;
appearance: none;

width: 25vw;
height: $small;
Expand All @@ -47,30 +47,33 @@ appearance: none;
}
#xp-bar[value]::-webkit-progress-value {
background-color: $green1;
background-image:
-webkit-linear-gradient(-45deg,
transparent 33%, rgba(0, 0, 0, .1) 33%,
rgba(0,0, 0, .1) 66%, transparent 66%);
background-image: -webkit-linear-gradient(
-45deg,
transparent 33%,
rgba(0, 0, 0, 0.1) 33%,
rgba(0, 0, 0, 0.1) 66%,
transparent 66%
);
border-radius: 2px;
}

// LEVEL TEXT STYLING
nav > h4{
nav > h4 {
font-size: $medium;
margin: 0;
}
.level{
.level {
margin-left: $small;
margin-right: $small;
}

// AVATAR-PIC and BUTTON STYLING
#avatar-section{
// AVATAR-PIC and BUTTON STYLING
#avatar-section {
position: fixed;
right: 0;
top: $large;
}
#profile-pic{
#profile-pic {
height: 4rem;
border: $navy1 $small solid;
border-radius: 100%;
Expand All @@ -84,8 +87,7 @@ nav > h4{
border-radius: 50%;
background: $navy1;
cursor: pointer;
transition: background 250ms ease-in-out,
transform 150ms ease;
transition: background 250ms ease-in-out, transform 150ms ease;
-webkit-appearance: none;
-moz-appearance: none;
}
Expand Down Expand Up @@ -114,4 +116,36 @@ nav > h4{

.popout-menu--visible {
transform: translateY(0);
}
}

// logged out navbar styling

.logged-out-nav {
position: fixed;
right: 0;
margin: $small;
height: $large;
}

.sign-in-button {
background-color: $green1;
display: flex;
align-items: center;
justify-content: center;
border-radius: $medium;
color: $white;
cursor: pointer;
padding: $small $medium $small $medium;
border: none;
}

.sign-in-button:focus {
background-color: $orange1;
}

.sign-in-button-text {
text-align: center;
font-family: $main-text;
margin: auto;
font-weight: 500;
}
2 changes: 2 additions & 0 deletions private/sass/selected-page.scss
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
margin: 0;
border-radius: $medium;
padding: $medium;
box-shadow: -3px 3px $navy1;
}

#close-button {
Expand All @@ -32,6 +33,7 @@
align-items: center;
cursor: pointer;
transition: transform 0.5s ease;
border: $white solid 2px;
}

.close-icon {
Expand Down
75 changes: 73 additions & 2 deletions private/sass/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,15 @@
// paste line below into terminal to keep css updating
// sass --watch private/sass:public/css

*{
* {
box-sizing: border-box;
}

main{
*:focus {
outline: solid $orange1 2px;
}

main {
margin-top: $larger;
margin-bottom: $large;
}
Expand Down Expand Up @@ -44,3 +48,70 @@ h3 {
p {
margin-bottom: $small;
}

// Landing page

.logged-out-body {
background-image: $gradient1;
display: flex;
min-height: 100vh;
align-items: stretch;
justify-content: center;
}

.logged-out-main {
display: flex;
flex-direction: column;
align-items: stretch;
justify-content: center;
padding: $large $medium $large $medium;
margin: 0;
padding-top: $larger;
}

.landing-title {
text-align: center;
text-shadow: -4px 4px $green1;
color: $white;
margin-bottom: $large;
}

.intro {
color: white;
margin-bottom: $large;
text-align: center;
}

.landing-button {
text-align: center;
display: flex;
width: 100%;
background-color: $orange1;
justify-content: center;
align-items: center;
border-radius: $large;
padding: $small;
cursor: pointer;
color: $white;
border: 2px $white solid;
}

.start-button {
margin-bottom: $medium;
}

.landing-button:focus {
color: $orange1;
background-color: $white;
}

.landing-button:hover {
color: $orange1;
background-color: $white;
}

.landing-button-text {
font-family: $main-text;
margin: auto;
font-weight: 500;
}
32 changes: 31 additions & 1 deletion public/css/navbar.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion public/css/navbar.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions public/css/selected-page.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion public/css/selected-page.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit cc2b015

Please sign in to comment.