Commit Graph

168 Commits

Author SHA1 Message Date
javayhu
92d7513e3d refactor: enhance navigation and link rendering with active state and dynamic imports
- Update footer, navbar, and mobile navbar to use dynamic social and menu links
- Implement active state highlighting for navigation items using locale pathname
- Replace static social links with a dynamic function in marketing configuration
- Improve icon and styling consistency across navigation components
- Add null checks for menu and social links to prevent rendering errors
- Update icon for About page in menu links
2025-03-08 21:45:07 +08:00
javayhu
99490cfd0b feat: update blog page localization and styling
- Change "publisher" to "author" in English and Chinese translation files
- Add Lucide icons for date and reading time in blog post page
- Implement link underline animation in global CSS
- Enhance blog post page layout with icon-based metadata display
- Improve visual consistency and internationalization for blog components
2025-03-08 18:39:57 +08:00
javayhu
13810236d4 feat: add logout translations and update mobile/desktop navbar components
- Add "logout" translation key to English and Chinese locale files
- Update `UserButton` component to use translated logout text
- Modify mobile and desktop navbar to conditionally render user button based on session
- Adjust styling for blog category list mobile and navbar components
- Improve internationalization and user authentication UI
2025-03-08 18:31:35 +08:00
javayhu
8d8b66a7fe feat: internationalize marketing configuration and components
- Add translation support for menu links, footer links, and avatar links
- Create `createTranslator` utility function for dynamic translations
- Update marketing configuration to use translation-based menu and link generation
- Modify navbar, footer, and user button components to use translated content
- Add new "Common" translation keys for login and signup buttons
- Refactor marketing configuration to dynamically generate links with translations
- Improve internationalization across marketing-related components
2025-03-08 18:08:13 +08:00
javayhu
f4e51757e5 refactor: update marketing types, links, and component rendering
- Add new `MenuItem` and `NestedMenuItem` types for improved type safety
- Update marketing configuration to use new types with `title` instead of `name`
- Modify footer, navbar, and user button components to handle optional icons
- Enhance media query hook with server-side rendering support
- Update Chinese translation with minor punctuation adjustments
- Improve component rendering with null checks for icons
2025-03-08 17:23:37 +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
8c3f64d0aa refactor: remove email templates and consolidate locale utility functions
- Delete email template files: `email-formats.ts`, `newsletter-welcome.tsx`, `reset-password.tsx`, and `verify-email.tsx`
- Move `getLocaleFromRequest` utility function from `auth.ts` to `utils.ts`
- Update Chinese translation for newsletter and copyright text
- Improve code organization and remove redundant email-related files
2025-03-08 12:02:37 +08:00
javayhu
95ddd0a1dc feat: enhance email internationalization and template system
- Add comprehensive email template system with React Email and use-intl
- Implement dynamic email template rendering with locale-specific translations
- Create reusable email components for consistent design
- Update authentication flow to support multilingual email templates
- Add new email-related dependencies and configuration
- Refactor email sending logic to support dynamic locale detection
2025-03-07 23:34:02 +08:00
javayhu
2f4b8e23fe feat: improve blog localization and error handling
- Add new localization keys for "all" and "noPostsFound" in English and Chinese
- Update blog components to use localized translations
- Add optional chaining for category properties to prevent rendering errors
- Improve mobile and desktop category list components with translations
2025-03-07 01:18:38 +08:00
javayhu
48adc7ad4a refactor: update blog page localization and content structure
- Simplify blog page translation keys in English and Chinese
- Remove hardcoded category labels in blog post page
- Use server-side translations for publisher, categories, and table of contents
- Remove font-serif class from blog post content
2025-03-07 01:00:17 +08:00
javayhu
c8a3c64fda refactor: update blog and auth components with localization and UI improvements
- Add new "Product" category for blog posts in English and Chinese
- Update blog page subtitle using localization messages
- Enhance reset password page and form with better error handling
- Modify auth card styling with subtle border and shadow
- Update mobile navbar background for improved visual clarity
- Refine authentication form labels and button text
2025-03-07 00:03:41 +08:00
javayhu
ce7fe5b45f feat: enhance blog category filtering and pagination
- Add blog category filter for desktop and mobile views
- Implement category-based blog post filtering
- Add pagination support for blog and category pages
- Update localization messages for blog categories
- Reduce posts per page from 9 to 6
- Add loading states for blog pages
- Create new content collections for blog categories in Chinese
2025-03-06 00:48:22 +08:00
javayhu
71eaefefbf chore: update localization and navbar UI
- Adjust localization text spacing in English and Chinese translations
- Temporarily disable theme switcher in navbar
- Swap sign-up and sign-in labels in registration form
2025-03-05 22:23:31 +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
6646471e00 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-03 01:10:10 +08:00
javayhu
cf8b0402a9 refactor: remove German language support from i18n configuration 2025-03-02 21:51:39 +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
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