|
| 1 | +# Visual Differentiation Plan for Upstream Labs Website |
| 2 | + |
| 3 | +## Goal |
| 4 | +Transform the website from standard AstroWind styling to a distinctive, gradient-rich design inspired by beijing2025 and origin2025 reference sites. |
| 5 | + |
| 6 | +--- |
| 7 | + |
| 8 | +## Status: ✅ COMPLETE |
| 9 | + |
| 10 | +All 6 phases of the visual differentiation plan have been successfully implemented. |
| 11 | + |
| 12 | +--- |
| 13 | + |
| 14 | +## Key Changes Overview |
| 15 | + |
| 16 | +| Area | Original State | Current State | Status | |
| 17 | +|------|--------------|--------------|--------| |
| 18 | +| Section Backgrounds | Repetitive `bg-blue-50` on 3 sections | 4 distinct multi-layered radial gradients | ✅ Complete | |
| 19 | +| Features Widget | Plain icon grid | Glassmorphism card grid (FeaturesCards) | ✅ Complete | |
| 20 | +| Stats Widget | Sparse horizontal layout | Elevated cards with gradient numbers | ✅ Complete | |
| 21 | +| Timeline/Steps | Basic vertical line | Gradient connector with pulsing markers | ✅ Complete | |
| 22 | +| Content Sections | Two identical layouts | Differentiated with unique treatments | ✅ Complete | |
| 23 | + |
| 24 | +--- |
| 25 | + |
| 26 | +## Completed Work |
| 27 | + |
| 28 | +### ✅ Phase 1: Section Background System |
| 29 | + |
| 30 | +**File:** `src/assets/styles/tailwind.css` |
| 31 | + |
| 32 | +Added 4 new gradient utility classes: |
| 33 | + |
| 34 | +1. **`.section-bg-azure-glow`** - Blue top-left + aqua bottom-right ellipses (for Features, Steps) |
| 35 | +2. **`.section-bg-gold-accent`** - Gold top-right + blue bottom-left (for Content #1) |
| 36 | +3. **`.section-bg-aqua-flow`** - Aqua bottom-center + blue left (available, not currently used) |
| 37 | +4. **`.section-bg-tri-color`** - Three-way blue/gold/aqua gradient (for Stats) |
| 38 | + |
| 39 | +Each utility uses multi-layered `radial-gradient()` with: |
| 40 | +- Opacity range: 0.06-0.15 (light mode), 0.10-0.20 (dark mode) |
| 41 | +- `::before` pseudo-element pattern |
| 42 | +- `pointer-events: none` for interaction passthrough |
| 43 | + |
| 44 | +--- |
| 45 | + |
| 46 | +### ✅ Phase 2: Features Widget Upgrade |
| 47 | + |
| 48 | +**New File:** `src/components/widgets/FeaturesCards.astro` |
| 49 | + |
| 50 | +Created a card-based variant of Features that uses: |
| 51 | +- ItemGrid2 for card layout (3 columns) |
| 52 | +- Glassmorphism styling: `backdrop-blur-sm`, `bg-white/90 dark:bg-ink-800/80` |
| 53 | +- Elevated shadows: `shadow-[0_8px_30px_rgba(43,116,255,0.08)]` |
| 54 | +- Hover effect: `-translate-y-1` with shadow increase |
| 55 | +- Large border-radius: `rounded-2xl` (16px) |
| 56 | + |
| 57 | +**Usage in index.astro:** |
| 58 | +Mission section now uses `<FeaturesCards>` with `section-bg-azure-glow` background. |
| 59 | + |
| 60 | +--- |
| 61 | + |
| 62 | +### ✅ Phase 3: Stats Widget Enhancement |
| 63 | + |
| 64 | +**File:** `src/components/widgets/Stats.astro` |
| 65 | + |
| 66 | +Transformed from horizontal flex to card grid: |
| 67 | +- Individual stat cards with `rounded-[28px]` border-radius |
| 68 | +- Gradient numbers: `bg-gradient-to-r from-azure-500 to-aqua-500` with `bg-clip-text` |
| 69 | +- Icon badge: circular gradient background (`from-azure-500 to-aqua-500`) |
| 70 | +- Card hover effect with shadow elevation |
| 71 | +- Section background: `.section-bg-tri-color` |
| 72 | + |
| 73 | +--- |
| 74 | + |
| 75 | +### ✅ Phase 4: Timeline Enhancement |
| 76 | + |
| 77 | +**File:** `src/components/ui/Timeline.astro` |
| 78 | + |
| 79 | +Enhanced the Steps widget connector: |
| 80 | +- Gradient vertical line with `.timeline-connector` class |
| 81 | +- Gradient connector: `linear-gradient(180deg, rgb(56 189 248), rgb(14 165 233))` |
| 82 | +- Marker styling: gradient background + white/dark border |
| 83 | +- Icons: gradient filled circles (`from-azure-500 to-aqua-500`) |
| 84 | + |
| 85 | +--- |
| 86 | + |
| 87 | +### ✅ Phase 5: Content Section Differentiation |
| 88 | + |
| 89 | +**File:** `src/pages/index.astro` |
| 90 | + |
| 91 | +**Content #1 (Our Approach):** |
| 92 | +- Background: `.section-bg-gold-accent` |
| 93 | +- Decorative left border: `border-l-4 border-azure-500` on content slot |
| 94 | + |
| 95 | +**Content #2:** |
| 96 | +- Not implemented - decided page flow was complete without it |
| 97 | +- `section-bg-aqua-flow` utility remains available for future use |
| 98 | + |
| 99 | +--- |
| 100 | + |
| 101 | +### ✅ Phase 6: Tailwind Config Extensions |
| 102 | + |
| 103 | +**File:** `tailwind.config.js` |
| 104 | + |
| 105 | +Added design tokens: |
| 106 | +```javascript |
| 107 | +borderRadius: { |
| 108 | + '4xl': '28px', |
| 109 | +}, |
| 110 | +boxShadow: { |
| 111 | + 'elevated': '0 20px 40px rgba(0, 0, 0, 0.1), 0 8px 16px rgba(0, 0, 0, 0.06)', |
| 112 | + 'elevated-lg': '0 30px 60px rgba(0, 0, 0, 0.12), 0 12px 24px rgba(0, 0, 0, 0.08)', |
| 113 | +}, |
| 114 | +animation: { |
| 115 | + 'pulse-slow': 'pulse 4s cubic-bezier(0.4, 0, 0.6, 1) infinite', |
| 116 | +}, |
| 117 | +``` |
| 118 | + |
| 119 | +--- |
| 120 | + |
| 121 | +## Current Section Background Mapping |
| 122 | + |
| 123 | +| Section | Background Class | Status | |
| 124 | +|---------|-----------------|--------| |
| 125 | +| Hero | `hero-gradient` | ✅ Active | |
| 126 | +| Note | none | ✅ Active (clean break) | |
| 127 | +| Features/Mission | `section-bg-azure-glow` | ✅ Active | |
| 128 | +| Content #1 (Our Approach) | `section-bg-gold-accent` | ✅ Active | |
| 129 | +| Steps | `section-bg-azure-glow` | ✅ Active | |
| 130 | +| Features2/Programs | none | ✅ Active (cards provide interest) | |
| 131 | +| Stats | `section-bg-tri-color` | ✅ Active | |
| 132 | +| CallToAction | `cta-gradient` | ✅ Active | |
| 133 | + |
| 134 | +--- |
| 135 | + |
| 136 | +## Additional Work Completed |
| 137 | + |
| 138 | +### ✅ FAQ Migration to Dedicated Pages |
| 139 | + |
| 140 | +**New Files:** |
| 141 | +- `src/pages/faq.astro` - English FAQ page |
| 142 | +- `src/pages/cn/faq.astro` - Chinese FAQ page |
| 143 | + |
| 144 | +**Changes:** |
| 145 | +- Moved FAQs from homepage sections to dedicated pages for better UX |
| 146 | +- Added FAQ links to header navigation (under "About" dropdown) |
| 147 | +- Added FAQ links to footer (under "Company" section) |
| 148 | +- Removed FAQ widgets from `index.astro` and `cn/index.astro` |
| 149 | +- FAQ pages use Hero widget with `/images/hero-image.jpg` |
| 150 | + |
| 151 | +--- |
| 152 | + |
| 153 | +## Modified Files Summary |
| 154 | + |
| 155 | +| File | Changes | |
| 156 | +|------|---------| |
| 157 | +| `src/assets/styles/tailwind.css` | ✅ Added 4 section-bg-* utilities, timeline styles | |
| 158 | +| `tailwind.config.js` | ✅ Added borderRadius, boxShadow, animation tokens | |
| 159 | +| `src/components/widgets/FeaturesCards.astro` | ✅ NEW - Card-based features variant | |
| 160 | +| `src/components/widgets/Stats.astro` | ✅ Redesigned with gradient cards | |
| 161 | +| `src/components/ui/Timeline.astro` | ✅ Added gradient connector and markers | |
| 162 | +| `src/pages/index.astro` | ✅ Applied backgrounds, swapped Features, removed FAQs | |
| 163 | +| `src/pages/cn/index.astro` | ✅ Removed FAQs section | |
| 164 | +| `src/pages/faq.astro` | ✅ NEW - English FAQ page | |
| 165 | +| `src/pages/cn/faq.astro` | ✅ NEW - Chinese FAQ page | |
| 166 | +| `src/navigation.ts` | ✅ Added FAQ links to header and footer | |
| 167 | + |
| 168 | +--- |
| 169 | + |
| 170 | +## Next Steps (Optional) |
| 171 | + |
| 172 | +If needed, consider: |
| 173 | +1. Adding a second Content section with `section-bg-aqua-flow` background |
| 174 | +2. Creating additional language variations for FAQ pages |
| 175 | +3. Adding more FAQ items based on user inquiries |
| 176 | +4. Running `npm run check:eslint` and `npm run fix` for code quality |
0 commit comments