From 214c4a18521668b537fa09c4935bb2291954129c Mon Sep 17 00:00:00 2001 From: Hannah_Bagga Date: Fri, 26 Jun 2026 19:22:54 +0200 Subject: [PATCH] Spiderman Theme Fixed --- Web_Backgrounds/starforce-theme.css | 64 ------------------- Web_Backgrounds/starforce-tokens.json | 59 ----------------- src/app/(dashboard)/dashboard/page.tsx | 18 +----- src/app/api/dashboard/route.ts | 10 +-- src/app/api/settings/website-theme/route.ts | 4 +- src/app/layout.tsx | 1 - .../dashboard/lead-status-chart.tsx | 2 + .../dashboard/recent-leads-table.tsx | 10 +-- .../dashboard/stat-card-skeleton.tsx | 20 ++++++ src/components/dashboard/stat-card.tsx | 12 +++- src/components/layout/app-shell.tsx | 4 +- src/components/layout/topbar.tsx | 39 ++++++++++- src/components/leads/lead-status-badge.tsx | 20 +++--- src/components/settings/theme-settings.tsx | 3 +- src/lib/constants.ts | 10 +-- src/providers/website-theme-provider.tsx | 7 +- 16 files changed, 104 insertions(+), 179 deletions(-) delete mode 100644 Web_Backgrounds/starforce-theme.css delete mode 100644 Web_Backgrounds/starforce-tokens.json diff --git a/Web_Backgrounds/starforce-theme.css b/Web_Backgrounds/starforce-theme.css deleted file mode 100644 index f775502..0000000 --- a/Web_Backgrounds/starforce-theme.css +++ /dev/null @@ -1,64 +0,0 @@ -/* ============================================================================ - Starforce Theme — Dark cosmic with crimson accents and neon green glow - Captures the current starfield + drift + glow effects used live. - ============================================================================ */ - -.theme-starforce { - --background: 0 0% 10%; - --foreground: 210 40% 98%; - --card: 0 0% 9%; - --card-foreground: 210 40% 98%; - --popover: 222.2 84% 11%; - --popover-foreground: 210 40% 98%; - --primary: 0 100% 53%; - --primary-foreground: 222.2 47.4% 11.2%; - --secondary: 217.2 32.6% 17.5%; - --secondary-foreground: 210 40% 98%; - --muted: 217.2 32.6% 17.5%; - --muted-foreground: 215 20.2% 65.1%; - --accent: 217.2 32.6% 17.5%; - --accent-foreground: 210 40% 98%; - --destructive: 0 62.8% 30.6%; - --destructive-foreground: 210 40% 98%; - --border: 217.2 32.6% 17.5%; - --input: 217.2 32.6% 17.5%; - --ring: 0 100% 53%; - --radius: 0.5rem; - --sidebar: 0 0% 11%; - --sidebar-foreground: 210 40% 98%; - --sidebar-primary: 145 65% 50%; - --sidebar-primary-foreground: 0 0% 100%; - --sidebar-accent: 217.2 32.6% 17.5%; - --sidebar-accent-foreground: 210 40% 98%; - --sidebar-border: 217.2 32.6% 17.5%; - --sidebar-ring: 0 100% 53%; -} - -.theme-starforce body::before { - content: ""; - position: fixed; - inset: 0; - z-index: -1; - pointer-events: none; - background-image: - radial-gradient(1px 1px at 10% 20%, rgba(100,100,120,0.4) 0%, transparent 100%), - radial-gradient(1px 1px at 20% 40%, rgba(100,100,120,0.3) 0%, transparent 100%), - radial-gradient(1.5px 1.5px at 30% 10%, rgba(80,80,100,0.5) 0%, transparent 100%), - radial-gradient(1px 1px at 40% 60%, rgba(100,100,120,0.3) 0%, transparent 100%), - radial-gradient(1px 1px at 50% 80%, rgba(90,90,110,0.4) 0%, transparent 100%), - radial-gradient(1.5px 1.5px at 60% 30%, rgba(80,80,100,0.5) 0%, transparent 100%), - radial-gradient(1px 1px at 70% 50%, rgba(100,100,120,0.3) 0%, transparent 100%), - radial-gradient(1px 1px at 80% 90%, rgba(90,90,110,0.4) 0%, transparent 100%), - radial-gradient(1.5px 1.5px at 90% 15%, rgba(80,80,100,0.5) 0%, transparent 100%), - radial-gradient(1px 1px at 15% 70%, rgba(100,100,120,0.3) 0%, transparent 100%), - radial-gradient(1px 1px at 25% 90%, rgba(90,90,110,0.4) 0%, transparent 100%), - radial-gradient(1.5px 1.5px at 35% 35%, rgba(80,80,100,0.5) 0%, transparent 100%), - radial-gradient(1px 1px at 45% 15%, rgba(100,100,120,0.3) 0%, transparent 100%), - radial-gradient(1px 1px at 55% 75%, rgba(90,90,110,0.4) 0%, transparent 100%), - radial-gradient(1.5px 1.5px at 65% 55%, rgba(80,80,100,0.5) 0%, transparent 100%), - radial-gradient(1px 1px at 75% 25%, rgba(100,100,120,0.3) 0%, transparent 100%), - radial-gradient(1px 1px at 85% 65%, rgba(90,90,110,0.4) 0%, transparent 100%), - radial-gradient(1.5px 1.5px at 95% 45%, rgba(80,80,100,0.5) 0%, transparent 100%); - background-size: 200% 200%; - animation: drift 60s linear infinite; -} diff --git a/Web_Backgrounds/starforce-tokens.json b/Web_Backgrounds/starforce-tokens.json deleted file mode 100644 index 0a2ae4d..0000000 --- a/Web_Backgrounds/starforce-tokens.json +++ /dev/null @@ -1,59 +0,0 @@ -{ - "theme": { - "id": "starforce", - "name": "Starforce", - "description": "Dark cosmic theme with crimson accents, starfield background, and neon green glow effects", - "type": "dark", - "default": true - }, - "colors": { - "background": "hsl(0, 0%, 10%)", - "foreground": "hsl(210, 40%, 98%)", - "card": "hsl(0, 0%, 9%)", - "cardForeground": "hsl(210, 40%, 98%)", - "popover": "hsl(222.2, 84%, 11%)", - "popoverForeground": "hsl(210, 40%, 98%)", - "primary": "hsl(0, 100%, 53%)", - "primaryForeground": "hsl(222.2, 47.4%, 11.2%)", - "secondary": "hsl(217.2, 32.6%, 17.5%)", - "secondaryForeground": "hsl(210, 40%, 98%)", - "muted": "hsl(217.2, 32.6%, 17.5%)", - "mutedForeground": "hsl(215, 20.2%, 65.1%)", - "accent": "hsl(217.2, 32.6%, 17.5%)", - "accentForeground": "hsl(210, 40%, 98%)", - "destructive": "hsl(0, 62.8%, 30.6%)", - "destructiveForeground": "hsl(210, 40%, 98%)", - "border": "hsl(217.2, 32.6%, 17.5%)", - "input": "hsl(217.2, 32.6%, 17.5%)", - "ring": "hsl(0, 100%, 53%)", - "sidebar": "hsl(0, 0%, 11%)", - "sidebarForeground": "hsl(210, 40%, 98%)", - "sidebarPrimary": "hsl(145, 65%, 50%)", - "sidebarPrimaryForeground": "hsl(0, 0%, 100%)", - "sidebarAccent": "hsl(217.2, 32.6%, 17.5%)", - "sidebarAccentForeground": "hsl(210, 40%, 98%)", - "sidebarBorder": "hsl(217.2, 32.6%, 17.5%)", - "sidebarRing": "hsl(0, 100%, 53%)" - }, - "borderRadius": "0.5rem", - "typography": { - "fontFamily": "Inter, sans-serif", - "headingFont": "Inter, sans-serif" - }, - "keyColors": { - "primary": "#FF0000", - "background": "#1a1a1a", - "card": "#171717", - "sidebar": "#1c1c1c", - "border": "#2a2a35", - "text": "#e8e8ef", - "mutedText": "#888888", - "glow": "#39ff14" - }, - "effects": { - "starfield": true, - "starTwinkle": true, - "starDrift": true, - "textGlow": "#39ff14" - } -} diff --git a/src/app/(dashboard)/dashboard/page.tsx b/src/app/(dashboard)/dashboard/page.tsx index 0a9198f..d061bf2 100644 --- a/src/app/(dashboard)/dashboard/page.tsx +++ b/src/app/(dashboard)/dashboard/page.tsx @@ -24,12 +24,8 @@ import { SelectValue, } from "@/components/ui/select" import { DashboardStats } from "@/types" -import { CrossedLightsabers } from "@/components/dashboard/crossed-lightsabers" -import { StarField } from "@/components/dashboard/star-field" -import { useWebsiteTheme } from "@/providers/website-theme-provider" export default function DashboardPage() { - const { websiteTheme: theme } = useWebsiteTheme() const [period, setPeriod] = useState("6months") const [stats, setStats] = useState(null) const pollingRef = useRef(null) @@ -67,22 +63,12 @@ export default function DashboardPage() { return (
- {theme === "starforce" && }
Dashboard} + title={Dashboard} description="Overview of your sales pipeline" > - {theme === "starforce" && ( - - Trust the Force, Find your Path - - )} - {theme === "starforce" && }