Skip to content

Commit 6163eb3

Browse files
authored
Merge pull request #273 from Web-Dev-Path/refactor/to-scss-layout
Refactor/to scss layout
2 parents 7e7c687 + 4c669a6 commit 6163eb3

3 files changed

Lines changed: 4 additions & 11 deletions

File tree

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
180180
- Decorations/Bracket
181181
- Decorations/Stick
182182
- TwoColumn
183+
- Layout
183184
- RelatedPosts
184185
- Extracted :root from themes.scss to globals.scss
185186
- Updated ContactUsForm's checkbox wrapper from div to label to enhance its accessibility
@@ -191,3 +192,4 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
191192
- home(index) page
192193
- Created a combineClasses function to clean up conditional class handling
193194
- Rename RowAlignLeft to Row
195+
- Remove unessesary stylings from the Layout.

components/layout/Layout/index.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ 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';
76

87
export default function Layout({ children }) {
98
const router = useRouter();
@@ -15,11 +14,11 @@ export default function Layout({ children }) {
1514
return (
1615
<>
1716
<Meta />
18-
<S.Main>
17+
<main>
1918
<Hero {...heroOptions[heroKey]} />
2019
{children}
2120
<Footer />
22-
</S.Main>
21+
</main>
2322
</>
2423
);
2524
}

components/layout/Layout/styles.js

Lines changed: 0 additions & 8 deletions
This file was deleted.

0 commit comments

Comments
 (0)