From d4afbc19301f6adca8f8011c2ce5d6a8e31394bc Mon Sep 17 00:00:00 2001 From: Usman Baig Date: Thu, 22 Jan 2026 20:40:17 +0100 Subject: [PATCH] refactor(ui): update button and input components to use brand-orange styles, enhancing UI consistency across the application --- app/layout.tsx | 2 +- app/onboarding/page.tsx | 2 +- app/sites/[id]/settings/page.tsx | 2 +- app/sites/new/page.tsx | 24 +++++++++----------- components/WorkspaceSwitcher.tsx | 6 ++--- components/settings/OrganizationSettings.tsx | 4 ++-- components/ui/Button.tsx | 2 +- components/ui/Input.tsx | 2 +- 8 files changed, 21 insertions(+), 23 deletions(-) diff --git a/app/layout.tsx b/app/layout.tsx index 7c1fb24..46246fb 100644 --- a/app/layout.tsx +++ b/app/layout.tsx @@ -63,7 +63,7 @@ export default function RootLayout({ success: 'group-[.toast]:!text-green-600 group-[.toast]:dark:!text-green-400', error: 'group-[.toast]:!text-red-600 group-[.toast]:dark:!text-red-400', warning: 'group-[.toast]:!text-amber-600 group-[.toast]:dark:!text-amber-400', - info: 'group-[.toast]:!text-blue-600 group-[.toast]:dark:!text-blue-400', + info: 'group-[.toast]:!text-brand-orange group-[.toast]:dark:!text-brand-orange', }, }} /> diff --git a/app/onboarding/page.tsx b/app/onboarding/page.tsx index 8aebe89..f4d24d6 100644 --- a/app/onboarding/page.tsx +++ b/app/onboarding/page.tsx @@ -95,7 +95,7 @@ export default function OnboardingPage() {
diff --git a/app/sites/[id]/settings/page.tsx b/app/sites/[id]/settings/page.tsx index 59e3274..e55fdd3 100644 --- a/app/sites/[id]/settings/page.tsx +++ b/app/sites/[id]/settings/page.tsx @@ -307,7 +307,7 @@ export default function SiteSettingsPage() { {/* Content Area */}
{!canEdit && ( -
+

You have read-only access to this site. Contact an admin to make changes.

diff --git a/app/sites/new/page.tsx b/app/sites/new/page.tsx index 6ad79d0..441f21c 100644 --- a/app/sites/new/page.tsx +++ b/app/sites/new/page.tsx @@ -4,6 +4,8 @@ import { useState } from 'react' import { useRouter } from 'next/navigation' import { createSite } from '@/lib/api/sites' import { toast } from 'sonner' +import { Button } from '@/components/ui/Button' +import { Input } from '@/components/ui/Input' export default function NewSitePage() { const router = useRouter() @@ -39,13 +41,11 @@ export default function NewSitePage() { - setFormData({ ...formData, name: e.target.value })} - className="w-full px-4 py-2 border border-neutral-300 dark:border-neutral-700 rounded-lg bg-white dark:bg-neutral-800 text-neutral-900 dark:text-white focus:ring-2 focus:ring-brand-orange focus:border-transparent" placeholder="My Website" />
@@ -54,13 +54,11 @@ export default function NewSitePage() { - setFormData({ ...formData, domain: e.target.value.toLowerCase().trim() })} - className="w-full px-4 py-2 border border-neutral-300 dark:border-neutral-700 rounded-lg bg-white dark:bg-neutral-800 text-neutral-900 dark:text-white focus:ring-2 focus:ring-brand-orange focus:border-transparent" placeholder="example.com" />

@@ -69,20 +67,20 @@ export default function NewSitePage() {

- - +
diff --git a/components/WorkspaceSwitcher.tsx b/components/WorkspaceSwitcher.tsx index 29c2466..93fe0aa 100644 --- a/components/WorkspaceSwitcher.tsx +++ b/components/WorkspaceSwitcher.tsx @@ -80,8 +80,8 @@ export default function WorkspaceSwitcher({ orgs, activeOrgId }: { orgs: Organiz }`} >
-
- +
+
{org.organization_name} @@ -97,7 +97,7 @@ export default function WorkspaceSwitcher({ orgs, activeOrgId }: { orgs: Organiz {/* Create New */}
diff --git a/components/settings/OrganizationSettings.tsx b/components/settings/OrganizationSettings.tsx index a0023b8..da2c998 100644 --- a/components/settings/OrganizationSettings.tsx +++ b/components/settings/OrganizationSettings.tsx @@ -345,7 +345,7 @@ export default function OrganizationSettings() {