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
@@ -1,6 +1,7 @@
|
||||
import { useState, useEffect } from 'react'
|
||||
import { Link, NavLink, useLocation } from 'react-router'
|
||||
import { Link, useLocation } from 'react-router'
|
||||
import { useTheme } from '@/hooks/useTheme'
|
||||
import { RollingTextLink } from '@/components/ui/RollingTextLink'
|
||||
|
||||
const navItems = [
|
||||
{ label: 'Home', path: '/' },
|
||||
@@ -42,14 +43,12 @@ export function Navigation() {
|
||||
<ul className="nav-menu">
|
||||
{navItems.map((item) => (
|
||||
<li key={item.path}>
|
||||
<NavLink
|
||||
<RollingTextLink
|
||||
to={item.path}
|
||||
className={({ isActive }) =>
|
||||
isActive ? 'nav-link active' : 'nav-link'
|
||||
}
|
||||
className={item.path === location.pathname ? 'nav-link active' : 'nav-link'}
|
||||
>
|
||||
{item.label}
|
||||
</NavLink>
|
||||
</RollingTextLink>
|
||||
</li>
|
||||
))}
|
||||
</ul>
|
||||
@@ -97,15 +96,13 @@ export function Navigation() {
|
||||
<ul className="mobile-menu-list">
|
||||
{navItems.map((item) => (
|
||||
<li key={item.path}>
|
||||
<NavLink
|
||||
<RollingTextLink
|
||||
to={item.path}
|
||||
className={({ isActive }) =>
|
||||
isActive ? 'mobile-menu-link active' : 'mobile-menu-link'
|
||||
}
|
||||
className={item.path === location.pathname ? 'mobile-menu-link active' : 'mobile-menu-link'}
|
||||
onClick={() => setMobileOpen(false)}
|
||||
>
|
||||
{item.label}
|
||||
</NavLink>
|
||||
</RollingTextLink>
|
||||
</li>
|
||||
))}
|
||||
</ul>
|
||||
|
||||
Reference in new issue
Block a user