From 5a2027cb7834d424a44b1de4aa0e89d585a1c6f8 Mon Sep 17 00:00:00 2001 From: Usman Baig Date: Fri, 30 Jan 2026 14:48:54 +0100 Subject: [PATCH] feat: redesign homepage layout with enhanced visuals and glass card effects, including gradient text and new badge styles --- app/page.tsx | 111 +++++++++++++++++++++++---------------------- styles/globals.css | 35 ++++++++++++++ 2 files changed, 93 insertions(+), 53 deletions(-) diff --git a/app/page.tsx b/app/page.tsx index f9c44e2..29f0d46 100644 --- a/app/page.tsx +++ b/app/page.tsx @@ -55,73 +55,78 @@ export default function HomePage() { if (!user) { return ( -
- {/* Hero Section */} -
-
- - - +
+ + {/* * --- 1. ATMOSPHERE (Background) --- */} +
+ {/* * Top-left Orange Glow */} +
+ {/* * Bottom-right Neutral Glow */} +
+ {/* * Grid Pattern with Radial Mask */} +
+
+ +
+ + {/* * --- 2. BADGE --- */} +
+ + + Privacy-First Analytics - Privacy-First Pulse
- -

+ + {/* * --- 3. HEADLINE --- */} +

Simple analytics for
- privacy-conscious apps. + + privacy-conscious + {/* * SVG Underline from Main Site */} + + + + + {' '}apps.

- -

+ +

Respect your users' privacy while getting the insights you need. No cookies, no IP tracking, fully GDPR compliant.

-
- -
- {/* Features Grid */} -
-
-
- + {/* * --- 5. GLASS CARDS --- */} +
+ {[ + { icon: LockIcon, title: "Privacy First", desc: "We don't track personal data. No IP addresses, no fingerprints, no cookies." }, + { icon: BarChartIcon, title: "Simple Insights", desc: "Get the metrics that matter without the clutter. Page views, visitors, and sources." }, + { icon: ZapIcon, title: "Lightweight", desc: "Our script is less than 1kb. It won't slow down your site or affect your SEO." } + ].map((feature, i) => ( +
+
+ +
+

{feature.title}

+

+ {feature.desc} +

-

Privacy First

-

- We don't track personal data. No IP addresses, no fingerprints, no cookies. -

-
-
-
- -
-

Simple Insights

-

- Get the metrics that matter without the clutter. Page views, visitors, and sources. -

-
-
-
- -
-

Lightweight

-

- Our script is less than 1kb. It won't slow down your site or affect your SEO. -

-
+ ))}
+
) @@ -142,7 +147,7 @@ export default function HomePage() { Add New Site
- {/* Global Overview */} + {/* * Global Overview */}

Total Sites

@@ -161,4 +166,4 @@ export default function HomePage() {
) -} \ No newline at end of file +} diff --git a/styles/globals.css b/styles/globals.css index 4c3ece6..89290cd 100644 --- a/styles/globals.css +++ b/styles/globals.css @@ -18,3 +18,38 @@ @apply bg-ciphera-gradient-dark; } } + +@layer components { + /* * Glass Card Effect - Crucial for the "Premium" feel */ + .card-glass { + @apply bg-white/80 dark:bg-neutral-900/80; + @apply backdrop-blur-xl; + @apply border border-neutral-200/50 dark:border-neutral-800/50; + @apply rounded-2xl; + @apply transition-all duration-300 ease-out; + } + + /* * Gradient Text for Headlines */ + .gradient-text { + @apply bg-gradient-to-r from-brand-orange to-[#E54E00] bg-clip-text text-transparent; + } + + /* * The "Pulse" Badge */ + .badge-primary { + @apply inline-flex items-center gap-1.5 px-3 py-1 rounded-full text-xs font-semibold uppercase tracking-wider; + @apply bg-brand-orange/10 text-brand-orange border border-brand-orange/20; + } +} + +@layer utilities { + /* * The Background Grid */ + .bg-grid-pattern { + background-image: radial-gradient(circle at 1px 1px, currentColor 1px, transparent 0); + background-size: 32px 32px; + } + + /* * Glow Effects */ + .glow-orange { + box-shadow: 0 0 40px -10px rgba(253, 94, 15, 0.5); + } +}