Skip to content

Commit

Permalink
Styled 404 page
Browse files Browse the repository at this point in the history
  • Loading branch information
Naapperas committed Dec 25, 2023
1 parent 25dc514 commit 296434c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/components/Page/Home/Introduction.astro
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { Image } from "astro:assets";
import banner from "./me.jpg";
---

<header class="flex flex-col md:flex-row gap-10 md:mt-44 w-4/5 md:w-3/5">
<header class="flex flex-col md:flex-row gap-10 w-4/5 md:w-3/5">
<Image
src={banner}
alt="Home Page Banner"
Expand Down
2 changes: 1 addition & 1 deletion src/layouts/Content.astro
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const { title, bgColor } = Astro.props;
---

<Base title={title} bgColor={bgColor}>
<main class="px-10 py-8 items-center flex-col flex-1 flex">
<main class="px-10 py-8 items-center justify-center flex-col flex-1 flex">
<slot />
</main>
</Base>
8 changes: 6 additions & 2 deletions src/pages/404.astro
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ import Layout from "../layouts/Content.astro";
---

<Layout title="404: Not Found">
<h1>Looks like the page you attempted to reach does not exist</h1>
<a href="/">Go back to the homepage</a>
<h1 class="text-3xl">
Looks like the page you attempted to reach does not exist.
</h1>
<span class="text-lg">
Go back to the <a class="hover:underline" href="/">homepage</a>
</span>
</Layout>

0 comments on commit 296434c

Please sign in to comment.