forked from CaliCastle/cali.so
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
74249f9
commit 0ca2f10
Showing
4 changed files
with
487 additions
and
176 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
'use client' | ||
|
||
import Spline from '@splinetool/react-spline' | ||
import { motion } from 'framer-motion' | ||
import Link from 'next/link' | ||
|
||
import { url } from '~/lib' | ||
|
||
export default function NotFoundPage() { | ||
return ( | ||
<main className="h-screen"> | ||
<div className="absolute inset-0 h-full w-full"> | ||
<Spline scene={url('macbook.splinecode').href} /> | ||
</div> | ||
|
||
<div className="pointer-events-none absolute inset-0 flex h-full w-full flex-col items-center justify-center"> | ||
<motion.h1 | ||
className="pointer-events-none select-none text-[35vmin] font-bold text-white mix-blend-overlay" | ||
initial={{ opacity: 0, y: 30 }} | ||
animate={{ opacity: 1, y: 0 }} | ||
transition={{ duration: 0.3, delay: 0.3 }} | ||
> | ||
404 | ||
</motion.h1> | ||
<Link | ||
href="/" | ||
className="pointer-events-auto select-none text-xl font-bold text-white mix-blend-difference hover:underline" | ||
> | ||
返回主页 | ||
</Link> | ||
</div> | ||
</main> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.