feature: global view animation

- Updated Header component to adjust title margin and changed subtitle from h3 to h2 for better semantic structure.
- Refined LanguageSwitcher component to enhance language switching functionality and improved accessibility.
- Adjusted Navigation component's margin and link styles for better visual hierarchy.
- Enhanced ThemeToggle component with view transition effects for smoother theme changes.
- Updated global CSS to support new transition styles for theme toggling.
- Bumped rollup version in pnpm-lock.yaml for improved build performance.
This commit is contained in:
radishzzz 2025-01-24 12:57:30 +00:00
parent b46534419b
commit bca8b9b1cf
7 changed files with 189 additions and 172 deletions

View file

@ -1,5 +1,6 @@
---
import themeConfig from '@/config'
import { ClientRouter } from 'astro:transitions'
interface Props {
postTitle?: string
@ -35,6 +36,7 @@ const { cdn, commentURL = '', imageHostURL = '', customGoogleAnalyticsURL = '',
<meta itemprop="name" content={postTitle || title} />
<meta itemprop="image" content={postImage || siteScreenshot} />
<meta itemprop="description" content={postDescription || subtitle} />
<ClientRouter />
<!-- Preload -->
<link rel="preconnect" href={cdn} />