From 1110b3e5330c7a7292f96b096bed16e9b3ce2a6b Mon Sep 17 00:00:00 2001 From: Ivan Fontosh Date: Wed, 1 Jul 2026 18:54:21 +0800 Subject: [PATCH] Scroll site-wide buy buttons to the pricing section. Keep the CrowdRepublic modal only on tier cards in the pricing block. Co-authored-by: Cursor --- src/components/layout/Footer.module.css | 8 ------- src/components/layout/Footer.tsx | 29 ++++++------------------- src/components/layout/Header.tsx | 9 +++++--- src/components/sections/CtaBanner.tsx | 5 +++-- src/components/sections/Hero.tsx | 5 +++-- 5 files changed, 19 insertions(+), 37 deletions(-) diff --git a/src/components/layout/Footer.module.css b/src/components/layout/Footer.module.css index ba3e995..4c731ac 100644 --- a/src/components/layout/Footer.module.css +++ b/src/components/layout/Footer.module.css @@ -34,11 +34,3 @@ .link:hover { color: var(--color-gold); } - -.linkButton { - border: none; - background: none; - padding: 0; - font: inherit; - cursor: pointer; -} diff --git a/src/components/layout/Footer.tsx b/src/components/layout/Footer.tsx index 1ca6a81..dfa0369 100644 --- a/src/components/layout/Footer.tsx +++ b/src/components/layout/Footer.tsx @@ -1,6 +1,5 @@ import { SITE_LINKS } from "../../data/siteContent"; import { useLocale } from "../../i18n/LocaleProvider"; -import { useCrowdfundingModal } from "../../providers/CrowdfundingModalProvider"; import styles from "./Footer.module.css"; @@ -12,11 +11,9 @@ const FOOTER_LINK_KEYS = [ "support", ] as const; -const FOOTER_HREFS: Record< - Exclude<(typeof FOOTER_LINK_KEYS)[number], "buy">, - string -> = { +const FOOTER_HREFS: Record<(typeof FOOTER_LINK_KEYS)[number], string> = { download: SITE_LINKS.download, + buy: SITE_LINKS.pricing, faq: SITE_LINKS.faq, enterKey: SITE_LINKS.enterKey, support: SITE_LINKS.support, @@ -24,29 +21,17 @@ const FOOTER_HREFS: Record< export function Footer() { const { copy } = useLocale(); - const { openModal } = useCrowdfundingModal(); return ( diff --git a/src/components/layout/Header.tsx b/src/components/layout/Header.tsx index 86f957b..ebf105f 100644 --- a/src/components/layout/Header.tsx +++ b/src/components/layout/Header.tsx @@ -1,7 +1,6 @@ import { NAV_HREFS, NAV_LINK_KEYS, SITE_LINKS } from "../../data/siteContent"; import { useLocale } from "../../i18n/LocaleProvider"; import { Button } from "../ui/Button"; -import { BuyButton } from "../ui/BuyButton"; import { LanguageSwitcher } from "./LanguageSwitcher"; import styles from "./Header.module.css"; @@ -40,9 +39,13 @@ export function Header() { > {copy.cta.download} - + diff --git a/src/components/sections/CtaBanner.tsx b/src/components/sections/CtaBanner.tsx index 06ef91c..6b43d34 100644 --- a/src/components/sections/CtaBanner.tsx +++ b/src/components/sections/CtaBanner.tsx @@ -1,7 +1,6 @@ import { SITE_LINKS } from "../../data/siteContent"; import { useLocale } from "../../i18n/LocaleProvider"; import { Button } from "../ui/Button"; -import { BuyButton } from "../ui/BuyButton"; import styles from "./CtaBanner.module.css"; @@ -14,7 +13,9 @@ export function CtaBanner() {

{copy.ctaBanner.title}

- {copy.cta.buyLicense} +
diff --git a/src/components/sections/Hero.tsx b/src/components/sections/Hero.tsx index de3c576..ecb99bd 100644 --- a/src/components/sections/Hero.tsx +++ b/src/components/sections/Hero.tsx @@ -1,7 +1,6 @@ import { HERO_HIGHLIGHT_IDS, SITE_LINKS } from "../../data/siteContent"; import { useLocale } from "../../i18n/LocaleProvider"; import { Button } from "../ui/Button"; -import { BuyButton } from "../ui/BuyButton"; import { HeroMockup } from "./HeroMockup"; import styles from "./Hero.module.css"; @@ -26,7 +25,9 @@ export function Hero() {
- {copy.cta.buyLicense} +

{copy.hero.platformsLine}