Add 404 page for static site in Netlify
This commit is contained in:
parent
e368722b9f
commit
10c6f8cf8d
|
|
@ -0,0 +1 @@
|
||||||
|
/* /404 404
|
||||||
|
|
@ -1,15 +0,0 @@
|
||||||
<script lang="ts">
|
|
||||||
import { page } from "$app/stores"
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<svelte:head>
|
|
||||||
<meta name="description" content={$page.error?.message} />
|
|
||||||
<title>{$page.error?.message} • Revival Archive</title>
|
|
||||||
</svelte:head>
|
|
||||||
|
|
||||||
<div class="flex flex-col items-center justify-center">
|
|
||||||
<div class="bg-a px-22 rounded-4 mt-30vh p-8 text-center">
|
|
||||||
<h1 class="text-2.2rem m-0 mb-5">Error {$page.status}</h1>
|
|
||||||
{$page.error?.message}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
@ -0,0 +1,17 @@
|
||||||
|
<script lang="ts">
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<svelte:head>
|
||||||
|
<meta name="description" content="Page not found" />
|
||||||
|
<title>Not found • Revival Archive</title>
|
||||||
|
</svelte:head>
|
||||||
|
|
||||||
|
<div class="flex flex-col items-center justify-center">
|
||||||
|
<div class="bg-a px-22 rounded-4 mt-30vh p-8 text-center">
|
||||||
|
<h1 class="text-2.2rem m-0 mb-5">Error 404</h1>
|
||||||
|
<p class="mb-1">
|
||||||
|
<strong>Page not found</strong>
|
||||||
|
</p>
|
||||||
|
<a href="/">Head home?</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
Loading…
Reference in New Issue