mirror of
https://github.com/dong-nz/cv.git
synced 2026-11-22 16:10:40 +07:00
feat: homepage enhancements - mobile padding, scroll animations, parallax, background gradient
- Fix mobile padding: add media queries for container and hero-content padding - Add InView wrapper to Hero and About for scroll-triggered animations - Add Hero parallax effect: photo moves on scroll, content fades out - Add section background gradient for smooth visual flow between sections - Unify section containers to container-wide for title alignment - Add maxWidth wrappers for text-heavy sections (About, Experience, Contact) - Replace OpenToWorkBadge with RollingTextLink component - Update nav router links and profile data - Add spec docs for v2 homepage enhancements and nav rolling text
This commit is contained in:
1 parent
1800fa7ceb
commit
aa30aed903
20 files changed
+1301
-326
No files matched your search
@@ -11,7 +11,7 @@ Personal engineering portfolio — multi-page SPA built with React + TypeScript
|
||||
| Framework | React 19 |
|
||||
| Language | TypeScript 6 (bundler mode, `verbatimModuleSyntax`, `noEmit`) |
|
||||
| Bundler | Vite 8 |
|
||||
| Router | React Router DOM v6 (pin `6.30.6` — do NOT upgrade to v7) |
|
||||
| Router | React Router v8 (`react-router` package, pinned `8.4.0`) |
|
||||
| Linter | Oxlint 1 (`plugins: react, typescript, oxc`) |
|
||||
| Package manager | pnpm |
|
||||
|
||||
@@ -82,8 +82,8 @@ src/
|
||||
|
||||
## Known Issues & Gotchas
|
||||
|
||||
1. **React Router v6 routing:** Use `<Layout><Routes>...</Routes></Layout>`, NOT `<Route element={<Layout />}>` with nested routes — the latter doesn't pass `children` correctly
|
||||
2. **React Router v6 pin:** `package.json` has `"react-router-dom": "6.30.6"` (exact, no `^`) — v7 breaks the build and routing
|
||||
1. **React Router v8 routing:** Use `<Layout><Routes>...</Routes></Layout>`, NOT `<Route element={<Layout />}>` with nested routes — the latter doesn't pass `children` correctly
|
||||
2. **Import path:** All router imports use `react-router` (not `react-router-dom`) — e.g., `import { Link, useLocation } from 'react-router'`
|
||||
3. **Theme cycle:** `cycleTheme` dependency array must be `[]` (empty), NOT `[setTheme]` — `setTheme` is not used inside `cycleTheme`
|
||||
4. **Theme from system:** When stored theme is `'system'`, `cycleTheme` must skip to opposite theme on first click (not go to `'dark'` which resolves to same visual)
|
||||
5. **Footer/Nav links:** Must use `<Link to>`, not `<a href>` for client-side navigation
|
||||
|
||||
Reference in new issue
Block a user