feat: 左上角品牌图标更换为自定义 logo

- 文本 "gen2d" 替换为 logo.png 图片
- 同时更新浏览器 favicon
This commit is contained in:
2026-05-25 20:52:06 +08:00
parent 8e3b576954
commit 5be74e3ce1
3 changed files with 8 additions and 5 deletions
+1 -1
View File
@@ -3,7 +3,7 @@
<head> <head>
<meta charset="UTF-8" /> <meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="icon" type="image/png" href="/favicon.png" /> <link rel="icon" type="image/png" href="/logo.png" />
<title>gen2d</title> <title>gen2d</title>
</head> </head>
<body> <body>

Before

Width:  |  Height:  |  Size: 40 KiB

After

Width:  |  Height:  |  Size: 40 KiB

+7 -4
View File
@@ -27,13 +27,16 @@ export default function Layout() {
<Link <Link
to="/" to="/"
style={{ style={{
fontSize: 20, display: 'flex',
fontWeight: 700, alignItems: 'center',
color: 'var(--accent)',
textDecoration: 'none', textDecoration: 'none',
}} }}
> >
gen2d <img
src="/logo.png"
alt="gen2d"
style={{ height: 38, width: 64 }}
/>
</Link> </Link>
<div style={{ display: 'flex', gap: 12, alignItems: 'center' }}> <div style={{ display: 'flex', gap: 12, alignItems: 'center' }}>