2024
Suara Fratorian Podcast Production Committee
Contributed to the production of the Suara Fratorian podcast.
diff --git a/src/App.jsx b/src/App.jsx index 2800cc9..a4d9a78 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -53,6 +53,9 @@ const momentColumns = [ function Marquee() { return
; } +function PhotoTiles({ seed = 0, className = '' }) { + return ; +} function AnimatedLabel({ text }) { return {text}; } @@ -218,6 +221,19 @@ export default function App() { }); return () => media.revert(); }, [menuOpen, reducedMotion]); + useEffect(() => { + if (reducedMotion || window.matchMedia('(prefers-reduced-motion: reduce)').matches || !('IntersectionObserver' in window)) return; + const photos = document.querySelectorAll('.photo-filled, .project-art.has-image'); + const observer = new IntersectionObserver(entries => { + for (const entry of entries) { + if (!entry.isIntersecting) continue; + entry.target.classList.add('tile-revealed'); + observer.unobserve(entry.target); + } + }, { threshold: 0.1 }); + photos.forEach(photo => { photo.classList.add('tile-reveal-enabled'); observer.observe(photo); }); + return () => { observer.disconnect(); photos.forEach(photo => photo.classList.remove('tile-reveal-enabled', 'tile-revealed')); }; + }, [reducedMotion]); useEffect(() => { if (activeProject) dialogRef.current?.showModal(); }, [activeProject]); useEffect(() => { if (reducedMotion || window.matchMedia('(prefers-reduced-motion: reduce)').matches || !('IntersectionObserver' in window) || !Element.prototype.animate) return; @@ -277,7 +293,7 @@ export default function App() {2024
Contributed to the production of the Suara Fratorian podcast.
Fundraiser
Contributed to fundraising for the Ramadan event.
Snapshots of moments shared along the way.
Scroll down to explore the gallery, or swipe through it. More photographs are coming soon.
PHOTO PLACEHOLDER
Coming soon>}A space for ideas and what comes next.
Snapshots of moments shared along the way.
Scroll down to explore the gallery, or swipe through it. More photographs are coming soon.
PHOTO PLACEHOLDER
Coming soon>}A space for ideas and what comes next.
Find me online and let’s start a conversation.