Files
webb/src/components/sections/ReviewsMarqueeSection.tsx
T

148 lines
5.4 KiB
TypeScript
Raw Normal View History

'use client';
2026-11-06 10:53:55 +05:30
import React from 'react';
import { Star } from 'lucide-react';
import { Marquee } from '@/components/magicui/marquee';
interface ReviewsMarqueeSectionProps {
title?: string;
badge?: string;
subtitle?: string;
}
const REVIEWS_ROW_1 = [
{
name: 'Elena Rostova',
2026-11-06 10:53:55 +05:30
role: 'Editorial portrait photographer',
body: 'The blemish remover removes spots and imperfections while keeping real pores and skin texture intact.',
tool: 'Skin & blemish retoucher',
},
{
name: 'Marcus Vance',
2026-11-06 10:53:55 +05:30
role: 'Store owner',
body: 'The P3M cutout matting separated flyaway hair strands and transparent glass reflections cleanly.',
tool: 'Background remover',
},
{
name: 'David Chen',
2026-11-06 10:53:55 +05:30
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',
},
{
name: 'Ananya Sharma',
2026-11-06 10:53:55 +05:30
role: 'Creative director',
body: 'Clean results without account registration. Tested in browser and handed off to mobile for batch work.',
tool: 'Mobile studio suite',
},
];
const REVIEWS_ROW_2 = [
{
name: 'Liam O’Connor',
2026-11-06 10:53:55 +05:30
role: 'Historical archivist',
body: 'Restored vintage portrait prints with natural iris clarity and fine fiber details intact.',
tool: 'Archival restorer',
},
{
name: 'Chloe Dubois',
2026-11-06 10:53:55 +05:30
role: 'Content creator',
body: 'The anime tool reinterprets lineart and shading rather than just applying a cheap filter blur.',
tool: 'Anime synthesis',
},
{
name: 'Vikram Malhotra',
2026-11-06 10:53:55 +05:30
role: 'Design engineer',
body: 'Instantaneous before/after comparison scrub with lossless 4K export quality directly in session.',
tool: 'Photo enhancer 4K',
},
{
name: 'Sophie Tanaka',
2026-11-06 10:53:55 +05:30
role: 'Commercial retoucher',
body: 'Subtly brightens enamel while respecting natural gum tones and lighting reflections.',
tool: 'Teeth whitener',
},
];
export function ReviewsMarqueeSection({
2026-11-06 10:53:55 +05:30
title = 'Photographer & studio notes',
subtitle = 'Feedback from portrait photographers, archivists, and studio retouchers.',
}: ReviewsMarqueeSectionProps) {
return (
<section
id="user-reviews"
2026-11-06 10:53:55 +05:30
className="py-16 sm:py-24 bg-paper border-b border-rule relative overflow-hidden"
>
2026-11-06 10:53:55 +05:30
<div className="max-w-container mx-auto px-4 sm:px-6 md:px-8 lg:px-10 space-y-10">
{/* Section Header */}
2026-11-06 10:53:55 +05:30
<div className="max-w-2xl space-y-2 border-b border-rule pb-5">
<h2 className="text-3xl sm:text-4xl font-display font-bold text-ink tracking-tight">
{title}
</h2>
2026-11-06 10:53:55 +05:30
<p className="text-sm sm:text-base text-ink-2 font-body text-pretty">
{subtitle}
</p>
</div>
2026-11-06 10:53:55 +05:30
{/* 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>
2026-11-06 10:53:55 +05:30
{/* Marquee Row 2 */}
<Marquee reverse pauseOnHover className="[--duration:45s]">
{REVIEWS_ROW_2.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>
</div>
</div>
</section>
);
}