Skip to content

Commit

Permalink
添加logo
Browse files Browse the repository at this point in the history
  • Loading branch information
master1lan committed Jan 17, 2023
1 parent 5417cf3 commit 41514c6
Show file tree
Hide file tree
Showing 6 changed files with 59 additions and 3 deletions.
1 change: 1 addition & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
<meta name="renderer" content="webkit" />
<link rel="preconnect" href="https://s1.hdslb.com" crossorigin>
<link rel="dns-prefetch" href="https://s1.hdslb.com">
<link rel="icon" type="image/svg+xml" href="/logo.svg" />
<title>eoefans-web</title>
</head>

Expand Down
1 change: 1 addition & 0 deletions public/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions src/components/proview/themePreview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ declare module "@mui/material/styles" {
interface Palette {
palette: {
luzao: Palette["primary"];
luzaoRed: Palette["primary"];
minuo: Palette["primary"];
waner: Palette["primary"];
yumo: Palette["primary"];
Expand All @@ -15,6 +16,7 @@ declare module "@mui/material/styles" {
}
interface PaletteOptions {
luzao: Palette["primary"];
luzaoRed: Palette["primary"];
minuo: Palette["primary"];
waner: Palette["primary"];
yumo: Palette["primary"];
Expand All @@ -25,6 +27,7 @@ declare module "@mui/material/styles" {
declare module "@mui/material/Button" {
interface ButtonPropsColorOverrides {
luzao: true;
luzaoRed: true;
minuo: true;
waner: true;
yumo: true;
Expand All @@ -38,6 +41,7 @@ const theme = createTheme({
},
palette: {
luzao: { main: "#3dff9e", contrastText: "#fff" },
luzaoRed: { main: "#A0191D", contrastText: "#fff" },
minuo: { main: "#f068B0", contrastText: "#fff" },
waner: { main: "#1eafe4", contrastText: "#fff" },
yumo: { main: "#b77fdd", contrastText: "#fff" },
Expand Down
51 changes: 50 additions & 1 deletion src/routers/error.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,52 @@
import { Button } from "@mui/material";
import { Link } from "react-router-dom";

export default function ErrorPage() {
return <h1>这里是error页</h1>;
return (
<div
style={{
display: "inline-block",
position: "relative",
left: "50%",
transform: "translate(-50%,50%)",
padding: "0 20px",
}}
>
<h1
style={{
textAlign: "center",
}}
>
🤯🤯🤯有什么出错了
</h1>
<p>
当您看到这个页面时,表示您进入了一个不存在的页面,网站目前仅开放
<Link to={"/"}>
<Button>首页</Button>
</Link>
<Link to={"/"}>
<Button>视频页</Button>
</Link>
两个页面(虽然两个是同一个页面)。
</p>
<p>
请尝试点击链接
<Link to={"/"}>
<Button>首页</Button>
</Link>
重新访问该网站。
</p>
<p>
若上述方案仍未奏效,那么可能是本地存储出现错误,请尝试点击快捷按钮
<Button onClick={deleteAllDataStorage}>重置按钮</Button>
删除网站本地数据进行重置。
</p>
</div>
);
}

const deleteAllDataStorage = () => {
localStorage.clear();
sessionStorage.clear();
};
3 changes: 2 additions & 1 deletion src/routers/layout/nav/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@ const NavTagChipItem: FC<NavQueryItemType> = memo((props) => {
sx={{
wordBreak: "keep-all",
fontWeight: "600",
// padding: "1px 10px",
}}
>
{props.query}
Expand All @@ -184,7 +185,7 @@ const NavTagChipItem: FC<NavQueryItemType> = memo((props) => {
});

const nameToColor = {
露早: "luzao",
露早: "luzaoRed",
柚恩: "youen",
莞儿: "waner",
米诺: "minuo",
Expand Down
2 changes: 1 addition & 1 deletion src/routers/photo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default function PhotoPage() {
textAlign: "center",
}}
>
二创图片页还在制作,敬请期待!
🙇‍♂️🙇‍♂️🙇‍♂️二创图片页还在制作中,敬请期待!
</h1>
);
}

0 comments on commit 41514c6

Please sign in to comment.