about summary refs log tree commit diff
path: root/src/components/hooks/useWelcomeModal.native.ts
diff options
context:
space:
mode:
authorAlex Benzer <abenzer@users.noreply.github.com>2025-09-04 07:20:46 -0700
committerGitHub <noreply@github.com>2025-09-04 07:20:46 -0700
commit625b4e61dbf11c1d485bf8e8265df4d5af0c9657 (patch)
tree8d36b6564cb2b679269dea4b1fc3a8d3887d2fd2 /src/components/hooks/useWelcomeModal.native.ts
parent0b02d9d9a7ca33dab256a35e4fc9b8feabe20d34 (diff)
downloadvoidsky-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/components/hooks/useWelcomeModal.native.ts')
-rw-r--r--src/components/hooks/useWelcomeModal.native.ts3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/components/hooks/useWelcomeModal.native.ts b/src/components/hooks/useWelcomeModal.native.ts
new file mode 100644
index 000000000..f5bc1aa4e
--- /dev/null
+++ b/src/components/hooks/useWelcomeModal.native.ts
@@ -0,0 +1,3 @@
+export function useWelcomeModal() {
+  throw new Error('useWelcomeModal is web only')
+}