Skip to content

feat(sections): add stats, recap, and testimonials scenes for nwHacks 2027 - #727

Merged
dakshshahani merged 15 commits into
nwhacks2027_devfrom
nwhacks2027/daksh
Nov 17, 2026
Merged

dakshshahani merged 15 commits into
nwhacks2027_devfrom
nwhacks2027/daksh

Conversation

@dakshshahani

Copy link
Copy Markdown
Contributor

Description

Adds the Stats, Recap, and Testimonials sections to the nwHacks 2027 landing page, matching the Figma flow and wired into the page in Figma order: Hero → About → Stats → Recap → Testimonials → Past Projects → FAQ → Sponsors/Footer.

Stats

  • Pinned scene with a layered video board (frame, mat, screen, trim and glow exports) positioned against Figma node 15941:59221.
  • Separate desktop and mobile scenes, with a dedicated stats-video component and hover/press affordances.
  • MLH badge clears correctly on narrow phone viewports.

Recap

  • Scroll-driven "garage door" reveal: the door rolls inside the opening while the night-market scene grows behind it, then the camera zooms only after the door is roughly two-thirds open.
  • Market content is scaled to fully cover the projected doorway at every progress step, so the edge of the testimonials layer is never exposed mid-animation.
  • Photo wall with individually focusable triggers and an accessible role="dialog" lightbox rendered at document.body so it is not clipped by the garage; Escape closes it, background scroll locks, and focus returns to the originating photo.
  • Reduced-motion path keeps the photo wall visible without the reveal.
  • Separate mobile scene with its own assets.

Testimonials

  • Slide deck for the Pascale, Vaibhav, and Qazi stalls, with a layered cart (pascale-cart) and independent lantern rigs (gust, swing, tassel joints) that respond to pointer movement.
  • Outgoing slides stay mounted until animationend instead of being hidden by a timer, and the cart, bubble, and tail travel together with no relative drift.
  • Quote text stays selectable; user-select and pointer-events are preserved on the active card.

Shared work

  • useScrollProgress and useLanternMotion hooks, SceneLayer, ArtworkText, and Lightbox UI primitives.
  • artwork-text and layout constants so text overlays sit exactly on the exported artwork and remain selectable without altering the visible render.
  • hero-lanterns refactored onto the shared lantern motion hook, cutting a large amount of duplicate animation code.
  • Visual assets under public/assets/{stats,recap,testimonials}, plus webp variants for mobile.
  • Headless QA scripts (scripts/qa-*.js) for recap geometry, recap photos, testimonials, testimonial lanterns, and artwork text overlays. They can be pasted into a browser console or run via preview_evaluate on either layout.

Verified on desktop and mobile viewports against the Figma flow. TypeScript, the full test suite, and formatting all pass. The nwhacks2027_dev branch was merged in, and all existing sections are preserved.

Other considerations

  • The reveal and camera choreography depend on measured section geometry rather than fixed pixel values, so it should be re-checked with scripts/qa-recap.js if the section height or frame export changes.
  • The lantern pointer interaction is intentionally skipped under prefers-reduced-motion: reduce and on coarse pointers.
  • Recap lightbox images are large PNGs (several MB each); they are only fetched on open, but moving them to a compressed format would be a reasonable follow-up.
  • The QA scripts are console utilities rather than part of the automated test run, so they need to be run manually per layout.

Stats: the neon scoreboard, with the 2026 recap video playing in the design's
frame (loaded on click, YouTube's still as the poster) and the signs buzzing
in on scroll.

Recap: the garage pins for two screens while the corrugated door rolls up,
the polaroids drift and the interior warms up. The phone cut is the flat wall
of photos from its own frame.

Testimonials: the night market arrives scaled back, growing to fill the
screen as you scroll. Picking a stall brings its close-up art forward and
floats the quote card in; the arrows step through all three.

Everything is placed from the Figma node boxes (constants/*), exported as
WebP layers, and animated with CSS keyframes under MotionGate and
prefers-reduced-motion.
…e reviews

Titles are white and the quote card #f6e9e9, both straight from the Figma
fills; the video player now sits inside the board's red trim instead of over
it; the tail is the design's own wedge rather than a card corner; the caption
moves above the arrows once a stall is open, and cards hug their quote the way
the Figma frames do.

Signs that carry glow past their node box are drawn with object-contain, so
nothing is stretched (HACKERS was 10% wide). The phone gets its own RECAP 2027
arrow and the hanging lanterns the frame has.

Recap now rolls the photos up with the door they are pinned to, ends the pin
as the door clears instead of holding on an empty garage, and lights the
interior from the opening. The arrival starts nearer (0.72), the street behind
counter-scales for depth, and scroll progress is eased.

A11y: hidden stalls leave the tab order, the quote is announced, the stats
signs have alt text, and reduced motion drops the scroll cue and vignette.
…ght the reveal

Reduced motion hid the door wrapper, which now carries the polaroids, so the
wall vanished. Only the slab goes now; the photos stay on it.

The open garage was too dark to feel like a payoff: the light shaft, the pool
on the back wall and the floor bounce are all stronger.

The quote card's tail tip drops a little so it aims at the counter, as the
selected frames do.
… paragraphs

The phone stats title sat under the fixed MLH badge at rest; it drops below
it. Quotes are two or three paragraphs in the design and the blank lines were
collapsing into one run-on block.

Also re-attaches the recap photo lag class, which had lost its wrapper.
… quote card

The slab is now a window the size of the garage opening with the layer space
pushed back to frame coordinates, so it rolls into the header instead of
sliding across the facade above it. Chrome would not load the door's images
through a clip-path, so those four are eager — and the door no longer
disappears at mid-roll.

Quote cards centre in the design's slot the way the three Figma states do,
the phone card announces changes too, and the arrival's edge mask is an
ellipse that clears before the scene fills instead of a spotlight.
The door no longer reveals an empty room: the market is behind it, dim and
small, and grows toward the camera as the pin runs out, so the garage hands
over to the testimonials section on the same picture.

Recap and testimonials both run edge to edge now (100vw, frame centred and
cropped), with no pinned scale wrapper and no side letterboxing. The light
and floor gradients live inside the opening, so the facade above the door no
longer brightens as it opens, and the lamps draw in front of the frame.

Carts slide in from the side you came from and out the other way, and the
neon signs stutter: fast multi-frame cut-outs on their tube or their halo,
each at its own length and offset so two never fail together.
…ge scrolling away

The street behind the door never drops below the opening's size, so it always
fills the doorway instead of floating in it. The testimonials section starts a
screen early on desktop, so it rises over the last screen of the recap pin
while the market is still on screen, instead of the garage scrolling away and
then the same market arriving again.
Video: the player now sits exactly on Rectangle 3346 (8.25%/12.03%, 83.5x75.7%
of the board) instead of covering the red trim.

Recap: the doorway grows past the frame as the pin ends and the garage chrome
fades with it, so the section leaves on the market rather than an empty room,
and the market is never shown twice in one frame. The lamps are steady — no
flicker on this section.

Stats: neon bursts are about twice as slow (7 flips over ~1.7% of a longer
cycle) and no longer read as a strobe.

Testimonials: carts travel the full width, in and out at the same 0.55s and
the same curve, with a small tilt so they read as wheeled; the wide shot
clears instantly instead of fading through the incoming cart.
…om lands on the section

The whole frame now pushes toward the doorway — facade, door and market zoom
at once instead of the doorway opening while the facade faded out, so the
market zoom and the garage zoom start together and end together.

The market's final scale is exactly 1:1 with the screen, and the section
starts on the pin's last frame, so the last zoom frame IS the testimonials
page — no extra scroll, no garage tail.

Cart slides travel far enough to actually leave the viewport before they end,
and the tilt is down to 1.2deg.
…he market is its content

The market no longer has a hand-tuned scale. It is sized by the doorway
itself (the doorway grows from the opening to the full frame as the pin runs,
measured 1282x702 -> 1512x982), so it fills the doorway at every stage and
lands at exactly 1512x982 — 1:1 with the section below it, measured.

The facade zooms out about the doorway's centre (50.2% 64.3%), faster than
the doorway opens (4.2x vs 1.18x at the end), so the wall leaves the frame
while the market keeps growing into it.

The market inside the doorway is now the live testimonials: it loses its bare
mode, gains its own title/hint/arrows faded in with the zoom (--market-chrome
= --open), and the doorway market carries the #testimonials anchor (the phone
scene takes it when the doorway doesn't exist).

Video: the player is a 16:9 box centred on the design's white screen
(Rectangle 3346, measured 587x365 at 8.25%/12.03%), so the mat shows around
it instead of the player covering the trim.
- Add ArtworkText transparent copy layer backed by ARTWORK_TEXT coordinates
- Wire overlays into SceneLayer, testimonial stalls, and Pascale cart
- Keep text selectable across layouts while isolating carousel click targets
- Add browser QA script verifying selection and cart interactions
@github-actions

github-actions Bot commented Nov 17, 2026 •

Copy link
Copy Markdown

Visit the preview URL for this PR (updated for commit f4a9100):

https://dev-nwplus-root--pr727-nwhacks2027-daksh-7yod9h4z.web.app

(expires Fri, 27 Nov 2026 08:41:14 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: ca465d4a689cc01bf206252b60f82f45b4ba90eb

@dakshshahani
dakshshahani merged commit 25d3747 into nwhacks2027_dev Nov 17, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant