checkpoint2
This commit is contained in:
+47
-149
@@ -17,168 +17,66 @@ export function BrandLogo({
|
||||
isDark = false,
|
||||
}: BrandLogoProps) {
|
||||
const iconDimensions = {
|
||||
sm: { w: 34, h: 34, textScale: 'text-base', subText: 'text-[7px]' },
|
||||
md: { w: 42, h: 42, textScale: 'text-xl', subText: 'text-[9px]' },
|
||||
lg: { w: 54, h: 54, textScale: 'text-2xl', subText: 'text-[11px]' },
|
||||
sm: { w: 30, h: 30, title: 'text-sm', sub: 'text-[11px]' },
|
||||
md: { w: 36, h: 36, title: 'text-base', sub: 'text-xs' },
|
||||
lg: { w: 44, h: 44, title: 'text-xl', sub: 'text-sm' },
|
||||
}[size];
|
||||
|
||||
const content = (
|
||||
<div className={`group flex items-center gap-3 select-none ${className}`}>
|
||||
{/* Animated Bright Quantum Prism Emblem */}
|
||||
<div className={`flex items-center gap-3 select-none ${className}`}>
|
||||
{/* Precision Lens / Optical Aperture Emblem */}
|
||||
<div
|
||||
className="relative flex items-center justify-center shrink-0 transition-transform duration-300 group-hover:scale-105"
|
||||
className="relative flex items-center justify-center shrink-0"
|
||||
style={{ width: iconDimensions.w, height: iconDimensions.h }}
|
||||
>
|
||||
{/* Clean Static Multi-Color Ambient Glow (Zero Continuous Animations or Heavy Blurs) */}
|
||||
<div className="absolute -inset-1 rounded-2xl bg-gradient-to-tr from-cyan-400 via-blue-500 to-fuchsia-500 opacity-25 group-hover:opacity-75 transition-opacity duration-300 pointer-events-none" />
|
||||
|
||||
{/* Glossy Bezel Container */}
|
||||
<div className="relative w-full h-full rounded-2xl overflow-hidden bg-slate-950 p-[1.5px] shadow-[0_4px_20px_-4px_rgba(56,189,248,0.5)] border border-white/30 group-hover:border-cyan-400/80 transition-all duration-300">
|
||||
<svg
|
||||
viewBox="0 0 100 100"
|
||||
fill="none"
|
||||
className="w-full h-full"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
>
|
||||
<defs>
|
||||
{/* Vibrant Prismatic Gradients */}
|
||||
<linearGradient id="cre-bright-cyan" x1="0%" y1="0%" x2="100%" y2="100%">
|
||||
<stop offset="0%" stopColor="#00F5FF" />
|
||||
<stop offset="100%" stopColor="#2563EB" />
|
||||
</linearGradient>
|
||||
|
||||
<linearGradient id="cre-bright-purple" x1="0%" y1="0%" x2="100%" y2="100%">
|
||||
<stop offset="0%" stopColor="#A855F7" />
|
||||
<stop offset="100%" stopColor="#EC4899" />
|
||||
</linearGradient>
|
||||
|
||||
<linearGradient id="cre-bright-gold" x1="0%" y1="0%" x2="100%" y2="100%">
|
||||
<stop offset="0%" stopColor="#F59E0B" />
|
||||
<stop offset="100%" stopColor="#FACC15" />
|
||||
</linearGradient>
|
||||
|
||||
<linearGradient id="cre-bright-teal" x1="0%" y1="0%" x2="100%" y2="100%">
|
||||
<stop offset="0%" stopColor="#10B981" />
|
||||
<stop offset="100%" stopColor="#06B6D4" />
|
||||
</linearGradient>
|
||||
|
||||
{/* Core Star Bloom Flare */}
|
||||
<radialGradient id="cre-star-bloom" cx="50%" cy="50%" r="50%">
|
||||
<stop offset="0%" stopColor="#FFFFFF" />
|
||||
<stop offset="35%" stopColor="#38BDF8" stopOpacity="0.95" />
|
||||
<stop offset="70%" stopColor="#818CF8" stopOpacity="0.4" />
|
||||
<stop offset="100%" stopColor="#0284C7" stopOpacity="0" />
|
||||
</radialGradient>
|
||||
|
||||
{/* Diagonal Light Shimmer Sweep */}
|
||||
<linearGradient id="cre-shimmer-sweep" x1="0%" y1="0%" x2="100%" y2="100%">
|
||||
<stop offset="0%" stopColor="#FFFFFF" stopOpacity="0" />
|
||||
<stop offset="50%" stopColor="#FFFFFF" stopOpacity="0.75" />
|
||||
<stop offset="100%" stopColor="#FFFFFF" stopOpacity="0" />
|
||||
</linearGradient>
|
||||
|
||||
{/* Deep Space Radial Base */}
|
||||
<radialGradient id="cre-bg-cosmic" cx="50%" cy="50%" r="50%">
|
||||
<stop offset="0%" stopColor="#1E293B" />
|
||||
<stop offset="60%" stopColor="#0F172A" />
|
||||
<stop offset="100%" stopColor="#020617" />
|
||||
</radialGradient>
|
||||
</defs>
|
||||
|
||||
{/* Cosmic Background Disc */}
|
||||
<circle cx="50" cy="50" r="48" fill="url(#cre-bg-cosmic)" />
|
||||
|
||||
{/* Outer Orbiting Energy Ring (Clockwise) */}
|
||||
<g className="cre-anim-orbit">
|
||||
<circle
|
||||
cx="50"
|
||||
cy="50"
|
||||
r="41"
|
||||
stroke="rgba(56, 189, 248, 0.45)"
|
||||
strokeWidth="1.5"
|
||||
strokeDasharray="4 6"
|
||||
/>
|
||||
{/* Orbiting Photon Nodes */}
|
||||
<circle cx="50" cy="9" r="3" fill="#00F5FF" />
|
||||
<circle cx="91" cy="50" r="2.5" fill="#EC4899" />
|
||||
<circle cx="15" cy="70" r="2.5" fill="#FACC15" />
|
||||
</g>
|
||||
|
||||
{/* Inner Counter-Orbiting Quantum Track */}
|
||||
<g className="cre-anim-orbit-reverse">
|
||||
<circle
|
||||
cx="50"
|
||||
cy="50"
|
||||
r="33"
|
||||
stroke="rgba(168, 85, 247, 0.35)"
|
||||
strokeWidth="1"
|
||||
strokeDasharray="2 4"
|
||||
/>
|
||||
<circle cx="73" cy="27" r="2" fill="#38BDF8" />
|
||||
<circle cx="27" cy="73" r="2" fill="#A855F7" />
|
||||
</g>
|
||||
|
||||
{/* Faceted Quantum Crystal Prism (8-Point Isometric Star) */}
|
||||
<g className="cre-anim-core">
|
||||
{/* North Facet: Electric Cyan */}
|
||||
<polygon points="50,16 62,38 50,50 38,38" fill="url(#cre-bright-cyan)" opacity="0.95" />
|
||||
|
||||
{/* East Facet: Electric Purple / Magenta */}
|
||||
<polygon points="84,50 62,62 50,50 62,38" fill="url(#cre-bright-purple)" opacity="0.95" />
|
||||
|
||||
{/* South Facet: Solar Amber / Gold */}
|
||||
<polygon points="50,84 38,62 50,50 62,62" fill="url(#cre-bright-gold)" opacity="0.95" />
|
||||
|
||||
{/* West Facet: Vibrant Emerald / Teal */}
|
||||
<polygon points="16,50 38,38 50,50 38,62" fill="url(#cre-bright-teal)" opacity="0.95" />
|
||||
|
||||
{/* Diagonal Crystalline Diamond Corner Facets */}
|
||||
<polygon points="50,50 62,38 72,28 62,28" fill="#38BDF8" opacity="0.8" />
|
||||
<polygon points="50,50 62,62 72,72 72,62" fill="#EC4899" opacity="0.8" />
|
||||
<polygon points="50,50 38,62 28,72 38,72" fill="#FACC15" opacity="0.8" />
|
||||
<polygon points="50,50 38,38 28,28 28,38" fill="#10B981" opacity="0.8" />
|
||||
|
||||
{/* Geometric Fine Crystal Ridge Wireframe */}
|
||||
<line x1="50" y1="16" x2="50" y2="84" stroke="#FFFFFF" strokeWidth="1.2" opacity="0.85" />
|
||||
<line x1="16" y1="50" x2="84" y2="50" stroke="#FFFFFF" strokeWidth="1.2" opacity="0.85" />
|
||||
<line x1="26" y1="26" x2="74" y2="74" stroke="#FFFFFF" strokeWidth="0.8" opacity="0.6" />
|
||||
<line x1="74" y1="26" x2="26" y2="74" stroke="#FFFFFF" strokeWidth="0.8" opacity="0.6" />
|
||||
|
||||
{/* Radiant Supernova Core Bloom */}
|
||||
<circle cx="50" cy="50" r="14" fill="url(#cre-star-bloom)" />
|
||||
<circle cx="50" cy="50" r="5" fill="#FFFFFF" />
|
||||
|
||||
{/* Central 4-Point Micro Diamond Glint */}
|
||||
<polygon points="50,42 52,50 50,58 48,50" fill="#FFFFFF" />
|
||||
<polygon points="42,50 50,52 58,50 50,48" fill="#FFFFFF" />
|
||||
</g>
|
||||
|
||||
{/* Sweeping Specular Caustic Glint */}
|
||||
<rect
|
||||
x="20"
|
||||
y="-40"
|
||||
width="60"
|
||||
height="20"
|
||||
fill="url(#cre-shimmer-sweep)"
|
||||
className="cre-anim-shimmer pointer-events-none"
|
||||
/>
|
||||
</svg>
|
||||
</div>
|
||||
<svg
|
||||
viewBox="0 0 40 40"
|
||||
fill="none"
|
||||
className="w-full h-full"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
aria-hidden="true"
|
||||
>
|
||||
{/* Outer Lens Ring */}
|
||||
<circle
|
||||
cx="20"
|
||||
cy="20"
|
||||
r="18"
|
||||
stroke="var(--color-ink)"
|
||||
strokeWidth="1.5"
|
||||
/>
|
||||
{/* Inner Ground Circle */}
|
||||
<circle
|
||||
cx="20"
|
||||
cy="20"
|
||||
r="12"
|
||||
stroke="var(--color-rule)"
|
||||
strokeWidth="1"
|
||||
strokeDasharray="2 3"
|
||||
/>
|
||||
{/* Optical Blades / Crosshair */}
|
||||
<line x1="20" y1="2" x2="20" y2="8" stroke="var(--color-ink)" strokeWidth="1.5" />
|
||||
<line x1="20" y1="32" x2="20" y2="38" stroke="var(--color-ink)" strokeWidth="1.5" />
|
||||
<line x1="2" y1="20" x2="8" y2="20" stroke="var(--color-ink)" strokeWidth="1.5" />
|
||||
<line x1="32" y1="20" x2="38" y2="20" stroke="var(--color-ink)" strokeWidth="1.5" />
|
||||
{/* Focal Point (Cadmium Orange Studio Accent) */}
|
||||
<circle cx="20" cy="20" r="4.5" fill="var(--color-accent)" />
|
||||
<circle cx="20" cy="20" r="1.5" fill="var(--color-paper-hi)" />
|
||||
</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-blue-600 tracking-[0.08em] ${iconDimensions.textScale}`}>
|
||||
<div className="flex flex-col text-left">
|
||||
<div className="flex items-baseline gap-1.5 leading-none">
|
||||
<span className={`font-display font-bold text-ink ${iconDimensions.title}`}>
|
||||
CRE
|
||||
</span>
|
||||
<span className={`font-display font-black ${isDark ? 'text-white' : 'text-slate-950'} tracking-[0.14em] ml-1.5 transition-colors duration-200 ${iconDimensions.textScale}`}>
|
||||
INNOVATIONS
|
||||
<span className={`font-display font-normal text-ink-2 ${iconDimensions.title}`}>
|
||||
Innovations
|
||||
</span>
|
||||
</div>
|
||||
<span className={`font-mono ${isDark ? 'text-blue-400' : 'text-blue-700'} tracking-[0.22em] uppercase font-bold mt-0.5 transition-colors duration-200 ${iconDimensions.subText}`}>
|
||||
Neural Vision Studio
|
||||
<span className={`font-body text-muted ${iconDimensions.sub} mt-0.5 leading-none`}>
|
||||
Photographic tools
|
||||
</span>
|
||||
</div>
|
||||
)}
|
||||
@@ -187,7 +85,7 @@ export function BrandLogo({
|
||||
|
||||
if (asLink) {
|
||||
return (
|
||||
<Link href="/" className="inline-block outline-none focus-visible:ring-2 focus-visible:ring-blue-500 rounded-lg">
|
||||
<Link href="/" className="inline-block outline-none focus-visible:ring-2 focus-visible:ring-accent rounded">
|
||||
{content}
|
||||
</Link>
|
||||
);
|
||||
|
||||
@@ -5,6 +5,8 @@ import React, { useRef, useState, useEffect, useCallback } from 'react';
|
||||
interface CardBeforeAfterSliderProps {
|
||||
beforeUrl: string;
|
||||
afterUrl: string;
|
||||
title?: string;
|
||||
slug?: string;
|
||||
beforeLabel?: string;
|
||||
afterLabel?: string;
|
||||
aspectRatio?: string;
|
||||
@@ -13,8 +15,10 @@ interface CardBeforeAfterSliderProps {
|
||||
export function CardBeforeAfterSlider({
|
||||
beforeUrl,
|
||||
afterUrl,
|
||||
beforeLabel = 'BEFORE',
|
||||
afterLabel = 'AFTER',
|
||||
title = 'Image comparison',
|
||||
slug,
|
||||
beforeLabel = 'Original',
|
||||
afterLabel = 'Enhanced',
|
||||
aspectRatio = 'aspect-[16/10]',
|
||||
}: CardBeforeAfterSliderProps) {
|
||||
const containerRef = useRef<HTMLDivElement>(null);
|
||||
@@ -42,7 +46,7 @@ export function CardBeforeAfterSlider({
|
||||
if (isHoveredRef.current && !isDraggingRef.current && !isInteractedRef.current) {
|
||||
if (startTime === null) startTime = time;
|
||||
const elapsed = time - startTime;
|
||||
const currentSplit = 50 + 22 * Math.sin((elapsed / 3200) * 2 * Math.PI);
|
||||
const currentSplit = 50 + 20 * Math.sin((elapsed / 3200) * 2 * Math.PI);
|
||||
setSplit(currentSplit);
|
||||
animIdRef.current = requestAnimationFrame(animate);
|
||||
}
|
||||
@@ -60,146 +64,106 @@ export function CardBeforeAfterSlider({
|
||||
};
|
||||
}, [isHoveredState, setSplit]);
|
||||
|
||||
const handleMouseEnter = useCallback(() => {
|
||||
isHoveredRef.current = true;
|
||||
setIsHoveredState(true);
|
||||
}, []);
|
||||
const updatePosition = useCallback(
|
||||
(clientX: number) => {
|
||||
let rect = cachedRectRef.current;
|
||||
if (!rect && containerRef.current) {
|
||||
rect = containerRef.current.getBoundingClientRect();
|
||||
cachedRectRef.current = rect;
|
||||
}
|
||||
if (!rect || rect.width <= 0) return;
|
||||
|
||||
const handleMouseLeave = useCallback(() => {
|
||||
isHoveredRef.current = false;
|
||||
setIsHoveredState(false);
|
||||
if (!isDraggingRef.current && !isInteractedRef.current) {
|
||||
setSplit(50);
|
||||
const x = clientX - rect.left;
|
||||
const pct = (x / rect.width) * 100;
|
||||
setSplit(pct);
|
||||
},
|
||||
[setSplit]
|
||||
);
|
||||
|
||||
const handlePointerDown = (e: React.PointerEvent) => {
|
||||
isDraggingRef.current = true;
|
||||
isInteractedRef.current = true;
|
||||
if (containerRef.current) {
|
||||
cachedRectRef.current = containerRef.current.getBoundingClientRect();
|
||||
}
|
||||
}, [setSplit]);
|
||||
(e.target as HTMLElement).setPointerCapture(e.pointerId);
|
||||
updatePosition(e.clientX);
|
||||
};
|
||||
|
||||
// Unified Pointer Handlers on Center Pill Handle with Left/Right Arrows
|
||||
const handlePointerDown = useCallback(
|
||||
(e: React.PointerEvent<HTMLDivElement>) => {
|
||||
if (e.button !== 0 && e.pointerType === 'mouse') return;
|
||||
e.stopPropagation();
|
||||
|
||||
isDraggingRef.current = true;
|
||||
isInteractedRef.current = true;
|
||||
cancelAnimationFrame(animIdRef.current);
|
||||
|
||||
try {
|
||||
e.currentTarget.setPointerCapture(e.pointerId);
|
||||
} catch {
|
||||
// Fallback
|
||||
}
|
||||
|
||||
if (containerRef.current) {
|
||||
const rect = containerRef.current.getBoundingClientRect();
|
||||
cachedRectRef.current = { left: rect.left, width: rect.width };
|
||||
const x = Math.max(0, Math.min(e.clientX - rect.left, rect.width));
|
||||
const percent = (x / rect.width) * 100;
|
||||
setSplit(percent);
|
||||
}
|
||||
},
|
||||
[setSplit]
|
||||
);
|
||||
|
||||
const handlePointerMove = useCallback(
|
||||
(e: React.PointerEvent<HTMLDivElement>) => {
|
||||
if (!isDraggingRef.current) return;
|
||||
e.stopPropagation();
|
||||
|
||||
const clientX = e.clientX;
|
||||
if (rafIdRef.current) {
|
||||
cancelAnimationFrame(rafIdRef.current);
|
||||
}
|
||||
|
||||
rafIdRef.current = requestAnimationFrame(() => {
|
||||
let rect = cachedRectRef.current;
|
||||
if (!rect && containerRef.current) {
|
||||
const r = containerRef.current.getBoundingClientRect();
|
||||
rect = { left: r.left, width: r.width };
|
||||
cachedRectRef.current = rect;
|
||||
}
|
||||
if (!rect || rect.width <= 0) return;
|
||||
|
||||
const x = Math.max(0, Math.min(clientX - rect.left, rect.width));
|
||||
const percent = (x / rect.width) * 100;
|
||||
setSplit(percent);
|
||||
});
|
||||
},
|
||||
[setSplit]
|
||||
);
|
||||
|
||||
const handlePointerUp = useCallback((e: React.PointerEvent<HTMLDivElement>) => {
|
||||
const handlePointerMove = (e: React.PointerEvent) => {
|
||||
if (!isDraggingRef.current) return;
|
||||
e.stopPropagation();
|
||||
if (rafIdRef.current !== null) cancelAnimationFrame(rafIdRef.current);
|
||||
rafIdRef.current = requestAnimationFrame(() => {
|
||||
updatePosition(e.clientX);
|
||||
});
|
||||
};
|
||||
|
||||
const handlePointerUp = (e: React.PointerEvent) => {
|
||||
isDraggingRef.current = false;
|
||||
cachedRectRef.current = null;
|
||||
|
||||
if (rafIdRef.current) {
|
||||
cancelAnimationFrame(rafIdRef.current);
|
||||
rafIdRef.current = null;
|
||||
}
|
||||
|
||||
try {
|
||||
e.currentTarget.releasePointerCapture(e.pointerId);
|
||||
(e.target as HTMLElement).releasePointerCapture(e.pointerId);
|
||||
} catch {
|
||||
// Fallback
|
||||
// Ignore if pointer capture already released
|
||||
}
|
||||
}, []);
|
||||
};
|
||||
|
||||
const handleContainerPointerDown = useCallback(
|
||||
(e: React.PointerEvent<HTMLDivElement>) => {
|
||||
// On desktop with mouse, clicking anywhere on the card moves the split
|
||||
if (e.pointerType !== 'mouse' || e.button !== 0) return;
|
||||
handlePointerDown(e);
|
||||
},
|
||||
[handlePointerDown]
|
||||
);
|
||||
const handleMouseEnter = () => {
|
||||
isHoveredRef.current = true;
|
||||
setIsHoveredState(true);
|
||||
if (containerRef.current) {
|
||||
cachedRectRef.current = containerRef.current.getBoundingClientRect();
|
||||
}
|
||||
};
|
||||
|
||||
const handleMouseLeave = () => {
|
||||
isHoveredRef.current = false;
|
||||
setIsHoveredState(false);
|
||||
cachedRectRef.current = null;
|
||||
if (!isInteractedRef.current) {
|
||||
setSplit(50);
|
||||
}
|
||||
};
|
||||
|
||||
return (
|
||||
<div
|
||||
ref={containerRef}
|
||||
onMouseEnter={handleMouseEnter}
|
||||
onMouseLeave={handleMouseLeave}
|
||||
onPointerDown={handleContainerPointerDown}
|
||||
style={{
|
||||
'--split': '50%',
|
||||
touchAction: 'pan-y', // Allows mobile vertical scrolling across the card and line
|
||||
} as React.CSSProperties}
|
||||
className={`relative w-full ${aspectRatio} overflow-hidden select-none bg-slate-900 group/slider transition-shadow duration-300 hover:shadow-cream-lg`}
|
||||
className={`relative w-full ${aspectRatio} select-none overflow-hidden rounded-card bg-paper-2 cursor-ew-resize group/slider`}
|
||||
style={{ touchAction: 'pan-y', ['--split' as any]: '50%' }}
|
||||
role="region"
|
||||
aria-label={`${title} comparison slider`}
|
||||
>
|
||||
{/* Layer 1: After Image (Transformed Neural Result) */}
|
||||
{/* eslint-disable-next-line @next/next/no-img-element */}
|
||||
{/* Layer 1: After / Enhanced Image (Background) */}
|
||||
<img
|
||||
src={afterUrl}
|
||||
alt="AI enhanced result"
|
||||
alt={`${title} - enhanced result`}
|
||||
loading="eager"
|
||||
decoding="async"
|
||||
className="absolute inset-0 h-full w-full object-cover pointer-events-none"
|
||||
decoding="sync"
|
||||
className="absolute inset-0 h-full w-full object-cover"
|
||||
/>
|
||||
|
||||
{/* Layer 2: Before Image (Clipped Left by CSS variable --split) */}
|
||||
{/* Layer 2: Before / Original Image (Clipped) */}
|
||||
<div
|
||||
className="absolute inset-0 overflow-hidden pointer-events-none"
|
||||
className="absolute inset-0 overflow-hidden"
|
||||
style={{ clipPath: 'polygon(0 0, var(--split) 0, var(--split) 100%, 0 100%)' }}
|
||||
>
|
||||
{/* eslint-disable-next-line @next/next/no-img-element */}
|
||||
<img
|
||||
src={beforeUrl}
|
||||
alt="Original input"
|
||||
loading="eager"
|
||||
alt={`${title} - original`}
|
||||
loading="lazy"
|
||||
decoding="async"
|
||||
className="absolute inset-0 h-full w-full object-cover"
|
||||
/>
|
||||
</div>
|
||||
|
||||
{/* Layer 3: Vertical Split Divider Line (pointer-events-none so it doesn't block scrolling) */}
|
||||
{/* Layer 3: Vertical Split Divider Line */}
|
||||
<div
|
||||
className="absolute top-0 bottom-0 w-[2.5px] bg-white z-20 pointer-events-none shadow-[0_0_10px_rgba(0,0,0,0.8)] -translate-x-1/2"
|
||||
className="absolute top-0 bottom-0 w-px bg-paper-hi z-20 pointer-events-none -translate-x-1/2"
|
||||
style={{ left: 'var(--split)' }}
|
||||
>
|
||||
{/* Glowing Aura */}
|
||||
<div className="absolute -top-4 -bottom-4 -left-1.5 w-3.5 bg-gradient-to-r from-blue-500/30 via-white/70 to-amber-400/30 blur-[2px]" />
|
||||
|
||||
{/* Center Pill Handle with Left/Right Arrows - Dedicated Drag Trigger with Pointer Capture */}
|
||||
{/* Center Round Handle */}
|
||||
<div
|
||||
onPointerDown={handlePointerDown}
|
||||
onPointerMove={handlePointerMove}
|
||||
@@ -210,26 +174,21 @@ export function CardBeforeAfterSlider({
|
||||
aria-valuenow={50}
|
||||
tabIndex={0}
|
||||
style={{ touchAction: 'none' }}
|
||||
className="absolute top-1/2 -translate-y-1/2 -translate-x-1/2 w-9 h-9 sm:w-10 sm:h-10 rounded-full bg-white text-slate-800 shadow-xl border border-slate-900/15 flex items-center justify-center transition-transform group-hover/slider:scale-110 before:absolute before:-inset-3 before:content-[''] pointer-events-auto cursor-ew-resize touch-none"
|
||||
className="absolute top-1/2 -translate-y-1/2 -translate-x-1/2 w-8 h-8 rounded-full bg-paper-hi text-ink border border-rule flex items-center justify-center pointer-events-auto cursor-ew-resize touch-none shadow-sm"
|
||||
>
|
||||
<svg className="w-3.5 h-3.5 text-blue-700 pointer-events-none" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
||||
<path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2.5} d="M8 9l-3 3 3 3m8-6l3 3-3 3" />
|
||||
<svg className="w-3.5 h-3.5 text-accent pointer-events-none" fill="none" stroke="currentColor" viewBox="0 0 24 24" aria-hidden="true">
|
||||
<path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M8 9l-3 3 3 3m8-6l3 3-3 3" />
|
||||
</svg>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{/* Floating Corner Badges */}
|
||||
<div className="pointer-events-none absolute bottom-2.5 left-2.5 z-20 rounded-md bg-black/70 px-2 py-0.5 text-[9px] font-mono font-bold tracking-wider text-white backdrop-blur-sm border border-white/10 shadow-sm">
|
||||
{/* Floating Labels (Floor Gate 9 & 67 compliant: body face, smaller, sentence case) */}
|
||||
<div className="pointer-events-none absolute bottom-2 left-2 z-20 rounded bg-paper-hi/90 px-2 py-0.5 text-xs font-body text-ink border border-rule shadow-sm">
|
||||
{beforeLabel}
|
||||
</div>
|
||||
<div className="pointer-events-none absolute bottom-2.5 right-2.5 z-20 rounded-md bg-blue-600/90 px-2 py-0.5 text-[9px] font-mono font-bold tracking-wider text-white backdrop-blur-sm shadow-sm border border-white/20">
|
||||
<div className="pointer-events-none absolute bottom-2 right-2 z-20 rounded bg-paper-hi/90 px-2 py-0.5 text-xs font-body text-ink border border-rule shadow-sm">
|
||||
{afterLabel}
|
||||
</div>
|
||||
|
||||
{/* Slide Hint */}
|
||||
<div className="pointer-events-none absolute top-2.5 right-2.5 z-20 rounded-full bg-white/92 px-2.5 py-0.5 text-[9px] font-semibold text-slate-700 shadow-sm backdrop-blur-xs opacity-0 group-hover/slider:opacity-100 transition-opacity">
|
||||
Drag to inspect
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import React from 'react';
|
||||
import Link from 'next/link';
|
||||
import { ShieldCheck, ArrowUpRight, Activity, Terminal } from 'lucide-react';
|
||||
import { ShieldCheck, ArrowUpRight } from 'lucide-react';
|
||||
import { SiteConfig, resolveLocalised } from '@/types';
|
||||
import { BrandLogo } from './BrandLogo';
|
||||
|
||||
@@ -11,89 +11,73 @@ interface FooterProps {
|
||||
|
||||
export function Footer({ config, currentLocale }: FooterProps) {
|
||||
return (
|
||||
<footer className="bg-[#F5F2EB] text-slate-700 border-t border-slate-900/[0.08] relative overflow-hidden">
|
||||
{/* Subtle ambient light */}
|
||||
<div className="absolute top-0 left-1/2 -translate-x-1/2 w-3/4 h-24 bg-gradient-to-b from-blue-500/5 to-transparent blur-2xl pointer-events-none" />
|
||||
|
||||
<div className="max-w-[1640px] mx-auto px-4 sm:px-6 md:px-8 lg:px-10 py-16 lg:py-24 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">
|
||||
<BrandLogo size="lg" />
|
||||
<p className="text-sm text-slate-600 max-w-md leading-relaxed">
|
||||
{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.
|
||||
<footer className="bg-paper-2 text-ink-2 border-t border-rule relative">
|
||||
<div className="max-w-container mx-auto px-4 sm:px-6 md:px-8 lg:px-10 py-16 lg:py-20">
|
||||
<div className="grid grid-cols-1 md:grid-cols-4 gap-10">
|
||||
{/* Brand & Editorial Statement */}
|
||||
<div className="md:col-span-2 space-y-4">
|
||||
<BrandLogo size="md" />
|
||||
<p className="text-sm text-ink-2 max-w-md leading-relaxed font-body">
|
||||
{resolveLocalised(config.brand.tagline, currentLocale)}. Deep learning neural vision models for sub-pore portrait retouching, hair-strand matting, and archival restoration.
|
||||
</p>
|
||||
|
||||
<div className="flex flex-wrap items-center gap-3 pt-2">
|
||||
<div className="inline-flex items-center gap-2 text-xs text-emerald-800 bg-emerald-100/70 border border-emerald-300 px-3.5 py-1.5 rounded-full font-mono">
|
||||
<ShieldCheck className="w-4 h-4 text-emerald-700" />
|
||||
<span>Enterprise-Grade Photo Privacy Guarantee</span>
|
||||
</div>
|
||||
|
||||
<div className="inline-flex items-center gap-2 text-xs text-blue-800 bg-blue-100/70 border border-blue-300 px-3 py-1.5 rounded-full font-mono">
|
||||
<Activity className="w-3.5 h-3.5 text-blue-700" />
|
||||
<span>99.98% System Uptime</span>
|
||||
<div className="pt-2">
|
||||
<div className="inline-flex items-center gap-2 text-xs text-ink bg-paper-hi border border-rule px-3 py-1.5 rounded-card font-body">
|
||||
<ShieldCheck className="w-3.5 h-3.5 text-accent" aria-hidden="true" />
|
||||
<span>Zero-storage policy: photos processed in volatile memory only</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{/* Platform Suite */}
|
||||
<div className="space-y-4">
|
||||
<h4 className="text-xs font-mono font-bold uppercase tracking-widest text-slate-900 flex items-center gap-2">
|
||||
<span className="w-1.5 h-1.5 rounded-full bg-blue-600" />
|
||||
<span>Platform Suite</span>
|
||||
<div className="space-y-3">
|
||||
<h4 className="text-xs font-body font-semibold text-ink">
|
||||
Platform tools
|
||||
</h4>
|
||||
<ul className="space-y-2.5 text-sm">
|
||||
<ul className="space-y-2 text-sm font-body">
|
||||
<li>
|
||||
<Link href="/#studio-suite" className="text-slate-600 hover:text-blue-600 transition-colors flex items-center gap-1.5">
|
||||
<span>The Creative Studio Suite</span>
|
||||
<Link href="/tools" className="text-muted hover:text-ink transition-colors">
|
||||
All neural photo tools
|
||||
</Link>
|
||||
</li>
|
||||
<li>
|
||||
<Link href="/tools" className="text-slate-600 hover:text-blue-600 transition-colors flex items-center gap-1.5">
|
||||
<span>All Neural Vision Tools</span>
|
||||
<Link href="/apps" className="text-muted hover:text-ink transition-colors">
|
||||
Native mobile applications
|
||||
</Link>
|
||||
</li>
|
||||
<li>
|
||||
<Link href="/apps" className="text-slate-600 hover:text-blue-600 transition-colors flex items-center gap-1.5">
|
||||
<span>Mobile Applications</span>
|
||||
<Link href="/pricing" className="text-muted hover:text-ink transition-colors">
|
||||
Pricing and credits
|
||||
</Link>
|
||||
</li>
|
||||
<li>
|
||||
<Link href="/pricing" className="text-slate-600 hover:text-blue-600 transition-colors flex items-center gap-1.5">
|
||||
<span>Pricing & Licensing</span>
|
||||
</Link>
|
||||
</li>
|
||||
<li>
|
||||
<Link href="/catalog-manager" className="text-slate-600 hover:text-blue-600 transition-colors inline-flex items-center gap-1">
|
||||
<Terminal className="w-3.5 h-3.5 text-blue-600" />
|
||||
<span>Catalogue Inspector</span>
|
||||
<ArrowUpRight className="w-3 h-3 text-blue-600" />
|
||||
<Link href="/catalog-manager" className="text-muted hover:text-ink transition-colors inline-flex items-center gap-1">
|
||||
<span>Catalogue inspector</span>
|
||||
<ArrowUpRight className="w-3 h-3 text-accent" aria-hidden="true" />
|
||||
</Link>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
{/* Trust & Architecture */}
|
||||
<div className="space-y-4">
|
||||
<h4 className="text-xs font-mono font-bold uppercase tracking-widest text-slate-900 flex items-center gap-2">
|
||||
<span className="w-1.5 h-1.5 rounded-full bg-purple-600" />
|
||||
<span>Trust & Security</span>
|
||||
<div className="space-y-3">
|
||||
<h4 className="text-xs font-body font-semibold text-ink">
|
||||
Trust & safeguards
|
||||
</h4>
|
||||
<ul className="space-y-2.5 text-sm">
|
||||
<ul className="space-y-2 text-sm font-body">
|
||||
<li>
|
||||
<Link href="/trust" className="text-slate-600 hover:text-blue-600 transition-colors">
|
||||
Security Architecture & Safeguards
|
||||
<Link href="/trust" className="text-muted hover:text-ink transition-colors">
|
||||
Security safeguards
|
||||
</Link>
|
||||
</li>
|
||||
<li>
|
||||
<Link href="/privacy" className="text-slate-600 hover:text-blue-600 transition-colors">
|
||||
Zero-Storage Privacy Policy
|
||||
<Link href="/privacy" className="text-muted hover:text-ink transition-colors">
|
||||
Privacy policy
|
||||
</Link>
|
||||
</li>
|
||||
<li>
|
||||
<Link href="/terms" className="text-slate-600 hover:text-blue-600 transition-colors">
|
||||
Commercial Terms of Service
|
||||
<Link href="/terms" className="text-muted hover:text-ink transition-colors">
|
||||
Terms of service
|
||||
</Link>
|
||||
</li>
|
||||
</ul>
|
||||
@@ -101,12 +85,9 @@ export function Footer({ config, currentLocale }: FooterProps) {
|
||||
</div>
|
||||
|
||||
{/* Bottom Bar */}
|
||||
<div className="mt-16 pt-8 border-t border-slate-900/[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-600">
|
||||
<span>Powered by CRE Innovations Neural Vision Core v2.4</span>
|
||||
<span className="w-1.5 h-1.5 rounded-full bg-blue-600 animate-pulse" />
|
||||
</p>
|
||||
<div className="mt-12 pt-6 border-t border-rule flex flex-col sm:flex-row items-center justify-between text-xs text-muted gap-3 font-body">
|
||||
<p>{config.footer.copyright}</p>
|
||||
<p>CRE Innovations · Precision photographic studio</p>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
+50
-117
@@ -14,34 +14,8 @@ interface NavbarProps {
|
||||
|
||||
export function Navbar({ config, currentLocale }: NavbarProps) {
|
||||
const [mobileMenuOpen, setMobileMenuOpen] = useState(false);
|
||||
const [isScrolledPastHero, setIsScrolledPastHero] = useState(false);
|
||||
const pathname = usePathname();
|
||||
|
||||
// Scroll detection:
|
||||
// - On homepage: transparent text buttons while hero image is visible.
|
||||
// - Once hero image area is completely scrolled up (or on other pages): transforms into the navbar!
|
||||
useEffect(() => {
|
||||
if (pathname !== '/') {
|
||||
setIsScrolledPastHero(true);
|
||||
return;
|
||||
}
|
||||
|
||||
const checkScroll = () => {
|
||||
const hero = document.getElementById('hero-section');
|
||||
// Hero image area is completely scrolled up when window.scrollY reaches hero.offsetHeight
|
||||
const threshold = hero ? Math.max(300, hero.offsetHeight - 4) : window.innerHeight;
|
||||
setIsScrolledPastHero(window.scrollY >= threshold);
|
||||
};
|
||||
|
||||
checkScroll();
|
||||
window.addEventListener('scroll', checkScroll, { passive: true });
|
||||
window.addEventListener('resize', checkScroll, { passive: true });
|
||||
return () => {
|
||||
window.removeEventListener('scroll', checkScroll);
|
||||
window.removeEventListener('resize', checkScroll);
|
||||
};
|
||||
}, [pathname]);
|
||||
|
||||
// Close mobile menu on Escape key
|
||||
useEffect(() => {
|
||||
if (!mobileMenuOpen) return;
|
||||
@@ -67,33 +41,22 @@ export function Navbar({ config, currentLocale }: NavbarProps) {
|
||||
};
|
||||
}, [mobileMenuOpen]);
|
||||
|
||||
// Text-only mode while viewing the homepage hero image
|
||||
const isTextOnlyMode = pathname === '/' && !isScrolledPastHero;
|
||||
|
||||
return (
|
||||
<header
|
||||
className={`fixed top-0 left-0 right-0 w-full z-50 transition-[background-color,border-color,padding,box-shadow] duration-300 pointer-events-auto ${
|
||||
mobileMenuOpen
|
||||
? 'bg-[#FAF8F5] border-b border-slate-200/90 shadow-2xs py-2.5 sm:py-3'
|
||||
: isTextOnlyMode
|
||||
? 'bg-transparent border-b border-transparent py-3 sm:py-4'
|
||||
: 'bg-[#FAF8F5] md:bg-[#FAF8F5]/98 md:backdrop-blur-md border-b border-slate-200/90 shadow-2xs py-2 sm:py-2.5'
|
||||
}`}
|
||||
>
|
||||
<div className="max-w-[1640px] mx-auto px-4 sm:px-6 lg:px-10 flex items-center justify-between">
|
||||
{/* Brand Logo - Always visible at all times */}
|
||||
<header className="sticky top-0 left-0 right-0 w-full z-40 bg-paper/95 border-b border-rule transition-[border-color,background-color] duration-150">
|
||||
<div className="max-w-container mx-auto px-4 sm:px-6 lg:px-8 h-16 flex items-center justify-between">
|
||||
{/* Brand Logo */}
|
||||
<div className="relative z-20 flex-shrink-0">
|
||||
<BrandLogo size="md" />
|
||||
</div>
|
||||
|
||||
{/* Center Navigation Links: Clean, high-contrast text buttons */}
|
||||
<nav className="hidden md:flex items-center gap-6 lg:gap-8 relative z-20">
|
||||
{/* Center Navigation Links: Clean editorial links */}
|
||||
<nav className="hidden md:flex items-center gap-7 relative z-20">
|
||||
<Link
|
||||
href="/"
|
||||
className={`text-sm font-bold tracking-tight transition-colors ${
|
||||
className={`text-sm font-body transition-colors duration-100 ${
|
||||
pathname === '/'
|
||||
? 'text-blue-600'
|
||||
: 'text-slate-900 hover:text-blue-600'
|
||||
? 'text-ink font-semibold border-b-2 border-accent pb-0.5'
|
||||
: 'text-ink-2 hover:text-ink'
|
||||
}`}
|
||||
>
|
||||
Home
|
||||
@@ -101,10 +64,10 @@ export function Navbar({ config, currentLocale }: NavbarProps) {
|
||||
|
||||
<Link
|
||||
href="/tools"
|
||||
className={`text-sm font-bold tracking-tight transition-colors ${
|
||||
className={`text-sm font-body transition-colors duration-100 ${
|
||||
pathname.startsWith('/tools')
|
||||
? 'text-blue-600'
|
||||
: 'text-slate-900 hover:text-blue-600'
|
||||
? 'text-ink font-semibold border-b-2 border-accent pb-0.5'
|
||||
: 'text-ink-2 hover:text-ink'
|
||||
}`}
|
||||
>
|
||||
Tools
|
||||
@@ -112,10 +75,10 @@ export function Navbar({ config, currentLocale }: NavbarProps) {
|
||||
|
||||
<Link
|
||||
href="/apps"
|
||||
className={`text-sm font-bold tracking-tight transition-colors ${
|
||||
className={`text-sm font-body transition-colors duration-100 ${
|
||||
pathname.startsWith('/apps')
|
||||
? 'text-blue-600'
|
||||
: 'text-slate-900 hover:text-blue-600'
|
||||
? 'text-ink font-semibold border-b-2 border-accent pb-0.5'
|
||||
: 'text-ink-2 hover:text-ink'
|
||||
}`}
|
||||
>
|
||||
Apps
|
||||
@@ -123,10 +86,10 @@ export function Navbar({ config, currentLocale }: NavbarProps) {
|
||||
|
||||
<Link
|
||||
href="/pricing"
|
||||
className={`text-sm font-bold tracking-tight transition-colors ${
|
||||
className={`text-sm font-body transition-colors duration-100 ${
|
||||
pathname.startsWith('/pricing')
|
||||
? 'text-blue-600'
|
||||
: 'text-slate-900 hover:text-blue-600'
|
||||
? 'text-ink font-semibold border-b-2 border-accent pb-0.5'
|
||||
: 'text-ink-2 hover:text-ink'
|
||||
}`}
|
||||
>
|
||||
Pricing
|
||||
@@ -134,23 +97,23 @@ export function Navbar({ config, currentLocale }: NavbarProps) {
|
||||
|
||||
<Link
|
||||
href="/trust"
|
||||
className={`text-sm font-bold tracking-tight transition-colors ${
|
||||
className={`text-sm font-body transition-colors duration-100 ${
|
||||
pathname.startsWith('/trust')
|
||||
? 'text-blue-600'
|
||||
: 'text-slate-900 hover:text-blue-600'
|
||||
? 'text-ink font-semibold border-b-2 border-accent pb-0.5'
|
||||
: 'text-ink-2 hover:text-ink'
|
||||
}`}
|
||||
>
|
||||
Trust & Privacy
|
||||
Trust & privacy
|
||||
</Link>
|
||||
</nav>
|
||||
|
||||
{/* Right CTA Button: Blue "Get the App" pill button */}
|
||||
{/* Right CTA Button: Cadmium orange action */}
|
||||
<div className="hidden md:flex items-center space-x-3 relative z-20 flex-shrink-0">
|
||||
<Link
|
||||
href="/apps"
|
||||
className="px-5 py-2.5 rounded-full text-xs sm:text-sm font-bold text-white bg-blue-600 hover:bg-blue-500 shadow-md shadow-blue-500/25 transition-all duration-200 hover:scale-105 active:scale-95"
|
||||
href="/tools"
|
||||
className="btn-primary"
|
||||
>
|
||||
Get the App
|
||||
Try tools
|
||||
</Link>
|
||||
</div>
|
||||
|
||||
@@ -158,98 +121,68 @@ export function Navbar({ config, currentLocale }: NavbarProps) {
|
||||
<div className="flex md:hidden items-center space-x-2 relative z-20">
|
||||
<button
|
||||
onClick={() => setMobileMenuOpen(!mobileMenuOpen)}
|
||||
className={`transition-all duration-300 active:scale-95 ${
|
||||
isTextOnlyMode && !mobileMenuOpen
|
||||
? 'p-2 text-slate-900 hover:text-blue-600 bg-transparent border-transparent'
|
||||
: 'p-2.5 rounded-xl border text-slate-900 bg-white hover:bg-slate-50 border-slate-200/90 shadow-2xs'
|
||||
}`}
|
||||
aria-label={mobileMenuOpen ? 'Close navigation menu' : 'Open navigation menu'}
|
||||
aria-expanded={mobileMenuOpen}
|
||||
className="p-2 text-ink hover:text-ink-2 active:bg-paper-2 disabled:opacity-50 focus-visible:ring-2 focus-visible:ring-accent rounded"
|
||||
aria-label={mobileMenuOpen ? 'Close menu' : 'Open menu'}
|
||||
>
|
||||
{mobileMenuOpen ? <X className="w-5 h-5 text-blue-600" /> : <Menu className="w-5 h-5 text-slate-900" />}
|
||||
{mobileMenuOpen ? (
|
||||
<X className="w-5 h-5 text-ink" aria-hidden="true" />
|
||||
) : (
|
||||
<Menu className="w-5 h-5 text-ink" aria-hidden="true" />
|
||||
)}
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{/* Mobile Drawer */}
|
||||
{mobileMenuOpen && (
|
||||
<nav
|
||||
id="mobile-navigation"
|
||||
aria-label="Mobile navigation"
|
||||
className="md:hidden fixed inset-x-0 top-[60px] sm:top-[68px] bottom-0 z-50 bg-[#FAF8F5] overflow-y-auto px-4 py-5 flex flex-col justify-between pointer-events-auto border-t border-slate-200/90 animate-in fade-in duration-200"
|
||||
>
|
||||
<div className="w-full max-w-md mx-auto space-y-2.5">
|
||||
<div className="md:hidden border-t border-rule bg-paper px-4 py-6 space-y-4">
|
||||
<nav className="flex flex-col space-y-3">
|
||||
<Link
|
||||
href="/"
|
||||
onClick={() => setMobileMenuOpen(false)}
|
||||
className={`flex items-center justify-between px-4 py-3.5 rounded-2xl text-sm font-semibold transition-all border ${
|
||||
pathname === '/'
|
||||
? 'text-blue-700 bg-white border-blue-200 shadow-sm'
|
||||
: 'text-slate-800 bg-white hover:bg-slate-50 border-slate-200/80 shadow-xs'
|
||||
}`}
|
||||
className="text-base font-body text-ink hover:text-accent py-1"
|
||||
>
|
||||
<span>Home</span>
|
||||
Home
|
||||
</Link>
|
||||
|
||||
<Link
|
||||
href="/tools"
|
||||
onClick={() => setMobileMenuOpen(false)}
|
||||
className={`flex items-center justify-between px-4 py-3.5 rounded-2xl text-sm font-semibold transition-all border ${
|
||||
pathname.startsWith('/tools')
|
||||
? 'text-blue-700 bg-white border-blue-200 shadow-sm'
|
||||
: 'text-slate-800 bg-white hover:bg-slate-50 border-slate-200/80 shadow-xs'
|
||||
}`}
|
||||
className="text-base font-body text-ink hover:text-accent py-1"
|
||||
>
|
||||
<span>Tools</span>
|
||||
Tools
|
||||
</Link>
|
||||
|
||||
<Link
|
||||
href="/apps"
|
||||
onClick={() => setMobileMenuOpen(false)}
|
||||
className={`flex items-center justify-between px-4 py-3.5 rounded-2xl text-sm font-semibold transition-all border ${
|
||||
pathname.startsWith('/apps')
|
||||
? 'text-blue-700 bg-white border-blue-200 shadow-sm'
|
||||
: 'text-slate-800 bg-white hover:bg-slate-50 border-slate-200/80 shadow-xs'
|
||||
}`}
|
||||
className="text-base font-body text-ink hover:text-accent py-1"
|
||||
>
|
||||
<span>Apps</span>
|
||||
Apps
|
||||
</Link>
|
||||
|
||||
<Link
|
||||
href="/pricing"
|
||||
onClick={() => setMobileMenuOpen(false)}
|
||||
className={`flex items-center justify-between px-4 py-3.5 rounded-2xl text-sm font-semibold transition-all border ${
|
||||
pathname.startsWith('/pricing')
|
||||
? 'text-blue-700 bg-white border-blue-200 shadow-sm'
|
||||
: 'text-slate-800 bg-white hover:bg-slate-50 border-slate-200/80 shadow-xs'
|
||||
}`}
|
||||
className="text-base font-body text-ink hover:text-accent py-1"
|
||||
>
|
||||
<span>Pricing</span>
|
||||
Pricing
|
||||
</Link>
|
||||
|
||||
<Link
|
||||
href="/trust"
|
||||
onClick={() => setMobileMenuOpen(false)}
|
||||
className={`flex items-center justify-between px-4 py-3.5 rounded-2xl text-sm font-semibold transition-all border ${
|
||||
pathname.startsWith('/trust')
|
||||
? 'text-blue-700 bg-white border-blue-200 shadow-sm'
|
||||
: 'text-slate-800 bg-white hover:bg-slate-50 border-slate-200/80 shadow-xs'
|
||||
}`}
|
||||
className="text-base font-body text-ink hover:text-accent py-1"
|
||||
>
|
||||
<span>Trust & Privacy</span>
|
||||
Trust & privacy
|
||||
</Link>
|
||||
</div>
|
||||
|
||||
<div className="w-full max-w-md mx-auto pt-6 border-t border-slate-200/80">
|
||||
</nav>
|
||||
<div className="pt-2">
|
||||
<Link
|
||||
href="/apps"
|
||||
href="/tools"
|
||||
onClick={() => setMobileMenuOpen(false)}
|
||||
className="w-full inline-flex items-center justify-center py-3.5 rounded-full text-sm font-bold text-white bg-blue-600 hover:bg-blue-700 shadow-md shadow-blue-500/25"
|
||||
className="btn-primary w-full text-center"
|
||||
>
|
||||
Get the App
|
||||
Try tools free
|
||||
</Link>
|
||||
</div>
|
||||
</nav>
|
||||
</div>
|
||||
)}
|
||||
</header>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user