library: add interactive cover banner with hover hotspots (initial state)#147
Conversation
…ate) Initial version of the library cover animation: hovering a building reveals a glow silhouette and a glass info card, driven by percentage-based hotspot geometry over the 1440x852 design frame. Hover-by-default with a switchable click mode. Hotspot coordinates and placeholder library data are a first pass and will be refined; real library content is still to come. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
|
@claude, review this PR. |
|
Claude finished @MaryWylde's task in 3m 30s —— View job PR Review: library: add interactive cover banner with hover hotspotsTasks
Overall this is a well-structured first pass — the percentage-based geometry, the mode-switch hook, and the reduced-motion handling are all solid. A few things need attention before the follow-up PRs build on this foundation. Bugs1. Hover mode: card is unreachable with the mouse
The fix is to move all hover listeners to the 2. Cover image is missing from the repo
3. Aspect ratio mismatch between SCSS and hotspot geometry
Convention violations (AGENTS.md)4. Barrel files should be AGENTS.md L106–L116 specifies: // index.ts
import X from './X';
export default X;Both new barrels ( 5.
6. Hardcoded colors instead of design tokens
Accessibility7.
Performance8.
will-change: opacity, transform, clip-path, filter;Four promoted layers per hotspot (5 hotspots = 20 composited layers). Minor9.
10. Fixed
11. Stale closure in
12. Misleading variable name
What's good
|
- Trim will-change to opacity/transform so clip-path and filter are no longer permanently promoted to compositor layers (4 -> 2 per hotspot). - Let the info card grow with real content (min-height instead of a fixed height) and stay compact on mobile. - Use functional state updaters in the hotspot trigger handlers to avoid reading a stale activeId under batched/concurrent updates. - Rename the click-mode dismiss handler to match its mousedown listener. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Initial version of the library cover animation: hovering a building reveals a glow silhouette and a glass info card, driven by percentage-based hotspot geometry over the 1440x852 design frame. Hover-by-default with a switchable click mode. Hotspot coordinates and placeholder library data are a first pass and will be refined; real library content is still to come.