Skip to content

Commit b1001a8

Browse files
committed
make not found page static
1 parent 0a1a5a8 commit b1001a8

File tree

1 file changed

+1
-15
lines changed

1 file changed

+1
-15
lines changed

src/app/not-found.tsx

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,11 @@
1-
'use client';
2-
3-
import { useEffect, useState } from 'react';
41
import { Home } from 'lucide-react';
52
import { Button } from '@/components/ui/button';
63
import NavLink from '@/app/components/NavLink';
74

85
export default function NotFound() {
9-
const [mounted, setMounted] = useState(false);
10-
11-
useEffect(() => {
12-
setMounted(true);
13-
return () => {
14-
setMounted(false);
15-
};
16-
}, []);
17-
186
return (
197
<div className="flex min-h-[calc(100vh-200px)] flex-col items-center justify-center px-4 py-16 text-center">
20-
<div
21-
className={`transition-opacity duration-1000 ${mounted ? 'opacity-100' : 'opacity-0'}`}
22-
>
8+
<div className={`opacity-100 transition-opacity duration-1000`}>
239
<h1 className="relative mb-6 text-9xl font-extrabold tracking-tight">
2410
<span
2511
className="animate-glitch-1 absolute top-0 left-0 w-full text-main-foreground"

0 commit comments

Comments
 (0)