forked from datahub-project/datahub
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Redesign the login page (datahub-project#4684)
- Loading branch information
1 parent
57ee550
commit 9222078
Showing
3 changed files
with
98 additions
and
43 deletions.
There are no files selected for viewing
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,39 +1,49 @@ | ||
.login_page { | ||
background-color: rgb(51 62 76); | ||
background-color: #171717; | ||
min-height: 100vh; | ||
} | ||
|
||
.login_box { | ||
max-width: 24em; | ||
padding-left: 1em; | ||
padding-right: 1em; | ||
padding-top: 10em; | ||
margin-left: auto; | ||
margin-right: auto; | ||
width: 400px; | ||
position: absolute; | ||
top: 40%; | ||
left: 50%; | ||
transform: translate(-50%,-50%); | ||
} | ||
|
||
.login_button { | ||
color: white; | ||
background-color: transparent; | ||
border: 1px solid white; | ||
} | ||
|
||
.login_button:hover { | ||
color: rgb(51 62 76); | ||
background-color: white; | ||
border: 1px solid white; | ||
.login_logo_box { | ||
width: 100%; | ||
height: 200px; | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
} | ||
|
||
.logo_image { | ||
margin: auto auto; | ||
width: 50%; | ||
height: 40%; | ||
width: 92px; | ||
height: 92px; | ||
display: block; | ||
} | ||
|
||
.title { | ||
color: white; | ||
margin: 20px 0px; | ||
.login_form_box { | ||
width: 100%; | ||
background-color: #1C1C1C; | ||
border: 1px solid #555555; | ||
border-radius: 5px; | ||
padding: 2em; | ||
} | ||
|
||
.login_button { | ||
color: #171717; | ||
background-color: #EEEEEE; | ||
border: 1px solid #555555; | ||
height: 40px; | ||
font-size: 14px; | ||
text-align: center; | ||
} | ||
|
||
.login_button:hover { | ||
color: white; | ||
background-color: transparent; | ||
border: 1px solid #555555; | ||
} |
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,9 +1,9 @@ | ||
describe('login', () => { | ||
it('logs in', () => { | ||
cy.visit('/'); | ||
cy.get('input[placeholder=Username]').type('datahub'); | ||
cy.get('input[placeholder=Password]').type('datahub'); | ||
cy.contains('Log in').click(); | ||
cy.get('input[data-testid=username]').type('datahub'); | ||
cy.get('input[data-testid=password]').type('datahub'); | ||
cy.contains('Sign In').click(); | ||
cy.contains('Welcome back, Data Hub'); | ||
}); | ||
}) |