You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
svelte/site/src/routes/_error.svelte

33 lines
465 B

<script>
const dev = process.env.NODE_ENV === 'development';
export let status;
export let error;
</script>
<svelte:head>
<title>{status}</title>
</svelte:head>
<h1>{status}</h1>
<p>{error.message}</p>
{#if dev && error.stack}
<pre>{error.stack}</pre>
{/if}
<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>