mirror of
https://github.com/emailerfacu-spec/minix-front.git
synced 2026-04-20 16:17:32 -03:00
cambie de lugar el error para que sea una pagina global
This commit is contained in:
20
src/routes/+error.svelte
Normal file
20
src/routes/+error.svelte
Normal file
@@ -0,0 +1,20 @@
|
||||
<script lang="ts">
|
||||
import { page } from '$app/state';
|
||||
import CardContent from '@/components/ui/card/card-content.svelte';
|
||||
import Card from '@/components/ui/card/card.svelte';
|
||||
</script>
|
||||
|
||||
<div class="flex min-h-fit w-full items-center justify-center p-6 md:p-10">
|
||||
<div class="w-full max-w-6xl">
|
||||
<Card>
|
||||
<CardContent>
|
||||
<h1 class="mb-4 text-center text-3xl font-bold text-gray-800">
|
||||
{page.status}
|
||||
</h1>
|
||||
<p class="text-center">
|
||||
{page.error!.message}
|
||||
</p>
|
||||
</CardContent>
|
||||
</Card>
|
||||
</div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user