From 8e8b6c1f73c5ed8cf3ace26a4548f0c85fdb9fd2 Mon Sep 17 00:00:00 2001 From: tangly1024 Date: Sat, 1 Jan 2022 22:22:52 +0800 Subject: [PATCH 01/12] =?UTF-8?q?feature:=20=E6=A0=B7=E5=BC=8F=E8=B0=83?= =?UTF-8?q?=E6=95=B4=EF=BC=8C=E5=8A=A0=E5=85=A5Tabs=E7=BB=84=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- blog.config.js | 7 ++++- components/Analytics.js | 4 +-- components/Header.js | 2 +- components/InfoCard.js | 7 +++-- components/Live2D.js | 2 +- components/MenuButtonGroup.js | 6 +++-- components/Progress.js | 9 ++++--- components/SearchDrawer.js | 35 ++++++++++++++++++++++++ components/SideAreaLeft.js | 33 +++++++++++------------ components/SideAreaRight.js | 15 +++++------ components/SocialButton.js | 24 +++++++++++------ components/Tabs.js | 51 +++++++++++++++++++++++++++++++++++ components/Toc.js | 2 +- components/TocDrawer.js | 4 ++- components/TopNav.js | 33 ++++++++--------------- pages/about.js | 1 + pages/search.js | 4 +-- styles/globals.css | 8 +++--- 18 files changed, 167 insertions(+), 80 deletions(-) create mode 100644 components/SearchDrawer.js create mode 100644 components/Tabs.js diff --git a/blog.config.js b/blog.config.js index dd0180af..82f93cb8 100644 --- a/blog.config.js +++ b/blog.config.js @@ -20,7 +20,12 @@ const BLOG = { showAbout: true, // WIP 是否显示关于 showArchive: true, // WIP 是否显示归档 autoCollapsedNavBar: false, // the automatically collapsed navigation bar - socialLink: 'https://weibo.com/u/2245301913', + socialLink: { + weibo: 'https://weibo.com/u/2245301913', + twitter: '', + github: 'https://github.com/tangly1024', + telegram: '' + }, seo: { keywords: ['Notion', '写作', '博客'], googleSiteVerification: '' // Remove the value or replace it with your own google site verification code diff --git a/components/Analytics.js b/components/Analytics.js index 9edcf75e..fbd23538 100644 --- a/components/Analytics.js +++ b/components/Analytics.js @@ -1,6 +1,4 @@ import { useGlobal } from '@/lib/global' -import { faChartBar } from '@fortawesome/free-solid-svg-icons' -import { FontAwesomeIcon } from '@fortawesome/react-fontawesome' /** * 统计网站信息 @@ -11,7 +9,7 @@ export default function Analytics ({ postCount }) { const { locale } = useGlobal() return <> -
{locale.COMMON.ANALYTICS}
+ {/*
{locale.COMMON.ANALYTICS}
*/}
{postCount}{locale.COMMON.POSTS} diff --git a/components/Header.js b/components/Header.js index 3f4b4fe6..7b9bdacb 100644 --- a/components/Header.js +++ b/components/Header.js @@ -96,7 +96,7 @@ export default function Header () { return (