-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move root styles to wrapper layout component
- Loading branch information
Showing
4 changed files
with
32 additions
and
34 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
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 @@ | ||
.root { | ||
background-color: var(--secondary-dark); | ||
color: var(--secondary-text-color); | ||
margin: 0; | ||
border: 0; | ||
width: 100%; | ||
height: 100%; | ||
overflow-y: auto; | ||
justify-content: center; | ||
} |
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,13 +1,14 @@ | ||
import * as React from "react"; | ||
import { Outlet } from "react-router-dom"; | ||
import Header from "../Header"; | ||
import styles from "./Layout.module.css"; | ||
|
||
// Basic wrapper to maintain global header | ||
export default function Layout() { | ||
return ( | ||
<> | ||
<div className={styles.root}> | ||
<Header /> | ||
<Outlet /> | ||
</> | ||
</div> | ||
); | ||
} |