From f0754cae3fd78bc714038e331a38eb903884dec6 Mon Sep 17 00:00:00 2001 From: "saica.go" Date: Fri, 13 Sep 2024 20:14:03 +0800 Subject: [PATCH] perf: optimizing page transition (#178) * perf: optimizing page transition * fix: minor fixes --- src/components/Footer.astro | 20 +++-- src/components/GlobalStyles.astro | 4 +- src/components/Navbar.astro | 2 +- src/components/control/BackToTop.astro | 10 --- src/components/widget/SideBar.astro | 2 +- src/config.ts | 2 +- src/layouts/Layout.astro | 116 ++++++++++++++++++++----- src/layouts/MainGridLayout.astro | 69 ++++++++------- src/types/config.ts | 2 +- 9 files changed, 149 insertions(+), 78 deletions(-) diff --git a/src/components/Footer.astro b/src/components/Footer.astro index 14c535b..f35836b 100644 --- a/src/components/Footer.astro +++ b/src/components/Footer.astro @@ -4,14 +4,18 @@ import { profileConfig } from '../config' import { url } from '../utils/url-utils' --- -
+ +
+ +
© 2024 {profileConfig.name}. All Rights Reserved. / - RSS / - Sitemap -
- Powered by - Astro & - Fuwari + RSS / + Sitemap
-
+
+ Powered by + Astro & + Fuwari +
+
\ No newline at end of file diff --git a/src/components/GlobalStyles.astro b/src/components/GlobalStyles.astro index ea6b863..ce425af 100644 --- a/src/components/GlobalStyles.astro +++ b/src/components/GlobalStyles.astro @@ -307,8 +307,8 @@ color_set({ #content-wrapper { animation-delay: var(--content-delay); } -#footer { - animation-delay: 400ms; +.footer { + animation-delay: 250ms; } #banner-credit { animation-delay: 400ms; diff --git a/src/components/Navbar.astro b/src/components/Navbar.astro index 0b9cc17..577c16b 100644 --- a/src/components/Navbar.astro +++ b/src/components/Navbar.astro @@ -19,7 +19,7 @@ let links: NavBarLink[] = navBarConfig.links.map( }, ) --- -