-
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.
- Loading branch information
Showing
7 changed files
with
147 additions
and
78 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
.label { | ||
display: flex; | ||
font-weight: 600; | ||
font-size: 15px; | ||
justify-content: space-between; | ||
margin-bottom: 5px; | ||
margin-top: 10px; | ||
cursor: pointer; | ||
} | ||
|
||
.input { | ||
border-radius: 2px; | ||
width: 100%; | ||
background-color: var(--noir); | ||
color: var(--midnight); | ||
line-height: 100%; | ||
outline: none; | ||
font: 16px; | ||
caret-color: var(--crimson); | ||
width: 100%; | ||
padding: 12px; | ||
border: 1px solid var(--ink); | ||
} | ||
|
||
.button { | ||
border-radius: 4px; | ||
border: none; | ||
color: var(--white); | ||
min-width: 120px; | ||
min-height: 46px; | ||
line-height: 22px; | ||
font-weight: 700; | ||
padding: 6px 8px; | ||
user-select: none; | ||
cursor: pointer; | ||
text-align: center; | ||
width: 100%; | ||
margin-top: 21px; | ||
background-color: var(--crimson); | ||
} |
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 |
---|---|---|
@@ -0,0 +1,50 @@ | ||
@import url("./root.css"); | ||
@import url("./reset.css"); | ||
@import url("./text.css"); | ||
@import url("./form.css"); | ||
|
||
/* NAVIGATION */ | ||
.navigation { | ||
display: flex; | ||
align-items: center; | ||
justify-content: space-between; | ||
height: 60px; | ||
padding: 0 20px; | ||
width: calc(100% - 0px); | ||
background-color: var(--white); | ||
} | ||
|
||
/* TEXT */ | ||
.larger { | ||
font-size: 1.5rem; | ||
unicode-bidi: isolate; | ||
display: block; | ||
margin: 0.83em 0px; | ||
font-weight: bold; | ||
} | ||
|
||
|
||
/* divs */ | ||
.center { | ||
display: grid; | ||
place-items: center; | ||
} | ||
|
||
.smblock { | ||
width: 363px; | ||
min-height: 60px; | ||
} | ||
|
||
.container { | ||
min-height: 80vh; | ||
} | ||
|
||
.footer { | ||
display: flex; | ||
align-items: center; | ||
justify-content: space-between; | ||
height: 60px; | ||
padding: 0 20px; | ||
width: calc(100% - 0px); | ||
background-color: var(--white); | ||
} |
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,54 +1,33 @@ | ||
.bold { | ||
font-weight: bolder; | ||
} | ||
.smallest { | ||
font-size: var(--font-xxs); | ||
} | ||
.smaller { | ||
font-size: var(--font-xs); | ||
} | ||
.small { | ||
font-size: var(--font-sm); | ||
} | ||
.medium { | ||
font-size: var(--font-md); | ||
} | ||
.large { | ||
font-size: var(--font-lg); | ||
} | ||
.larger { | ||
font-size: var(--font-xl); | ||
} | ||
.largest { | ||
font-size: var(--font-xxl); | ||
} | ||
.huge { | ||
font-size: var(--font-xxxl); | ||
} | ||
|
||
.secondary { | ||
color: var(--text-secondary); | ||
} | ||
.primary { | ||
color: var(--text-primary); | ||
} | ||
.accent { | ||
color: var(--text-accent); | ||
} | ||
.muted { | ||
color: var(--text-muted); | ||
.larger { | ||
font-size: 1.5rem; | ||
unicode-bidi: isolate; | ||
display: block; | ||
margin: 0.83em 0px; | ||
font-weight: bold; | ||
} | ||
|
||
.center-align { | ||
text-align: center; | ||
} | ||
|
||
.left-align { | ||
text-align: left; | ||
} | ||
|
||
.right-align { | ||
text-align: right; | ||
} | ||
|
||
.underline { | ||
text-decoration: underline; | ||
} | ||
|
||
.link { | ||
color: rgba(22, 24, 35, 0.75); | ||
font-weight: 600; | ||
font-size: 12px; | ||
display: inline-block; | ||
} |
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,29 +1,23 @@ | ||
<%- include("./partials/head") %> | ||
<main class="fullbleed center"> | ||
<form action="/login" method="post" class="card wide white"> | ||
<header> | ||
<h1 class="larger">Log in to your account</h1> | ||
</header> | ||
<hr class="divider margin-top margin-bottom"> | ||
<fieldset class="field"> | ||
<legend>Username</legend> | ||
<input type="text" name="username" placeholder="Enter username" required /> | ||
</fieldset> | ||
<fieldset class="field no-margin"> | ||
<legend>Password</legend> | ||
<input type="password" name="password" placeholder="Enter password" required /> | ||
</fieldset> | ||
<% if(data.errors) { %> | ||
<small> | ||
<% data.errors %> | ||
</small> | ||
<%}%> | ||
<a href="reset-password" class="medium padding-bottom">Forget Password?</a> | ||
<button type="submit" class="primary full">Log In</button> | ||
<hr class="divider margin-top"> | ||
<p class="medium padding-bottom padding-top center-align"> | ||
<span>Don't have an account?</span> | ||
<a href="/voters/registration">Create new account</a> | ||
</p> | ||
</form> | ||
</main> | ||
<nav class="navigation"> | ||
<a href="" class="larger">Election App</a> | ||
<span class=""></span> | ||
</nav> | ||
<main class="container center"> | ||
<div class="smblock"> | ||
<h2 class="larger center-align">Log in</h2> | ||
<form action="" method="post"> | ||
|
||
<label class="label" for="username">Username </label> | ||
<input type="username" name="username" id="username" class="input" /> | ||
|
||
<label class="label" for="password">Password</label> | ||
<input type="password" name="password" id="password" class="input" /> | ||
|
||
<a href="/reset-password" class="link">Forget Password?</a> | ||
|
||
<button type="submit" class="button">Log In</button> | ||
</form> | ||
</div> | ||
</main> | ||
<footer class="footer">© 2024</footer> |
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