From 3f3ff41d01f5948694e27600ae824c31d1b75246 Mon Sep 17 00:00:00 2001 From: orveth Date: Fri, 5 Jun 2026 15:13:56 -0700 Subject: [PATCH] refactor(homepage): eliminate styles.css for full Tailwind migration Rebased onto post-monorepo master; paths relocated app/ -> apps/web-wallet/app/. Original commits: - refactor(homepage): move easy CSS rules to Tailwind utilities (phase 1) - refactor(homepage): inline font-mono + swap ::before pseudos for sibling divs (phase 2) - refactor(homepage): replace ancestor-state animation triggers with data-state + group-data variants (phase 3) - refactor(homepage): delete styles.css after full Tailwind migration (phase 4) --- .../homepage/components/join-beta-button.tsx | 2 +- .../homepage/components/section-label.tsx | 2 +- .../features/homepage/components/section.tsx | 1 + .../app/features/homepage/marketing-page.tsx | 21 +- .../homepage/sections/buy-section.tsx | 13 +- .../homepage/sections/cta-section.tsx | 2 +- .../homepage/sections/footer-section.tsx | 4 +- .../homepage/sections/hero-section.tsx | 17 +- .../homepage/sections/merchants-section.tsx | 4 +- .../homepage/sections/send-section.tsx | 30 ++- .../homepage/sections/spend-section.tsx | 17 +- .../homepage/sections/wallet-section.tsx | 6 +- .../app/features/homepage/styles.css | 184 ------------------ apps/web-wallet/app/routes/_public.home.tsx | 4 + apps/web-wallet/app/tailwind.css | 13 +- 15 files changed, 90 insertions(+), 230 deletions(-) delete mode 100644 apps/web-wallet/app/features/homepage/styles.css diff --git a/apps/web-wallet/app/features/homepage/components/join-beta-button.tsx b/apps/web-wallet/app/features/homepage/components/join-beta-button.tsx index bd5da348d..901906162 100644 --- a/apps/web-wallet/app/features/homepage/components/join-beta-button.tsx +++ b/apps/web-wallet/app/features/homepage/components/join-beta-button.tsx @@ -23,7 +23,7 @@ export function JoinBetaButton({ +
diff --git a/apps/web-wallet/app/features/homepage/sections/buy-section.tsx b/apps/web-wallet/app/features/homepage/sections/buy-section.tsx index 2760bd8dd..1ee03328e 100644 --- a/apps/web-wallet/app/features/homepage/sections/buy-section.tsx +++ b/apps/web-wallet/app/features/homepage/sections/buy-section.tsx @@ -77,20 +77,23 @@ export function BuySection() {
01_buy -

+

Buy a card in seconds.

Buy a gift card with bitcoin, or use the Cash App to buy directly from your bank account.

-
+
lightning · cash app · settled instantly
-
+
{header.brand} @@ -231,7 +234,7 @@ function PaidBody() {
-
+
You paid $7.98
diff --git a/apps/web-wallet/app/features/homepage/sections/cta-section.tsx b/apps/web-wallet/app/features/homepage/sections/cta-section.tsx index ea01955b9..8fa627ea7 100644 --- a/apps/web-wallet/app/features/homepage/sections/cta-section.tsx +++ b/apps/web-wallet/app/features/homepage/sections/cta-section.tsx @@ -13,7 +13,7 @@ export function CtaSection() {
for_users
-

+

Be early.

diff --git a/apps/web-wallet/app/features/homepage/sections/footer-section.tsx b/apps/web-wallet/app/features/homepage/sections/footer-section.tsx index c263e2ddd..191085663 100644 --- a/apps/web-wallet/app/features/homepage/sections/footer-section.tsx +++ b/apps/web-wallet/app/features/homepage/sections/footer-section.tsx @@ -38,12 +38,12 @@ export function FooterSection() { aria-label={s.label} target="_blank" rel="noopener noreferrer" - className="footer-social-link inline-flex h-10 w-10 items-center justify-center rounded-full border border-[color:var(--mk-border)] text-[color:var(--mk-text-muted)] transition-[color,border-color,background-color] duration-200 hover:border-[color:var(--mk-border-bright)] hover:bg-[rgba(255,255,255,0.03)] hover:text-[color:var(--mk-text)]" + className="group inline-flex h-10 w-10 items-center justify-center rounded-full border border-[color:var(--mk-border)] text-[color:var(--mk-text-muted)] transition-[color,border-color,background-color] duration-200 hover:border-[color:var(--mk-border-bright)] hover:bg-[rgba(255,255,255,0.03)] hover:text-[color:var(--mk-text)]" > ))} diff --git a/apps/web-wallet/app/features/homepage/sections/hero-section.tsx b/apps/web-wallet/app/features/homepage/sections/hero-section.tsx index a30a434af..635c0c9d2 100644 --- a/apps/web-wallet/app/features/homepage/sections/hero-section.tsx +++ b/apps/web-wallet/app/features/homepage/sections/hero-section.tsx @@ -219,16 +219,16 @@ export function HeroSection() { return (

-
+
agi.cash · public beta

Bitcoin @@ -237,19 +237,22 @@ export function HeroSection() {

Buy, send and spend bitcoin gift cards from your favorite merchants. All on the most advanced Bitcoin wallet.

-
+
buy · send · spend @@ -295,7 +298,7 @@ export function HeroSection() {