From 19fb8d03c14ea23d8fda414e88e903634323cf90 Mon Sep 17 00:00:00 2001 From: Viet Nguyen <3805254+vnugent@users.noreply.github.com> Date: Mon, 18 Nov 2024 12:43:01 -0800 Subject: [PATCH] refactor: make main banner suppressable feat: new sign up button and quick links --- package.json | 1 + .../[[...slug]]/components/PageAlert.tsx | 8 +- .../(default)/components/DesktopHeader.tsx | 125 ++++++++++-------- src/app/(default)/components/LandingCTA.tsx | 92 ------------- src/app/(default)/components/LandingHero.tsx | 20 ++- src/app/(default)/components/LoginButton.tsx | 18 --- src/app/(default)/components/MobileHeader.tsx | 2 +- src/app/(default)/page.tsx | 5 +- src/app/api/auth/[...nextauth]/route.ts | 7 +- src/components/GitHubStars.tsx | 4 +- src/components/Header.tsx | 20 --- src/components/broadcast/AppAlert.tsx | 55 -------- src/components/broadcast/SuppressButton.tsx | 14 ++ .../broadcast/__tests__/AppAlert.tsx | 59 ++++++--- .../media/__tests__/PhotoUploadError.tsx | 2 +- src/components/ui/NavMenuButton.tsx | 15 +-- yarn.lock | 5 + 17 files changed, 174 insertions(+), 278 deletions(-) delete mode 100644 src/app/(default)/components/LoginButton.tsx delete mode 100644 src/components/broadcast/AppAlert.tsx create mode 100644 src/components/broadcast/SuppressButton.tsx diff --git a/package.json b/package.json index 15b2836d8..38bd5c56e 100644 --- a/package.json +++ b/package.json @@ -44,6 +44,7 @@ "graphql": "^16.2.0", "i18n-iso-countries": "^7.5.0", "immer": "^10.0.2", + "js-cookie": "^3.0.5", "lexical": "^0.7.5", "mapbox-gl": "^2.7.0", "maplibre-gl": "^4.3.2", diff --git a/src/app/(default)/climb/[[...slug]]/components/PageAlert.tsx b/src/app/(default)/climb/[[...slug]]/components/PageAlert.tsx index 31b0e7854..7d3c09aa4 100644 --- a/src/app/(default)/climb/[[...slug]]/components/PageAlert.tsx +++ b/src/app/(default)/climb/[[...slug]]/components/PageAlert.tsx @@ -3,9 +3,11 @@ import { Bulldozer } from '@phosphor-icons/react/dist/ssr' export const PageAlert: React.FC<{ id: string }> = ({ id }) => (
Join us to help improve this comprehensive
climbing resource for the community.