From 272c4f2859803fc9263b3d9f641446197aaa95ce Mon Sep 17 00:00:00 2001 From: Jeffrey Hsu Date: Mon, 4 Nov 2024 07:54:19 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9item?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/nav/NavBar.vue | 53 +++++++++++++++++++++++--- src/components/nav/NavBarEntryItem.vue | 25 ++++++++---- src/main.ts | 7 +++- 3 files changed, 71 insertions(+), 14 deletions(-) diff --git a/src/components/nav/NavBar.vue b/src/components/nav/NavBar.vue index c675faf..4c70637 100644 --- a/src/components/nav/NavBar.vue +++ b/src/components/nav/NavBar.vue @@ -30,6 +30,51 @@ const littleWidget: Widget[] = [ const logoUrl = getAssetURL("logo-c.png") const logoType: string = "logo"; const showLogo = computed(() => logoType === 'text') + +const entry = [ + { + title: '主页', + icon: ['fas', 'home'], + entry: [], + }, + { + title: '文章', + icon: ['fas', 'pen'], + entry: [ + { + title: '博客', + url: false, + to: 'blog' + }, + { + title: '日记', + url: false, + to: 'log' + }, + ], + }, + { + title: '作品', + icon: ['fas', 'brush'], + entry: [ + { + title: '软件', + url: false, + to: 'soft' + }, + { + title: '仓库', + url: true, + to: 'https://cantyonion.site/git' + }, + ], + }, + { + title: '杂谈', + icon: ['fas', 'chess-rook'], + entry: [] + } +]