Skip to content
Snippets Groups Projects
Commit 2fcead06 authored by Sreeram, Sudarshan's avatar Sreeram, Sudarshan :carrot:
Browse files

Add dark mode support for sign in page

parent c0846693
No related branches found
No related tags found
No related merge requests found
...@@ -22,7 +22,7 @@ const SignIn: React.FC = () => { ...@@ -22,7 +22,7 @@ const SignIn: React.FC = () => {
src={logo} src={logo}
width="30" width="30"
height="30" height="30"
className={cx("d-inline-block", "align-center")} className={styles.brandLogo}
alt="Scientia logo" alt="Scientia logo"
/> />
</Container> </Container>
...@@ -38,8 +38,8 @@ const SignIn: React.FC = () => { ...@@ -38,8 +38,8 @@ const SignIn: React.FC = () => {
alignItems: "center" alignItems: "center"
}} }}
> >
<h1>Scientia</h1> <h1 className={styles.brandName}>Scientia</h1>
<i style={{ color: "gray" }}>A Unified DoC EdTech Platform</i> <i className={styles.tagLine}>A Unified DoC EdTech Platform</i>
</div> </div>
<div <div
style={{ style={{
...@@ -52,7 +52,7 @@ const SignIn: React.FC = () => { ...@@ -52,7 +52,7 @@ const SignIn: React.FC = () => {
<InputGroup className="mb-3"> <InputGroup className="mb-3">
<FormControl <FormControl
className={styles.inputBar} className={styles.inputBar}
placeholder="abc123" placeholder="Enter your username"
aria-label="Username" aria-label="Username"
aria-describedby="basic-addon1" aria-describedby="basic-addon1"
/> />
......
...@@ -2,8 +2,20 @@ ...@@ -2,8 +2,20 @@
.navBar { .navBar {
padding: 0.75rem 1rem; padding: 0.75rem 1rem;
background: #fff; background: var(--backgound-color);
border-bottom: 1px solid #cdd4db; border-bottom: 1px solid var(--border-color);
}
.brandLogo {
filter: Invert(var(--image-invert));
}
.brandName {
color: var(--primary-text-color);
}
.tagLine {
color: var(--tertiary-text-color);
} }
.centered { .centered {
...@@ -15,32 +27,35 @@ ...@@ -15,32 +27,35 @@
width: 90%; width: 90%;
} }
$button-background: transparentize($gray-200, 0.75);
$button-border: transparentize($gray-300, 1);
.inputBar { .inputBar {
border-radius: 0.5rem; border-radius: 0.5rem;
border-width: 1px; border-width: 1px;
background-color: $button-background; border-color: var(--input-bar);
border-color: $button-background;
background-color: var(--input-bar);
color: var(--primary-text-color);
text-align: left;
transition: 0.2s background-color; transition: 0.2s background-color;
-webkit-transition: 0.2s background-color; -webkit-transition: 0.2s background-color;
-moz-transition: 0.2s back-ground-color; -moz-transition: 0.2s back-ground-color;
} }
.inputBar::placeholder { .inputBar::placeholder {
color: #acb5bd; color: var(--input-bar-placeholder);
opacity: 1; opacity: 1;
} }
.inputBar:focus { .inputBar:focus {
box-shadow: none !important; box-shadow: none !important;
border-color: $gray-300; border-color: var(--border-color-focus);
background-color: $white; background-color: var(--backgound-color);
color: var(--primary-text-color);
} }
.inputBarHeading { .inputBarHeading {
color: $black; color: var(--primary-text-color);
font-size: 1.125rem; font-size: 1.125rem;
font-weight: 500; font-weight: 500;
margin-bottom: 0.625rem; margin-bottom: 0.625rem;
...@@ -48,16 +63,15 @@ $button-border: transparentize($gray-300, 1); ...@@ -48,16 +63,15 @@ $button-border: transparentize($gray-300, 1);
.inputButton.focus, .inputButton.focus,
.inputButton:focus { .inputButton:focus {
color: #000; background: var(--primary-button);
background-color: #f8f9fa; color: var(--primary-button-text);
border-color: #0062cc;
box-shadow: none; box-shadow: none;
} }
.inputButton { .inputButton {
margin-bottom: 0.625rem; margin-bottom: 0.625rem;
color: #fff; color: var(--primary-button-text);
background: $black; background: var(--primary-button);
font-weight: 500; font-weight: 500;
font-size: 1.05rem; font-size: 1.05rem;
letter-spacing: 0; letter-spacing: 0;
...@@ -75,8 +89,8 @@ $button-border: transparentize($gray-300, 1); ...@@ -75,8 +89,8 @@ $button-border: transparentize($gray-300, 1);
.inputButton.active, .inputButton.active,
.inputButton:active { .inputButton:active {
color: #fff; background: var(--primary-button-active) !important;
background: #000 !important; color: var(--primary-button-text-active) !important;
font-weight: 500; font-weight: 500;
border-width: 0rem; border-width: 0rem;
height: 2.25rem; height: 2.25rem;
...@@ -84,7 +98,7 @@ $button-border: transparentize($gray-300, 1); ...@@ -84,7 +98,7 @@ $button-border: transparentize($gray-300, 1);
} }
.inputButton:hover { .inputButton:hover {
background: $gray-800; background-color: var(--primary-button-hover);
border-color: #fff; color: var(--primary-button-text);
color: $white; box-shadow: none !important;
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment