From 043cdc673420801f8a9a733d0e1c38a7358b7414 Mon Sep 17 00:00:00 2001 From: zguiyang Date: Sat, 14 Mar 2026 12:43:11 +0800 Subject: [PATCH] refactor(styles): enhance glass effects, card designs, and transitions across components - Replaced `client:only="react"` with `client:load transition:persist="header"` for `GlassHeader` to improve page transitions and header consistency. - Updated card and surface designs with refined colors, borders, and shadows for a cleaner, modern look. - Adjusted CSS variables for better contrast and distinct layers. - Applied consistent blur and backdrop styles across components for visual cohesion. --- src/components/GlassHeader.tsx | 6 ++-- src/components/ProjectCard.astro | 2 +- src/components/blog/BlogList.astro | 4 +-- src/components/blog/CategoryCard.astro | 6 ++-- src/components/blog/PostMeta.astro | 4 +-- src/components/blog/TagCard.astro | 4 +-- src/layouts/BlogLayout.astro | 4 +-- src/layouts/BlogPostLayout.astro | 2 +- src/layouts/Layout.astro | 2 ++ src/pages/about.astro | 2 +- src/pages/hire.astro | 2 +- src/pages/index.astro | 2 +- src/pages/now.astro | 2 +- src/pages/projects.astro | 2 +- src/pages/zh/about.astro | 2 +- src/pages/zh/hire.astro | 2 +- src/pages/zh/index.astro | 2 +- src/pages/zh/now.astro | 2 +- src/pages/zh/projects.astro | 2 +- src/styles/global.css | 42 +++++++++++++------------- 20 files changed, 49 insertions(+), 47 deletions(-) diff --git a/src/components/GlassHeader.tsx b/src/components/GlassHeader.tsx index dc60bcb..0caf5fc 100644 --- a/src/components/GlassHeader.tsx +++ b/src/components/GlassHeader.tsx @@ -126,10 +126,10 @@ export default function GlassHeader({ lang: propLang }: GlassHeaderProps) {
-