diff --git a/management/pages/home/Image_homepage.jpg b/management/pages/home/Image_homepage.jpg new file mode 100644 index 0000000..37bd28b Binary files /dev/null and b/management/pages/home/Image_homepage.jpg differ diff --git a/src/components/sections/HeroSection.tsx b/src/components/sections/HeroSection.tsx index 875fba6..ef32136 100644 --- a/src/components/sections/HeroSection.tsx +++ b/src/components/sections/HeroSection.tsx @@ -263,149 +263,104 @@ export function HeroSection({ // ------------------------------------------------------------- // 3. Pure Front Page Hero View (for homepage /): - // Ultra-refined Typography, Optical Crystal Prism & Ambient Particles + // Matching User Reference Image: Image_homepage.jpg background, + // Left-aligned typography, pill buttons, and glass telemetry capsule // ------------------------------------------------------------- return ( -
- {/* 1. MagicUI Ambient Floating Particles (Desktop only, 0% CPU on mobile/tablets) */} - - - {/* 2. Interactive 3D WebGL Crystal Prism Canvas (Desktop Only - Completely Removed on Phones & Mobile Devices) */} -
-
- -
+
+ {/* 1. Background Image with Left Dark Gradient Overlay */} +
+ CRE AI Photo Magic + {/* Dark Gradient Overlay for Maximum Text Readability */} +
+ {/* Smooth Bottom Blend to Section Below */} +
- {/* 3. Radiant Multidimensional Chromatic Glow Mesh */} -
-
-
- - {/* 4. Center Hero Typography & Visual Atmosphere */} -
- {/* Grand Headline: Masterpiece Proportions, Zero Awkward Wraps */} -

- - + {/* 2. Left-Aligned Content Container */} +
+
+ {/* Masterpiece Headline */} +

+ Imagine. Transform. - - - - + + Create the Impossible. - - -

- - {/* Inspiring, Refined Editorial Subtitle */} -

- - Turn ordinary moments into extraordinary visual art. Instant, effortless, and private photo magic right in your browser. - -

- - {/* Luxury CTA Action Buttons */} -

- - - {secondaryCtaLabel} - - iOS / Android - - -
+ {/* Subtitle */} +

+ Turn ordinary moments into extraordinary visual art, Instant, effortless, and private photo magic right in your browser. +

- {/* Floating Glass Telemetry & Capability Capsule */} -
- {/* Metric 1 */} -
-
- 1.4M+ -
-
- Photos Transformed -
+ {/* Action Buttons */} + -
- - {/* Metric 2 */} -
-
- < 0.8s + {/* Glass Metrics Pill Capsule */} +
+ {/* Metric 1 */} +
+ + 1.4M+ + + + Photo Tranformed +
-
- Instant Inference -
-
-
- - {/* Metric 3 */} -
-
- 100% + {/* Metric 2 */} +
+ + <0.8s + + + Instant Interene +
-
- Client-Side Privacy -
-
-
- - {/* Metric 4 */} -
-
- 4K UHD + {/* Metric 3 */} +
+ + 100% + + + Client side privacy +
-
- Studio Resolution + + {/* Metric 4 */} +
+ + 4K UHD + + + Studio Resolution +
- - {/* Subtle Luxury Scroll Cue */} - - - Scroll to Explore - - - - -
); diff --git a/src/components/sections/ToolGridSection.tsx b/src/components/sections/ToolGridSection.tsx index dc3359d..3d9dad9 100644 --- a/src/components/sections/ToolGridSection.tsx +++ b/src/components/sections/ToolGridSection.tsx @@ -359,103 +359,103 @@ export function ToolGridSection({
)} - {/* Elegant Non-Sticky Category Hub & Search (Zero obstruction, no sticky bar under topbar) */} + {/* Persistent Sticky Search & Category Hub - Never disappears when scrolling */} {(showCategoryFilter || showSearch) && ( -
- {/* Search Bar - Center Aligned */} - {showSearch && ( -
- - setSearchQuery(e.target.value)} - className="w-full pl-10 pr-9 py-2.5 rounded-full text-xs sm:text-sm border border-slate-200/90 bg-white text-slate-900 placeholder-slate-400 focus:outline-none focus:border-blue-500 focus:ring-2 focus:ring-blue-500/20 shadow-sm" - /> - {searchQuery && ( - - )} -
- )} - - {/* Category Navigation Dock: - - On desktop: Centered floating glass pill capsule dock - - On mobile: Smooth edge-padded horizontal touch rail */} - {showCategoryFilter && ( -
-
- {/* All Categories Pill */} - - - {/* Category Pills */} - {categorizedTools.map((group) => { - const isSelected = - selectedCategory === group.id && !searchQuery; - const catName = group.category - ? resolveLocalised(group.category.name, locale) - : group.id; - const theme = CATEGORY_THEMES[group.id]; - - return ( - + + {/* Category Pills */} + {categorizedTools.map((group) => { + const isSelected = + selectedCategory === group.id && !searchQuery; + const catName = group.category + ? resolveLocalised(group.category.name, locale) + : group.id; + const theme = CATEGORY_THEMES[group.id]; + + return ( + - ); - })} + + {theme?.icon || } + + {catName} + + {group.tools.length} + + + ); + })} +
-
- )} + )} + + {/* Search Bar */} + {showSearch && ( +
+ + setSearchQuery(e.target.value)} + className="w-full pl-8 sm:pl-9 pr-7 sm:pr-8 py-1.5 sm:py-2 rounded-full text-xs sm:text-sm border border-slate-200/90 bg-white text-slate-900 placeholder-slate-400 focus:outline-none focus:border-blue-500 focus:ring-2 focus:ring-blue-500/20 shadow-sm" + /> + {searchQuery && ( + + )} +
+ )} + )} diff --git a/src/components/ui/BrandLogo.tsx b/src/components/ui/BrandLogo.tsx index e172872..53f2197 100644 --- a/src/components/ui/BrandLogo.tsx +++ b/src/components/ui/BrandLogo.tsx @@ -6,6 +6,7 @@ interface BrandLogoProps { showWordmark?: boolean; className?: string; asLink?: boolean; + isDark?: boolean; } export function BrandLogo({ @@ -13,6 +14,7 @@ export function BrandLogo({ showWordmark = true, className = '', asLink = true, + isDark = false, }: BrandLogoProps) { const iconDimensions = { sm: { w: 34, h: 34, textScale: 'text-base', subText: 'text-[7px]' }, @@ -168,14 +170,14 @@ export function BrandLogo({ {showWordmark && (
- + CRE - + INNOVATIONS
- + Neural Vision Studio
diff --git a/src/components/ui/Navbar.tsx b/src/components/ui/Navbar.tsx index dfe18bc..1e0c8f9 100644 --- a/src/components/ui/Navbar.tsx +++ b/src/components/ui/Navbar.tsx @@ -3,19 +3,8 @@ import React, { useState, useEffect } from 'react'; import Link from 'next/link'; import { usePathname } from 'next/navigation'; -import { - Menu, - X, - Smartphone, - Layers, - ArrowUpRight, - Home, - ChevronRight, - Wrench, - Sparkles, - ShieldCheck -} from 'lucide-react'; -import { SiteConfig, resolveLocalised } from '@/types'; +import { Menu, X } from 'lucide-react'; +import { SiteConfig } from '@/types'; import { BrandLogo } from './BrandLogo'; interface NavbarProps { @@ -28,21 +17,19 @@ export function Navbar({ config, currentLocale }: NavbarProps) { const [mobileMenuOpen, setMobileMenuOpen] = useState(false); const pathname = usePathname(); + // Track scroll position: transforms from text buttons into semi-solid navbar useEffect(() => { - let lastScrolled = window.scrollY > 20; - if (lastScrolled !== isScrolled) { - setIsScrolled(lastScrolled); - } const handleScroll = () => { - const nextScrolled = window.scrollY > 20; - if (nextScrolled !== lastScrolled) { - lastScrolled = nextScrolled; - setIsScrolled(nextScrolled); - } + // On homepage, transform smoothly when scrolling towards the end of the hero image + const heroThreshold = typeof window !== 'undefined' ? Math.max(320, window.innerHeight * 0.7) : 450; + const threshold = pathname === '/' ? heroThreshold : 20; + setIsScrolled(window.scrollY > threshold); }; + + handleScroll(); window.addEventListener('scroll', handleScroll, { passive: true }); return () => window.removeEventListener('scroll', handleScroll); - }, []); + }, [pathname]); // Close mobile menu on Escape key useEffect(() => { @@ -54,7 +41,7 @@ export function Navbar({ config, currentLocale }: NavbarProps) { return () => document.removeEventListener('keydown', closeOnEscape); }, [mobileMenuOpen]); - // Lock body scroll on iOS/Mobile when mobile menu is open to prevent background bleed/scroll + // Lock body scroll on iOS/Mobile when mobile menu is open useEffect(() => { if (mobileMenuOpen) { document.body.style.overflow = 'hidden'; @@ -69,115 +56,119 @@ export function Navbar({ config, currentLocale }: NavbarProps) { }; }, [mobileMenuOpen]); + // Whether we are at top of homepage on the dark hero + const isHeroTransparent = pathname === '/' && !isScrolled; + return ( -
- {/* 1. Ultra-Smooth High-Performance Gradient Blur Canopy (Active only when menu is closed) */} - {!mobileMenuOpen && ( -
-
-
+
+ {/* Brand Logo */} +
+
- )} - {/* 2. Top Prismatic Micro-Highlight */} - {!mobileMenuOpen && ( -
- )} + {/* Center Navigation Links: + - On Hero: Clean white text buttons only (matching reference image) + - Scrolled: Subtle semi-solid pill links */} + - {/* Right CTA Button (Desktop only) */} -
- - - {resolveLocalised(config.nav.cta.label, currentLocale)} - - -
+ {/* Right CTA Button: Blue "Get the App" pill button */} +
+ + Get the App + +
- {/* Mobile Menu Trigger */} -
- -
+ {/* Mobile Menu Trigger */} +
+
- {/* Mobile Solid Opaque Drawer (100% Solid Warm Canvas - Zero Transparency Bleed or Text Collision) */} + {/* Mobile Drawer */} {mobileMenuOpen && ( )}