Compare commits

9 Commits
main ... main2

Author SHA1 Message Date
YoRHa
9aa9e44295 大改变 2026-02-03 19:56:21 +08:00
4b13d255bc fix: change product cards layout from vertical to horizontal
Changed product cards container from flex-col to flex-row to match
prototype design where 3 cards are displayed horizontally side by side.

Before: Cards stacked vertically (top to bottom)
After: Cards arranged horizontally (left to right)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-01-30 05:37:30 +00:00
b98500e61f feat: refactor Product page to match prototype design
Redesigned ProductCard and Product page based on original prototype:

ProductCard Component:
- Added gradient background matching prototype style
- Copied all SVG icons from prototype (US flags, HK flag, etc.)
- Implemented proper icon display with white background container
- Added category color variants (blue, green, purple)
- Risk level indicators with accurate colors
- Styled progress bar matching prototype
- Proper spacing and typography from CSS

Visual Elements:
- Radial gradient backgrounds on cards
- Glass-morphism effect with transparency
- Shadow and border effects from prototype
- Icon container with white background and shadow ring
- Category badges with colored backgrounds

Assets Added:
- frame-9230.svg, frame-9231.svg (US flag icons)
- hk0.svg (HK flag icon)
- chart-square1.svg
- All component SVG files from prototype
- View toggle icons

Styling:
- Followed prototype's style.css specifications
- Maintained exact color values and gradients
- Proper border radius and spacing
- Typography matching prototype

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-01-30 05:35:08 +00:00
4c86b7cce1 feat: add Products navigation button to sidebar
- Added new "Products" navigation item in sidebar
- Links to /product page (product listing)
- "Assets" button now links to / (product detail page)
- Added i18n support for "products" label (EN: Products, ZH: 产品)

Navigation structure:
- Assets → / (Product detail page)
- Products → /product (Product listing page)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-01-30 04:57:24 +00:00
2d3b83fbaf feat: add navigation links to sidebar
- Updated NavItem to use Next.js Link component
- Changed from onClick to href for proper routing
- Added usePathname to detect current route
- Assets navigation now links to /product page
- Active state automatically highlights based on current path
- Added dark mode hover states

Navigation:
- Click "Assets" in sidebar to view Product page
- Automatic active highlighting on current page
- Smooth client-side navigation

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-01-30 04:31:01 +00:00
f3b0c0db6e feat: implement Product page with fund listing
Created a complete Product page based on prototype design with:

Page Features:
- New /product route with full page layout
- AssetX Fund Market title section
- 4 statistics cards (TVL, Cumulative Yield, Balance, Earnings)
- Assets listing section with view toggle (list/grid)
- Product cards grid layout

ProductCard Component:
- Reusable product card component with HeroUI integration
- Product header with icon and category badge
- Two-column metric display (Yield APY, Pool Cap, Maturity, etc.)
- Risk indicator with color-coded bars (Low/Medium/High)
- Pool capacity progress bar with gradient
- Invest button with HeroUI Button component
- Hover effects and transitions
- Color-coded category badges (Quant Strategy, Real Estate)

Assets:
- Copied view toggle icons from prototype
- edit-list-unordered0.svg (list view)
- menu-more-grid-small0.svg (grid view)

Internationalization:
- Added productPage section to en.json and zh.json
- All labels translated (English and Chinese)
- Consistent with existing i18n pattern

Technical Implementation:
- Full responsive design
- Dark mode support
- Gradient styling for visual appeal
- Smooth animations and transitions
- Proper TypeScript types
- Follows existing design system

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-01-30 04:11:58 +00:00
16aa079cba fix: remove input styles to match design system
- Replaced HeroUI Input with native input element
- Removed number input spin buttons (up/down arrows)
- Removed all backgrounds, borders, and shadows
- Removed focus outline for seamless integration
- Input now appears as plain text until clicked
- Maintains right-aligned text and placeholder styling

CSS techniques used:
- [appearance:textfield] for Firefox
- [&::-webkit-*-spin-button]:appearance-none for Chrome/Safari
- bg-transparent, border-none, outline-none for clean look

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-01-30 04:01:30 +00:00
f190d6c4c0 fix: add functional input field to MintSwapPanel
- Added HeroUI Input component for amount entry
- Replaced static text with editable input field
- Added state management for amount value
- Updated MAX button to use HeroUI Button and set max value
- Input now displays right-aligned with proper styling
- Shows USD equivalent below input

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-01-30 04:00:08 +00:00
9e0dd1d278 feat: integrate HeroUI component library
Implemented HeroUI migration plan with the following changes:

Stage 0: Environment Setup
- Installed @heroui/react@2.8.7, @heroui/theme@2.4.26, framer-motion@12.29.2
- Configured Tailwind with HeroUI plugin
- Added HeroUI content paths to Tailwind config

Stage 1: Provider Architecture
- Created Providers.tsx wrapper combining HeroUIProvider and AppProvider
- Updated app/layout.tsx to use new Providers component
- Preserved all AppContext functionality (theme, language, translations)

Stage 2: Component Migrations
- TabNavigation: Migrated to HeroUI Tabs with keyboard navigation support
- TopBar: Migrated buttons to HeroUI Button components
- LanguageSwitch: Migrated to HeroUI Dropdown for better UX
- ThemeSwitch: Migrated to HeroUI Button (isIconOnly variant)
- MintSwapPanel: Migrated to HeroUI Tabs and Button components

Benefits:
- Enhanced accessibility with ARIA attributes and keyboard navigation
- Smooth animations and transitions via Framer Motion
- Consistent component API across the application
- Maintained all existing design tokens and color system
- Preserved dark mode functionality

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-01-30 03:49:53 +00:00
63 changed files with 12057 additions and 12057 deletions