From d7e14567ff9b6dafb366f2b62f80126948ec43c4 Mon Sep 17 00:00:00 2001 From: Mmx233 Date: Wed, 13 Dec 2023 21:35:41 +0800 Subject: [PATCH] feat: add wave animation in error page big title --- web/src/pages/Error/index.tsx | 25 +++++++++++------- web/src/pages/Error/style.css | 49 +++++++++++++++++++++++++++++++++++ 2 files changed, 65 insertions(+), 9 deletions(-) create mode 100644 web/src/pages/Error/style.css diff --git a/web/src/pages/Error/index.tsx b/web/src/pages/Error/index.tsx index 1d7b04d..7996053 100644 --- a/web/src/pages/Error/index.tsx +++ b/web/src/pages/Error/index.tsx @@ -1,14 +1,17 @@ import { FC, useMemo } from "react"; import { useLocation, useNavigate } from "react-router-dom"; +import "./style.css"; import img_png from "@/assets/img/error/img_20231213.png"; import img_webp from "@/assets/img/error/img_20231213.webp"; +import { useTheme } from "@mui/material"; import { Box, Stack, Typography, ButtonGroup, Button } from "@mui/material"; import { GoLogin } from "@util/nav"; export const Error: FC = () => { + const theme = useTheme(); const nav = useNavigate(); const loc = useLocation(); const state: ErrorState | undefined = useMemo(() => loc.state, [loc]); @@ -54,16 +57,20 @@ export const Error: FC = () => { - h1:nth-of-type(1)": { + WebkitTextStroke: `2px ${theme.palette.text.secondary}`, + }, + }} > - OPS! - + OPS! + OPS! +