Skip to content

Commit

Permalink
feat: error page
Browse files Browse the repository at this point in the history
  • Loading branch information
jouwdan committed Jul 29, 2023
1 parent de31e14 commit c180622
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 33 deletions.
21 changes: 0 additions & 21 deletions apps/web/src/lib/ui/support/Error.svelte

This file was deleted.

4 changes: 0 additions & 4 deletions apps/web/src/routes/(course-reader)/+layout.svelte
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
<script lang="ts">
import { browser } from '$app/environment';
import { page } from '$app/stores';
import '@skeletonlabs/skeleton/styles/all.css';
import { AppShell, Toast, storePopup, setInitialClassState } from '@skeletonlabs/skeleton';
import { computePosition, autoUpdate, flip, shift, offset, arrow } from '@floating-ui/dom';
import { onMount } from 'svelte';
import { afterNavigate } from '$app/navigation';
import Blank from '$lib/ui/support/Blank.svelte';
import NavBar from '$lib/ui/navigators/NavBar.svelte';
import PageHeader from '$lib/ui/navigators/PageHeader.svelte';
import { Footer } from '$lib/ui/legacy';
Expand Down Expand Up @@ -122,7 +120,5 @@
</div>
</svelte:fragment>
</AppShell>
{:else}
<Blank />
{/if}
</div>
3 changes: 0 additions & 3 deletions apps/web/src/routes/(home)/+layout.svelte
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
<script>
import 'tutors-ui/lib/themes/tutors.css';
import '@skeletonlabs/skeleton/styles/all.css';
import './app.postcss';
import { AppShell, AppBar, LightSwitch } from '@skeletonlabs/skeleton';
import 'iconify-icon';
</script>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,17 +29,17 @@
</g>
</svg>
</div>
<h2 class="flex-none pt-4 font-bold">Tutors Course Reader</h2>
<h2 class="flex-none pt-4 font-bold">Tutors</h2>
</div>

<div class="container pb-12">
<div class="card rounded-box mx-auto mb-2 p-20">
<div class="text-center">
<h2>Tutors Open Source Project</h2>
<h1>404</h1>
<br />
<p class="text-lg">This is a reader for Tutors Courses</p>
<p class="p-4">See below for details</p>
<a class="btn mt-6 bg-primary-500 text-white" href="https://tutors.dev">Tutors Homepage</a>
<p class="text-lg">Not Found</p>
<p class="p-4">Unfortunately the route you tried to visit cannot be found.</p>
<a class="btn mt-6 bg-primary-500 text-white" href="/">Tutors Homepage</a>
</div>
</div>
</div>
Expand Down
7 changes: 7 additions & 0 deletions apps/web/src/routes/+layout.svelte
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<script>
import 'tutors-ui/lib/themes/tutors.css';
import '@skeletonlabs/skeleton/styles/all.css';
import './app.postcss';
</script>

<slot />
File renamed without changes.

0 comments on commit c180622

Please sign in to comment.