Commit graph

56 commits

Author SHA1 Message Date
radishzzz
22dc899a95 refactor: update language configuration 2025-03-15 01:02:45 +00:00
radishzzz
d352b6fb65 refactor: organize and categorize functions 2025-03-14 16:18:17 +00:00
radishzzz
f5526f8622 refactor: rename functions 2025-03-14 14:23:35 +00:00
radishzzz
ca1abd28c1 chore: update detail 2025-03-14 13:45:50 +00:00
radishzzz
05d3a8034b feat: complete language switching functionality and centralized page routing 2025-03-14 03:30:56 +00:00
radishzzz
4651828dd1 test: language switcher and i18n refactor 2025-03-14 00:51:54 +00:00
radishzzz
f3334d4a45 chore: swap button positions 2025-03-13 21:55:04 +00:00
radishzzz
7671309edf refactor: fix button positions and adjust component structure 2025-03-13 21:52:24 +00:00
radishzzz
e37d8ee34e chore: update layout add layout calculation notes 2025-03-13 16:49:24 +00:00
radishzzz
9b9bdb2811 fix: correctly correspond to the og of each article 2025-03-13 01:21:19 +00:00
radishzzz
c97e3d5882 test: og url end with slash 2025-03-12 22:09:57 +00:00
radishzzz
696fcfac07 refactor: theme config 2025-03-11 12:10:12 +00:00
radishzzz
ff1673da9c refactor: refactor article list component and routing logic, optimize multilingual article display 2025-03-11 09:52:49 +00:00
radishzzz
d6cff842e1 refactor: refactoring project structure and components, optimizing internationalization and page presentation 2025-03-08 21:38:08 +00:00
radishzzz
e52a726103 update: waline style 2025-03-08 09:14:28 +00:00
radishzzz
5a87bee474 fix: waline style bug 2025-03-08 08:01:47 +00:00
radishzzz
eb3781bb6b update: optimize theme color scheme and waline style 2025-03-07 17:36:34 +00:00
radishzzz
760847183b update: waline layout and style 2025-03-07 02:39:58 +00:00
radishzzz
fa148ca0c5 feat: add waline comment 2025-03-06 15:15:32 +00:00
radishzzz
fef42675c0 refactor: remove back button and adjust page detail styles 2025-03-06 10:19:30 +00:00
radishzzz
d58cbcc786 fix: button position issue on ios 2025-03-05 22:02:02 +00:00
radishzzz
a813e7c2d0 chore: optimize layout 2025-03-05 21:52:43 +00:00
radishzzz
f96af1b102 feat: Improve tag pages and article tag display 2025-03-05 04:54:42 +00:00
radishzzz
807459d6ed docs: create README and update project configuration
- Add comprehensive README with project overview, features, and roadmap
- Update VSCode settings with new dictionary words
- Modify language switcher, mobile header, and theme toggle components
- Adjust layout and global styles
- Add language attribute to markdown example post
2025-02-22 02:05:50 +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
1040aff64c fix: netlify build failed 2025-02-18 15:56:27 +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
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
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
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
c1017156da fix: theme toggle error 2025-01-23 10:25:16 +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