feat: add minimal not-found error page
This commit is contained in:
parent
6b21c4f7b3
commit
c96def2789
1 changed files with 33 additions and 0 deletions
33
src/routes/+error.svelte
Normal file
33
src/routes/+error.svelte
Normal 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>
|
||||
Loading…
Reference in a new issue