Skip to content

Commit e95ef58

Browse files
committed
Remove spline animation from error page
1 parent d1c3bfb commit e95ef58

File tree

3 files changed

+2
-55
lines changed

3 files changed

+2
-55
lines changed

apps/webapp/app/components/ErrorDisplay.tsx

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
import { HomeIcon } from "@heroicons/react/20/solid";
22
import { isRouteErrorResponse, useRouteError } from "@remix-run/react";
3-
import { motion } from "framer-motion";
43
import { friendlyErrorDisplay } from "~/utils/httpErrors";
54
import { LinkButton } from "./primitives/Buttons";
65
import { Header1 } from "./primitives/Headers";
76
import { Paragraph } from "./primitives/Paragraph";
8-
import Spline from "@splinetool/react-spline";
97
import { type ReactNode } from "react";
108

119
type ErrorDisplayOptions = {
@@ -44,8 +42,8 @@ type DisplayOptionsProps = {
4442

4543
export 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
}

apps/webapp/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,6 @@
109109
"@sentry/remix": "9.46.0",
110110
"@slack/web-api": "7.9.1",
111111
"@socket.io/redis-adapter": "^8.3.0",
112-
"@splinetool/react-spline": "^2.2.6",
113112
"@tabler/icons-react": "^2.39.0",
114113
"@tailwindcss/container-queries": "^0.1.1",
115114
"@tanstack/react-virtual": "^3.0.4",

pnpm-lock.yaml

Lines changed: 0 additions & 42 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)