feat(brand): bespoke CRE Innovations vector logo and neo-glass navigation
This commit is contained in:
@@ -0,0 +1,108 @@
|
||||
import React from 'react';
|
||||
import Link from 'next/link';
|
||||
|
||||
interface BrandLogoProps {
|
||||
size?: 'sm' | 'md' | 'lg';
|
||||
showWordmark?: boolean;
|
||||
className?: string;
|
||||
asLink?: boolean;
|
||||
}
|
||||
|
||||
export function BrandLogo({
|
||||
size = 'md',
|
||||
showWordmark = true,
|
||||
className = '',
|
||||
asLink = true,
|
||||
}: BrandLogoProps) {
|
||||
const iconDimensions = {
|
||||
sm: { w: 32, h: 32, textScale: 'text-base', subText: 'text-[7px]' },
|
||||
md: { w: 40, h: 40, textScale: 'text-xl', subText: 'text-[9px]' },
|
||||
lg: { w: 52, h: 52, textScale: 'text-2xl', subText: 'text-[11px]' },
|
||||
}[size];
|
||||
|
||||
const content = (
|
||||
<div className={`group flex items-center gap-3 select-none ${className}`}>
|
||||
{/* Precision Geometric Aperture Emblem */}
|
||||
<div
|
||||
className="relative flex items-center justify-center shrink-0 transition-transform duration-300 group-hover:scale-105"
|
||||
style={{ width: iconDimensions.w, height: iconDimensions.h }}
|
||||
>
|
||||
{/* Ambient Radial Hover Glow */}
|
||||
<div className="absolute inset-0 rounded-full bg-gradient-to-tr from-cyan-500/20 via-purple-500/20 to-pink-500/20 blur-md opacity-0 group-hover:opacity-100 transition-opacity duration-500 pointer-events-none" />
|
||||
|
||||
<svg
|
||||
viewBox="0 0 100 100"
|
||||
fill="none"
|
||||
className="w-full h-full drop-shadow-[0_0_12px_rgba(0,240,255,0.35)]"
|
||||
>
|
||||
<defs>
|
||||
<linearGradient id="bl-cyan" x1="0%" y1="0%" x2="100%" y2="100%">
|
||||
<stop offset="0%" stopColor="#00F0FF" />
|
||||
<stop offset="100%" stopColor="#3B82F6" />
|
||||
</linearGradient>
|
||||
<linearGradient id="bl-purple" x1="0%" y1="0%" x2="100%" y2="100%">
|
||||
<stop offset="0%" stopColor="#7928CA" />
|
||||
<stop offset="100%" stopColor="#FF0080" />
|
||||
</linearGradient>
|
||||
<linearGradient id="bl-emerald" x1="0%" y1="0%" x2="100%" y2="100%">
|
||||
<stop offset="0%" stopColor="#10B981" />
|
||||
<stop offset="100%" stopColor="#00F0FF" />
|
||||
</linearGradient>
|
||||
<radialGradient id="bl-core" cx="50%" cy="50%" r="50%">
|
||||
<stop offset="0%" stopColor="#FFFFFF" />
|
||||
<stop offset="45%" stopColor="#00F0FF" stopOpacity="0.8" />
|
||||
<stop offset="100%" stopColor="#00F0FF" stopOpacity="0" />
|
||||
</radialGradient>
|
||||
</defs>
|
||||
|
||||
{/* Precision outer neural ring */}
|
||||
<circle cx="50" cy="50" r="44" stroke="rgba(255, 255, 255, 0.12)" strokeWidth="1.5" strokeDasharray="3 5" />
|
||||
|
||||
{/* Aperture Tri-blade Geometry */}
|
||||
<path d="M 50 14 C 68 14, 82 26, 84 44 C 74 38, 62 38, 50 44 C 42 34, 46 22, 50 14 Z" fill="url(#bl-cyan)" opacity="0.95" />
|
||||
<path d="M 84 56 C 80 74, 66 84, 50 86 C 54 74, 50 62, 40 54 C 52 48, 66 48, 84 56 Z" fill="url(#bl-purple)" opacity="0.95" />
|
||||
<path d="M 38 82 C 22 76, 14 62, 16 44 C 26 50, 38 48, 48 42 C 46 56, 44 70, 38 82 Z" fill="url(#bl-emerald)" opacity="0.95" />
|
||||
|
||||
{/* Neural Ray Intersections */}
|
||||
<path d="M 50 20 L 76 68 L 24 68 Z" stroke="rgba(255, 255, 255, 0.45)" strokeWidth="1.4" fill="none" />
|
||||
|
||||
{/* Glowing Optical Core */}
|
||||
<circle cx="50" cy="52" r="13" fill="url(#bl-core)" />
|
||||
<circle cx="50" cy="52" r="4" fill="#FFFFFF" />
|
||||
|
||||
{/* Apex Nodes */}
|
||||
<circle cx="50" cy="20" r="2.5" fill="#00F0FF" />
|
||||
<circle cx="76" cy="68" r="2.5" fill="#FF0080" />
|
||||
<circle cx="24" cy="68" r="2.5" fill="#10B981" />
|
||||
</svg>
|
||||
</div>
|
||||
|
||||
{/* Typographic Wordmark */}
|
||||
{showWordmark && (
|
||||
<div className="flex flex-col">
|
||||
<div className="flex items-center tracking-tight leading-none">
|
||||
<span className={`font-display font-black text-transparent bg-clip-text bg-gradient-to-r from-white via-cyan-200 to-cyan-400 tracking-[0.1em] ${iconDimensions.textScale}`}>
|
||||
CRE
|
||||
</span>
|
||||
<span className={`font-display font-semibold text-slate-100 tracking-[0.16em] ml-1.5 ${iconDimensions.textScale}`}>
|
||||
INNOVATIONS
|
||||
</span>
|
||||
</div>
|
||||
<span className={`font-mono text-cyan-400/90 tracking-[0.25em] uppercase font-medium mt-0.5 ${iconDimensions.subText}`}>
|
||||
Neural Vision Studio
|
||||
</span>
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
);
|
||||
|
||||
if (asLink) {
|
||||
return (
|
||||
<Link href="/" className="inline-block outline-none focus-visible:ring-2 focus-visible:ring-cyan-500 rounded-lg">
|
||||
{content}
|
||||
</Link>
|
||||
);
|
||||
}
|
||||
|
||||
return content;
|
||||
}
|
||||
@@ -1,7 +1,8 @@
|
||||
import React from 'react';
|
||||
import Link from 'next/link';
|
||||
import { ShieldCheck, Heart, ArrowUpRight } from 'lucide-react';
|
||||
import { ShieldCheck, ArrowUpRight, Activity, Terminal } from 'lucide-react';
|
||||
import { SiteConfig, resolveLocalised } from '@/types';
|
||||
import { BrandLogo } from './BrandLogo';
|
||||
|
||||
interface FooterProps {
|
||||
config: SiteConfig;
|
||||
@@ -10,77 +11,89 @@ interface FooterProps {
|
||||
|
||||
export function Footer({ config, currentLocale }: FooterProps) {
|
||||
return (
|
||||
<footer className="bg-slate-900 text-slate-300 dark:bg-black border-t border-slate-800 transition-colors">
|
||||
<div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-14 lg:py-20">
|
||||
<div className="grid grid-cols-1 md:grid-cols-4 gap-10">
|
||||
{/* Brand info */}
|
||||
<footer className="bg-[#030508] text-slate-300 border-t border-white/[0.08] relative overflow-hidden">
|
||||
{/* Subtle background glow */}
|
||||
<div className="absolute top-0 left-1/2 -translate-x-1/2 w-3/4 h-24 bg-gradient-to-b from-cyan-500/5 to-transparent blur-2xl pointer-events-none" />
|
||||
|
||||
<div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-16 lg:py-20 relative z-10">
|
||||
<div className="grid grid-cols-1 md:grid-cols-4 gap-12">
|
||||
{/* Brand & Mission */}
|
||||
<div className="md:col-span-2 space-y-5">
|
||||
<div className="flex items-center space-x-3">
|
||||
<div className="w-10 h-10 rounded-2xl bg-gradient-to-tr from-blue-600 via-indigo-600 to-cyan-400 flex items-center justify-center text-white font-black text-sm tracking-tighter shadow-lg shadow-blue-500/20">
|
||||
CRE
|
||||
</div>
|
||||
<span className="text-2xl font-black text-white tracking-tight">
|
||||
CRE <span className="text-cyan-400">Innovations</span>
|
||||
</span>
|
||||
</div>
|
||||
<BrandLogo size="lg" />
|
||||
<p className="text-sm text-slate-400 max-w-md leading-relaxed">
|
||||
{resolveLocalised(config.brand.tagline, currentLocale)}. Commercial-grade deep learning vision models for portraits, e-commerce products, enhancement, and creative generative art.
|
||||
{resolveLocalised(config.brand.tagline, currentLocale)}. Ultra-low latency deep learning vision models for instant portrait retouching, hair-strand matting, 4K face enhancement, and vintage restoration.
|
||||
</p>
|
||||
<div className="inline-flex items-center space-x-2 text-xs text-emerald-400 bg-emerald-950/60 border border-emerald-800/80 px-3.5 py-1.5 rounded-full font-medium">
|
||||
<ShieldCheck className="w-4 h-4 text-emerald-400" />
|
||||
<span>Zero-Storage Guarantee: In-memory streaming inference with zero photo retention.</span>
|
||||
|
||||
<div className="flex flex-wrap items-center gap-3 pt-2">
|
||||
<div className="inline-flex items-center gap-2 text-xs text-emerald-400 bg-emerald-950/40 border border-emerald-500/30 px-3.5 py-1.5 rounded-full font-mono">
|
||||
<ShieldCheck className="w-4 h-4 text-emerald-400" />
|
||||
<span>Zero-Storage Policy: Ephemeral RAM Streaming Only</span>
|
||||
</div>
|
||||
|
||||
<div className="inline-flex items-center gap-2 text-xs text-cyan-400 bg-cyan-950/40 border border-cyan-500/30 px-3 py-1.5 rounded-full font-mono">
|
||||
<Activity className="w-3.5 h-3.5 text-cyan-400" />
|
||||
<span>99.98% System Uptime</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{/* Quick Links */}
|
||||
{/* Platform Suite */}
|
||||
<div className="space-y-4">
|
||||
<h4 className="text-xs font-bold uppercase tracking-wider text-white">
|
||||
Platform & Tools
|
||||
<h4 className="text-xs font-mono font-bold uppercase tracking-widest text-slate-100 flex items-center gap-2">
|
||||
<span className="w-1.5 h-1.5 rounded-full bg-cyan-400" />
|
||||
<span>Platform Suite</span>
|
||||
</h4>
|
||||
<ul className="space-y-2.5 text-xs sm:text-sm">
|
||||
<ul className="space-y-2.5 text-sm">
|
||||
<li>
|
||||
<Link href="/tools" className="text-slate-400 hover:text-cyan-400 transition-colors flex items-center space-x-1">
|
||||
<span>All Photo Tools</span>
|
||||
<Link href="/#tools-stack" className="text-slate-400 hover:text-cyan-400 transition-colors flex items-center gap-1.5">
|
||||
<span>Vertical Tools Stack</span>
|
||||
</Link>
|
||||
</li>
|
||||
<li>
|
||||
<Link href="/apps" className="text-slate-400 hover:text-cyan-400 transition-colors flex items-center space-x-1">
|
||||
<span>Mobile Apps Suite</span>
|
||||
<Link href="/tools" className="text-slate-400 hover:text-cyan-400 transition-colors flex items-center gap-1.5">
|
||||
<span>All Neural Vision Tools</span>
|
||||
</Link>
|
||||
</li>
|
||||
<li>
|
||||
<Link href="/pricing" className="text-slate-400 hover:text-cyan-400 transition-colors flex items-center space-x-1">
|
||||
<span>Pricing & Store Credits</span>
|
||||
<Link href="/apps" className="text-slate-400 hover:text-cyan-400 transition-colors flex items-center gap-1.5">
|
||||
<span>Mobile Applications</span>
|
||||
</Link>
|
||||
</li>
|
||||
<li>
|
||||
<Link href="/catalog-manager" className="text-slate-400 hover:text-cyan-400 transition-colors flex items-center space-x-1">
|
||||
<span>API Catalogue Inspector</span>
|
||||
<Link href="/pricing" className="text-slate-400 hover:text-cyan-400 transition-colors flex items-center gap-1.5">
|
||||
<span>Pricing & Licensing</span>
|
||||
</Link>
|
||||
</li>
|
||||
<li>
|
||||
<Link href="/catalog-manager" className="text-slate-400 hover:text-cyan-400 transition-colors inline-flex items-center gap-1">
|
||||
<Terminal className="w-3.5 h-3.5 text-cyan-400" />
|
||||
<span>Catalogue Inspector</span>
|
||||
<ArrowUpRight className="w-3 h-3 text-cyan-400" />
|
||||
</Link>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
{/* Trust & Legal */}
|
||||
{/* Trust & Architecture */}
|
||||
<div className="space-y-4">
|
||||
<h4 className="text-xs font-bold uppercase tracking-wider text-white">
|
||||
Trust & Legal
|
||||
<h4 className="text-xs font-mono font-bold uppercase tracking-widest text-slate-100 flex items-center gap-2">
|
||||
<span className="w-1.5 h-1.5 rounded-full bg-purple-400" />
|
||||
<span>Trust & Security</span>
|
||||
</h4>
|
||||
<ul className="space-y-2.5 text-xs sm:text-sm">
|
||||
<ul className="space-y-2.5 text-sm">
|
||||
<li>
|
||||
<Link href="/trust" className="text-slate-400 hover:text-cyan-400 transition-colors">
|
||||
Trust & Security Safeguards
|
||||
Security Architecture & Safeguards
|
||||
</Link>
|
||||
</li>
|
||||
<li>
|
||||
<Link href="/privacy" className="text-slate-400 hover:text-cyan-400 transition-colors">
|
||||
Privacy Policy
|
||||
Zero-Storage Privacy Policy
|
||||
</Link>
|
||||
</li>
|
||||
<li>
|
||||
<Link href="/terms" className="text-slate-400 hover:text-cyan-400 transition-colors">
|
||||
Terms of Service
|
||||
Commercial Terms of Service
|
||||
</Link>
|
||||
</li>
|
||||
</ul>
|
||||
@@ -88,11 +101,11 @@ export function Footer({ config, currentLocale }: FooterProps) {
|
||||
</div>
|
||||
|
||||
{/* Bottom Bar */}
|
||||
<div className="mt-14 pt-8 border-t border-slate-800 flex flex-col sm:flex-row items-center justify-between text-xs text-slate-500 space-y-3 sm:space-y-0">
|
||||
<p>{config.footer.copyright}</p>
|
||||
<p className="flex items-center space-x-1.5">
|
||||
<span>Engineering excellence by CRE Innovations</span>
|
||||
<span className="w-1.5 h-1.5 rounded-full bg-cyan-400"></span>
|
||||
<div className="mt-16 pt-8 border-t border-white/[0.08] flex flex-col sm:flex-row items-center justify-between text-xs text-slate-500 gap-4">
|
||||
<p className="font-mono">{config.footer.copyright}</p>
|
||||
<p className="flex items-center gap-2 font-mono text-slate-400">
|
||||
<span>Powered by CRE Innovations Neural Vision Core v2.4</span>
|
||||
<span className="w-1.5 h-1.5 rounded-full bg-cyan-400 animate-pulse" />
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -3,8 +3,9 @@
|
||||
import React, { useState, useEffect } from 'react';
|
||||
import Link from 'next/link';
|
||||
import { usePathname } from 'next/navigation';
|
||||
import { Sparkles, Moon, Sun, Menu, X, Smartphone, Layers, ChevronRight, Zap } from 'lucide-react';
|
||||
import { Menu, X, Smartphone, Layers, Sparkles, Activity } from 'lucide-react';
|
||||
import { SiteConfig, resolveLocalised } from '@/types';
|
||||
import { BrandLogo } from './BrandLogo';
|
||||
|
||||
interface NavbarProps {
|
||||
config: SiteConfig;
|
||||
@@ -14,142 +15,137 @@ interface NavbarProps {
|
||||
export function Navbar({ config, currentLocale }: NavbarProps) {
|
||||
const [isScrolled, setIsScrolled] = useState(false);
|
||||
const [mobileMenuOpen, setMobileMenuOpen] = useState(false);
|
||||
const [isDark, setIsDark] = useState(false);
|
||||
const pathname = usePathname();
|
||||
|
||||
useEffect(() => {
|
||||
const handleScroll = () => {
|
||||
setIsScrolled(window.scrollY > 15);
|
||||
setIsScrolled(window.scrollY > 20);
|
||||
};
|
||||
window.addEventListener('scroll', handleScroll, { passive: true });
|
||||
return () => window.removeEventListener('scroll', handleScroll);
|
||||
}, []);
|
||||
|
||||
const toggleTheme = () => {
|
||||
const nextDark = !isDark;
|
||||
setIsDark(nextDark);
|
||||
if (nextDark) {
|
||||
document.documentElement.classList.add('dark');
|
||||
} else {
|
||||
document.documentElement.classList.remove('dark');
|
||||
}
|
||||
};
|
||||
|
||||
return (
|
||||
<header
|
||||
className={`sticky top-0 z-50 transition-all duration-300 ${
|
||||
className={`sticky top-0 z-50 transition-all duration-300 px-4 sm:px-6 lg:px-8 py-3.5 ${
|
||||
isScrolled
|
||||
? 'bg-white/85 dark:bg-slate-950/85 backdrop-blur-xl shadow-lg shadow-slate-900/5 dark:shadow-black/40 border-b border-slate-200/80 dark:border-slate-800/80'
|
||||
: 'bg-white/50 dark:bg-slate-950/50 backdrop-blur-md border-b border-transparent'
|
||||
? 'bg-[#05070B]/85 backdrop-blur-2xl shadow-2xl shadow-cyan-950/20 border-b border-white/[0.08]'
|
||||
: 'bg-transparent border-b border-white/[0.04]'
|
||||
}`}
|
||||
>
|
||||
<div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 h-16 sm:h-20 flex items-center justify-between">
|
||||
{/* CRE Innovations Brand Mark */}
|
||||
<Link href="/" className="flex items-center space-x-3 group">
|
||||
<div className="relative w-10 h-10 sm:w-11 sm:h-11 rounded-2xl bg-gradient-to-tr from-blue-600 via-indigo-600 to-cyan-400 flex items-center justify-center text-white shadow-lg shadow-blue-500/25 group-hover:shadow-blue-500/40 group-hover:scale-105 transition-all duration-300">
|
||||
<span className="font-extrabold text-base tracking-tighter">CRE</span>
|
||||
<span className="absolute -top-1 -right-1 flex h-3 w-3">
|
||||
<span className="animate-ping absolute inline-flex h-full w-full rounded-full bg-cyan-400 opacity-75"></span>
|
||||
<span className="relative inline-flex rounded-full h-3 w-3 bg-cyan-500"></span>
|
||||
</span>
|
||||
</div>
|
||||
<div>
|
||||
<div className="flex items-center space-x-1.5">
|
||||
<span className="text-lg sm:text-xl font-extrabold tracking-tight text-slate-900 dark:text-white">
|
||||
CRE <span className="bg-clip-text text-transparent bg-gradient-to-r from-blue-600 to-cyan-500 dark:from-blue-400 dark:to-cyan-400">Innovations</span>
|
||||
</span>
|
||||
</div>
|
||||
<span className="hidden sm:block text-[11px] font-medium text-slate-500 dark:text-slate-400 tracking-wide">
|
||||
AI Photo Tools & Neural Vision
|
||||
</span>
|
||||
</div>
|
||||
</Link>
|
||||
<div className="max-w-7xl mx-auto flex items-center justify-between">
|
||||
{/* Bespoke CRE Innovations Vector Brand Logo */}
|
||||
<BrandLogo size="md" />
|
||||
|
||||
{/* Desktop Navigation Links */}
|
||||
<nav className="hidden md:flex items-center space-x-1 lg:space-x-1.5 bg-slate-100/70 dark:bg-slate-900/70 p-1.5 rounded-2xl border border-slate-200/60 dark:border-slate-800/60 backdrop-blur-md">
|
||||
{/* Center Navigation Links (Floating Glass Pill on Desktop) */}
|
||||
<nav className="hidden md:flex items-center gap-1.5 px-3 py-1.5 rounded-full bg-white/[0.03] border border-white/[0.08] backdrop-blur-xl shadow-inner shadow-white/[0.02]">
|
||||
{config.nav.header.map((item) => {
|
||||
const active = pathname === item.href;
|
||||
return (
|
||||
<Link
|
||||
key={item.href}
|
||||
href={item.href}
|
||||
className={`px-4 py-2 rounded-xl text-xs font-semibold tracking-wide transition-all duration-200 ${
|
||||
className={`relative px-4 py-2 rounded-full text-xs font-semibold tracking-wide transition-all duration-200 ${
|
||||
active
|
||||
? 'text-white bg-blue-600 shadow-md shadow-blue-500/25'
|
||||
: 'text-slate-700 dark:text-slate-300 hover:text-blue-600 dark:hover:text-blue-400 hover:bg-white/80 dark:hover:bg-slate-800/80'
|
||||
? 'text-cyan-300 bg-white/[0.08] shadow-[0_0_15px_rgba(0,240,255,0.2)] border border-cyan-500/30'
|
||||
: 'text-slate-300 hover:text-white hover:bg-white/[0.04]'
|
||||
}`}
|
||||
>
|
||||
{resolveLocalised(item.label, currentLocale)}
|
||||
</Link>
|
||||
);
|
||||
})}
|
||||
|
||||
{/* Direct Anchor to Vertical Tool Stack */}
|
||||
<Link
|
||||
href="/#tools-stack"
|
||||
className="flex items-center gap-1.5 px-4 py-2 rounded-full text-xs font-semibold tracking-wide text-cyan-400 hover:text-cyan-300 hover:bg-cyan-500/10 transition-colors"
|
||||
>
|
||||
<Layers className="w-3.5 h-3.5 text-cyan-400" />
|
||||
<span>Tools Stack</span>
|
||||
</Link>
|
||||
</nav>
|
||||
|
||||
{/* Right Action Buttons */}
|
||||
<div className="hidden md:flex items-center space-x-3">
|
||||
{/* Theme Toggle Button */}
|
||||
<button
|
||||
onClick={toggleTheme}
|
||||
aria-label="Toggle theme"
|
||||
className="p-2.5 rounded-xl border border-slate-200 dark:border-slate-800 text-slate-600 dark:text-slate-400 hover:bg-slate-100 dark:hover:bg-slate-900 transition-colors"
|
||||
>
|
||||
{isDark ? <Sun className="w-4 h-4 text-amber-400" /> : <Moon className="w-4 h-4 text-slate-600" />}
|
||||
</button>
|
||||
{/* Right Status & Action Items */}
|
||||
<div className="hidden lg:flex items-center space-x-4">
|
||||
{/* Live System Operational Indicator */}
|
||||
<div className="flex items-center gap-2 px-3 py-1.5 rounded-full bg-emerald-950/40 border border-emerald-500/30 text-[11px] font-mono text-emerald-400 shadow-sm">
|
||||
<span className="relative flex h-2 w-2">
|
||||
<span className="animate-ping absolute inline-flex h-full w-full rounded-full bg-emerald-400 opacity-75"></span>
|
||||
<span className="relative inline-flex rounded-full h-2 w-2 bg-emerald-500"></span>
|
||||
</span>
|
||||
<span>Neural Core v2.4 Active</span>
|
||||
</div>
|
||||
|
||||
{/* Primary CTA Button */}
|
||||
<Link
|
||||
href={config.nav.cta.href}
|
||||
className="inline-flex items-center space-x-2 px-5 py-2.5 rounded-xl text-xs font-bold text-white bg-gradient-to-r from-blue-600 to-indigo-600 hover:from-blue-700 hover:to-indigo-700 shadow-lg shadow-blue-500/25 hover:shadow-blue-500/40 hover:-translate-y-0.5 active:translate-y-0 transition-all duration-200"
|
||||
className="group relative inline-flex items-center gap-2 px-5 py-2.5 rounded-full text-xs font-bold text-black bg-gradient-to-r from-cyan-400 via-teal-300 to-cyan-300 hover:from-cyan-300 hover:to-teal-200 shadow-[0_0_25px_rgba(0,240,255,0.35)] hover:shadow-[0_0_35px_rgba(0,240,255,0.5)] transition-all duration-300 hover:-translate-y-0.5 active:translate-y-0"
|
||||
>
|
||||
<Smartphone className="w-4 h-4" />
|
||||
<Smartphone className="w-4 h-4 text-black group-hover:rotate-6 transition-transform" />
|
||||
<span>{resolveLocalised(config.nav.cta.label, currentLocale)}</span>
|
||||
</Link>
|
||||
</div>
|
||||
|
||||
{/* Mobile menu trigger */}
|
||||
<div className="flex md:hidden items-center space-x-2">
|
||||
<button
|
||||
onClick={toggleTheme}
|
||||
className="p-2 rounded-xl text-slate-600 dark:text-slate-300 border border-slate-200 dark:border-slate-800"
|
||||
>
|
||||
{isDark ? <Sun className="w-4 h-4 text-amber-400" /> : <Moon className="w-4 h-4" />}
|
||||
</button>
|
||||
<button
|
||||
onClick={() => setMobileMenuOpen(!mobileMenuOpen)}
|
||||
className="p-2.5 rounded-xl text-slate-700 dark:text-slate-200 bg-slate-100 dark:bg-slate-900 border border-slate-200 dark:border-slate-800 hover:bg-slate-200"
|
||||
className="p-2.5 rounded-xl text-slate-200 bg-white/[0.05] border border-white/[0.1] hover:bg-white/[0.1] transition-colors"
|
||||
aria-label="Open menu"
|
||||
>
|
||||
{mobileMenuOpen ? <X className="w-5 h-5" /> : <Menu className="w-5 h-5" />}
|
||||
{mobileMenuOpen ? <X className="w-5 h-5 text-cyan-400" /> : <Menu className="w-5 h-5" />}
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{/* Mobile Drawer */}
|
||||
{mobileMenuOpen && (
|
||||
<div className="md:hidden border-b border-slate-200 dark:border-slate-800 bg-white/95 dark:bg-slate-950/95 backdrop-blur-2xl px-5 pt-3 pb-6 space-y-2 animate-in slide-in-from-top-4 duration-200">
|
||||
{config.nav.header.map((item) => {
|
||||
const active = pathname === item.href;
|
||||
return (
|
||||
<Link
|
||||
key={item.href}
|
||||
href={item.href}
|
||||
onClick={() => setMobileMenuOpen(false)}
|
||||
className={`flex items-center justify-between px-4 py-3 rounded-xl text-sm font-semibold transition-colors ${
|
||||
active
|
||||
? 'text-blue-600 dark:text-blue-400 bg-blue-50 dark:bg-blue-950/40'
|
||||
: 'text-slate-700 dark:text-slate-200 hover:bg-slate-100 dark:hover:bg-slate-900'
|
||||
}`}
|
||||
>
|
||||
<span>{resolveLocalised(item.label, currentLocale)}</span>
|
||||
<ChevronRight className="w-4 h-4 text-slate-400" />
|
||||
</Link>
|
||||
);
|
||||
})}
|
||||
<div className="pt-3">
|
||||
<div className="md:hidden mt-3 rounded-2xl border border-white/[0.1] bg-[#07090E]/95 backdrop-blur-2xl p-5 space-y-3 shadow-2xl animate-in slide-in-from-top-4 duration-200">
|
||||
<div className="flex items-center justify-between pb-3 border-b border-white/[0.08]">
|
||||
<div className="flex items-center gap-2 text-xs font-mono text-emerald-400">
|
||||
<span className="h-2 w-2 rounded-full bg-emerald-400 animate-pulse" />
|
||||
<span>Core v2.4 Active</span>
|
||||
</div>
|
||||
<span className="text-[10px] font-mono text-slate-400">RAM Streaming</span>
|
||||
</div>
|
||||
|
||||
<div className="space-y-1">
|
||||
{config.nav.header.map((item) => {
|
||||
const active = pathname === item.href;
|
||||
return (
|
||||
<Link
|
||||
key={item.href}
|
||||
href={item.href}
|
||||
onClick={() => setMobileMenuOpen(false)}
|
||||
className={`flex items-center justify-between px-4 py-3 rounded-xl text-sm font-semibold transition-colors ${
|
||||
active
|
||||
? 'text-cyan-400 bg-cyan-950/40 border border-cyan-500/30'
|
||||
: 'text-slate-300 hover:bg-white/[0.05]'
|
||||
}`}
|
||||
>
|
||||
<span>{resolveLocalised(item.label, currentLocale)}</span>
|
||||
</Link>
|
||||
);
|
||||
})}
|
||||
|
||||
<Link
|
||||
href="/#tools-stack"
|
||||
onClick={() => setMobileMenuOpen(false)}
|
||||
className="flex items-center justify-between px-4 py-3 rounded-xl text-sm font-semibold text-cyan-400 bg-white/[0.03] hover:bg-white/[0.06]"
|
||||
>
|
||||
<span className="flex items-center gap-2">
|
||||
<Layers className="w-4 h-4 text-cyan-400" />
|
||||
Tools Stack
|
||||
</span>
|
||||
</Link>
|
||||
</div>
|
||||
|
||||
<div className="pt-3 border-t border-white/[0.08]">
|
||||
<Link
|
||||
href={config.nav.cta.href}
|
||||
onClick={() => setMobileMenuOpen(false)}
|
||||
className="flex items-center justify-center space-x-2 w-full py-3.5 rounded-xl text-sm font-bold text-white bg-gradient-to-r from-blue-600 to-indigo-600 shadow-md shadow-blue-500/25"
|
||||
className="flex items-center justify-center gap-2 w-full py-3.5 rounded-xl text-sm font-bold text-black bg-gradient-to-r from-cyan-400 to-teal-300 shadow-[0_0_20px_rgba(0,240,255,0.3)]"
|
||||
>
|
||||
<Smartphone className="w-4 h-4" />
|
||||
<span>{resolveLocalised(config.nav.cta.label, currentLocale)}</span>
|
||||
|
||||
Reference in New Issue
Block a user