Skip to content

Commit 94a875b

Browse files
committed
feat: 小屏下拉菜单
1 parent c7710ba commit 94a875b

File tree

15 files changed

+725
-50
lines changed

15 files changed

+725
-50
lines changed

config/router.ts

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
import React from 'react';
2+
3+
import {
4+
FaSolidComments,
5+
FaSolidDotCircle,
6+
FaSolidFeatherAlt,
7+
FaSolidUserFriends,
8+
MdiFlask,
9+
} from '@/components/icons/menu-collection';
10+
11+
export interface IHeaderMenu {
12+
title: string;
13+
path: string;
14+
type?: string;
15+
icon?: React.ReactNode;
16+
subMenu?: IHeaderMenu[];
17+
}
18+
19+
export const headerMenuConfig: IHeaderMenu[] = [
20+
{
21+
title: '首页',
22+
path: '/',
23+
type: 'Home',
24+
icon: React.createElement(FaSolidDotCircle),
25+
subMenu: [],
26+
},
27+
{
28+
title: '文稿',
29+
type: 'Note',
30+
path: '/list',
31+
icon: React.createElement(FaSolidFeatherAlt),
32+
},
33+
{
34+
title: '友链',
35+
icon: React.createElement(FaSolidUserFriends),
36+
path: '/friends',
37+
},
38+
{
39+
title: '项目',
40+
icon: React.createElement(MdiFlask),
41+
path: '/projects',
42+
},
43+
{
44+
title: '自述',
45+
path: '/about',
46+
icon: React.createElement(FaSolidComments),
47+
},
48+
];

config/seo.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
export const seo = {
22
title: 'zhw | fe',
3-
description: '我叫zhw。',
3+
description: '我是zhw,欢迎来到我的博客',
44
url: new URL(
5-
process.env.NODE_ENV === 'production' ? 'http://localhost:3000' : 'http://localhost:3000',
5+
process.env.NODE_ENV === 'production'
6+
? 'https://blog-rbtb.vercel.app/'
7+
: 'http://localhost:3000',
68
),
79
} as const;

next.config.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ let nextConfig = {
2424

2525
return config;
2626
},
27+
productionBrowserSourceMaps: true,
2728
};
2829

2930
if (process.env.ANALYZE === 'true') {

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@
4545
"tailwind-variants": "^0.2.1",
4646
"tailwindcss-animate": "^1.0.7",
4747
"tailwindcss-animated": "^1.1.2",
48+
"vaul": "^1.1.1",
4849
"zustand": "^5.0.0"
4950
},
5051
"devDependencies": {

0 commit comments

Comments
 (0)