Commit Graph

1035 Commits

Author SHA1 Message Date
javayhu
d34e4b8ed6 style: add scrollbar-gutter to prevent layout shift
- Implement `scrollbar-gutter: stable` in global CSS
- Prevent layout shifts when scrollbar appears or disappears
2025-03-08 14:04:47 +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
6e07225639
Merge pull request #8 from MkSaaSHQ/email
support email with intl
2025-03-08 12:19:09 +08:00
javayhu
7875c19a3c refactor: update LocaleLink usage and routing configuration
- Remove type assertions for href in various components
- Update blog card and blog post page to use `query` instead of `params`
- Simplify routing configuration by commenting out `pathnames` in `routing.ts`
- Remove commented TODOs related to href type handling
- Improve type safety and routing consistency across components
2025-03-08 12:17:18 +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
074a6d9f1e refactor: update routes, middleware, and configuration for improved routing and environment variables
- Update middleware to exclude API routes from locale redirection
- Modify public routes to include new pages and remove documentation routes
- Adjust auth routes order for better readability
- Replace `NEXT_PUBLIC_APP_URL` with `NEXT_PUBLIC_BASE_URL` across configuration files
- Clean up and standardize authentication and site configuration
2025-03-08 11:04:54 +08:00
javayhu
988a1a6b58 refactor: update email template system with improved type safety and locale handling
- Replace `templateId` with `template` in email sending function
- Rename `translations` to `messages` in email template props
- Consolidate email template and sending logic in `send.ts`
- Remove separate `templates.ts` file and merge functionality
- Update email template components to use new message structure
- Improve type definitions for email-related functions and props
2025-03-08 09:41:14 +08:00
javayhu
620cedb8c3 refactor: replace Link with LocaleLink in marketing and auth components
- Update `auth-card.tsx` to use `LocaleLink` for logo navigation
- Modify `bottom-button.tsx` with a temporary type assertion for href
- Replace `Link` with `LocaleLink` in `navbar-mobile.tsx` and `navbar.tsx`
- Ensure consistent internationalization routing across components
2025-03-08 01:12:47 +08:00
javayhu
8199a07674 refactor: update locale navigation hooks and imports
- Rename `usePathname` and `useRouter` to `useLocalePathname` and `useLocaleRouter`
- Update imports in locale selector component to use new navigation hook names
- Improve type safety and consistency in internationalization routing
2025-03-08 00:59:58 +08:00
javayhu
d6a230a2dc refactor: update sitemap and navigation with locale-specific pathname functions
- Rename `getPathname` to `getLocalePathname` in navigation module
- Update sitemap generation to use new locale-specific pathname function
- Add root path to routing pathnames configuration
- Improve type safety and internationalization consistency in routing
2025-03-08 00:57:33 +08:00
javayhu
675323fb69 refactor: replace Link with LocaleLink and clean up console logs
- Rename `Link` import to `LocaleLink` in navigation module
- Remove console log statements in blog page components
- Update blog card, blog category list, and other components to use `LocaleLink`
- Simplify routing configuration by removing unnecessary pathname entries
- Enhance type safety and internationalization consistency
2025-03-08 00:55:03 +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
8aaead0245 feat: add React Email templates and Resend email configuration
- Integrate React Email library for creating email templates
- Add email templates for newsletter welcome, reset password, and email verification
- Create email format styles for consistent email design
- Configure Resend email service with new mail utility
- Update authentication flow to use React Email templates
- Add new email-related dependencies in package.json
2025-03-07 19:14:13 +08:00
javayhu
801ece4bdd feat: uncomment and standardize blog post images across locales
- Uncomment Image components in blog posts for English and Chinese locales
- Replace blog-specific images with a consistent "mksaas-og.png" across all posts
- Update avatar images for HaiTang author in both English and Chinese content collections
2025-03-07 15:30:37 +08:00
javayhu
8135c439b0 feat: add multilingual blog content for new products
- Create content collections for Boilerplate Hunt, Coupon, HaiTang, and OG Generator
- Add blog posts and author profiles in English and Chinese
- Include corresponding blog post images and avatars
- Update blog page routing and pagination to support localized routes
- Restore ThemeSwitcher in navbar
- Fix pagination route prefix to include locale
2025-03-07 11:06:58 +08:00
javayhu
cb418af07c refactor: remove base URL generation and remote image patterns
- Remove `getBaseUrl()` usage in content collections
- Update base URL environment variable from `NEXT_PUBLIC_APP_URL` to `NEXT_PUBLIC_BASE_URL`
- Remove localhost remote image pattern from Next.js configuration
- Add cursor pointer to locale selector items
2025-03-07 10:43:05 +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
4657e5b691 fix: blog post image can not load
- Update base URL environment variable from NEXT_PUBLIC_BASE_URL to NEXT_PUBLIC_APP_URL
2025-03-07 01:04:56 +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
11e1df01ed feat: improve multilingual blog content handling and documentation
- Enhance content collections to support cross-language content matching
- Update blog post categories from "guide" to "product"
- Add documentation for multilingual blog implementation
- Modify category and blog post pages to handle localized content
- Update locale routing with more detailed language information
- Improve content relationship resolution in content collections
2025-03-07 00:54:15 +08:00
javayhu
6a43803d92 chore: optimize locale selector component & show flag only 2025-03-07 00:33:35 +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
5017ed9f7f refactor: improve blog page and category page type handling
- Add NextPageProps type for consistent page props handling
- Resolve async params and searchParams in blog and category pages
- Simplify type annotations and improve type safety
- Remove redundant type definitions
2025-03-06 01:24:55 +08:00
javayhu
707e4400f7 refactor: update blog components and content categories
- Modify blog card to use dynamic routing with slugAsParams
- Remove getBaseUrl import and simplify link generation
- Update blog post categories in Chinese content
- Adjust blog category list desktop component localization
- Improve key generation for category tags
2025-03-06 01:00:00 +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
24981655bb feat: add Radix UI toggle and toggle group components 2025-03-06 00:02:03 +08:00
javayhu
2d83f74904 feat: improve blog content and components
- Update blog post descriptions and categories
- Add new "Company" category for blog posts
- Enhance blog card and grid UI with improved styling and layout
- Refactor blog card skeleton for better visual consistency
2025-03-05 23:40:20 +08:00
javayhu
58401624c0 feat: enhance blog and dashboard UI components
- Update blog post dates in English and Chinese content
- Refactor blog layout with header section and container
- Simplify blog page and post layouts
- Improve blog card and grid styling
- Add initial dashboard page with sidebar and breadcrumbs
- Adjust header section subtitle color
2025-03-05 22:45:51 +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
3599884789 chore: refine UI components and styling
- Improve locale selector comment and width
- Simplify built-with button UTM parameters
- Re-enable theme switcher in navbar
2025-03-05 21:31:24 +08:00
javayhu
af7faebb06 feat: add backdrop blur and transparency to navbar and mobile menu 2025-03-05 21:09:11 +08:00
javayhu
272b666642 fix: fix hydration error caused by browser extension 2025-03-05 21:00:25 +08:00
javayhu
e3140d0b87 chore: update tailwind indicator style 2025-03-05 20:51:35 +08:00
javayhu
1ea3d72a1c chore: update footer social icons 2025-03-05 20:48:55 +08:00
javayhu
74aefcd2b1 chore: upgrade Next.js to version 15.2.1 2025-03-05 20:29:11 +08:00
javayhu
cc50a025cf
Merge pull request #7 from MkSaaSHQ/next-intl
feat: support i18n with next-intl
2025-03-05 02:08:55 +08:00
javayhu
63f2263797 fix: fix build errors 2025-03-05 02:07:47 +08:00
javayhu
9a2822cecb chore: update favicon and logo assets
- Replace existing favicon and logo images with updated versions
- Remove unused logo SVG and PNG variants
- Normalize file permissions for public assets
2025-03-05 02:05:02 +08:00
javayhu
43d9c798b5 refactor: enhance content collections with multilingual support
- Update content collections to support locale-based content filtering
- Modify blog post, author, and category schemas to include optional locale
- Implement dynamic locale detection from file path or fallback to default locale
- Update blog components to filter posts by current locale
- Remove sample blog posts and categories from default content
2025-03-05 02:03:53 +08:00
javayhu
9236c15245 refactor: update color palette and theme variables 2025-03-05 01:58:20 +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
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
851bbabd71 feat: optimize next intl configuration & add comments 2025-03-02 23:39:06 +08:00
javayhu
cf8b0402a9 refactor: remove German language support from i18n configuration 2025-03-02 21:51:39 +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
c2dab381e5
Merge pull request #6 from MkSaaSHQ/next-intl
support intl & add next-intl
2025-03-02 01:34:52 +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