From e4bb5a3b09a96ae224f92e3f6cb80e0f97786800 Mon Sep 17 00:00:00 2001 From: syfxlin Date: Wed, 31 Jan 2024 01:23:53 +0800 Subject: [PATCH 1/2] fix(style): Fix some styles --- public/content/config/header.yaml | 14 +--- src/app/(special)/links/page.tsx | 1 + src/app/(special)/projects/page.tsx | 1 + src/components/layouts/footer/styles.css.ts | 2 +- src/components/layouts/grid/styles.css.ts | 7 +- src/components/layouts/header/back.tsx | 25 ------- src/components/layouts/header/blog.tsx | 19 +++++ src/components/layouts/header/home.tsx | 31 -------- src/components/layouts/header/index.tsx | 69 +++++++++-------- src/components/layouts/header/menu.tsx | 30 ++++++++ src/components/layouts/header/search.tsx | 2 +- src/components/layouts/header/styles.css.ts | 74 +++++++++++++++---- src/components/layouts/header/theme.tsx | 2 +- src/components/layouts/main/index.tsx | 10 ++- src/components/layouts/main/styles.css.ts | 27 ++++++- src/components/root/spotlight/styles.css.ts | 5 +- src/components/templates/articles/index.tsx | 20 ++--- .../templates/articles/styles.css.ts | 3 +- src/components/templates/template/index.tsx | 5 +- src/components/ui/image/index.tsx | 4 +- src/locales/en.ts | 1 + src/locales/zh-hans.ts | 1 + src/locales/zh-hant.ts | 1 + src/theme/global.css.ts | 2 +- src/theme/theme.css.ts | 30 +++++--- src/theme/tokens.ts | 10 +-- 26 files changed, 236 insertions(+), 160 deletions(-) delete mode 100644 src/components/layouts/header/back.tsx create mode 100644 src/components/layouts/header/blog.tsx delete mode 100644 src/components/layouts/header/home.tsx create mode 100644 src/components/layouts/header/menu.tsx diff --git a/public/content/config/header.yaml b/public/content/config/header.yaml index 9217f7143..83f734200 100644 --- a/public/content/config/header.yaml +++ b/public/content/config/header.yaml @@ -14,20 +14,8 @@ main: - title: 归档 link: /archives icon: ri:archive-line - view: elastic-text + view: elastic-icon - title: 留言 link: /message-board icon: ri:message-3-line - view: elastic-text - - title: GitHub - link: https://github.com/syfxlin - icon: uil:github-alt - view: elastic-icon - - title: Twitter - link: https://twitter.com/syfxlin - icon: uil:twitter-alt - view: elastic-icon - - title: Telegram - link: https://t.me/otstar - icon: uil:telegram-alt view: elastic-icon diff --git a/src/app/(special)/links/page.tsx b/src/app/(special)/links/page.tsx index 5da66a63e..c0e19c448 100644 --- a/src/app/(special)/links/page.tsx +++ b/src/app/(special)/links/page.tsx @@ -22,6 +22,7 @@ export default async function LinksPage() { return (