Open History to see the last commit
1import { Link } from '@tanstack/solid-router'
2import type * as Solid from 'solid-js'
3β
4export function NotFound({ children }: { children?: Solid.JSX.Element }) {
5 return (
6 <div class="space-y-2 p-2">
7 <div class="text-gray-600 dark:text-gray-400">
8 {children || <p>The page you are looking for does not exist.</p>}
9 </div>
10 <p class="flex items-center gap-2 flex-wrap">
11 <button
12 onClick={() => window.history.back()}
13 class="bg-emerald-500 text-white px-2 py-1 rounded uppercase font-black text-sm"
14 >
15 Go back
16 </button>
17 <Link
18 to="/"
19 class="bg-cyan-600 text-white px-2 py-1 rounded uppercase font-black text-sm"
20 >
21 Start Over
22 </Link>
23 </p>
24 </div>
25 )
26}