Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ export default function App() {
<header className={intro ? "site-header is-intro" : "site-header"} role={menuOpen ? "dialog" : undefined} aria-modal={menuOpen || undefined} aria-label={menuOpen ? "Navigation menu" : undefined}>
<button ref={menuRef} className="notch-trigger" type="button" aria-label={menuOpen ? "Close navigation menu" : "Open navigation menu"} aria-expanded={menuOpen} data-curtain-closing={curtainClosing || undefined} aria-controls="main-nav" disabled={intro} onClick={() => { if (menuOpen) closeMenu(); else { window.clearTimeout(curtainTimer.current); setCurtainClosing(false); setMenuOpen(true); } }}><span className="menu-toggle-icon" aria-hidden="true"><span className="menu-toggle-icon-stack"><svg width="17" height="17" viewBox="0 0 256 256" fill="currentColor" aria-hidden="true"><path d="M219.31,108.68l-80-80a16,16,0,0,0-22.62,0l-80,80A15.87,15.87,0,0,0,32,120v96a8,8,0,0,0,8,8h64a8,8,0,0,0,8-8V160h32v56a8,8,0,0,0,8,8h64a8,8,0,0,0,8-8V120A15.87,15.87,0,0,0,219.31,108.68ZM208,208H160V152a8,8,0,0,0-8-8H104a8,8,0,0,0-8,8v56H48V120l80-80,80,80Z" /></svg><X size={17} /></span></span><span className="menu-toggle-label" aria-hidden="true"><span className="menu-toggle-label-stack"><AnimatedLabel text="Menu" /><AnimatedLabel text="Close" /></span></span></button>
<div ref={navRef} id="main-nav" className={`nav-links${menuOpen ? ' is-open' : ''}${menuClosing || curtainClosing ? ' is-closing' : ''}`} aria-hidden={!menuOpen} inert={!menuOpen} data-lenis-prevent onTransitionEnd={event => { if (event.target === event.currentTarget && event.propertyName === 'transform' && !menuOpen) { window.clearTimeout(curtainTimer.current); setCurtainClosing(false); } }}>
<div className="nav-art" aria-hidden="true">{['/images/optimized/menu-v1-portrait.webp', '/images/optimized/menu-v1-horizontal.webp', '/images/optimized/menu-v2-frateran.webp', '/images/optimized/menu-v1-speaking.webp'].map((src, index) => <div className="nav-art-shift" key={src}><div className="nav-art-item" style={{ '--art-index': index }}><img src={src} alt="" fetchPriority="low" decoding="async" /></div></div>)}</div>
<div className="nav-art" aria-hidden="true">{['/images/optimized/menu-v1-portrait.webp', '/images/optimized/menu-v1-horizontal.webp', '/images/optimized/menu-v2-frateran.webp', '/images/optimized/menu-v1-speaking.webp'].map((src, index) => <div className="nav-art-shift" key={src}><div className="nav-art-item" style={{ '--art-index': index }}><img src={src} alt="" fetchPriority="low" decoding="async" /><span className="nav-photo-tiles">{Array.from({ length: 36 }, (_, tile) => <span key={tile} style={{ '--tile-delay': `${((tile * 17 + index * 7) % 36) * 18}ms` }} />)}</span></div></div>)}</div>
<div className="nav-content"><p className="nav-caption">Explore the portfolio</p><nav aria-label="Sections">{[['Home', '#home'], ['About', '#about'], ['Experience', '#experience'], ['Moments', '#moments'], ['Explorations', '#work'], ['Contact', '#contact']].map(([label, href], index) => <a key={href} href={href} style={{ '--nav-index': index }} onClick={event => navigateFromMenu(event, href)}><span className="nav-word"><AnimatedLabel text={label} /></span></a>)}</nav><div className="nav-socials">{socials.map(social => <a key={social.name} href={social.href} target="_blank" rel="noreferrer"><AnimatedLabel text={social.name} /></a>)}</div></div>
</div>
</header>
Expand Down
8 changes: 7 additions & 1 deletion src/styles.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading