Skip to content

Commit

Permalink
error page (huggingface#85)
Browse files Browse the repository at this point in the history
  • Loading branch information
gary149 authored Apr 24, 2023
1 parent 06ffd82 commit ca1c74b
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/routes/+error.svelte
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<script lang="ts">
import { page } from "$app/stores";
</script>

<div
class="flex items-center justify-center text-gray-800 dark:text-gray-300 bg-gradient-to-t from-gray-200 dark:from-gray-700"
>
<div
class="dark:bg-gray-800 bg-white border rounded-xl pb-2 pt-4 px-8 flex flex-col justify-center align-center text-center -mt-24 dark:border-gray-700"
>
<h1 class="text-5xl mb-2 font-semibold">{$page.status}</h1>
<div class="h-px dark:bg-gray-700 bg-gray-200 -mx-8 my-2" />
<h2 class="text-lg">{$page.error?.message}</h2>
</div>
</div>

0 comments on commit ca1c74b

Please sign in to comment.