Commit Graph

32 Commits

Author SHA1 Message Date
javayhu
5953031bee feat: support configs for light & dark logos 2025-04-05 13:30:19 +08:00
javayhu
043016e08d feat: implement LoginWrapper component for authentication handling
- Introduced a new `LoginWrapper` component to manage user authentication through modal or redirect modes.
- Integrated responsive design using media queries to control modal visibility based on device type.
- Updated routing logic to close the modal on route changes and handle login actions effectively.
- Refactored existing components to utilize the new `LoginWrapper` for improved user experience in authentication flows.
- Replaced instances of `useRouter` with `useLocaleRouter` for consistent locale handling across components.
2025-04-04 19:17:03 +08:00
javayhu
34ffcc989e feat: implement theme switcher & intl and support theme config
- Added new mode switcher components for both horizontal and dropdown layouts to facilitate theme toggling.
- Updated translation files to include new theme-related entries in English and Chinese.
- Refactored existing components to replace ThemeSwitcher with ModeSwitcher for consistency.
- Introduced new themes in the configuration and updated the theme selector to utilize translations for theme names.
- Enhanced global styles to support new themes and ensure proper application across the project.
2025-03-29 22:15:00 +08:00
javayhu
42c2460718 feat: update logo & favicon images
- Updated ISSUES.md to reflect a new issue regarding page layout shifting when navigating between docs and the homepage.
- Changed permissions for several image files to ensure proper access and usage.
- Added new SVG files for enhanced iconography in the project.
2025-03-29 21:20:45 +08:00
javayhu
7211e6981c refactor: update page structure and enhance layout consistency
- Changed import path for Pricing component in HomePage to utilize the new preview structure.
- Adjusted layout in ContactPage and WaitlistPage by adding bottom padding for improved spacing.
- Modified HeroSection component to enhance layout with consistent padding.
- Cleaned up commented-out code in BlockPreview and Navbar components for better readability and maintainability.
2025-03-26 10:00:31 +08:00
javayhu
a6e2ee698a refactor: update site metadata and translations
- Renamed "Site" to "Metadata" in translation files for clarity.
- Updated the title, tagline, and description in both English and Chinese translations to reflect the new branding.
- Adjusted references in various components to use the updated metadata structure.
- Removed the obsolete site.webmanifest file and updated the manifest path in the metadata construction.
2025-03-23 15:37:38 +08:00
javayhu
73ac2ba2cb refactor: update component styles and structure for consistency (upgrade tailwindv4)
- Adjusted layout and styling in AuthCard, LoginForm, RegisterForm, and SocialLoginButton for improved alignment and responsiveness.
- Updated icon sizes in various components to maintain uniformity.
- Enhanced Card components in ContactFormCard, DeleteAccountCard, ResetPasswordCard, UpdateAvatarCard, UpdateNameCard, UpdatePasswordCard, and NewsletterFormCard with consistent padding and margin.
- Refined Navbar and BackButtonSmall for better user interaction with cursor styles.
- Removed unused CSS variables from globals.css to streamline styles.
2025-03-21 10:13:31 +08:00
javayhu
62413b37ba feat: upgrade tailwind to v4 (2) template components 2025-03-21 00:09:11 +08:00
javayhu
a853c56994 refactor: update navbar and mobile menu styles for improved accessibility
- Replaced primary color references with foreground color for hover and focus states in Navbar and MainMobileMenu components.
- Adjusted padding in the mobile menu's bottom buttons for better layout consistency.
- Switched the global CSS import from theme.css to theme-blue.css for updated styling.
2025-03-18 17:46:14 +08:00
javayhu
41b6d0b63b chore: optimize user button 2025-03-18 17:26:57 +08:00
javayhu
3d380dc88c refactor: streamline translation handling in menu and footer components
- Removed the custom translation function and replaced it with `useTranslations` from `next-intl` for better integration with localization.
- Updated `getMenuLinks`, `getFooterLinks`, `getAvatarLinks`, and `getSidebarMainLinks` functions to eliminate the need for passing a translation function as a parameter.
- Simplified the `SidebarMain`, `Footer`, `Navbar`, and `UserButton` components to directly utilize the updated link retrieval functions, enhancing code clarity and maintainability.
2025-03-18 12:59:29 +08:00
javayhu
2b41ef578a chore: refactor website information retrieval and simplify layout components
- Remove the `getWebsiteInfo` function to streamline website information handling.
- Update components to directly use translation functions for site name and tagline.
- Clean up `DashboardLayout`, `Footer`, `Navbar`, and `NavbarMobile` by removing unnecessary imports and improving readability.
- Maintain consistent use of translations across the application for better localization support.
2025-03-15 14:08:31 +08:00
javayhu
c96d3952d0 feat: improve locale switching with dedicated LocaleSwitcher component
- Create new `LocaleSwitcher` component with dropdown menu for language selection
- Modify `LocaleSelector` to remove `showLocaleName` prop
- Update `Navbar` to use new `LocaleSwitcher` instead of `LocaleSelector`
- Adjust `ThemeSwitcher` button styling for consistency
- Enhance locale switching user experience with more intuitive UI
2025-03-11 00:01:51 +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
34006556c8 refactor: run biome format to src folder 2025-03-09 22:13:59 +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
19d6eef747 fix: Force the scrollbar to always be visible to prevent layout shifts 2025-03-08 23:29:06 +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
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
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
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
6eda6fa83f refactor: replace custom external link icon with Lucide ArrowUpRightIcon 2025-03-01 15:07:25 +08:00
javayhu
7ab78c95dc feat: enhance navbar with nested menu, mobile responsiveness, and marketing links 2025-03-01 14:15:16 +08:00
javayhu
9dbddad6e4 refactor: update site layout, footer, and navigation components 2025-02-26 01:31:47 +08:00
javayhu
6d8b09ba3d refactor: centralize auth route constants and update references 2025-02-24 00:59:25 +08:00
javayhu
a8f331b2bb refactor: user session management in navbar and user button 2025-02-23 20:58:11 +08:00
javayhu
603bf4e9ce feat: add marketing layout, navbar, footer, and configuration files 2025-02-21 23:29:05 +08:00