Commit Graph

173 Commits

Author SHA1 Message Date
javayhu
031a05e549 refactor: enhance website configuration with comprehensive social and metadata options
- Expand `websiteConfig` to include detailed metadata and social media links
- Add optional social media platform URLs to improve website connectivity
- Update type definitions to support more flexible configuration
- Modify social links generation to conditionally render based on configuration
- Update references to website configuration across components and utilities
- Improve metadata generation with optional author information
2025-03-10 01:06:39 +08:00
javayhu
8b4dde9042 refactor: centralize website configuration with dynamic translations
- Replace static `siteConfig` with dynamic `getWebsiteInfo()` function
- Add `Site` section to translation JSON files for multilingual support
- Update types to distinguish between website config and website info
- Remove deprecated `site.ts` configuration file
- Modify components and utilities to use new translation-based configuration
- Ensure consistent website metadata generation across the application
2025-03-10 00:48:12 +08:00
javayhu
c7ab08f01d refactor: consolidate configuration and utility files
- Move menu, footer, and social links to `config.tsx`
- Create `constants.ts` for shared constants like `POSTS_PER_PAGE`
- Extract translation utility to `translator.ts`
- Move table of contents generation to `lib/blog/toc.ts`
- Update import paths across multiple components
- Simplify email configuration using `siteConfig`
2025-03-09 23:40:29 +08:00
javayhu
4f5f216296 refactor: rename marketing.tsx to config.tsx 2025-03-09 23:28:57 +08:00
javayhu
df17877ede refactor: replace siteConfig.url with dynamic base URL generation
- Replace hardcoded site URL references with dynamic getBaseUrl() function
- Remove unnecessary keywords and author fields from siteConfig
- Simplify metadata generation in constructMetadata function
- Add EMAIL_FROM constant for email configuration
- Improve type definitions and remove redundant configurations
2025-03-09 23:11:51 +08:00
javayhu
8d54beee58 refactor: optimize code & rename files 2025-03-09 22:38:14 +08:00
javayhu
34006556c8 refactor: run biome format to src folder 2025-03-09 22:13:59 +08:00
javayhu
92ec1b14c5 refactor: format src/app folder 2025-03-09 20:01:07 +08:00
javayhu
02bdb93bbd fix: fix export images in AboutPage 2025-03-09 16:34:47 +08:00
javayhu
6144cdcd3a feat: add waitlist page with internationalization support
- Create waitlist page with responsive design and email subscription form
- Add localized messages for English and Chinese waitlist pages
- Implement form inputs with labels and validation
- Use Shadcn/ui Card and Button components for consistent styling
- Add padding to page container for improved layout
2025-03-09 16:23:28 +08:00
javayhu
99c8827eb8 feat: add about page with responsive image gallery and internationalization
- Create about page with author information and contact section
- Add localized messages for English and Chinese about page
- Implement responsive image gallery with multiple column layouts
- Use Pexels images for gallery content
- Add image loading optimization with eager and lazy loading
- Update Next.js image configuration to support Pexels image domain
- Enhance page layout with Shadcn/ui Avatar and Button components
2025-03-09 16:14:28 +08:00
javayhu
e8b9dfb3c3 feat: add contact page with internationalization support
- Create contact page with responsive design and form layout
- Add localized messages for English and Chinese contact pages
- Implement form inputs with labels and validation
- Use Shadcn/ui components for consistent styling
- Add Card and Textarea components for enhanced UI
2025-03-09 15:09:55 +08:00
javayhu
bc4b5527eb feat: add changelog page with localized release notes
- Implement releases collection in content-collections.ts for tracking version updates
- Create changelog page with dynamic release rendering for multiple locales
- Add ReleaseCard component to display version details and changes
- Implement getReleases utility function to fetch and sort release notes
- Update internationalization messages for changelog page
- Add English and Chinese release notes for v1.0.0, v1.1.0, and v1.2.0
2025-03-09 14:42:04 +08:00
javayhu
8da4488106 refactor: optimize the folder structure 2025-03-09 14:17:51 +08:00
javayhu
9bd85d7b6f feat: add legal pages with content collections and localization support
- Implement pages collection in content-collections.ts for legal documents
- Add cookie policy, privacy policy, and terms of service pages for English and Chinese locales
- Create custom page layout and component for rendering legal documents
- Add metadata generation and custom page fetching logic
- Update not-found page to use LocaleLink for internationalization
- Enhance blog post page with prose styling
- Modify all posts button variant
2025-03-09 12:22:53 +08:00
javayhu
76748cf0b2 feat: add features block variants and chart component
- Introduce new features block variants (Features, Features2, Features4, Features5, Features6, Features7, Features8, Features9)
- Add Recharts and Dotted Map libraries for advanced charting and visualization
- Create a new chart component with support for light and dark themes
- Update features page to include all new feature block components
- Add reference links to NSUI design system for each feature block
- Enhance feature sections with responsive layouts and modern design patterns
2025-03-09 11:17:18 +08:00
javayhu
8af6e89675 feat: add multiple content block variants and update block images
- Introduce new content block variants (Content, Content2, Content3, Content4, Content5, Content6)
- Replace WebP images with PNG for better compatibility and performance
- Update content page to include all new content block components
- Add reference links to NSUI design system for each content block
- Enhance content sections with responsive layouts and modern design patterns
2025-03-09 11:01:59 +08:00
javayhu
b8f0801112 feat: add multiple hero section variants with Swiper and new block images
- Introduce new hero section variants (HeroSection2, HeroSection3, HeroSection4)
- Add Swiper library for carousel functionality in HeroSection3
- Include new block images for light and dark modes
- Update home page to use HeroSection4
- Add block images for card, charts, and music sections
2025-03-09 10:48:08 +08:00
javayhu
090734c0c3 chore: add robots.tx and update sitemap.ts 2025-03-09 10:43:25 +08:00
javayhu
35836cdc56 refactor: improve navigation styling and active state handling
- Update navbar mobile and desktop components with consistent styling
- Enhance active and hover states for navigation menu items
- Remove dark mode specific text color variants
- Add active state detection for sub-menu items
- Simplify background and text color transitions
- Remove testimonials component
- Switch to default theme CSS import
2025-03-09 09:49:43 +08:00
javayhu
45b407765b feat: add multiple theme CSS files for customizable color schemes
- Introduce new theme CSS files for various color palettes:
  - Blue
  - Green
  - Orange
  - Red
  - Rose
  - Violet
  - Yellow
  - Zinc
- Update global CSS to import themes dynamically
- Remove hardcoded theme variables from globals.css
- Provide flexible theming options for light and dark modes
2025-03-09 09:44:17 +08:00
javayhu
59ae1d9830 chore: update best practices documentation for various technologies
- Refine and expand best practices for:
  - AI SDK
  - Date-fns
  - Next.js
  - Radix UI
  - React
  - React Hook Form
  - Stripe
  - Tailwind CSS
  - TypeScript
  - Zustand
- Improve guidelines with more specific and actionable recommendations
- Enhance type safety and performance suggestions across different technologies
2025-03-09 08:44:53 +08:00
javayhu
f2d616cd2f feat: add landing page blocks and block pages 2025-03-09 01:53:43 +08:00
javayhu
416e184a59 feat: add blocks section to marketing navigation and routes
- Introduce new blocks routes for hero, pricing, features, FAQ, stats, call-to-action, and content components
- Update marketing navigation configuration to include new blocks menu section
- Add corresponding route entries in `routes.ts`
- Create placeholder pages for block components
- Update localization files to support new blocks menu items
- Modify pricing page to include pricing comparator component
- Refactor pricing component styling for consistency
2025-03-09 01:11:05 +08:00
javayhu
63b549212e fix: unset overflow-y to scroll 2025-03-09 00:27:02 +08:00
javayhu
129aac2c12 feat: add dedicated pricing page with multiple pricing components
- Create new `/pricing` route with dynamic localization
- Implement three pricing components (Pricing3, Pricing4, Pricing5) from NSUI design system
- Update routes configuration to use dedicated pricing page instead of anchor link
- Add localization support for pricing page title
- Adjust home page margin for consistent layout
2025-03-09 00:26:34 +08:00
javayhu
6160622ccd refactor: update mobile navbar and localization
- Modify mobile navbar to conditionally render login/signup buttons based on user authentication
- Update English locale translations with minor text refinements
- Add `userLoggedIn` prop to `MainMobileMenu` component for dynamic rendering
- Improve mobile menu layout and user experience
2025-03-09 00:05:14 +08:00
javayhu
19d6eef747 fix: Force the scrollbar to always be visible to prevent layout shifts 2025-03-08 23:29:06 +08:00
javayhu
12b33b29ce refactor: reorganize marketing menu and update mobile navbar
- Move AI menu section to the top of the marketing menu configuration
- Remove duplicate AI menu section in marketing links
- Add TODO comment for mobile menu scrollbar layout issue
- Remove scrollbar from mobile menu using RemoveScroll component
- Improve mobile menu accessibility and scrolling behavior
2025-03-08 23:21:58 +08:00
javayhu
b9a5c4927e refactor: improve UI consistency and enhance component interactions
- Update blog post page with refined category link styling
- Modify blog table of contents to add hover state for links
- Enhance locale selector with optional locale name display
- Refactor navbar mobile and desktop components with improved layout and styling
- Reorganize marketing menu links and update icon usage
- Adjust font weights and hover states across navigation components
2025-03-08 22:43:36 +08:00
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
711537c732
Merge pull request #9 from MkSaaSHQ/email
optimize intl and layouts
2025-03-08 18:40:53 +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
f7714eeda4 refactor: update routes, marketing links, and component icons
- Modify `routes.ts` to add AI feature routes and remove deprecated routes
- Update `marketing.tsx` with new AI feature menu links and more descriptive icons
- Refactor navbar mobile and locale selector components with improved icon imports
- Adjust theme switcher button styling for better visual consistency
- Enhance menu link descriptions and icons for improved user experience
2025-03-08 16:34:18 +08:00
javayhu
111e537ea2 refactor: consolidate marketing configuration and update component imports
- Merge marketing-related configuration files into a single `marketing.tsx`
- Remove deprecated configuration files: `marketing.ts`, `marketing-links.tsx`, `footer.ts`, `hero.ts`, `landing.ts`, and `user-button.ts`
- Update navbar, footer, and user button components to use new centralized configuration
- Add comprehensive social links, footer links, menu links, and avatar links
- Simplify site configuration by removing unnecessary links
- Improve code organization and reduce configuration complexity
2025-03-08 15:10:35 +08:00
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