Skip to content

Commit

Permalink
Added Error Page Back
Browse files Browse the repository at this point in the history
  • Loading branch information
silverlightning926 committed Sep 12, 2024
1 parent 88ff978 commit e7e54f1
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 1 deletion.
39 changes: 39 additions & 0 deletions src/routes/+error.svelte
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
<script>
import Layout from "./+layout.svelte";
</script>

<Layout>
<main class="not-found-page px-4">
<h1 class="text-5xl sm:text-4xl md:text-5xl lg:text-5xl">404</h1>
<h3
class="mt-6 text-5xl sm:text-6xl md:text-7xl lg:text-9xl font-bold tracking-wide title"
>
Page Not Found
</h3>
<p class="text-2xl sm:text-3xl md:text-4xl mt-12">
The page you are looking for does not exist.
</p>
<div class="mt-12 flex flex-col gap-4 items-center sm:flex-row sm:gap-6">
<a href="/" class="text-xl sm:text-2xl md:text-3xl hover:underline">
Go To Home
</a>
</div>
</main>

<style>
.not-found-page {
padding: 8rem 1rem;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
min-height: 100vh;
}
.title {
color: #f56565;
text-shadow:
0 0 2px #f56565,
0 0 4px #f56565;
}
</style>
</Layout>
2 changes: 1 addition & 1 deletion svelte.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const config = {
adapter: adapter({
pages: "build",
assets: "build",
fallback: null,
fallback: "404.html",
precompress: false,
strict: true,
}),
Expand Down

0 comments on commit e7e54f1

Please sign in to comment.