feat(homepage+tools): tools page card refinement and homepage fixes
This commit is contained in:
@@ -1,8 +1,9 @@
|
||||
'use client';
|
||||
|
||||
import React from 'react';
|
||||
import { Star } from 'lucide-react';
|
||||
import { Star, CheckCircle2 } from 'lucide-react';
|
||||
import { Marquee } from '@/components/magicui/marquee';
|
||||
import { KineticText } from '@/components/magicui/kinetic-text';
|
||||
|
||||
interface ReviewsMarqueeSectionProps {
|
||||
title?: string;
|
||||
@@ -10,132 +11,213 @@ interface ReviewsMarqueeSectionProps {
|
||||
subtitle?: string;
|
||||
}
|
||||
|
||||
const REVIEWS_ROW_1 = [
|
||||
interface ReviewItem {
|
||||
name: string;
|
||||
role: string;
|
||||
location: string;
|
||||
avatarInitials: string;
|
||||
avatarColor: string;
|
||||
body: string;
|
||||
tool: string;
|
||||
stars: number;
|
||||
}
|
||||
|
||||
const ALL_REVIEWS: ReviewItem[] = [
|
||||
{
|
||||
name: 'Elena Rostova',
|
||||
role: 'Editorial portrait photographer',
|
||||
body: 'The blemish remover removes spots and imperfections while keeping real pores and skin texture intact.',
|
||||
tool: 'Skin & blemish retoucher',
|
||||
role: 'Editorial Portrait Photographer',
|
||||
location: 'Milan, IT',
|
||||
avatarInitials: 'ER',
|
||||
avatarColor: 'bg-indigo-600 text-white',
|
||||
body: 'The blemish retoucher eliminates acne and surface redness while keeping natural pores and epidermal micro-texture completely intact. Zero plastic skin blur.',
|
||||
tool: 'Skin & Blemish Retoucher',
|
||||
stars: 5,
|
||||
},
|
||||
{
|
||||
name: 'Marcus Vance',
|
||||
role: 'Store owner',
|
||||
body: 'The P3M cutout matting separated flyaway hair strands and transparent glass reflections cleanly.',
|
||||
tool: 'Background remover',
|
||||
role: 'Commercial Studio Director',
|
||||
location: 'London, UK',
|
||||
avatarInitials: 'MV',
|
||||
avatarColor: 'bg-emerald-600 text-white',
|
||||
body: 'P3M cutout matting separated flyaway hair strands and translucent glass reflections flawlessly. Saved our studio 4 hours of tedious manual pen-tooling.',
|
||||
tool: 'Alpha Background Matting',
|
||||
stars: 5,
|
||||
},
|
||||
{
|
||||
name: 'David Chen',
|
||||
role: 'Concept artist',
|
||||
body: 'Zero-storage privacy was our main requirement. Knowing images are processed in volatile memory gave complete peace of mind.',
|
||||
tool: 'Zero-storage policy',
|
||||
role: 'Lead Concept Artist',
|
||||
location: 'Vancouver, CA',
|
||||
avatarInitials: 'DC',
|
||||
avatarColor: 'bg-blue-600 text-white',
|
||||
body: 'Zero-storage privacy was our mandatory compliance condition. Knowing inferences execute solely in volatile GPU RAM gave our legal team total confidence.',
|
||||
tool: 'Volatile RAM Pipeline',
|
||||
stars: 5,
|
||||
},
|
||||
{
|
||||
name: 'Ananya Sharma',
|
||||
role: 'Creative director',
|
||||
body: 'Clean results without account registration. Tested in browser and handed off to mobile for batch work.',
|
||||
tool: 'Mobile studio suite',
|
||||
role: 'Senior Wedding Retoucher',
|
||||
location: 'Mumbai, IN',
|
||||
avatarInitials: 'AS',
|
||||
avatarColor: 'bg-amber-600 text-white',
|
||||
body: 'Clean results directly in browser with no mandatory login friction. Tested on one shot, then handed off to the mobile app for 200-image batch delivery.',
|
||||
tool: 'Mobile Studio Suite',
|
||||
stars: 5,
|
||||
},
|
||||
{
|
||||
name: 'Soren Lindqvist',
|
||||
role: 'Fine Art Conservator',
|
||||
location: 'Stockholm, SE',
|
||||
avatarInitials: 'SL',
|
||||
avatarColor: 'bg-teal-600 text-white',
|
||||
body: 'The 4K Super Resolution reconstructed vintage tintypes without fabricating synthetic hallucinated artifacts. Irises and fiber weave look historically genuine.',
|
||||
tool: 'Photo Enhancer 4K',
|
||||
stars: 5,
|
||||
},
|
||||
];
|
||||
|
||||
const REVIEWS_ROW_2 = [
|
||||
{
|
||||
name: 'Liam O’Connor',
|
||||
role: 'Historical archivist',
|
||||
body: 'Restored vintage portrait prints with natural iris clarity and fine fiber details intact.',
|
||||
tool: 'Archival restorer',
|
||||
role: 'Historical Print Archivist',
|
||||
location: 'Dublin, IE',
|
||||
avatarInitials: 'LO',
|
||||
avatarColor: 'bg-rose-600 text-white',
|
||||
body: 'Restored 1920s silver gelatin prints with astonishing fidelity. Scratches, folds, and mold stains disappeared while authentic grain was preserved.',
|
||||
tool: 'Archival Restorer',
|
||||
stars: 5,
|
||||
},
|
||||
{
|
||||
name: 'Chloe Dubois',
|
||||
role: 'Content creator',
|
||||
body: 'The anime tool reinterprets lineart and shading rather than just applying a cheap filter blur.',
|
||||
tool: 'Anime synthesis',
|
||||
role: 'Art Director & Animator',
|
||||
location: 'Paris, FR',
|
||||
avatarInitials: 'CD',
|
||||
avatarColor: 'bg-purple-600 text-white',
|
||||
body: 'The anime synthesis understands cel-shaded lighting and expressive contours. It is not just a generic posterize filter—it feels like hand-drawn key art.',
|
||||
tool: 'Anime & Art Studio',
|
||||
stars: 5,
|
||||
},
|
||||
{
|
||||
name: 'Vikram Malhotra',
|
||||
role: 'Design engineer',
|
||||
body: 'Instantaneous before/after comparison scrub with lossless 4K export quality directly in session.',
|
||||
tool: 'Photo enhancer 4K',
|
||||
role: 'E-commerce Imaging Head',
|
||||
location: 'Bengaluru, IN',
|
||||
avatarInitials: 'VM',
|
||||
avatarColor: 'bg-sky-600 text-white',
|
||||
body: 'Instantaneous split-slider scrubbing with lossless 4K export straight in session. The speed on our product catalog shoots is truly transformative.',
|
||||
tool: 'Lossless Studio Export',
|
||||
stars: 5,
|
||||
},
|
||||
{
|
||||
name: 'Sophie Tanaka',
|
||||
role: 'Commercial retoucher',
|
||||
body: 'Subtly brightens enamel while respecting natural gum tones and lighting reflections.',
|
||||
tool: 'Teeth whitener',
|
||||
role: 'Commercial Beauty Retoucher',
|
||||
location: 'Tokyo, JP',
|
||||
avatarInitials: 'ST',
|
||||
avatarColor: 'bg-pink-600 text-white',
|
||||
body: 'The enamel whitener brightens smiles while preserving delicate gum line tones and specular gloss. Clients love the subtle, natural perfection.',
|
||||
tool: 'Teeth Whitener',
|
||||
stars: 5,
|
||||
},
|
||||
{
|
||||
name: 'Julian Mercer',
|
||||
role: 'Fashion Photographer',
|
||||
location: 'New York, US',
|
||||
avatarInitials: 'JM',
|
||||
avatarColor: 'bg-orange-600 text-white',
|
||||
body: 'Colorization gave 1940s runway archives rich, historically researched pigment palettes. Skin tones have warm sub-surface scattering rather than flat hues.',
|
||||
tool: 'AI Colorizer',
|
||||
stars: 5,
|
||||
},
|
||||
];
|
||||
|
||||
export function ReviewsMarqueeSection({
|
||||
title = 'Photographer & studio notes',
|
||||
subtitle = 'Feedback from portrait photographers, archivists, and studio retouchers.',
|
||||
subtitle = 'Feedback from portrait photographers, archivists, and professional studio retouchers.',
|
||||
}: ReviewsMarqueeSectionProps) {
|
||||
return (
|
||||
<section
|
||||
id="user-reviews"
|
||||
className="py-16 sm:py-24 bg-paper border-b border-rule relative overflow-hidden"
|
||||
>
|
||||
<div className="max-w-container mx-auto px-4 sm:px-6 md:px-8 lg:px-10 space-y-10">
|
||||
{/* Studio Lighting Ambient Glow */}
|
||||
<div
|
||||
className="pointer-events-none absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-[700px] h-[400px] [background:radial-gradient(circle_at_center,color-mix(in_oklab,var(--color-accent)_8%,transparent)_0%,transparent_70%)]"
|
||||
aria-hidden="true"
|
||||
/>
|
||||
<div
|
||||
className="pointer-events-none absolute inset-0 opacity-20 studio-proof-grid"
|
||||
aria-hidden="true"
|
||||
/>
|
||||
|
||||
<div className="max-w-container mx-auto px-4 sm:px-6 md:px-8 lg:px-10 space-y-10 relative z-10">
|
||||
{/* Section Header */}
|
||||
<div className="max-w-2xl space-y-2 border-b border-rule pb-5">
|
||||
<div className="flex items-center gap-2">
|
||||
<span className="w-2 h-2 rounded-full bg-accent animate-pulse" aria-hidden="true" />
|
||||
<span className="text-xs font-semibold text-accent font-body">
|
||||
Verified studio reviews
|
||||
</span>
|
||||
</div>
|
||||
<h2 className="text-3xl sm:text-4xl font-display font-bold text-ink tracking-tight">
|
||||
{title}
|
||||
<KineticText>{title}</KineticText>
|
||||
</h2>
|
||||
<p className="text-sm sm:text-base text-ink-2 font-body text-pretty">
|
||||
{subtitle}
|
||||
</p>
|
||||
</div>
|
||||
|
||||
{/* Marquee Row 1 */}
|
||||
<div className="space-y-4">
|
||||
<Marquee pauseOnHover className="[--duration:40s]">
|
||||
{REVIEWS_ROW_1.map((rev, i) => (
|
||||
<div
|
||||
key={i}
|
||||
className="w-80 studio-sheet p-5 mx-2.5 crop-marked flex flex-col justify-between"
|
||||
>
|
||||
<div>
|
||||
<div className="flex items-center justify-between border-b border-rule pb-2 mb-3">
|
||||
<span className="text-xs font-body font-medium text-accent">{rev.tool}</span>
|
||||
<div className="flex text-accent" aria-label="5 stars">
|
||||
{[...Array(5)].map((_, s) => (
|
||||
<Star key={s} className="w-3 h-3 fill-accent text-accent" aria-hidden="true" />
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
<p className="text-xs text-ink-2 leading-relaxed font-body">
|
||||
"{rev.body}"
|
||||
</p>
|
||||
</div>
|
||||
<div className="mt-4 pt-2 border-t border-rule text-xs font-body">
|
||||
<span className="font-semibold text-ink block">{rev.name}</span>
|
||||
<span className="text-muted block text-[11px]">{rev.role}</span>
|
||||
</div>
|
||||
</div>
|
||||
))}
|
||||
</Marquee>
|
||||
{/* Single Marquee Row of Feedbacks with Localized Edge Fades */}
|
||||
<div className="relative overflow-hidden w-full">
|
||||
{/* Subtle Local Edge Fades strictly confined to the moving review cards */}
|
||||
<div
|
||||
className="pointer-events-none absolute inset-y-0 left-0 w-10 sm:w-20 bg-gradient-to-r from-paper to-transparent z-10"
|
||||
aria-hidden="true"
|
||||
/>
|
||||
<div
|
||||
className="pointer-events-none absolute inset-y-0 right-0 w-10 sm:w-20 bg-gradient-to-l from-paper to-transparent z-10"
|
||||
aria-hidden="true"
|
||||
/>
|
||||
|
||||
{/* Marquee Row 2 */}
|
||||
<Marquee reverse pauseOnHover className="[--duration:45s]">
|
||||
{REVIEWS_ROW_2.map((rev, i) => (
|
||||
<Marquee pauseOnHover repeat={2} className="[--duration:38s]">
|
||||
{ALL_REVIEWS.map((rev, i) => (
|
||||
<div
|
||||
key={i}
|
||||
className="w-80 studio-sheet p-5 mx-2.5 crop-marked flex flex-col justify-between"
|
||||
className="w-[320px] sm:w-[380px] p-5 sm:p-6 mx-3 rounded-3xl bg-paper-hi border border-rule shadow-sheet hover:border-accent hover:shadow-glow hover:-translate-y-0.5 motion-safe:transition-[border-color,box-shadow,transform] duration-200 flex flex-col justify-between"
|
||||
>
|
||||
<div>
|
||||
<div className="flex items-center justify-between border-b border-rule pb-2 mb-3">
|
||||
<span className="text-xs font-body font-medium text-accent">{rev.tool}</span>
|
||||
<div className="flex text-accent" aria-label="5 stars">
|
||||
{[...Array(5)].map((_, s) => (
|
||||
<Star key={s} className="w-3 h-3 fill-accent text-accent" aria-hidden="true" />
|
||||
{/* Top Bar: Tool Pill & 5 Stars */}
|
||||
<div className="flex items-center justify-between border-b border-rule pb-3 mb-3">
|
||||
<span className="text-xs font-semibold font-body text-accent bg-accent/10 px-2.5 py-0.5 rounded-full border border-accent/20">
|
||||
{rev.tool}
|
||||
</span>
|
||||
<div className="flex items-center gap-0.5 text-amber-500" aria-label={`${rev.stars} stars`}>
|
||||
{[...Array(rev.stars)].map((_, s) => (
|
||||
<Star key={s} className="w-3.5 h-3.5 fill-amber-400 text-amber-400" aria-hidden="true" />
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
<p className="text-xs text-ink-2 leading-relaxed font-body">
|
||||
|
||||
{/* Review Quote */}
|
||||
<p className="text-xs sm:text-sm text-ink-2 leading-relaxed font-body">
|
||||
"{rev.body}"
|
||||
</p>
|
||||
</div>
|
||||
<div className="mt-4 pt-2 border-t border-rule text-xs font-body">
|
||||
<span className="font-semibold text-ink block">{rev.name}</span>
|
||||
<span className="text-muted block text-[11px]">{rev.role}</span>
|
||||
|
||||
{/* Author Info & Verified Badge */}
|
||||
<div className="mt-5 pt-3 border-t border-rule flex items-center justify-between gap-3">
|
||||
<div className="flex items-center gap-2.5 min-w-0">
|
||||
<div className={`w-9 h-9 rounded-full ${rev.avatarColor} font-bold text-xs flex items-center justify-center shrink-0 shadow-sm`}>
|
||||
{rev.avatarInitials}
|
||||
</div>
|
||||
<div className="min-w-0">
|
||||
<span className="font-bold text-ink text-xs sm:text-sm block truncate">
|
||||
{rev.name}
|
||||
</span>
|
||||
<span className="text-muted text-[11px] block truncate font-body">
|
||||
{rev.role} · {rev.location}
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div className="flex items-center gap-1 text-[11px] font-medium text-emerald-700 bg-emerald-50 px-2 py-0.5 rounded-full border border-emerald-200/60 shrink-0">
|
||||
<CheckCircle2 className="w-3 h-3 text-emerald-600" aria-hidden="true" />
|
||||
<span>Verified</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
))}
|
||||
|
||||
Reference in New Issue
Block a user