Commit graph

142 commits

Author SHA1 Message Date
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
c63eaa3792 update: post page layout
- Change default font style from sans to serif
- Add responsive mobile header class
- Update post images with new gallery images
- Modify post title and layout styling
- Simplify font style class application in Layout
2025-02-16 01:43:54 +00:00
radishzzz
e2cce321fc update: post page layout 2025-02-16 01:10:06 +00:00
radishzzz
9d6de20b6a feat: enhance typography and image handling
- Add Heti typography plugin for improved Chinese text layout
- Implement rehype plugin to convert images to figure elements with captions
- Update UnoCSS configuration by removing typography preset
- Modify file extensions for consistency (.mjs to .js)
- Add new plugins for admonition, GitHub card, and reading time components
- Improve image and text styling with Heti CSS
2025-02-15 21:11:17 +00:00
radishzzz
c549814c7e feat: add scroll button with dynamic navigation
- Implement ScrollButton component for improved page navigation
- Add dynamic scroll direction and visibility based on scroll position
- Integrate ScrollButton into main Layout component
- Provide smooth scrolling to top or bottom of the page
- Use requestAnimationFrame for performance optimization
2025-02-15 05:50:00 +00:00
radishzzz
7498f93ef9 feat: improve mobile header and layout responsiveness
- Add sticky positioning to mobile header
- Implement back navigation for mobile header
- Adjust layout to use min-height instead of fixed height
- Remove global scroll-smooth class for more flexible scrolling
- Update dependencies to latest versions
2025-02-14 07:04:52 +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
162e7ada22 chore: optimize title and icon positions 2025-02-06 15:24:34 +00:00
radishzzz
113f37a9e0 test: title flash issue on ios 2025-02-06 12:56:29 +00:00
radishzzz
f8bf077948 refactor: enhance theme configuration and path handling
- Update config.ts with more descriptive comments and simplified settings
- Remove about page content section
- Add new path utility functions for localization and page type detection
- Introduce SiteTitle component for mobile post page navigation
- Modify Header and Layout components to use new path utilities
- Adjust title spacing and font sizes
- Update VSCode settings with new dictionary words
2025-02-04 18:56:34 +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
ae39d7b08c feat: enhance post listing and reading time display
- Implement dynamic post listing grouped by year with improved date formatting
- Add reading time display for each post
- Update index pages for both default and localized routes
- Modify content utility functions to support reading time metadata
- Refactor global styles and type definitions to support new features
2025-01-26 02:59:39 +00:00
radishzzz
fc1daf4335 refactor: restructure project configuration and utility modules
- Move configuration and utility files to more organized locations
- Update import paths across the project to reflect new file structure
- Simplify content and internationalization utilities
- Remove redundant configuration files and consolidate logic
- Add prefetch configuration to Astro config for improved performance
2025-01-25 08:19:31 +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
b46534419b feat: add language switcher component and update layout
- Introduced a new LanguageSwitcher component to facilitate language switching in the application.
- Added an SVG icon for the language switcher button.
- Updated the Header component to adjust margin for better spacing.
- Modified the Navigation component's margin and top properties for improved layout.
- Adjusted the ThemeToggle button size for consistency with the new design.
2025-01-24 10:11:56 +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
c1017156da fix: theme toggle error 2025-01-23 10:25:16 +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
radishzzz
ac9e839a75 chore: remove unused dependencies, enhance scrollbar functionality, and update VSCode settings
- Removed unused `@types/mdast` dependency from package.json and pnpm-lock.yaml.
- Introduced a custom scrollbar component with theme support in Scrollbar.astro.
- Updated Layout.astro to include the new Scrollbar component.
- Enhanced ThemeToggle.astro to dispatch a theme-changed event on toggle.
- Added global scrollbar styles to global.css and created a new scrollbar.css for custom scrollbar styling.
- Updated VSCode settings to improve editor experience and added recommendations for new extensions.
2025-01-22 23:35:52 +00:00
radishzzz
804cf72052 chore: update dependencies, enhance theme configuration, and improve layout structure
- Bump versions of several dependencies including @astrojs/mdx, astro, and vite.
- Refactor theme configuration to include code themes for light and dark modes.
- Update layout structure for better responsiveness and clarity.
- Enable JavaScript in TypeScript configuration for broader compatibility.
- Add new font styles and improve font-face definitions.
- Clean up unused imports and commented-out code in index.astro.
- Introduce global type definitions for Attributify attributes in JSX.
2025-01-21 21:21:24 +00:00
radishzzz
dce0b3a786 fix: two issues in last commit 2025-01-20 20:36:53 +00:00
radishzzz
d599b3e26d feat: add theme toggle for light/dark modes 2025-01-20 10:36:14 +00:00
radishzzz
d148649454 refactor: update theme configuration and background styles 2025-01-19 23:18:12 +00:00
radishzzz
8eb0876c01 fix: title font style 2025-01-19 03:49:50 +00:00
radishzzz
0bfb9aab0a feat: add font family and global styles 2025-01-18 11:09:36 +00:00
radishzzz
d6c98880d3 feat: implement internationalization (i18n) support 2025-01-18 00:01:25 +00:00
radishzzz
32ffec8480 test: i18n support 2025-01-17 07:31:43 +00:00
radishzzz
7659bbd1e2 feat: head component with excellent SEO 2025-01-16 07:48:40 +00:00
radishzzz
5d3a3b0321 feat: add RSS feed generation and content management features 2025-01-14 09:10:12 +00:00
radishzzz
4d989e0a7d feat: add RSS feed generation and content management features 2025-01-14 09:05:43 +00:00
radishzzz
9d2be2a82e initial environment setup 2025-01-13 02:50:27 +00:00