Repository navigation
feat(sections): add stats, recap, and testimonials scenes for nwHacks 2027 - #727
Merged
Merged
Conversation
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
|
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Adds the
Stats,Recap, andTestimonialssections 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
15941:59221.stats-videocomponent and hover/press affordances.Recap
role="dialog"lightbox rendered atdocument.bodyso it is not clipped by the garage; Escape closes it, background scroll locks, and focus returns to the originating photo.Testimonials
pascale-cart) and independent lantern rigs (gust,swing,tasseljoints) that respond to pointer movement.animationendinstead of being hidden by a timer, and the cart, bubble, and tail travel together with no relative drift.user-selectandpointer-eventsare preserved on the active card.Shared work
useScrollProgressanduseLanternMotionhooks,SceneLayer,ArtworkText, andLightboxUI primitives.artwork-textand layout constants so text overlays sit exactly on the exported artwork and remain selectable without altering the visible render.hero-lanternsrefactored onto the shared lantern motion hook, cutting a large amount of duplicate animation code.public/assets/{stats,recap,testimonials}, plus webp variants for mobile.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 viapreview_evaluateon either layout.Verified on desktop and mobile viewports against the Figma flow. TypeScript, the full test suite, and formatting all pass. The
nwhacks2027_devbranch was merged in, and all existing sections are preserved.Other considerations
scripts/qa-recap.jsif the section height or frame export changes.prefers-reduced-motion: reduceand on coarse pointers.