Skip to content

Commit dfab403

Browse files
committed
Migrated Layout to scss
1 parent 00115fa commit dfab403

2 files changed

Lines changed: 7 additions & 3 deletions

File tree

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
.main {
2+
position: relative;
3+
z-index: 0;
4+
}

components/layout/Layout/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { heroOptions } from '@/utils/hero-options';
33
import Hero from '@/components/layout/Hero';
44
import Meta from '@/components/layout/Meta';
55
import Footer from '@/components/layout/Footer';
6-
import S from './styles';
6+
import styles from './Layout.module.scss';
77

88
export default function Layout({ children }) {
99
const router = useRouter();
@@ -15,11 +15,11 @@ export default function Layout({ children }) {
1515
return (
1616
<>
1717
<Meta />
18-
<S.Main>
18+
<main className={styles.main}>
1919
<Hero {...heroOptions[heroKey]} />
2020
{children}
2121
<Footer />
22-
</S.Main>
22+
</main>
2323
</>
2424
);
2525
}

0 commit comments

Comments
 (0)