Commit Graph

13 Commits

Author SHA1 Message Date
javayhu
df1c75f56a chore: upgrade next-intl to version 4.0.0 and update type definitions
- Update `next-intl` dependency from version 3.26.5 to 4.0.0
- Modify global type definitions to include new `Locale` and `Messages` types
- Refactor various components and pages to use `Locale` type for params
- Enhance internationalization handling by integrating `hasLocale` checks
- Clean up imports and ensure consistent usage of `next-intl` features
2025-03-13 00:23:37 +08:00
javayhu
57166fe250 feat: add DM Sans font to website typography
- Import and configure DM Sans font from local file
- Update layout to include DM Sans font variable
- Add font file for DM Sans regular weight
- Enhance typography configuration with additional font option
2025-03-10 09:53:43 +08:00
javayhu
92ec1b14c5 refactor: format src/app folder 2025-03-09 20:01:07 +08:00
javayhu
431e61d2a5 refactor: consolidate blog components and improve file structure
- Move MDX component from marketing to shared folder
- Remove deprecated blog post and blog posts components
- Update blog page imports to use new MDX component location
- Add reading time estimation utility function
- Reorganize navbar and mobile navbar components
- Update marketing links configuration
- Improve component modularity and code organization
2025-03-08 13:50:08 +08:00
javayhu
272b666642 fix: fix hydration error caused by browser extension 2025-03-05 21:00:25 +08:00
javayhu
508d35cc21 refactor: simplify internationalization messages and remove unused content
- Update English and Chinese message files to remove unnecessary translations
- Remove root page redirect component
- Update home page to use new 'HomePage' translation key
- Modify marketing links by commenting out docs link
- Adjust locale selector width for better UI consistency
2025-03-05 01:57:53 +08:00
javayhu
579885393b feat: enhance locale switching with Radix UI Select and Zustand store
- Add Radix UI Select component for improved locale selection
- Create Zustand store for managing current locale state
- Update navbar and mobile navbar to use new LocaleSelector
- Remove deprecated LocaleSwitcher and LocaleSwitcherSelect components
- Update routing configuration with emoji flags for locales
- Add deepmerge and Zustand dependencies to package.json
2025-03-03 00:54:33 +08:00
javayhu
7931200b36 refactor: consolidate styles and update import paths
- Move global and MDX styles to `src/styles` directory
- Update import paths for CSS files in layout and blog page
- Add comments to theme switcher components for clarity
- Reorganize style imports to improve project structure
2025-03-02 08:33:30 +08:00
javayhu
72005865f3 feat: add next-intl, supports en/zh/de languages 2025-03-02 01:33:56 +08:00
javayhu
a4e7a59e17 feat: enhance internationalization with comprehensive locale support
- Add German and Chinese language translations
- Update routing configuration to support multiple locales (en, de, zh)
- Create new components for locale switching and navigation
- Implement dynamic error and not-found pages with internationalized content
- Refactor global styles and MDX styling
- Update middleware and navigation configuration for improved i18n routing
2025-03-02 01:11:44 +08:00
javayhu
9ff8fca3f4 feat: add LangAttributeSetter component for dynamic locale handling
- Create a new client-side component to dynamically set the lang attribute
- Refactor root and locale layouts to separate HTML structure and language setting
- Improve internationalization support by handling locale attribute more flexibly
- Remove redundant HTML tag nesting in layout components
2025-03-01 23:29:57 +08:00
javayhu
ddefb47bc0 refactor: restructure root and locale layouts for improved routing and rendering
- Move HTML and body tags to root layout
- Add font and styling configuration to root layout
- Simplify locale layout by removing redundant HTML structure
- Remove separate public layout and integrate navbar and footer into locale layout
- Update page components to handle async params
2025-03-01 23:08:36 +08:00
javayhu
4c6997a012 feat: implement internationalization with next-intl
- Add multi-language support using next-intl
- Configure routing and localization for English and Chinese
- Update project structure to support i18n routing
- Add middleware and navigation helpers for localized routing
- Create message files for translations
- Modify layout and page components to support internationalization
2025-03-01 21:59:22 +08:00