blob: 307239700bfc9b632de73ec6ca879505ef7f4dc9 (
plain) (
blame)
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
|
<script lang="ts">
import { browser } from '$app/environment';
import { closest } from '$lib/Error/path';
$: suggestion = closest(browser ? window.location.pathname : '...', [
'birthdays',
'completed',
'schedule',
'settings',
'tools',
'updates',
'user',
'wrapped'
]);
</script>
<p>Page not found.</p>
<blockquote>
Did you mean "<a
href={suggestion}
style={suggestion === '...' ? 'pointer-events: none; color: inherit;' : ''}
>{suggestion.charAt(0).toUpperCase() + suggestion.slice(1)}</a
>"?
</blockquote>
|