From 625b4e61dbf11c1d485bf8e8265df4d5af0c9657 Mon Sep 17 00:00:00 2001 From: Alex Benzer Date: Thu, 4 Sep 2025 07:20:46 -0700 Subject: Welcome modal on logged-out homepage (#8944) * Adds welcome modal to logged-out homepage * Adds metrics and feature gate for welcome modal * Slightly smaller text for mobile screens to avoid wrapping * Remove unused SVG * Adds text gradient and "X" close button * Fix color on "Already have an account?" text * tweak hooks, react import * rm stylesheet * use hardcoded colors * add focus guards and scope * no such thing as /home * reduce spacign * use css animations * use session storage * fix animation fill mode * add a11y props * Fix link/button color mismatch, reduce gap between buttons, show modal until user dismisses it * Fix "Already have an account?" line left-aligning in small window sizes * Adds "dismissed" and "presented" metric events --------- Co-authored-by: Samuel Newman --- src/logger/metrics.ts | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/logger/metrics.ts') diff --git a/src/logger/metrics.ts b/src/logger/metrics.ts index 1cb4eb9d3..79d7702b3 100644 --- a/src/logger/metrics.ts +++ b/src/logger/metrics.ts @@ -48,6 +48,11 @@ export type MetricEvents = { // Screen events 'splash:signInPressed': {} 'splash:createAccountPressed': {} + 'welcomeModal:signupClicked': {} + 'welcomeModal:exploreClicked': {} + 'welcomeModal:signinClicked': {} + 'welcomeModal:dismissed': {} + 'welcomeModal:presented': {} 'signup:nextPressed': { activeStep: number phoneVerificationRequired?: boolean -- cgit 1.4.1