Skip to content

Commit f4d7866

Browse files
committed
Deleting Layout.module.css file, creating a Layout.module.scss file containing styles in SASS format and referencing to the scss file in Layout component
1 parent 2b2cd9e commit f4d7866

File tree

3 files changed

+17
-17
lines changed

3 files changed

+17
-17
lines changed

components/Layout.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import Nav from "./Nav";
2-
import styles from "../styles/Layout.module.css";
2+
import styles from "../styles/Layout.module.scss";
33
import Footer from "./Footer";
44

55
export default function Layout({ children }) {

styles/Layout.module.css

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

styles/Layout.module.scss

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
.container {
2+
min-height: 100vh;
3+
padding: 0 0.5rem;
4+
width: 100%;
5+
margin: 0 auto;
6+
}
7+
8+
.main {
9+
padding: 3rem 0;
10+
}
11+
12+
@media (min-width: 1024px) {
13+
.container {
14+
width: 80%;
15+
}
16+
}

0 commit comments

Comments
 (0)