Skip to content

Commit ae3f247

Browse files
Adding temporary styles to pages in development
1 parent c20d308 commit ae3f247

File tree

8 files changed

+42
-13
lines changed

8 files changed

+42
-13
lines changed

components/Layout.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
import Nav from './Nav';
22
import Meta from './Meta';
33
import Footer from './Footer';
4+
import styles from '../styles/Layout.module.scss';
45

56
export default function Layout({ children }) {
67
return (
78
<>
89
<Meta />
910
<Nav />
10-
<main>{children}</main>
11+
<main className={styles.main}>{children}</main>
1112
<Footer />
1213
</>
1314
);

pages/404.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import Link from 'next/link';
2-
const NotFound = () => {
2+
3+
export default function NotFound() {
34
return (
45
<div className="not-found">
56
<h1>Ooops...</h1>
@@ -12,5 +13,4 @@ const NotFound = () => {
1213
</p>
1314
</div>
1415
);
15-
};
16-
export default NotFound;
16+
}

pages/about-us.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
11
export default function AboutUs() {
2-
return <h1>Hello from About Us</h1>;
2+
return (
3+
<div className="about-us">
4+
<h1>About Us</h1>
5+
<p>We're building this page.</p>
6+
<p>Stay tuned!</p>
7+
</div>
8+
);
39
}

pages/blog/index.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@ import Link from 'next/link';
22

33
export default function Blog() {
44
return (
5-
<div>
6-
<h1>Hello from the blog page</h1>
5+
<div className="blog">
6+
<h1>Blog Page</h1>
7+
<p>We're building this page. Stay tuned!</p>
78
<ul>
89
<li>
910
<Link href="/blog/first-post">

pages/contact-us.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
11
export default function ContactUs() {
2-
return <h1>Hello from Contact Us</h1>;
2+
return (
3+
<div className="contact-us">
4+
<h1>Contact Us</h1>
5+
<p>We're building this page.</p>
6+
<p>Stay tuned!</p>
7+
</div>
8+
);
39
}

styles/Home.module.scss

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
@import 'mixins';
2-
@import 'variables';
1+
@use './variables' as *;
2+
@use './mixins' as *;
33

44
.title {
55
margin: 0;
@@ -15,7 +15,8 @@
1515
.description {
1616
font-size: 1.5rem;
1717
text-align: center;
18-
max-width: 90%;
18+
width: 90%;
19+
max-width: $large-desktop-breakpoint;
1920
margin: 0 auto;
2021
padding: 5rem 0;
2122
}

styles/Layout.module.scss

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
@use './variables' as *;
2+
@use './mixins' as *;
3+
4+
.main {
5+
min-height: 100vh;
6+
}

styles/globals.scss

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,16 @@ a {
3636
box-sizing: border-box;
3737
}
3838

39-
.not-found {
40-
text-align: center;
39+
.not-found,
40+
.about-us,
41+
.contact-us,
42+
.blog {
43+
display: flex;
44+
flex-direction: column;
45+
justify-content: center;
46+
justify-items: center;
47+
margin-top: 10%;
48+
align-items: center;
4149
}
4250

4351
.not-found a {

0 commit comments

Comments
 (0)