replace 4xx and 5xx with _error, per 0.14

This commit is contained in:
Rich Harris
2018-06-28 11:48:18 -04:00
parent 7f515c236c
commit fa460a2989
4 changed files with 22 additions and 37 deletions

29
routes/_error.html Normal file
View File

@@ -0,0 +1,29 @@
<svelte:head>
<title>{status}</title>
</svelte:head>
<h1>{status}</h1>
<p>{error.message}</p>
<style>
h1, p {
margin: 0 auto;
}
h1 {
font-size: 2.8em;
font-weight: 700;
margin: 0 0 0.5em 0;
}
p {
margin: 1em auto;
}
@media (min-width: 480px) {
h1 {
font-size: 4em;
}
}
</style>