diff options
author | Alex Benzer <abenzer@users.noreply.github.com> | 2025-09-04 07:20:46 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-09-04 07:20:46 -0700 |
commit | 625b4e61dbf11c1d485bf8e8265df4d5af0c9657 (patch) | |
tree | 8d36b6564cb2b679269dea4b1fc3a8d3887d2fd2 /src/lib | |
parent | 0b02d9d9a7ca33dab256a35e4fc9b8feabe20d34 (diff) | |
download | voidsky-625b4e61dbf11c1d485bf8e8265df4d5af0c9657.tar.zst |
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 <mozzius@protonmail.com>
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/hooks/useWebMediaQueries.tsx | 3 | ||||
-rw-r--r-- | src/lib/statsig/gates.ts | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/hooks/useWebMediaQueries.tsx b/src/lib/hooks/useWebMediaQueries.tsx index fa9d6ffa6..7778383a4 100644 --- a/src/lib/hooks/useWebMediaQueries.tsx +++ b/src/lib/hooks/useWebMediaQueries.tsx @@ -2,6 +2,9 @@ import {useMediaQuery} from 'react-responsive' import {isNative} from '#/platform/detection' +/** + * @deprecated use `useBreakpoints` from `#/alf` instead + */ export function useWebMediaQueries() { const isDesktop = useMediaQuery({minWidth: 1300}) const isTablet = useMediaQuery({minWidth: 800, maxWidth: 1300 - 1}) diff --git a/src/lib/statsig/gates.ts b/src/lib/statsig/gates.ts index 391314162..b8e2e9a3c 100644 --- a/src/lib/statsig/gates.ts +++ b/src/lib/statsig/gates.ts @@ -15,3 +15,4 @@ export type Gate = | 'remove_show_latest_button' | 'test_gate_1' | 'test_gate_2' + | 'welcome_modal' |