Commit graph

22 commits

Author SHA1 Message Date
radishzzz
e5165dd740 refactor: optimize multilingual article routing logic, modify slug to abbrlink 2025-03-11 00:34:30 +00:00
radishzzz
09fe7dcb37 refactor: remove text-62.5%, update site layout and add site footer
- Adjust font and typography settings across components
- Update footer with new links and start year configuration
- Modify header and navbar styling for responsive design
- Remove @unpic/astro dependency
- Refine global and component-level styling
- Update font preloading and font face definitions
2025-02-21 08:33:00 +00:00
radishzzz
ad9fabe937 feat: enhance image handling and analytics configuration
- Add @unpic/astro for improved image optimization
- Configure image service with blurhash placeholder
- Update analytics script to support custom JavaScript URLs
- Modify preload configuration for more flexible analytics integration
- Remove deprecated rehype image transformation plugin
2025-02-21 01:25:38 +00:00
radishzzz
6bcd51765d chore: optimize head component
- Add dynamic theme-color meta tag based on current theme mode
- Preload custom font files for improved performance
- Update ClientRouter configuration for view transitions
- Refactor theme toggle script comments for clarity
2025-02-18 17:57:10 +00:00
radishzzz
5b66fdb564 fix: meta theme color flash issue 2025-02-18 17:38:30 +00:00
radishzzz
b1777ed0ef fix: meta theme color flash issue 2025-02-18 17:10:40 +00:00
radishzzz
1040aff64c fix: netlify build failed 2025-02-18 15:56:27 +00:00
radishzzz
380a650721 chore: update dependencies and component styling
- Upgrade Rollup to version 4.34.8
- Update TypeScript ESLint and related packages
- Modify LanguageSwitcher and ThemeToggle components to remove `lg="hidden"` class
- Refactor Scrollbar component with improved initialization and theme handling
- Inline scrollbar styles in Scrollbar component, removing separate CSS file
2025-02-18 04:37:29 +00:00
radishzzz
152dd83e0c refactor: view animation and theme toggle
- Streamline theme toggle script in ThemeToggle component
- Improve theme initialization in Head layout
- Centralize theme color and mode configuration
- Enhance view transition handling for theme changes
- Optimize event listeners and theme synchronization
2025-02-18 02:28:55 +00:00
radishzzz
47951152d1 refactor: optimize website performance and layout
- Replace ScrollButton with BackToTop component
- Improve theme toggle and scrollbar event handling
- Update layout and index page styling
- Optimize client:load and client:idle directives
- Remove deprecated Heti addon plugin
2025-02-17 16:06:00 +00:00
radishzzz
6cd298c756 fix: view transition fallback control 2025-02-10 01:47:19 +00:00
radishzzz
e99e26d62c feat: synchronize browser theme color with website theme
- Add browser theme color synchronization via meta[theme-color]
- Update theme color on:
  - Initial page load
  - Theme toggle
  - System theme change
  - Page navigation
  - Browser history navigation
  - Page restore from cache
2025-02-07 10:53:05 +00:00
radishzzz
f1d2204337 feat: add underline animation
- Implement underline-animation UnoCSS shortcut for navbar links
- Add dynamic hover and page transition effects for navigation
- Update Navbar component to use new underline-animation class
- Remove CDN configuration from preload settings
- Modify font class for date display in index page
- Add inline script to handle link animations during page transitions
2025-01-28 02:46:38 +00:00
radishzzz
0241091a8f feat: update font configuration
- Add new font variations for EarlySummer and subset fonts
- Update uno.config.ts to modify font family configurations
- Introduce new font files for navbar, time, and subset usage
- Remove preload of external font CDN and add local font CSS import
- Adjust scrollbar initialization to handle native scrollbars
- Modify index page date display styles
2025-01-27 04:50:12 +00:00
radishzzz
e14c62e1f6 refactor: clean up SEO and theme configuration
- Remove unused SEO metadata fields like Facebook and site screenshot
- Rename global font configuration from 'font' to 'fontStyle'
- Update theme toggle to use documentElement instead of body for theme restoration
- Simplify HTML metadata and remove redundant meta tags
- Adjust index page to use div instead of time for date display
2025-01-26 23:55:08 +00:00
radishzzz
bca8b9b1cf 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.
2025-01-24 12:57:30 +00:00
radishzzz
23b819319d chore: update dependencies and enhance theme configuration
- Bump versions of several dependencies in package.json and pnpm-lock.yaml, including astro (5.1.9), @types/node (22.10.10), and lint-staged (15.4.2).
- Introduce new Header, Footer, and Navigation components for improved layout structure.
- Update theme configuration to clarify supported font styles and title spacing options.
- Refactor theme toggle button for better accessibility and visual consistency.
- Minor adjustments to CSS for improved button scaling effects and layout responsiveness.
2025-01-24 08:21:38 +00:00
radishzzz
d4e5fda5d1 fix: theme toggle fallback animation flash issue (final) 2025-01-24 00:30:39 +00:00
radishzzz
00149b251b fix: theme toggle error 2025-01-23 23:33:32 +00:00
radishzzz
2f52b38100 fix: theme toggle error 2025-01-23 12:46:00 +00:00
radishzzz
419b8b5611 fix: theme toggle error
- Streamlined theme toggle logic to better synchronize with user preferences and system settings.
- Updated the initialization of the theme to utilize a more robust method for determining the default mode.
- Improved accessibility by ensuring aria attributes are correctly set for the theme toggle button.
- Enhanced global CSS styles for better consistency and added support for view transitions during theme changes.
- Removed redundant code and improved overall readability of the theme toggle component.
2025-01-23 10:13:30 +00:00
radishzzz
1af92d92c8 feat: integrate PhotoSwipe lightbox, enhance scrollbar functionality, and update layout components
- Added a new PhotoSwipe component for image lightbox functionality in the layout.
- Enhanced scrollbar component with an auto-hide delay feature.
- Updated global styles to improve scrollbar appearance and added styles for PhotoSwipe.
- Included new Head layout component for better SEO and meta tag management.
- Added images to existing posts for improved visual content.

This commit improves user experience with enhanced image viewing and layout consistency.
2025-01-23 08:23:43 +00:00
Renamed from src/components/Head.astro (Browse further)