From 084dabeaf93c9bab1d960fc7bd7752708cd76f0b Mon Sep 17 00:00:00 2001 From: aaron <> Date: Sat, 28 Mar 2026 23:09:15 +0800 Subject: [PATCH] update --- frontend/DESIGN_SYSTEM.md | 246 ++++++ frontend/OPTIMIZATION_REPORT.md | 229 ++++++ frontend/admin.html | 6 + frontend/css/style.css | 1333 ++++++++++++++++++------------- frontend/index.html | 2 +- frontend/login.html | 6 + frontend/real-trading.html | 6 + frontend/signals.html | 6 + frontend/trading.html | 6 + 9 files changed, 1273 insertions(+), 567 deletions(-) create mode 100644 frontend/DESIGN_SYSTEM.md create mode 100644 frontend/OPTIMIZATION_REPORT.md diff --git a/frontend/DESIGN_SYSTEM.md b/frontend/DESIGN_SYSTEM.md new file mode 100644 index 0000000..e47dd67 --- /dev/null +++ b/frontend/DESIGN_SYSTEM.md @@ -0,0 +1,246 @@ +# Tradus Premium Fintech Design System + +## Overview +Complete redesign of the Tradus AI trading platform with a premium, institutional-grade aesthetic inspired by Bloomberg Terminal and modern FinTech applications. + +## Design Philosophy + +**Core Principles:** +1. **Institutional Luxury** - Professional, trustworthy, sophisticated +2. **Visual Hierarchy** - Clear information architecture with premium accents +3. **Smooth Interactions** - Fluid animations and micro-interactions +4. **Data-Focused** - Numbers and metrics take center stage + +## Color System + +### Primary Palette +```css +Background: +- Primary: #0A0E27 (Deep Space) +- Secondary: #111827 (Dark Blue-Gray) +- Tertiary: #1A1F3A (Navy) +- Elevated: #1E2438 (Card backgrounds) + +Accent Colors: +- Primary: #00F0FF (Vibrant Cyan) +- Secondary: #667EEA (Purple-Blue) +- Tertiary: #764BA2 (Deep Purple) + +Semantic Colors: +- Success: #00E676 (Green) +- Warning: #FFB300 (Amber) +- Danger: #FF4444 (Red) +- Info: #2196F3 (Blue) +``` + +### Gradients +```css +--gradient-primary: linear-gradient(135deg, #667EEA 0%, #764BA2 100%) +--gradient-accent: linear-gradient(135deg, #00F0FF 0%, #00C9FF 100%) +--gradient-gold: linear-gradient(135deg, #FFD700 0%, #FFA500 100%) +--gradient-success: linear-gradient(135deg, #00C851 0%, #00E676 100%) +--gradient-danger: linear-gradient(135deg, #FF4444 0%, #FF6B6B 100%) +``` + +## Typography + +### Font Stack +- **Headings**: DM Serif Display (elegant, serif) +- **Body**: DM Sans (modern, clean) +- **Monospace**: JetBrains Mono (for numbers, code) + +### Type Scale +```css +--font-xs: 11px +--font-sm: 13px +--font-base: 14px +--font-md: 16px +--font-lg: 18px +--font-xl: 24px +--font-2xl: 32px +--font-3xl: 40px +``` + +## Components + +### Cards +- Gradient top border on hover +- Subtle shadows +- Border color transitions +- Transform animations + +### Buttons +- Primary: Gradient background with glow +- Secondary: Transparent with accent border +- Accent: Cyan gradient for CTAs +- Danger: Red border for destructive actions + +### Badges +- Grade A: Gold gradient with shadow +- Grade B: Silver gradient +- Grade C: Bronze gradient +- Status badges: Semantic colors with borders + +### Tables +- Dark backgrounds with subtle borders +- Hover states with background changes +- Monospace font for numbers +- Color-coded positive/negative values + +### Stats Cards +- Large gradient text for values +- Clear label hierarchy +- Accent bar on left side +- Smooth value transitions + +## Animations + +### Core Animations +```css +fadeIn: 0.5s ease +slideUp: 0.6s ease +pulse: 2s infinite +spin: 0.8s linear infinite +shimmer: 2s infinite (for progress bars) +``` + +### Interaction Feedback +- Hover: Scale(1.05), translate(-2px), shadow increase +- Active: Scale(0.98) +- Focus: Accent border, box-shadow ring + +## Page-Specific Guidelines + +### Index.html (Chat Interface) +- Welcome screen with gradient title +- Message cards with accent borders +- Streaming indicators with dots animation +- Input field with glow on focus + +### Trading.html (Trading Dashboard) +- Stat cards with gradient values +- Table with monospace numbers +- Grade badges with gold/silver/bronze +- Charts with accent colors + +### Real-Trading.html (Live Trading) +- Warning banners with colored borders +- Status indicators with pulse animation +- Account cards with elevated backgrounds +- Toggle switches with gradient + +### Signals.html (Signal Center) +- Signal cards with hover effects +- Confidence bars with gradient fills +- Price grids with clear hierarchy +- Grade statistics with badge sets + +### Admin.html (Management Panel) +- Sidebar with active state highlighting +- User tables with status badges +- Search bars with focus states +- Pagination controls + +### Login.html (Authentication) +- Centered card layout +- Input fields with focus glow +- Button with gradient and hover effects +- Error messages with danger styling + +## Responsive Design + +### Breakpoints +```css +Mobile: max-width 768px +Small Mobile: max-width 480px +``` + +### Mobile Adaptations +- Reduced font sizes +- Simplified layouts +- Stacked components +- Full-width cards + +## Accessibility + +### Focus States +- Visible focus rings +- High contrast borders +- Keyboard navigation support + +### Color Contrast +- WCAG AA compliant +- Text on background ratios +- Accent color legibility + +## Performance + +### Optimization Techniques +- CSS animations over JavaScript +- Transform for smooth rendering +- Will-change for complex animations +- Efficient gradient usage + +### Loading States +- Skeleton screens +- Spinner animations +- Progressive enhancement + +## Usage Examples + +### Card Component +```html +