From 92c67da0de555d63cf8c78d6ba3f4083bc6b9f5b Mon Sep 17 00:00:00 2001 From: Jaydams Date: Tue, 26 May 2026 19:59:17 +0100 Subject: [PATCH] refactor(css): extract repeated Tailwind patterns into @layer components --- .claude/settings.local.json | 15 ++++++++++++- app/activity/page.tsx | 6 +++--- app/auth/2fa/page.tsx | 2 +- app/auth/error.tsx | 6 +++--- app/auth/signin/page.tsx | 4 ++-- app/auth/signup/page.tsx | 6 +++--- app/auth/wallet-setup/page.tsx | 4 ++-- app/bills/catalog/page.tsx | 8 +++---- app/bills/error.tsx | 6 +++--- app/bills/page.tsx | 4 ++-- app/bills/pay/page.tsx | 8 +++---- app/burn/page.tsx | 8 +++---- app/business/sme/page.tsx | 4 ++-- app/currency/page.tsx | 12 +++++------ app/error.tsx | 6 +++--- app/globals.css | 34 ++++++++++++++++++++++++++++++ app/help/page.tsx | 8 +++---- app/lending/admin/page.tsx | 4 ++-- app/lending/page.tsx | 4 ++-- app/me/activity/page.tsx | 8 +++---- app/me/error.tsx | 6 +++--- app/me/page.tsx | 4 ++-- app/me/settings/contacts/page.tsx | 12 +++++------ app/me/settings/guardians/page.tsx | 12 +++++------ app/me/settings/page.tsx | 6 +++--- app/me/settings/receive/page.tsx | 18 ++++++++-------- app/me/settings/security/page.tsx | 6 +++--- app/me/settings/wallet/page.tsx | 8 +++---- app/mint/page.tsx | 12 +++++------ app/page.tsx | 2 +- app/rates/page.tsx | 8 +++---- app/recovery/page.tsx | 2 +- app/reserves/page.tsx | 8 +++---- app/savings/deposit/page.tsx | 12 +++++------ app/savings/error.tsx | 6 +++--- app/savings/page.tsx | 8 +++---- app/savings/withdraw/page.tsx | 12 +++++------ app/send/[id]/page.tsx | 24 ++++++++++----------- app/send/error.tsx | 6 +++--- app/send/page.tsx | 4 ++-- app/transactions/[id]/page.tsx | 24 ++++++++++----------- app/transactions/error.tsx | 6 +++--- app/wallet/error.tsx | 6 +++--- app/wallet/page.tsx | 4 ++-- components/error-boundary.tsx | 4 ++-- 45 files changed, 212 insertions(+), 165 deletions(-) diff --git a/.claude/settings.local.json b/.claude/settings.local.json index 6708181..1a83ec3 100644 --- a/.claude/settings.local.json +++ b/.claude/settings.local.json @@ -1,7 +1,20 @@ { "permissions": { "allow": [ - "Bash(git merge *)" + "Bash(git merge *)", + "Bash(grep -oP '`[^`]*`')", + "Bash(sed 's/`//g')", + "Bash(xargs perl -i -pe 's/sticky top-0 z-10 border-b border-border bg-card\\\\/95 backdrop-blur-sm/page-header/g')", + "Bash(xargs perl -i -pe 's/px-4 py-3 flex items-center gap-3/page-header-row/g')", + "Bash(xargs perl -i -pe 's/text-lg font-bold text-foreground/page-title/g')", + "Bash(xargs perl -i -pe 's/text-sm font-medium text-foreground mb-2 block/form-label/g')", + "Bash(xargs perl -i -pe 's/flex min-h-\\\\[400px\\\\] flex-col items-center justify-center gap-4 p-6 text-center/error-state/g')", + "Bash(xargs perl -i -pe 's/rounded-full bg-red-100 dark:bg-red-900\\\\/30 p-3/error-icon-wrapper/g')", + "Bash(xargs perl -i -pe 's/h-8 w-8 text-red-600 dark:text-red-400/error-icon/g')", + "Bash(xargs perl -i -pe 's/flex items-center justify-center min-w-\\\\[44px\\\\] min-h-\\\\[44px\\\\] -m-2/touch-target/g')", + "Bash(npx tsc *)", + "Bash(git -C /Users/user/Documents/Phanta/acbu-frontend diff app/burn/page.tsx)", + "Bash(git -C /Users/user/Documents/Phanta/acbu-frontend diff app/send/page.tsx)" ] } } diff --git a/app/activity/page.tsx b/app/activity/page.tsx index 9d66e52..8d35724 100644 --- a/app/activity/page.tsx +++ b/app/activity/page.tsx @@ -40,10 +40,10 @@ export default function ActivityPage() { return ( <> -
-
+
+
-

Activity

+

Activity

diff --git a/app/auth/2fa/page.tsx b/app/auth/2fa/page.tsx index 28e126c..0c8e27c 100644 --- a/app/auth/2fa/page.tsx +++ b/app/auth/2fa/page.tsx @@ -104,7 +104,7 @@ function TwoFactorForm() {
diff --git a/app/auth/error.tsx b/app/auth/error.tsx index 854eae6..acf7050 100644 --- a/app/auth/error.tsx +++ b/app/auth/error.tsx @@ -29,9 +29,9 @@ export default function AuthError({ }; return ( -
-
- +
+
+
diff --git a/app/auth/signin/page.tsx b/app/auth/signin/page.tsx index c2d0f41..072c371 100644 --- a/app/auth/signin/page.tsx +++ b/app/auth/signin/page.tsx @@ -121,7 +121,7 @@ function SignInForm() {
@@ -138,7 +138,7 @@ function SignInForm() {
-