Refactor scroll system, regions, layout and download flow

- Completely reworked `useRegionScroll` controller: paginated region-by-region scroll (wheel/swipe/arrows/Home/End/Space), native scroll neutralized, regions taller than viewport split into screens, time-based rAF animation, interruption only on effective deviation.
- Region resolution in 3 levels: `data-region` (single element), `data-region-children` (each direct child), `.page-snap-section` as fallback. Added `data-no-region` to exclude hero/title.
- Homepage: entire MagicBento as a single region. Projects page: one stop per project (`HorizontalMotion` with `data-region-children`), category title preserved, hero excluded.
- Project detail pages (ProjectPage): hero excluded from regions, media in `data-region-children`, download button as separate region.
- Contact/PageShell: updated markers, removed empty zones (no forced `min-height` on `.page-snap-section`).
- Removed unbounded `--region-tail` in favor of capped reserve (15vh) + merged landing spots too close to each other.
- Navigation: more reliable scroll-to-top, footer "Co Hai Se" bold with target cursor.
- ZIP download: stopped propagation + global click handler ignores download.
- Various fixes (cursor, 404, layouts), docs updated, typecheck/ignoreDeprecations adjusted.
This commit is contained in:
2026-10-22 15:20:20 +02:00
parent 2297294f6c
commit 8727eac300
81 changed files with 1713 additions and 8043 deletions
+2 -1
View File
@@ -7,6 +7,7 @@
"dev": "vite",
"build": "vite build",
"lint": "eslint .",
"typecheck": "tsc --noEmit",
"preview": "vite preview"
},
"dependencies": {
@@ -45,7 +46,7 @@
"eslint-plugin-react-hooks": "^7.0.1",
"eslint-plugin-react-refresh": "^0.4.24",
"globals": "^16.5.0",
"shadcn": "^3.8.5",
"shadcn": "^1.0.0",
"tw-animate-css": "^1.4.0",
"vite": "^8.0.0-beta.13"
},