-
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 #118 from bas-kirill/feature/login-dark-mode
feat(login): add dark mode
- Loading branch information
Showing
11 changed files
with
105 additions
and
29 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,10 @@ | ||
.app { | ||
background-color: #f5f5f5; | ||
max-width: 1024px; | ||
margin: 0 auto; | ||
border: 1px #dee2e6 solid; | ||
} | ||
|
||
.app__dark { | ||
background-color: #212529; | ||
} |
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
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,8 +1,20 @@ | ||
import React from "react"; | ||
import "./styles/FooterWidget.css"; | ||
import styles from "./styles/Footer.widget.module.css"; | ||
import { useDarkMode } from "shared/dark-mode/use-dark-mode"; | ||
|
||
export function FooterWidget() { | ||
return <footer>Muse Group Frontend Academy</footer>; | ||
const { darkMode } = useDarkMode(); | ||
|
||
return ( | ||
<footer | ||
className={` | ||
${styles.footer} | ||
${darkMode && styles.footer__dark} | ||
`} | ||
> | ||
Muse Group Frontend Academy | ||
</footer> | ||
); | ||
} | ||
|
||
export default FooterWidget; |
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,9 @@ | ||
.footer { | ||
background-color: khaki; | ||
padding: 20px; | ||
} | ||
|
||
.footer__dark { | ||
background-color: #2c2c2c; | ||
color: #ffffff; | ||
} |
This file was deleted.
Oops, something went wrong.