Skip to content
This repository has been archived by the owner on Dec 19, 2024. It is now read-only.

Commit

Permalink
Merge pull request #65 from brown-ccv/feat-404-page
Browse files Browse the repository at this point in the history
feat: 404 page and footer always at bottom
  • Loading branch information
galenwinsor authored Jul 1, 2024
2 parents 8251dce + 68a8c0e commit 59e38d3
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 12 deletions.
26 changes: 14 additions & 12 deletions src/layouts/Layout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,20 @@ const { title, description } = Astro.props
</head>

<body>
<Header />
<main>
<article>
<div>
<div class="space-y-3 pb-6">
<h1>{title}</h1>
<div class="flex flex-col h-full">
<Header />
<main class="grow">
<article>
<div>
<div class="space-y-3 pb-6">
<h1>{title}</h1>
</div>
<HeaderDivider />
<slot />
</div>
<HeaderDivider />
<slot />
</div>
</article>
</main>
<Footer />
</article>
</main>
<Footer />
</div>
</body>
</html>
7 changes: 7 additions & 0 deletions src/pages/404.astro
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
import Layout from "../layouts/Layout.astro"
---

<Layout title="Not found" description="">
<p>Whoops! Looks like that page doesn't exist!</p>
</Layout>
5 changes: 5 additions & 0 deletions src/styles/global.css
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@
@apply text-neutral-700;
}

html,
body {
@apply h-full;
}

body {
@apply grid;
@apply bg-neutral-50;
Expand Down

0 comments on commit 59e38d3

Please sign in to comment.