Adjust /error
This commit is contained in:
@@ -33,7 +33,7 @@ const codeNames: Record<number, string> = {
|
|||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<main class={cn("flex grow flex-col items-center justify-center gap-10 py-10 relative overflow-hidden", limitWidth)}>
|
<main class={cn("flex grow flex-col items-center justify-center gap-10 py-10 relative min-h-screen overflow-hidden", limitWidth)}>
|
||||||
<section class="flex min-w-full flex-col items-center gap-6 ">
|
<section class="flex min-w-full flex-col items-center gap-6 ">
|
||||||
<h1 class="text-center text-5xl font-display leading-[1.125]">
|
<h1 class="text-center text-5xl font-display leading-[1.125]">
|
||||||
<span>{page.status}</span>
|
<span>{page.status}</span>
|
||||||
@@ -55,5 +55,7 @@ const codeNames: Record<number, string> = {
|
|||||||
<p>{page.error?.message}</p>
|
<p>{page.error?.message}</p>
|
||||||
{/if}
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<a href="/">― Go Back ―</a>
|
||||||
</section>
|
</section>
|
||||||
</main>
|
</main>
|
||||||
|
|||||||
@@ -38,7 +38,7 @@ onNavigate((navigation) => {
|
|||||||
{#if viewTransition}
|
{#if viewTransition}
|
||||||
{@render children()}
|
{@render children()}
|
||||||
{:else}
|
{:else}
|
||||||
<div class="grid grid-cols-1">
|
<div class="grid grid-cols-1 min-h-screen">
|
||||||
{#key page.url.pathname}
|
{#key page.url.pathname}
|
||||||
<div class="row-start-1 col-start-1" transition:fade={{ duration: 200, easing: sineOut }}>
|
<div class="row-start-1 col-start-1" transition:fade={{ duration: 200, easing: sineOut }}>
|
||||||
{@render children()}
|
{@render children()}
|
||||||
|
|||||||
Reference in New Issue
Block a user