11import { HomeIcon } from "@heroicons/react/20/solid" ;
22import { isRouteErrorResponse , useRouteError } from "@remix-run/react" ;
3- import { motion } from "framer-motion" ;
43import { friendlyErrorDisplay } from "~/utils/httpErrors" ;
54import { LinkButton } from "./primitives/Buttons" ;
65import { Header1 } from "./primitives/Headers" ;
76import { Paragraph } from "./primitives/Paragraph" ;
8- import Spline from "@splinetool/react-spline" ;
97import { type ReactNode } from "react" ;
108
119type ErrorDisplayOptions = {
@@ -44,8 +42,8 @@ type DisplayOptionsProps = {
4442
4543export function ErrorDisplay ( { title, message, button } : DisplayOptionsProps ) {
4644 return (
47- < div className = "relative flex min-h-screen flex-col items-center justify-center bg-[#16181C]" >
48- < div className = "z-10 mt-[30vh] flex flex-col items-center gap-8" >
45+ < div className = "flex min-h-screen flex-col items-center justify-center bg-[#16181C]" >
46+ < div className = "flex flex-col items-center gap-8" >
4947 < Header1 > { title } </ Header1 >
5048 { message && < Paragraph > { message } </ Paragraph > }
5149 < LinkButton
@@ -57,14 +55,6 @@ export function ErrorDisplay({ title, message, button }: DisplayOptionsProps) {
5755 { button ? button . title : "Go to homepage" }
5856 </ LinkButton >
5957 </ div >
60- < motion . div
61- className = "pointer-events-none absolute inset-0 overflow-hidden"
62- initial = { { opacity : 0 } }
63- animate = { { opacity : 1 } }
64- transition = { { delay : 0.5 , duration : 2 , ease : "easeOut" } }
65- >
66- < Spline scene = "https://prod.spline.design/wRly8TZN-e0Twb8W/scene.splinecode" />
67- </ motion . div >
6858 </ div >
6959 ) ;
7060}
0 commit comments