This is the ADOS website — React + Vite + TypeScript + Tailwind + framer-motion. There's an existing CircularGallery WebGL component (built on OGL) that renders a circular/arced carousel of images with text labels underneath each tile. It's currently used on the /events/paris-2026 page and, via a recent edit, on the homepage (Index.tsx) below the NextEventSignup section.
Existing files you must read first:
src/components/CircularGallery.tsx — the WebGL carousel. ~600 lines. OGL Renderer, Mesh, Program, Texture. Each Media instance owns a plane that shows the image plus a text plane with the item's title. Supports bend, scrollSpeed, scrollEase, borderRadius, font, textColor, items. Exposes class App. No hover state.
src/components/events/NextEventSignup.tsx — the "Join our next event" CTA section. Has a rounded card (rounded-[32px], border border-white/10, bg-white/[0.03]) with a radial-gradient overlay, then a grid: heading/text on the left, a 3D Lanyard on the right, and an email form below. This is the section you'll embed the backdrop behind.
src/pages/Index.tsx — homepage. Currently has <NextEventSignup /> followed by a motion.section that renders CircularGallery (with bend={-1}, height: 600px, -mt-24 md:-mt-40). That extra section must be removed once the gallery lives inside NextEventSignup.
src/data/paris2026.ts — exports galleryItems (the shape you'll consume). Each item has { image, text, poster, description }.
What to build
Create a new component (do NOT modify the existing CircularGallery.tsx — Paris page depends on it being unchanged).
No text labels. Same visual structure as but without rendering the text plane under each tile. You can either fork the file and strip the text geometry/program, or import and extend/subclass — your call, whichever is cleaner. If you fork, share helpers cleanly; don't duplicate hundreds of lines if a small extract helps (but don't refactor the Paris-page component in the process).
Assistant
I’m reading the existing gallery, signup section, homepage, and shared gallery data first so I can mirror the WebGL behavior without touching the Paris page component.
Assistant
I’ve got the homepage and CTA structure. Next I’m reading the rest of the WebGL carousel so I can fork only the parts needed for a label-free backdrop and keep behavior aligned.
Assistant
The existing carousel already contains most of the math I need. I’m isolating the minimal subset for a background-only fork, then I’ll wire the new lazy-loaded layer into the signup card and remove the standalone homepage section.
Assistant
I have enough context. I’m implementing a dedicated backdrop component with the existing OGL layout math, but I’m dropping labels and click/drag behavior, then I’ll layer it behind the CTA card content with the gradient still in the middle.
Assistant
I’m writing the new backdrop component now, then I’ll patch the signup card and homepage imports/layout to use it.
Assistant
The first pass is in place. I’m checking the new file for obvious runtime issues before building, then I’ll run the project build and fix anything TypeScript catches.
Assistant
I found one runtime bug in the backdrop fork: the planes were starting at scale 0 before the first hover lerp. I’m correcting that before the build.
Assistant
The component and page wiring are done. I’m running bun run build now and will fix whatever the compiler flags.
Assistant
The build passes. I’m collecting final file stats and a quick diff summary so the closeout is precise.
Assistant
Created src/components/CircularGalleryBackdrop.tsx, about 558 lines. It is a separate OGL fork of the gallery for homepage/background use only: no text planes, transparent clear color, opacity prop, continuous auto-scroll, and fine-pointer hover hit-testing with a smooth tile scale-up. src/components/CircularGallery.tsx was left unchanged.
Modified files:
CircularGallery
Interactive hover state. When the user hovers a tile, that tile should visibly react — recommended: scale up slightly (e.g. 1.08–1.12) and/or brighten via a fragment-shader uBrightness uniform ramping up, with a smooth lerp back when the pointer leaves. Pick one clean effect; don't pile them on. Hit-testing should use the plane's world bounds projected to screen space — OGL doesn't give you picking for free, but you can compute approximate x/y bounds of each Media plane from plane.position + plane.scale and compare to mouse coords in viewport units. Alternatively, raycast against the plane rectangle in clip space.
Intended as a background layer. It should look good at lower opacity (0.35–0.6), full-bleed behind a foreground card. Default to transparent clear color. Consider adding a prop like opacity?: number (default 0.5) that either sets canvas CSS opacity or a uniform in the fragment shader.
Same API surface otherwise: items, bend, scrollSpeed, scrollEase, borderRadius. Drop the font and textColor props since there's no text.
Then embed it in NextEventSignup.tsx:
Add a <Suspense fallback={null}>-wrapped lazy import of the new component at the top of the card (immediately inside <div className="relative max-w-5xl mx-auto overflow-hidden rounded-[32px]...">).
Position it absolutely to fill the card: absolute inset-0 with a low z-index (behind the inner content; the content div currently isn't explicitly z'd so add relative z-10 to it if needed).
Pass galleryItems from src/data/paris2026.ts, bend={-1}, scrollSpeed={1.5}, borderRadius={0.08}.
Tune opacity so the CTA is still the hero — target ~0.35 for the backdrop.
Keep the existing radial-gradient overlay; it should sit BETWEEN the backdrop and the content so the text stays readable. Layer order inside the card from back to front: CircularGalleryBackdrop → existing radial gradient → content grid.
Finally, update src/pages/Index.tsx:
Remove the motion.section that currently renders CircularGallery below <NextEventSignup /> and its negative-margin wrapper.
Remove the now-unused galleryItems import and the CircularGallery lazy import from this file.
Keep <PreviousEvents /> <NextEventSignup /> order, followed by the existing <hr> and footer.
Constraints
Do not modify src/components/CircularGallery.tsx. Paris page (src/pages/Paris2026.tsx) must continue working unchanged.
Do not modify the Lanyard embedding inside NextEventSignup — it stays where it is.
Keep everything TypeScript-clean. bun run build must pass.
Lazy-load the new component the same way CircularGallery is lazy-loaded elsewhere.
Mobile: the backdrop should still render but feel free to reduce its intensity (lower opacity or fewer visible tiles) on narrow viewports if helpful. Not a strict requirement — just don't let it overpower the text on small screens.
Hover interaction should degrade gracefully to a no-op on touch devices — no pointer events needed there.
Deliverable
Write the files directly (sandbox: workspace-write). After the edits:
Run bun run build from the project root and confirm it passes.
Report back:
New file created (path + ~line count)
Files modified (paths, one-line summary of each change)
Build result
Any non-obvious decisions you made and why
Any follow-ups you deliberately skipped
Keep your report under 400 words.
src/components/events/NextEventSignup.tsx: lazy-loaded the new backdrop inside the card, layered it behind the existing radial gradient, imported galleryItems, and raised the foreground content to z-10.
src/pages/Index.tsx: removed the standalone homepage CircularGallery section and its unused galleryItems / CircularGallery imports, keeping PreviousEvents → NextEventSignup → divider/footer.
Build result: bun run build passed. Vite still reports existing chunk-size warnings for Lanyard and the cursor components, but the production build completed successfully.
Non-obvious decisions:
I used hover scale instead of shader brightness so the interaction stays visible even at opacity={0.35} without complicating the fragment path.
The backdrop only listens for hover on fine-pointer devices and does not keep drag/wheel/click behavior, to avoid fighting the CTA card, form, and lanyard interactions.
I kept the backdrop fork self-contained rather than refactoring shared internals out of the original gallery, because the Paris page requirement was to leave that component untouched.
Deliberately skipped:
No shared helper extraction between the two gallery components.
No mobile-specific tile-count reduction; mobile simply gets the same backdrop with hover effectively becoming a no-op.