feat(ui): complete homepage overhaul with magicui animations, shiftable tools grid, bento grid, 3D visualizer, and marquee reviews
This commit is contained in:
@@ -0,0 +1,158 @@
|
||||
'use client';
|
||||
|
||||
import React from 'react';
|
||||
import {
|
||||
Sparkles,
|
||||
Scissors,
|
||||
Wand2,
|
||||
Palette,
|
||||
Video,
|
||||
SunMedium,
|
||||
Layers,
|
||||
} from 'lucide-react';
|
||||
import { BentoGrid, BentoCard } from '@/components/magicui/bento-grid';
|
||||
import { TextAnimate } from '@/components/magicui/text-animate';
|
||||
|
||||
interface TrendyBentoSectionProps {
|
||||
title?: string;
|
||||
badge?: string;
|
||||
subtitle?: string;
|
||||
}
|
||||
|
||||
export function TrendyBentoSection({
|
||||
title = 'Trendy Neural Effects',
|
||||
badge = 'FEATURED CAPABILITIES',
|
||||
subtitle = 'Cutting-edge AI transformations engineered for creators, ecommerce, and studio professionals.',
|
||||
}: TrendyBentoSectionProps) {
|
||||
const bentoCards = [
|
||||
{
|
||||
Icon: Scissors,
|
||||
name: 'Hair-Strand P3M Matting',
|
||||
description: 'Microscopic flyaway hair boundary separation with sub-pixel alpha matting.',
|
||||
href: '/tools/background-remover',
|
||||
cta: 'Try Alpha Matting',
|
||||
badge: 'TRENDING CUTOUT',
|
||||
className: 'md:col-span-2',
|
||||
background: (
|
||||
<img
|
||||
src="/management/pages/home/media/reel_hair_alpha.jpg"
|
||||
alt="Hair Cutout"
|
||||
className="absolute inset-0 w-full h-full object-cover transition-transform duration-500 group-hover:scale-105"
|
||||
/>
|
||||
),
|
||||
},
|
||||
{
|
||||
Icon: Wand2,
|
||||
name: '4K Generative Face Restoration',
|
||||
description: 'Neural restoration that preserves real skin pores, eyelashes, and authentic iris glints.',
|
||||
href: '/tools/old-photo-restorer',
|
||||
cta: 'Restore Photos',
|
||||
badge: '4K RESTORATION',
|
||||
className: 'md:col-span-1',
|
||||
background: (
|
||||
<img
|
||||
src="/management/pages/home/media/reel_restore_after.jpg"
|
||||
alt="Restoration"
|
||||
className="absolute inset-0 w-full h-full object-cover transition-transform duration-500 group-hover:scale-105"
|
||||
/>
|
||||
),
|
||||
},
|
||||
{
|
||||
Icon: Sparkles,
|
||||
name: 'Cartoon & AnimeGAN Synthesis',
|
||||
description: 'Transform portraits into high-definition anime illustrations and stylized manga art.',
|
||||
href: '/tools/cartoon-avatar',
|
||||
cta: 'Create Avatar',
|
||||
badge: 'VIRAL ANIME',
|
||||
className: 'md:col-span-1',
|
||||
background: (
|
||||
<img
|
||||
src="/management/pages/home/media/showcase_05_cartoon_after.jpg"
|
||||
alt="Cartoon Avatar"
|
||||
className="absolute inset-0 w-full h-full object-cover transition-transform duration-500 group-hover:scale-105"
|
||||
/>
|
||||
),
|
||||
},
|
||||
{
|
||||
Icon: Video,
|
||||
name: 'Temporal Video Retouching',
|
||||
description: 'Continuous temporal epidermal smoothing across 4K dynamic video clips with zero flicker.',
|
||||
href: '/tools/blemish-remover',
|
||||
cta: 'Watch Reel',
|
||||
badge: '4K 60FPS REEL',
|
||||
className: 'md:col-span-2',
|
||||
background: (
|
||||
<img
|
||||
src="/management/pages/home/media/reel_video_poster.jpg"
|
||||
alt="Video Retouch"
|
||||
className="absolute inset-0 w-full h-full object-cover transition-transform duration-500 group-hover:scale-105"
|
||||
/>
|
||||
),
|
||||
},
|
||||
{
|
||||
Icon: Palette,
|
||||
name: 'Historical Deep Colorizer',
|
||||
description: 'Reconstruct vintage monochrome family archives with historically grounded pigment priors.',
|
||||
href: '/tools/colorization',
|
||||
cta: 'Colorize Archive',
|
||||
badge: 'ARCHIVAL AI',
|
||||
className: 'md:col-span-1',
|
||||
background: (
|
||||
<img
|
||||
src="/management/pages/home/media/showcase_04_restore_after.jpg"
|
||||
alt="Colorizer"
|
||||
className="absolute inset-0 w-full h-full object-cover transition-transform duration-500 group-hover:scale-105"
|
||||
/>
|
||||
),
|
||||
},
|
||||
{
|
||||
Icon: SunMedium,
|
||||
name: 'Studio Relight & Sub-Pore Retouch',
|
||||
description: 'Virtual three-point studio softbox illumination and non-destructive blemish removal.',
|
||||
href: '/tools/blemish-remover',
|
||||
cta: 'Relight Portrait',
|
||||
badge: 'STUDIO GRADE',
|
||||
className: 'md:col-span-2',
|
||||
background: (
|
||||
<img
|
||||
src="/management/pages/home/media/sample_portrait_1.jpg"
|
||||
alt="Studio Relight"
|
||||
className="absolute inset-0 w-full h-full object-cover transition-transform duration-500 group-hover:scale-105"
|
||||
/>
|
||||
),
|
||||
},
|
||||
];
|
||||
|
||||
return (
|
||||
<section id="trendy-effects" className="py-20 sm:py-28 px-4 sm:px-6 lg:px-8 bg-[#FAF8F5] relative overflow-hidden border-t border-slate-900/[0.06]">
|
||||
<div className="max-w-7xl mx-auto space-y-12">
|
||||
{/* Header */}
|
||||
<div className="text-center max-w-3xl mx-auto space-y-4">
|
||||
<div className="inline-flex items-center gap-2 px-3.5 py-1 rounded-full text-xs font-mono font-semibold tracking-wider uppercase text-blue-700 bg-blue-50 border border-blue-200">
|
||||
<Sparkles className="w-3.5 h-3.5 text-blue-600" />
|
||||
<span>{badge}</span>
|
||||
</div>
|
||||
|
||||
<h2 className="text-3xl sm:text-5xl font-display font-extrabold text-slate-900 tracking-tight">
|
||||
<TextAnimate animation="slideLeft" by="character">
|
||||
{title}
|
||||
</TextAnimate>
|
||||
</h2>
|
||||
|
||||
<p className="text-sm sm:text-base text-slate-600 font-sans">
|
||||
<TextAnimate animation="fadeIn" by="word" delay={0.2}>
|
||||
{subtitle}
|
||||
</TextAnimate>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
{/* Bento Grid Layout */}
|
||||
<BentoGrid className="lg:grid-rows-2">
|
||||
{bentoCards.map((card, idx) => (
|
||||
<BentoCard key={idx} {...card} />
|
||||
))}
|
||||
</BentoGrid>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user