Files
eranos/src/components
Chad Curtis 7e93dcba6c Stop hero globe from snapping back on spotlight change
The rotation rAF loop was being keyed by `useEffect([markers,
ringSizes, selectedKey])`. Each time `HeroCampaignSpotlight` cycled
to the next campaign, `selectedKey` changed, the effect tore down,
the new effect re-initialized `start = null`, and the elapsed-time
calculation snapped rotation back to 0°.

Hold `markers` and `selectedKey` in refs that the rAF loop reads
on each frame, and drop them from the effect's dep list so the loop
runs uninterrupted for the lifetime of the component.

Also dresses the hero's primary CTA up as an Apple-style liquid glass
pill: faint warm-tinted translucent body (white→amber→rose at low
opacity), heavy backdrop blur, hair-thin inner edge, soft warm-tinted
drop shadow. Hover lifts the tint and shadow a hair without changing
the pill's character — no specular streaks, no halo, no shadow
bloom. Slightly taller than the default `size=lg` (h-12, px-7,
text-base) so it reads as primary without feeling chunky.
2026-05-17 21:53:28 -05:00
..
2026-05-13 18:35:03 -05:00
2026-04-18 19:12:13 +05:45
2026-05-13 18:35:03 -05:00
2026-05-15 19:37:23 -07:00
2026-05-16 09:00:02 -07:00
2026-04-17 12:15:51 +05:45
2026-04-17 12:15:51 +05:45
2026-05-11 14:49:11 +07:00
2026-04-30 11:22:07 -05:00
2026-05-05 17:24:57 -05:00
2026-05-13 18:35:03 -05:00
2026-05-11 14:49:11 +07:00
2026-05-11 14:49:11 +07:00
2026-05-11 14:49:11 +07:00
2026-05-11 14:49:11 +07:00
2026-05-16 09:03:45 -07:00
2026-05-11 14:49:11 +07:00
2026-05-11 14:49:11 +07:00
2026-05-11 14:49:11 +07:00
2026-05-11 14:49:11 +07:00
2026-05-16 06:59:25 -07:00
2026-05-11 14:49:11 +07:00
2026-05-11 14:49:11 +07:00
2026-05-13 18:35:03 -05:00
2026-05-11 14:49:11 +07:00
2026-05-13 18:35:03 -05:00
2026-05-11 14:49:11 +07:00
2026-05-16 22:37:13 -07:00
2026-05-11 14:49:11 +07:00
2026-05-13 18:35:03 -05:00
2026-05-11 14:49:11 +07:00
2026-05-15 19:37:23 -07:00
2026-05-13 18:35:03 -05:00
2026-05-11 14:49:11 +07:00
2026-05-13 18:35:03 -05:00
2026-05-11 14:49:11 +07:00
2026-05-11 14:49:11 +07:00
2026-05-11 14:49:11 +07:00
2026-05-11 14:49:11 +07:00
2026-05-11 14:49:11 +07:00
2026-05-13 18:35:03 -05:00