-
-
Notifications
You must be signed in to change notification settings - Fork 102
/
Copy pathNotFound.svelte
39 lines (34 loc) · 1.21 KB
/
NotFound.svelte
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<script>
import { onMount, onDestroy } from 'svelte';
import { PageHeader } from '@keenmate/svelte-adminlte';
import { _ } from 'svelte-i18n';
import { setCustomPageTitle, customPageTitleUsed } from '../stores/page-title';
onMount(() => {
setCustomPageTitle('404 ' + $_('not-found.title', { default: 'Page not found' }));
console.log('Location href', document.location);
});
onDestroy(() => {
customPageTitleUsed.set(false);
});
</script>
<PageHeader>
404 {$_('not-found.title', { default: 'Page not found' })}
</PageHeader>
<div class="container-fluid">
<div class="row">
<div class="col-12 text-center pt-5">
<div class="error-page">
<h2 class="headline text-warning">404</h2>
<div class="error-content">
<h3><i class="fas fa-exclamation-triangle text-warning"></i> Oops! Page not found.</h3>
<img src="/img/koek_koek.webp" alt="Gecko is lost..." />
<p>
We could not find the page you were looking for at location<br />
<strong>{document.location.hash.substring(1)}</strong><br />
Meanwhile, you may <a href="/">return to dashboard</a>.
</p>
</div>
</div>
</div>
</div>
</div>