Skip to content
This repository was archived by the owner on Feb 27, 2024. It is now read-only.

Commit 4ecd38c

Browse files
committed
Add container tags to static pages
1 parent 9ae2436 commit 4ecd38c

File tree

2 files changed

+24
-11
lines changed

2 files changed

+24
-11
lines changed

pages/404.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,14 @@ export default function Custom404({post}) {
2828

2929
return (
3030
<Layout seo={{...seo}}>
31-
<h1>404 Not Found</h1>
32-
<p>That page could not be found!</p>
31+
<div className="container">
32+
<section>
33+
<article>
34+
<h1>404 Not Found</h1>
35+
<p>That page could not be found!</p>
36+
</article>
37+
</section>
38+
</div>
3339
</Layout>
3440
)
3541
}

pages/index.js

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,22 @@ export default function HomePage({post}) {
2626
// Display static page content as fallback.
2727
return (
2828
<Layout seo={{...seo}}>
29-
<Hero
30-
background="https://images.unsplash.com/photo-1513106021000-168e5f56609d?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=2560&q=70"
31-
title="Next.js Starter"
32-
description="A slightly opinionated, yet bare-bones Next.js starter."
33-
/>
34-
<p>
35-
To display your WordPress homepage dynamically, set your homepage to a
36-
static page via the WP dashboard (Settings: Reading Settings).
37-
</p>
29+
<div className="container">
30+
<section>
31+
<article>
32+
<Hero
33+
background="https://images.unsplash.com/photo-1513106021000-168e5f56609d?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=2560&q=70"
34+
title="Next.js Starter"
35+
description="A slightly opinionated, yet bare-bones Next.js starter."
36+
/>
37+
<p>
38+
To display your WordPress homepage dynamically, set your homepage
39+
to a static page via the WP dashboard (Settings: Reading
40+
Settings).
41+
</p>
42+
</article>
43+
</section>
44+
</div>
3845
</Layout>
3946
)
4047
}

0 commit comments

Comments
 (0)