Files
Pac-Man/web/pages/_error/+Page.tsx
Xevion 3bb3908853 feat(web): add smooth page transitions and WASM loading states
- Implement navigation state tracking with optimistic UI updates
- Add loading spinner and error handling for WASM initialization
- Insert browser yield points during game initialization to prevent freezing
- Redesign leaderboard with tabbed navigation and mock data structure
- Add utility CSS classes for consistent page layouts
2025-12-29 03:33:43 -06:00

12 lines
459 B
TypeScript

import { usePageContext } from "vike-react/usePageContext";
export default function Page() {
const { is404 } = usePageContext();
return (
<div className="flex flex-col items-center justify-center min-h-[50vh] text-center px-4">
<h1 className="text-4xl font-bold mb-4">{is404 ? "Page Not Found" : "Internal Error"}</h1>
<p className="text-gray-400">{is404 ? "This page could not be found." : "Something went wrong."}</p>
</div>
);
}