mirror of
https://github.com/Xevion/Pac-Man.git
synced 2026-01-31 04:25:07 -06:00
- 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
12 lines
459 B
TypeScript
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>
|
|
);
|
|
}
|