aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/Main
diff options
context:
space:
mode:
authorArmand Philippot <git@armandphilippot.com>2022-01-08 18:42:06 +0100
committerArmand Philippot <git@armandphilippot.com>2022-01-08 18:50:39 +0100
commit4e878aab112b08a18f7285bbb0df1f20d38ee9cf (patch)
treeaf083b2fca62aed8e29882421b729d228b77d7da /src/components/Main
parenta30ac67f560ff2b3bc2a462065ac5ddaf783682c (diff)
chore: ensure 100vh height and improve Header/Footer styles
Diffstat (limited to 'src/components/Main')
-rw-r--r--src/components/Main/Main.module.scss3
-rw-r--r--src/components/Main/Main.tsx7
2 files changed, 9 insertions, 1 deletions
diff --git a/src/components/Main/Main.module.scss b/src/components/Main/Main.module.scss
new file mode 100644
index 0000000..7c20020
--- /dev/null
+++ b/src/components/Main/Main.module.scss
@@ -0,0 +1,3 @@
+.wrapper {
+ flex: 1;
+}
diff --git a/src/components/Main/Main.tsx b/src/components/Main/Main.tsx
index ad270f6..b21ab1c 100644
--- a/src/components/Main/Main.tsx
+++ b/src/components/Main/Main.tsx
@@ -1,7 +1,12 @@
import { FunctionComponent } from 'react';
+import styles from './Main.module.scss';
const Main: FunctionComponent = ({ children }) => {
- return <main id="main">{children}</main>;
+ return (
+ <main id="main" className={styles.wrapper}>
+ {children}
+ </main>
+ );
};
export default Main;