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 | 18 ++-- 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 | 63 ++++++++------ src/types/config.ts | 2 +- 9 files changed, 145 insertions(+), 74 deletions(-) diff --git a/src/components/Footer.astro b/src/components/Footer.astro index 14c535b20..f35836b87 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 -
+ RSS / + Sitemap +
+
Powered by - Astro & - Fuwari + Astro & + Fuwari
-
+
\ No newline at end of file diff --git a/src/components/GlobalStyles.astro b/src/components/GlobalStyles.astro index ea6b8630f..ce425af5b 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 0b9cc17a1..577c16b7e 100644 --- a/src/components/Navbar.astro +++ b/src/components/Navbar.astro @@ -19,7 +19,7 @@ let links: NavBarLink[] = navBarConfig.links.map( }, ) --- -