feat: add minimal not-found error page

This commit is contained in:
Justin Edmund 2025-10-07 03:18:17 -07:00
parent 6b21c4f7b3
commit c96def2789

33
src/routes/+error.svelte Normal file
View file

@ -0,0 +1,33 @@
<script>
import { page } from '$app/stores';
</script>
<div class="error-container">
<h1 class="error-code">404</h1>
<p class="error-message">Not Found</p>
</div>
<style lang="scss">
.error-container {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
min-height: 100vh;
text-align: center;
}
.error-code {
font-size: 120px;
font-weight: 500;
line-height: 1;
margin: 0;
color: var(--text-primary);
}
.error-message {
font-size: 24px;
margin-top: $unit-2x;
color: var(--text-secondary);
}
</style>