-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #125 from canyener/styling-login-page
Styling login page
- Loading branch information
Showing
10 changed files
with
77 additions
and
9 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,12 @@ | ||
//Colors | ||
$dark-blue: #333745; | ||
$dark-grey: #333333; | ||
$blue: #1c88bf; | ||
|
||
// Font Size | ||
$font-size-large: 1.8rem; | ||
|
||
//Spacing | ||
$m-size: 1.6rem; | ||
$s-size: 1.2rem; | ||
$m-size: 1.6rem; | ||
$l-size: 3.2rem; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
.box-layout { | ||
align-items: center; | ||
background: url('/images/bg.jpg'); | ||
background-size: cover; | ||
display: flex; | ||
height: 100vh; | ||
justify-content: center; | ||
width: 100vw; | ||
} | ||
|
||
.box-layout__box { | ||
background: fade-out(white, .15); | ||
border-radius: 3px; | ||
padding: $l-size $m-size; | ||
text-align: center; | ||
width: 25rem; | ||
} | ||
|
||
.box-layout__title { | ||
margin: 0 0 $m-size 0; | ||
line-height: 1; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
.button { | ||
background: $blue; | ||
border: none; | ||
color: white; | ||
font-size: $font-size-large; | ||
font-weight: 300; | ||
padding: $s-size; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
@import '/base/normalize'; | ||
@import '/base/settings'; | ||
@import '/base/base'; | ||
@import '/base/base'; | ||
@import './components/box-layout'; | ||
@import './components/button'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,26 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`LoginPage #Snapshots Should render LoginPage correctly 1`] = ` | ||
<div> | ||
<button | ||
onClick={[Function]} | ||
<div | ||
className="box-layout" | ||
> | ||
<div | ||
className="box-layout__box" | ||
> | ||
Login | ||
</button> | ||
<h1 | ||
className="box-layout__title" | ||
> | ||
Expensify | ||
</h1> | ||
<p> | ||
It's time to get your expenses under control. | ||
</p> | ||
<button | ||
className="button" | ||
onClick={[Function]} | ||
> | ||
Login with Google | ||
</button> | ||
</div> | ||
</div> | ||
`; |