feat: seamless sticky showcase scroll, tool page hero comparison, and homepage tool stack sliders
This commit is contained in:
@@ -39,250 +39,144 @@ export function CinematicHorizontalScrollSection({
|
|||||||
subtitle = 'Browse the flagship tools with native cinematic pan controls.',
|
subtitle = 'Browse the flagship tools with native cinematic pan controls.',
|
||||||
items = [],
|
items = [],
|
||||||
}: CinematicHorizontalProps) {
|
}: CinematicHorizontalProps) {
|
||||||
const sectionRef = useRef<HTMLElement>(null);
|
const containerRef = useRef<HTMLElement>(null);
|
||||||
const railRef = useRef<HTMLDivElement>(null);
|
const trackRef = useRef<HTMLDivElement>(null);
|
||||||
const activeIndexRef = useRef(0);
|
const [translateX, setTranslateX] = useState(0);
|
||||||
const lastWheelTimeRef = useRef(0);
|
const [activeIndex, setActiveIndex] = useState(0);
|
||||||
|
|
||||||
const [canScrollLeft, setCanScrollLeft] = useState(false);
|
const [canScrollLeft, setCanScrollLeft] = useState(false);
|
||||||
const [canScrollRight, setCanScrollRight] = useState(true);
|
const [canScrollRight, setCanScrollRight] = useState(true);
|
||||||
|
|
||||||
// Helper to compute snap-center targets for all cards
|
// Synchronize horizontal track position with vertical scroll progress through sticky section
|
||||||
const getCardPositions = useCallback(() => {
|
const updateTranslation = useCallback(() => {
|
||||||
const rail = railRef.current;
|
const container = containerRef.current;
|
||||||
if (!rail) return [];
|
const track = trackRef.current;
|
||||||
const cards = Array.from(rail.querySelectorAll('article'));
|
if (!container || !track) return;
|
||||||
if (!cards.length) return [];
|
|
||||||
|
|
||||||
const halfView = rail.clientWidth / 2;
|
const rect = container.getBoundingClientRect();
|
||||||
const maxScroll = Math.max(0, rail.scrollWidth - rail.clientWidth);
|
const totalScrollable = container.offsetHeight - window.innerHeight;
|
||||||
|
if (totalScrollable <= 0) return;
|
||||||
|
|
||||||
return cards.map((c) => {
|
// Progress: 0.0 when section top hits viewport top, 1.0 when bottom unpins
|
||||||
const center = c.offsetLeft + c.offsetWidth / 2;
|
const progress = Math.max(0, Math.min(1, -rect.top / totalScrollable));
|
||||||
return Math.max(0, Math.min(maxScroll, Math.round(center - halfView)));
|
|
||||||
});
|
const cards = Array.from(track.querySelectorAll('article'));
|
||||||
|
if (cards.length <= 1) return;
|
||||||
|
|
||||||
|
const firstCenter = cards[0].offsetLeft + cards[0].offsetWidth / 2;
|
||||||
|
const lastCenter = cards[cards.length - 1].offsetLeft + cards[cards.length - 1].offsetWidth / 2;
|
||||||
|
const maxDistance = lastCenter - firstCenter;
|
||||||
|
|
||||||
|
const targetX = progress * maxDistance;
|
||||||
|
setTranslateX(targetX);
|
||||||
|
|
||||||
|
const active = Math.min(
|
||||||
|
cards.length - 1,
|
||||||
|
Math.max(0, Math.round(progress * (cards.length - 1)))
|
||||||
|
);
|
||||||
|
setActiveIndex(active);
|
||||||
|
|
||||||
|
setCanScrollLeft(progress > 0.02);
|
||||||
|
setCanScrollRight(progress < 0.98);
|
||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
// Update bounds and sync active card index on scroll
|
|
||||||
const checkScrollBounds = useCallback(() => {
|
|
||||||
const rail = railRef.current;
|
|
||||||
if (!rail) return;
|
|
||||||
const maxScroll = rail.scrollWidth - rail.clientWidth;
|
|
||||||
const current = rail.scrollLeft;
|
|
||||||
|
|
||||||
setCanScrollLeft(current > 8);
|
|
||||||
setCanScrollRight(current < maxScroll - 8);
|
|
||||||
|
|
||||||
// Sync active index with nearest card
|
|
||||||
const positions = getCardPositions();
|
|
||||||
if (positions.length > 0) {
|
|
||||||
let closest = 0;
|
|
||||||
let minDiff = Infinity;
|
|
||||||
positions.forEach((pos, idx) => {
|
|
||||||
const diff = Math.abs(pos - current);
|
|
||||||
if (diff < minDiff) {
|
|
||||||
minDiff = diff;
|
|
||||||
closest = idx;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
activeIndexRef.current = closest;
|
|
||||||
}
|
|
||||||
}, [getCardPositions]);
|
|
||||||
|
|
||||||
// Update on mount, resize, and scroll
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
const rail = railRef.current;
|
let ticking = false;
|
||||||
if (!rail) return;
|
|
||||||
|
|
||||||
checkScrollBounds();
|
|
||||||
|
|
||||||
const handleScroll = () => {
|
const handleScroll = () => {
|
||||||
checkScrollBounds();
|
if (!ticking) {
|
||||||
|
requestAnimationFrame(() => {
|
||||||
|
updateTranslation();
|
||||||
|
ticking = false;
|
||||||
|
});
|
||||||
|
ticking = true;
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
rail.addEventListener('scroll', handleScroll, { passive: true });
|
updateTranslation();
|
||||||
window.addEventListener('resize', checkScrollBounds);
|
window.addEventListener('scroll', handleScroll, { passive: true });
|
||||||
|
window.addEventListener('resize', handleScroll);
|
||||||
|
|
||||||
return () => {
|
return () => {
|
||||||
rail.removeEventListener('scroll', handleScroll);
|
window.removeEventListener('scroll', handleScroll);
|
||||||
window.removeEventListener('resize', checkScrollBounds);
|
window.removeEventListener('resize', handleScroll);
|
||||||
};
|
};
|
||||||
}, [checkScrollBounds, items.length]);
|
}, [updateTranslation, items.length]);
|
||||||
|
|
||||||
// Mandatory Horizontal Scroll Lock:
|
// Slide between cards using side arrows
|
||||||
// Visitor cannot scroll down past this section until the horizontal scroll is completely finished.
|
|
||||||
useEffect(() => {
|
|
||||||
const rail = railRef.current;
|
|
||||||
const section = sectionRef.current;
|
|
||||||
if (!rail || !section) return;
|
|
||||||
|
|
||||||
const WHEEL_COOLDOWN = 450; // Smooth glide cooldown between cards
|
|
||||||
|
|
||||||
const handleWheel = (e: WheelEvent) => {
|
|
||||||
// Allow native 2-finger horizontal trackpad gestures
|
|
||||||
if (Math.abs(e.deltaX) >= Math.abs(e.deltaY)) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Ignore micro-jitters
|
|
||||||
if (Math.abs(e.deltaY) < 8) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
const sectionRect = section.getBoundingClientRect();
|
|
||||||
const railRect = rail.getBoundingClientRect();
|
|
||||||
const vh = window.innerHeight;
|
|
||||||
|
|
||||||
// If the showcase section is completely outside the viewport, do nothing
|
|
||||||
if (sectionRect.bottom < 0 || sectionRect.top > vh) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
const railCenter = railRect.top + railRect.height / 2;
|
|
||||||
const isDown = e.deltaY > 0;
|
|
||||||
const isUp = e.deltaY < 0;
|
|
||||||
const currentIndex = activeIndexRef.current;
|
|
||||||
const positions = getCardPositions();
|
|
||||||
if (positions.length <= 1) return;
|
|
||||||
|
|
||||||
const lastIndex = positions.length - 1;
|
|
||||||
|
|
||||||
// 1. Approaching from above: allow normal page scroll until cards align in the middle of the screen
|
|
||||||
if (currentIndex === 0 && isDown && railCenter > vh * 0.65) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
// 2. Approaching from below: allow normal page scroll up until cards align in the middle of the screen
|
|
||||||
if (currentIndex === lastIndex && isUp && railCenter < vh * 0.35) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
const now = Date.now();
|
|
||||||
|
|
||||||
// 3. Mandatory completion release & momentum absorption:
|
|
||||||
// At last card scrolling down:
|
|
||||||
if (isDown && currentIndex >= lastIndex) {
|
|
||||||
// If we just glided to the last card, absorb residual wheel burst so visitor doesn't skip seeing it
|
|
||||||
if (now - lastWheelTimeRef.current < WHEEL_COOLDOWN + 150) {
|
|
||||||
e.preventDefault();
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
// Horizontal scroll is complete! Release lock and allow visitor to scroll down the page
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
// At first card scrolling up:
|
|
||||||
if (isUp && currentIndex <= 0) {
|
|
||||||
// If we just glided to the first card, absorb residual wheel burst
|
|
||||||
if (now - lastWheelTimeRef.current < WHEEL_COOLDOWN + 150) {
|
|
||||||
e.preventDefault();
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
// At first card scrolling up -> release lock and allow visitor to scroll up the page
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
// 4. In all other cases while showcase is aligned in middle and horizontal cards are incomplete:
|
|
||||||
// LOCK VERTICAL PAGE SCROLL (Visitor CANNOT scroll down past the section until horizontal scroll is finished)
|
|
||||||
e.preventDefault();
|
|
||||||
|
|
||||||
// Absorb rapid wheel bursts during active glide transition
|
|
||||||
if (now - lastWheelTimeRef.current < WHEEL_COOLDOWN) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
lastWheelTimeRef.current = now;
|
|
||||||
|
|
||||||
// Glide smoothly to next or previous card
|
|
||||||
if (isDown && currentIndex < lastIndex) {
|
|
||||||
const nextIndex = currentIndex + 1;
|
|
||||||
activeIndexRef.current = nextIndex;
|
|
||||||
rail.scrollTo({
|
|
||||||
left: positions[nextIndex],
|
|
||||||
behavior: 'smooth',
|
|
||||||
});
|
|
||||||
} else if (isUp && currentIndex > 0) {
|
|
||||||
const prevIndex = currentIndex - 1;
|
|
||||||
activeIndexRef.current = prevIndex;
|
|
||||||
rail.scrollTo({
|
|
||||||
left: positions[prevIndex],
|
|
||||||
behavior: 'smooth',
|
|
||||||
});
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
window.addEventListener('wheel', handleWheel, { passive: false });
|
|
||||||
return () => {
|
|
||||||
window.removeEventListener('wheel', handleWheel);
|
|
||||||
};
|
|
||||||
}, [getCardPositions]);
|
|
||||||
|
|
||||||
// Slide precisely between cards using side arrows
|
|
||||||
const scrollDirection = (direction: 'left' | 'right') => {
|
const scrollDirection = (direction: 'left' | 'right') => {
|
||||||
const rail = railRef.current;
|
const container = containerRef.current;
|
||||||
if (!rail) return;
|
if (!container) return;
|
||||||
|
const totalScrollable = container.offsetHeight - window.innerHeight;
|
||||||
|
if (totalScrollable <= 0) return;
|
||||||
|
|
||||||
const positions = getCardPositions();
|
const cardsCount = items.length;
|
||||||
if (positions.length <= 1) return;
|
if (cardsCount <= 1) return;
|
||||||
|
|
||||||
const current = rail.scrollLeft;
|
const rect = container.getBoundingClientRect();
|
||||||
let targetIndex = activeIndexRef.current;
|
const containerTopInDoc = window.scrollY + rect.top;
|
||||||
|
const currentProgress = Math.max(0, Math.min(1, -rect.top / totalScrollable));
|
||||||
|
const currentCardIndex = Math.min(
|
||||||
|
cardsCount - 1,
|
||||||
|
Math.max(0, Math.round(currentProgress * (cardsCount - 1)))
|
||||||
|
);
|
||||||
|
|
||||||
|
let targetIndex = currentCardIndex;
|
||||||
if (direction === 'right') {
|
if (direction === 'right') {
|
||||||
const nextIdx = positions.findIndex((pos) => pos > current + 15);
|
targetIndex = Math.min(cardsCount - 1, currentCardIndex + 1);
|
||||||
targetIndex = nextIdx !== -1 ? nextIdx : positions.length - 1;
|
} else if (direction === 'left') {
|
||||||
} else {
|
targetIndex = Math.max(0, currentCardIndex - 1);
|
||||||
let prevIdx = -1;
|
|
||||||
for (let i = positions.length - 1; i >= 0; i--) {
|
|
||||||
if (positions[i] < current - 15) {
|
|
||||||
prevIdx = i;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
targetIndex = prevIdx !== -1 ? prevIdx : 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
activeIndexRef.current = targetIndex;
|
const targetProgress = targetIndex / (cardsCount - 1);
|
||||||
rail.scrollTo({
|
const targetScrollY = Math.round(containerTopInDoc + targetProgress * totalScrollable);
|
||||||
left: positions[targetIndex],
|
|
||||||
|
window.scrollTo({
|
||||||
|
top: targetScrollY,
|
||||||
behavior: 'smooth',
|
behavior: 'smooth',
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
if (!items.length) return null;
|
if (!items.length) return null;
|
||||||
|
|
||||||
|
// Vertical scroll distance: 100vh base + 85vh per additional card
|
||||||
|
const containerHeightVh = 100 + (items.length - 1) * 85;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<section
|
<section
|
||||||
id="flagship-models"
|
id="flagship-models"
|
||||||
ref={sectionRef}
|
ref={containerRef}
|
||||||
className="overflow-hidden border-y border-slate-900/[0.08] bg-[#FAF8F5] py-16 sm:py-20 lg:py-24"
|
className="relative"
|
||||||
|
style={{ height: `${containerHeightVh}vh` }}
|
||||||
>
|
>
|
||||||
<div className="mx-auto max-w-7xl px-4 sm:px-6 lg:px-8">
|
<div className="sticky top-0 h-screen flex flex-col justify-center overflow-hidden border-y border-slate-900/[0.08] bg-[#FAF8F5]">
|
||||||
<div className="mb-8 flex flex-col gap-4 sm:mb-10 sm:flex-row sm:items-end sm:justify-between">
|
{/* Section Header */}
|
||||||
|
<div className="mx-auto max-w-7xl w-full px-4 sm:px-6 lg:px-8 mb-4 sm:mb-6 shrink-0">
|
||||||
|
<div className="flex flex-col gap-2 sm:flex-row sm:items-end sm:justify-between">
|
||||||
<div className="max-w-2xl">
|
<div className="max-w-2xl">
|
||||||
<p className="eyebrow">{badge}</p>
|
<p className="eyebrow">{badge}</p>
|
||||||
<h2 className="mt-3 text-3xl font-display font-bold tracking-tight text-slate-900 sm:text-4xl lg:text-5xl">{title}</h2>
|
<h2 className="mt-1 text-2xl font-display font-bold tracking-tight text-slate-900 sm:text-3xl lg:text-4xl">{title}</h2>
|
||||||
<p className="mt-3 text-sm leading-relaxed text-slate-600 sm:text-base">{subtitle}</p>
|
<p className="mt-1 text-xs text-slate-600 sm:text-sm">{subtitle}</p>
|
||||||
</div>
|
</div>
|
||||||
<p className="hidden text-xs font-medium text-slate-500 sm:block">Scroll cards vertically, swipe, or use side arrows</p>
|
<p className="hidden text-xs font-medium text-slate-500 sm:block">Scroll down to explore models</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="relative group/showcase">
|
{/* Carousel Viewport with Pinned Rail & Floating Side Arrows */}
|
||||||
{/* Soft edge fades for polished visual boundary */}
|
<div className="relative group/showcase w-full overflow-hidden">
|
||||||
|
{/* Soft edge fades for polished boundary */}
|
||||||
<div
|
<div
|
||||||
aria-hidden="true"
|
aria-hidden="true"
|
||||||
className={`pointer-events-none absolute left-0 top-0 bottom-0 w-12 sm:w-20 bg-gradient-to-r from-[#FAF8F5] to-transparent z-10 transition-opacity duration-300 ${
|
className={`pointer-events-none absolute left-0 top-0 bottom-0 w-12 sm:w-24 bg-gradient-to-r from-[#FAF8F5] to-transparent z-10 transition-opacity duration-300 ${
|
||||||
canScrollLeft ? 'opacity-100' : 'opacity-0'
|
canScrollLeft ? 'opacity-100' : 'opacity-0'
|
||||||
}`}
|
}`}
|
||||||
/>
|
/>
|
||||||
<div
|
<div
|
||||||
aria-hidden="true"
|
aria-hidden="true"
|
||||||
className={`pointer-events-none absolute right-0 top-0 bottom-0 w-12 sm:w-20 bg-gradient-to-l from-[#FAF8F5] to-transparent z-10 transition-opacity duration-300 ${
|
className={`pointer-events-none absolute right-0 top-0 bottom-0 w-12 sm:w-24 bg-gradient-to-l from-[#FAF8F5] to-transparent z-10 transition-opacity duration-300 ${
|
||||||
canScrollRight ? 'opacity-100' : 'opacity-0'
|
canScrollRight ? 'opacity-100' : 'opacity-0'
|
||||||
}`}
|
}`}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
{/* Left Side Arrow Button (Always visible on the left side) */}
|
{/* Left Side Arrow Button (Always visible on left side) */}
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
onClick={() => scrollDirection('left')}
|
onClick={() => scrollDirection('left')}
|
||||||
@@ -293,17 +187,22 @@ export function CinematicHorizontalScrollSection({
|
|||||||
<ChevronLeft className="h-6 w-6 stroke-[2.5]" />
|
<ChevronLeft className="h-6 w-6 stroke-[2.5]" />
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
{/* Horizontal Rail */}
|
{/* Horizontal Track */}
|
||||||
<div
|
<div
|
||||||
ref={railRef}
|
ref={trackRef}
|
||||||
className="cinematic-rail flex snap-x snap-proximity gap-5 overflow-x-auto px-4 pb-5 sm:px-6 lg:px-[max(2rem,calc((100vw-80rem)/2))]"
|
className="cinematic-rail flex gap-6 will-change-transform"
|
||||||
|
style={{
|
||||||
|
paddingLeft: 'calc((100vw - min(780px, 88vw)) / 2)',
|
||||||
|
paddingRight: 'calc((100vw - min(780px, 88vw)) / 2)',
|
||||||
|
transform: `translate3d(-${translateX}px, 0, 0)`,
|
||||||
|
}}
|
||||||
>
|
>
|
||||||
{items.map((item) => (
|
{items.map((item) => (
|
||||||
<ShowcaseCard key={item.id} item={item} />
|
<ShowcaseCard key={item.id} item={item} />
|
||||||
))}
|
))}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{/* Right Side Arrow Button (Always visible on the right side) */}
|
{/* Right Side Arrow Button (Always visible on right side) */}
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
onClick={() => scrollDirection('right')}
|
onClick={() => scrollDirection('right')}
|
||||||
@@ -314,6 +213,7 @@ export function CinematicHorizontalScrollSection({
|
|||||||
<ChevronRight className="h-6 w-6 stroke-[2.5]" />
|
<ChevronRight className="h-6 w-6 stroke-[2.5]" />
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
</section>
|
</section>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@@ -322,9 +222,9 @@ function ShowcaseCard({ item }: { item: ShowcaseItem }) {
|
|||||||
const comparison = item.variant !== 'banner' && item.beforeUrl && item.afterUrl;
|
const comparison = item.variant !== 'banner' && item.beforeUrl && item.afterUrl;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<article className="w-[88vw] shrink-0 snap-center overflow-hidden rounded-3xl border border-slate-900/[0.09] bg-white shadow-cream-md sm:w-[680px] lg:w-[780px]">
|
<article className="w-[88vw] shrink-0 overflow-hidden rounded-3xl border border-slate-900/[0.09] bg-white shadow-cream-md sm:w-[680px] lg:w-[780px]">
|
||||||
<div className="grid lg:grid-cols-[1.1fr_.9fr]">
|
<div className="grid lg:grid-cols-[1.1fr_.9fr]">
|
||||||
<div className="min-h-[280px] bg-slate-100">
|
<div className="min-h-[260px] sm:min-h-[290px] bg-slate-100">
|
||||||
{comparison ? (
|
{comparison ? (
|
||||||
<DeferredComparison
|
<DeferredComparison
|
||||||
beforeUrl={item.beforeUrl!}
|
beforeUrl={item.beforeUrl!}
|
||||||
@@ -334,7 +234,7 @@ function ShowcaseCard({ item }: { item: ShowcaseItem }) {
|
|||||||
aspectRatio="aspect-[4/3] lg:aspect-auto lg:h-full"
|
aspectRatio="aspect-[4/3] lg:aspect-auto lg:h-full"
|
||||||
/>
|
/>
|
||||||
) : (
|
) : (
|
||||||
<div className="relative h-full min-h-[280px] overflow-hidden bg-slate-950">
|
<div className="relative h-full min-h-[260px] sm:min-h-[290px] overflow-hidden bg-slate-950">
|
||||||
{/* eslint-disable-next-line @next/next/no-img-element */}
|
{/* eslint-disable-next-line @next/next/no-img-element */}
|
||||||
<img
|
<img
|
||||||
src={item.bannerImage || item.beforeUrl || ''}
|
src={item.bannerImage || item.beforeUrl || ''}
|
||||||
@@ -351,17 +251,17 @@ function ShowcaseCard({ item }: { item: ShowcaseItem }) {
|
|||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="flex flex-col p-6 sm:p-7">
|
<div className="flex flex-col p-5 sm:p-6 lg:p-7">
|
||||||
<div className="flex items-center justify-between gap-3">
|
<div className="flex items-center justify-between gap-3">
|
||||||
<span className="text-xs font-bold tracking-[0.16em] text-blue-700">{item.index}</span>
|
<span className="text-xs font-bold tracking-[0.16em] text-blue-700">{item.index}</span>
|
||||||
<span className="rounded-full border border-emerald-200 bg-emerald-50 px-2.5 py-1 text-[10px] font-semibold text-emerald-800">
|
<span className="rounded-full border border-emerald-200 bg-emerald-50 px-2.5 py-1 text-[10px] font-semibold text-emerald-800">
|
||||||
{item.latency}
|
{item.latency}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<p className="mt-5 text-xs font-semibold uppercase tracking-[0.12em] text-slate-500">{item.category}</p>
|
<p className="mt-4 text-xs font-semibold uppercase tracking-[0.12em] text-slate-500">{item.category}</p>
|
||||||
<h3 className="mt-2 text-2xl font-display font-bold leading-tight tracking-tight text-slate-900">{item.title}</h3>
|
<h3 className="mt-1.5 text-xl font-display font-bold leading-tight tracking-tight text-slate-900 sm:text-2xl">{item.title}</h3>
|
||||||
<p className="mt-3 text-sm leading-relaxed text-slate-600">{item.description}</p>
|
<p className="mt-2 text-xs leading-relaxed text-slate-600 sm:text-sm">{item.description}</p>
|
||||||
<ul className="mt-5 space-y-2.5 text-sm text-slate-700">
|
<ul className="mt-4 space-y-2 text-xs sm:text-sm text-slate-700">
|
||||||
{item.specs.slice(0, 3).map((spec) => (
|
{item.specs.slice(0, 3).map((spec) => (
|
||||||
<li key={spec} className="flex gap-2">
|
<li key={spec} className="flex gap-2">
|
||||||
<Check className="mt-0.5 h-4 w-4 shrink-0 text-blue-700" />
|
<Check className="mt-0.5 h-4 w-4 shrink-0 text-blue-700" />
|
||||||
@@ -369,11 +269,11 @@ function ShowcaseCard({ item }: { item: ShowcaseItem }) {
|
|||||||
</li>
|
</li>
|
||||||
))}
|
))}
|
||||||
</ul>
|
</ul>
|
||||||
<div className="mt-7 flex flex-wrap gap-3">
|
<div className="mt-5 flex flex-wrap gap-3">
|
||||||
<Link href={`/tools/${item.toolSlug}`} className="button-primary">
|
<Link href={`/tools/${item.toolSlug}`} className="button-primary text-xs sm:text-sm py-2 px-4 sm:py-2.5 sm:px-5">
|
||||||
Try online <ArrowRight className="h-4 w-4" />
|
Try online <ArrowRight className="h-4 w-4" />
|
||||||
</Link>
|
</Link>
|
||||||
<Link href={`/apps/${item.appSlug}`} className="button-secondary">
|
<Link href={`/apps/${item.appSlug}`} className="button-secondary text-xs sm:text-sm py-2 px-4 sm:py-2.5 sm:px-5">
|
||||||
<Smartphone className="h-4 w-4" /> App
|
<Smartphone className="h-4 w-4" /> App
|
||||||
</Link>
|
</Link>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -2,13 +2,13 @@
|
|||||||
|
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import Link from 'next/link';
|
import Link from 'next/link';
|
||||||
import { Sparkles, ArrowRight, Smartphone, Layers, ShieldCheck, LockKeyhole, ImagePlus } from 'lucide-react';
|
import { Sparkles, ArrowRight, Smartphone, Layers, ShieldCheck, LockKeyhole, ImagePlus, Check, Zap } from 'lucide-react';
|
||||||
import { resolveLocalised, ToolItem, AppItem, VariantSpec } from '@/types';
|
import { resolveLocalised, ToolItem, AppItem, VariantSpec } from '@/types';
|
||||||
import { TryItWidget } from './TryItWidget';
|
import { TryItWidget } from './TryItWidget';
|
||||||
import { Hero3DCanvas } from '@/components/3d/Hero3DCanvas';
|
import { HeroPrism } from '@/components/3d/HeroPrism';
|
||||||
import { Kinetic3DText } from '@/components/ui/Kinetic3DText';
|
import { Kinetic3DText } from '@/components/ui/Kinetic3DText';
|
||||||
import { ShimmerBadge } from '@/components/animate-ui/ShimmerBadge';
|
import { ShimmerBadge } from '@/components/animate-ui/ShimmerBadge';
|
||||||
import { BorderBeam } from '@/components/animate-ui/BorderBeam';
|
import { DeferredComparison } from '@/components/ui/DeferredComparison';
|
||||||
|
|
||||||
interface HeroSectionProps {
|
interface HeroSectionProps {
|
||||||
title?: any;
|
title?: any;
|
||||||
@@ -43,7 +43,7 @@ export function HeroSection({
|
|||||||
<section className="relative isolate overflow-hidden pt-28 pb-16 sm:pt-36 sm:pb-24 lg:pt-40 lg:pb-28 bg-[#FAF8F5]">
|
<section className="relative isolate overflow-hidden pt-28 pb-16 sm:pt-36 sm:pb-24 lg:pt-40 lg:pb-28 bg-[#FAF8F5]">
|
||||||
<div className="absolute inset-x-0 top-0 h-[620px] bg-[radial-gradient(ellipse_at_72%_18%,rgba(87,132,220,0.14),transparent_48%),radial-gradient(ellipse_at_12%_0%,rgba(208,182,142,0.12),transparent_36%)] pointer-events-none" />
|
<div className="absolute inset-x-0 top-0 h-[620px] bg-[radial-gradient(ellipse_at_72%_18%,rgba(87,132,220,0.14),transparent_48%),radial-gradient(ellipse_at_12%_0%,rgba(208,182,142,0.12),transparent_36%)] pointer-events-none" />
|
||||||
<div className="absolute right-[4%] top-12 w-[360px] h-[360px] opacity-35 pointer-events-none hidden lg:block" aria-hidden="true">
|
<div className="absolute right-[4%] top-12 w-[360px] h-[360px] opacity-35 pointer-events-none hidden lg:block" aria-hidden="true">
|
||||||
<Hero3DCanvas className="w-full h-full" />
|
<HeroPrism />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="relative z-10 max-w-[1440px] mx-auto px-4 sm:px-6 lg:px-10">
|
<div className="relative z-10 max-w-[1440px] mx-auto px-4 sm:px-6 lg:px-10">
|
||||||
@@ -78,8 +78,7 @@ export function HeroSection({
|
|||||||
|
|
||||||
<div className="relative min-w-0">
|
<div className="relative min-w-0">
|
||||||
<div className="absolute -inset-4 rounded-[2.25rem] bg-gradient-to-br from-blue-200/50 via-white/30 to-amber-100/60 blur-2xl" />
|
<div className="absolute -inset-4 rounded-[2.25rem] bg-gradient-to-br from-blue-200/50 via-white/30 to-amber-100/60 blur-2xl" />
|
||||||
<div className="relative rounded-[1.8rem] border border-white/80 bg-white/55 p-1.5 shadow-[0_35px_100px_-38px_rgba(32,49,84,0.32)] backdrop-blur-sm sm:p-2">
|
<div className="relative rounded-[1.8rem] border border-slate-200/90 bg-white/88 p-1.5 shadow-[0_35px_100px_-38px_rgba(32,49,84,0.32)] sm:p-2">
|
||||||
<div className="absolute inset-0 rounded-[1.8rem] overflow-hidden pointer-events-none"><BorderBeam duration={16} size={240} borderWidth={1.5} colorFrom="#6b8bd6" colorTo="#c7a979" /></div>
|
|
||||||
<TryItWidget tool={tool} homeApp={homeApp} variants={variants} locale={locale} />
|
<TryItWidget tool={tool} homeApp={homeApp} variants={variants} locale={locale} />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -89,6 +88,114 @@ export function HeroSection({
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Dedicated Tool Landing Hero (for Google Search / Direct Traffic SEO)
|
||||||
|
if (variant === 'toolHero' && tool) {
|
||||||
|
const example = tool.content?.examples?.[0];
|
||||||
|
const categoryName = tool.category?.replace('-', ' ').toUpperCase() || 'AI TOOL';
|
||||||
|
const appName = homeApp ? resolveLocalised(homeApp.name, locale) : 'Mobile App';
|
||||||
|
|
||||||
|
return (
|
||||||
|
<section className="relative isolate overflow-hidden pt-28 pb-16 sm:pt-36 sm:pb-20 lg:pt-40 lg:pb-24 bg-[#FAF8F5] border-b border-slate-900/[0.07]">
|
||||||
|
{/* Ambient subtle warm gradient */}
|
||||||
|
<div className="absolute inset-x-0 top-0 h-[640px] bg-[radial-gradient(ellipse_at_75%_20%,rgba(87,132,220,0.12),transparent_50%),radial-gradient(ellipse_at_15%_0%,rgba(208,182,142,0.15),transparent_40%)] pointer-events-none" />
|
||||||
|
|
||||||
|
<div className="relative z-10 max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
|
||||||
|
{/* Breadcrumb Navigation */}
|
||||||
|
<nav aria-label="Breadcrumb" className="mb-6 flex items-center gap-2 text-xs font-medium text-slate-500">
|
||||||
|
<Link href="/" className="hover:text-blue-700 transition-colors">Home</Link>
|
||||||
|
<span>/</span>
|
||||||
|
<Link href="/tools" className="hover:text-blue-700 transition-colors">Tools</Link>
|
||||||
|
<span>/</span>
|
||||||
|
<span className="text-slate-900 font-semibold">{resolvedTitle}</span>
|
||||||
|
</nav>
|
||||||
|
|
||||||
|
<div className="grid lg:grid-cols-[1fr_1.1fr] gap-10 xl:gap-14 items-center">
|
||||||
|
{/* Left Column: Value Proposition & Actions */}
|
||||||
|
<div className="max-w-xl">
|
||||||
|
<div className="inline-flex items-center gap-2 rounded-full border border-blue-200/80 bg-white/80 px-3.5 py-1.5 text-[11px] font-semibold tracking-[0.14em] uppercase text-blue-800 shadow-sm backdrop-blur">
|
||||||
|
<Sparkles className="w-3.5 h-3.5 text-blue-600" />
|
||||||
|
<span>{categoryName} • NEURAL MODEL</span>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<h1 className="mt-5 text-3xl sm:text-4xl lg:text-5xl font-display font-black tracking-tight text-slate-900 leading-[1.08]">
|
||||||
|
{resolvedTitle}
|
||||||
|
</h1>
|
||||||
|
|
||||||
|
<p className="mt-4 text-base sm:text-lg leading-relaxed text-slate-600">
|
||||||
|
{resolvedSubtitle}
|
||||||
|
</p>
|
||||||
|
|
||||||
|
{/* Key Feature Specs */}
|
||||||
|
<div className="mt-6 flex flex-wrap gap-2.5">
|
||||||
|
<span className="inline-flex items-center gap-1.5 rounded-lg border border-slate-900/10 bg-white px-3 py-1.5 text-xs font-semibold text-slate-700 shadow-sm">
|
||||||
|
<Check className="h-3.5 w-3.5 text-blue-700" /> Lossless 4K Output
|
||||||
|
</span>
|
||||||
|
<span className="inline-flex items-center gap-1.5 rounded-lg border border-slate-900/10 bg-white px-3 py-1.5 text-xs font-semibold text-slate-700 shadow-sm">
|
||||||
|
<Zap className="h-3.5 w-3.5 text-amber-600" /> Instant Processing
|
||||||
|
</span>
|
||||||
|
<span className="inline-flex items-center gap-1.5 rounded-lg border border-slate-900/10 bg-white px-3 py-1.5 text-xs font-semibold text-slate-700 shadow-sm">
|
||||||
|
<ShieldCheck className="h-3.5 w-3.5 text-emerald-600" /> 100% Free Online
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{/* CTAs */}
|
||||||
|
<div className="mt-8 flex flex-wrap gap-3.5">
|
||||||
|
<a
|
||||||
|
href="#tool-tryit"
|
||||||
|
className="group inline-flex items-center gap-2.5 rounded-full bg-blue-600 px-6 py-3.5 text-sm font-semibold text-white shadow-lg shadow-blue-600/25 transition-all hover:-translate-y-0.5 hover:bg-blue-700 hover:shadow-xl"
|
||||||
|
>
|
||||||
|
<Sparkles className="h-4 w-4" /> Try with your photo <ArrowRight className="h-4 w-4 transition-transform group-hover:translate-x-1" />
|
||||||
|
</a>
|
||||||
|
{homeApp && (
|
||||||
|
<Link
|
||||||
|
href={`/apps/${homeApp.slug}`}
|
||||||
|
className="inline-flex items-center gap-2 rounded-full border border-slate-300/80 bg-white/80 px-5 py-3.5 text-sm font-semibold text-slate-800 shadow-sm transition-all hover:-translate-y-0.5 hover:border-slate-400 hover:bg-white"
|
||||||
|
>
|
||||||
|
<Smartphone className="h-4 w-4 text-blue-700" /> {appName} App
|
||||||
|
</Link>
|
||||||
|
)}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{/* Trust Badges */}
|
||||||
|
<div className="mt-8 flex flex-wrap gap-x-5 gap-y-2 text-xs font-medium text-slate-500">
|
||||||
|
<span className="inline-flex items-center gap-1.5"><ShieldCheck className="h-4 w-4 text-emerald-600" /> No account needed</span>
|
||||||
|
<span className="inline-flex items-center gap-1.5"><LockKeyhole className="h-4 w-4 text-emerald-600" /> Photos never stored</span>
|
||||||
|
<span className="inline-flex items-center gap-1.5"><ImagePlus className="h-4 w-4 text-emerald-600" /> Instant preview</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{/* Right Column: Hero Interactive Transformation Showcase */}
|
||||||
|
<div className="relative min-w-0">
|
||||||
|
<div className="absolute -inset-4 rounded-[2.5rem] bg-gradient-to-br from-blue-300/30 via-amber-200/20 to-indigo-300/30 blur-2xl pointer-events-none" />
|
||||||
|
<div className="relative rounded-[2rem] border border-slate-900/[0.1] bg-white p-2.5 sm:p-3 shadow-cinematic-3d">
|
||||||
|
{example?.before && example?.after ? (
|
||||||
|
<div className="space-y-2.5">
|
||||||
|
<DeferredComparison
|
||||||
|
beforeUrl={example.before}
|
||||||
|
afterUrl={example.after}
|
||||||
|
beforeLabel="ORIGINAL"
|
||||||
|
afterLabel="AI RESULT"
|
||||||
|
aspectRatio="aspect-[4/3] sm:aspect-[16/10]"
|
||||||
|
/>
|
||||||
|
{example.caption && (
|
||||||
|
<p className="px-2 py-1 text-center text-xs font-medium text-slate-500">
|
||||||
|
{example.caption}
|
||||||
|
</p>
|
||||||
|
)}
|
||||||
|
</div>
|
||||||
|
) : (
|
||||||
|
<div className="aspect-[16/10] bg-slate-100 rounded-2xl grid place-items-center text-slate-400 text-sm">
|
||||||
|
Interactive transformation preview
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
// Centered Hero for Tools/Apps/Pricing pages
|
// Centered Hero for Tools/Apps/Pricing pages
|
||||||
return (
|
return (
|
||||||
<section className="relative overflow-hidden pt-28 pb-20 sm:pt-36 sm:pb-28 text-center bg-[#FAF8F5] border-b border-slate-900/[0.07]">
|
<section className="relative overflow-hidden pt-28 pb-20 sm:pt-36 sm:pb-28 text-center bg-[#FAF8F5] border-b border-slate-900/[0.07]">
|
||||||
|
|||||||
@@ -1,388 +1,139 @@
|
|||||||
'use client';
|
'use client';
|
||||||
|
|
||||||
import React, { useState } from 'react';
|
import { useMemo, useState } from 'react';
|
||||||
|
import type { ElementType } from 'react';
|
||||||
import Link from 'next/link';
|
import Link from 'next/link';
|
||||||
import {
|
import { ArrowRight, Layers, Palette, Scissors, Smile, Sparkles } from 'lucide-react';
|
||||||
Smile,
|
import { AppItem, CategoryItem, resolveLocalised, ToolItem } from '@/types';
|
||||||
Sparkles,
|
import { DeferredComparison } from '@/components/ui/DeferredComparison';
|
||||||
Scissors,
|
|
||||||
Palette,
|
|
||||||
Layers,
|
|
||||||
ArrowRight,
|
|
||||||
CheckCircle2,
|
|
||||||
Zap,
|
|
||||||
ShieldCheck,
|
|
||||||
Cpu,
|
|
||||||
Smartphone,
|
|
||||||
} from 'lucide-react';
|
|
||||||
import { resolveLocalised, ToolItem, CategoryItem, AppItem } from '@/types';
|
|
||||||
import { BeforeAfterSlider } from '@/components/ui/BeforeAfterSlider';
|
|
||||||
import { SpotlightCard } from '@/components/animate-ui/SpotlightCard';
|
|
||||||
import { ShimmerBadge } from '@/components/animate-ui/ShimmerBadge';
|
|
||||||
import { MotionTextReveal } from '@/components/animate-ui/MotionTextReveal';
|
|
||||||
import { AnimatedGradientText } from '@/components/animate-ui/AnimatedGradientText';
|
|
||||||
|
|
||||||
export interface VerticalToolStackProps {
|
interface VerticalToolStackProps {
|
||||||
context: {
|
context: { tools: ToolItem[]; categories: CategoryItem[]; apps: AppItem[]; locale: string };
|
||||||
tools: ToolItem[];
|
|
||||||
categories: CategoryItem[];
|
|
||||||
apps: AppItem[];
|
|
||||||
locale: string;
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const ICON_MAP: Record<string, React.ElementType> = {
|
const icons: Record<string, ElementType> = { Smile, Sparkles, Scissors, Palette, Layers };
|
||||||
Smile,
|
|
||||||
Sparkles,
|
|
||||||
Scissors,
|
|
||||||
Palette,
|
|
||||||
Layers,
|
|
||||||
};
|
|
||||||
|
|
||||||
// Architecture badges mapped by tool id
|
const fallbackImage = 'https://images.unsplash.com/photo-1534528741775-53994a69daeb?w=720&auto=format&fit=crop&q=76';
|
||||||
const MODEL_BADGES: Record<string, { model: string; latency: string; chip: string }> = {
|
|
||||||
'face.blemish.remove': { model: 'RetouchGAN v2.1', latency: '< 380ms', chip: 'Sub-Pore Texture' },
|
|
||||||
'face.teeth.whitener': { model: 'DentiClear AI', latency: '< 290ms', chip: 'Enamel Lustre Preservation' },
|
|
||||||
'cutout.p3m.bg': { model: 'P3M-Net Alpha', latency: '< 520ms', chip: 'Hair-Strand Precision' },
|
|
||||||
'restore.enhancer': { model: 'GFPGAN + RealESRGAN', latency: '< 460ms', chip: '4K Super-Resolution' },
|
|
||||||
'restore.oldphoto': { model: 'ScratchDeNet Pro', latency: '< 490ms', chip: 'Crack & Tear Inpainting' },
|
|
||||||
'restore.colorization': { model: 'DeOldify Chroma', latency: '< 420ms', chip: 'Historical Palette AI' },
|
|
||||||
'art.cartoon.gan': { model: 'AnimeGAN v3 Core', latency: '< 350ms', chip: 'Vector Line Art' },
|
|
||||||
'art.polaroid.film': { model: 'AnalogFilm Studio', latency: '< 240ms', chip: 'Halide Grain Synthesis' },
|
|
||||||
};
|
|
||||||
|
|
||||||
const ACCENT_STYLES: Record<string, { badge: string; text: string }> = {
|
|
||||||
'background-cutout': {
|
|
||||||
badge: 'bg-blue-50 border-blue-200 text-blue-700',
|
|
||||||
text: 'text-blue-600',
|
|
||||||
},
|
|
||||||
'restoration': {
|
|
||||||
badge: 'bg-emerald-50 border-emerald-200 text-emerald-700',
|
|
||||||
text: 'text-emerald-600',
|
|
||||||
},
|
|
||||||
'creative-art': {
|
|
||||||
badge: 'bg-purple-50 border-purple-200 text-purple-700',
|
|
||||||
text: 'text-purple-600',
|
|
||||||
},
|
|
||||||
'portrait-retouch': {
|
|
||||||
badge: 'bg-amber-50 border-amber-200 text-amber-700',
|
|
||||||
text: 'text-amber-600',
|
|
||||||
},
|
|
||||||
};
|
|
||||||
|
|
||||||
export function VerticalToolStackSection({ context }: VerticalToolStackProps) {
|
export function VerticalToolStackSection({ context }: VerticalToolStackProps) {
|
||||||
const { tools, categories, apps, locale } = context;
|
const { tools, categories, apps, locale } = context;
|
||||||
const [selectedCategory, setSelectedCategory] = useState<string>('all');
|
const [category, setCategory] = useState('all');
|
||||||
|
const visibleCategories = useMemo(
|
||||||
const filteredCategories = selectedCategory === 'all'
|
() => category === 'all' ? categories : categories.filter((item) => item.slug === category),
|
||||||
? categories
|
[categories, category]
|
||||||
: categories.filter((c) => c.slug === selectedCategory);
|
|
||||||
|
|
||||||
return (
|
|
||||||
<section
|
|
||||||
id="studio-suite"
|
|
||||||
className="py-20 sm:py-28 lg:py-32 relative bg-[#FAF8F5] border-t border-b border-slate-900/[0.07] overflow-hidden scroll-mt-20"
|
|
||||||
>
|
|
||||||
{/* Anchor alias for backwards compatibility */}
|
|
||||||
<div id="tools-stack" className="absolute -top-20" />
|
|
||||||
|
|
||||||
{/* Subtle ambient light gradient */}
|
|
||||||
<div className="absolute top-1/4 left-1/2 -translate-x-1/2 w-[900px] h-96 bg-blue-500/[0.025] rounded-full blur-3xl pointer-events-none" />
|
|
||||||
|
|
||||||
{/* Full-width expansive container spanning the entire page */}
|
|
||||||
<div className="w-full max-w-[1640px] 2xl:max-w-[1720px] mx-auto px-4 sm:px-6 lg:px-8 xl:px-10 relative z-10">
|
|
||||||
{/* Section Header: Centered & Balanced with Animate UI Text Motion */}
|
|
||||||
<div className="text-center max-w-3xl mx-auto mb-12 sm:mb-16">
|
|
||||||
<div className="mb-4">
|
|
||||||
<ShimmerBadge>
|
|
||||||
<Zap className="w-3.5 h-3.5 text-blue-600" />
|
|
||||||
<span>THE CREATIVE STUDIO SUITE</span>
|
|
||||||
</ShimmerBadge>
|
|
||||||
</div>
|
|
||||||
<h2 className="text-3xl sm:text-4xl lg:text-5xl font-display font-black text-slate-900 tracking-tight mb-5">
|
|
||||||
<MotionTextReveal text="Advanced" className="text-slate-900 inline" />{' '}
|
|
||||||
<AnimatedGradientText className="font-black">Vision Tools</AnimatedGradientText>
|
|
||||||
</h2>
|
|
||||||
<p className="text-base sm:text-lg text-slate-600 leading-relaxed font-normal">
|
|
||||||
Precision deep learning models organized by creative discipline. Test sub-millimeter skin pore retouching, fine hair alpha matting, and 4K super-resolution directly in your browser.
|
|
||||||
</p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
{/* Centered Symmetrical Category Filter Rail */}
|
|
||||||
<div className="flex flex-wrap items-center justify-center gap-2 sm:gap-3 max-w-5xl mx-auto mb-14 sm:mb-16">
|
|
||||||
<button
|
|
||||||
onClick={() => setSelectedCategory('all')}
|
|
||||||
className={`flex items-center gap-2 px-5 py-2.5 rounded-full text-xs font-bold transition-all duration-200 shadow-sm ${
|
|
||||||
selectedCategory === 'all'
|
|
||||||
? 'bg-blue-600 text-white shadow-blue-500/20 scale-105'
|
|
||||||
: 'bg-white text-slate-700 border border-slate-200 hover:bg-slate-50 hover:border-slate-300'
|
|
||||||
}`}
|
|
||||||
>
|
|
||||||
<Layers className="w-3.5 h-3.5" />
|
|
||||||
<span>All Disciplines</span>
|
|
||||||
<span className={`text-[10px] font-mono px-2 py-0.5 rounded-full ${
|
|
||||||
selectedCategory === 'all' ? 'bg-white/20 text-white' : 'bg-slate-100 text-slate-600'
|
|
||||||
}`}>
|
|
||||||
{tools.length}
|
|
||||||
</span>
|
|
||||||
</button>
|
|
||||||
|
|
||||||
{categories.map((cat) => {
|
|
||||||
const catTools = tools.filter((t) => t.category === cat.slug);
|
|
||||||
const active = selectedCategory === cat.slug;
|
|
||||||
const Icon = ICON_MAP[cat.icon || 'Sparkles'] || Sparkles;
|
|
||||||
|
|
||||||
return (
|
|
||||||
<button
|
|
||||||
key={cat.slug}
|
|
||||||
onClick={() => setSelectedCategory(cat.slug)}
|
|
||||||
className={`flex items-center gap-2 px-5 py-2.5 rounded-full text-xs font-bold transition-all duration-200 shadow-sm ${
|
|
||||||
active
|
|
||||||
? 'bg-blue-600 text-white shadow-blue-500/20 scale-105'
|
|
||||||
: 'bg-white text-slate-700 border border-slate-200 hover:bg-slate-50 hover:border-slate-300'
|
|
||||||
}`}
|
|
||||||
>
|
|
||||||
<Icon className={`w-3.5 h-3.5 ${active ? 'text-white' : 'text-blue-600'}`} />
|
|
||||||
<span>{resolveLocalised(cat.name, locale)}</span>
|
|
||||||
<span className={`text-[10px] font-mono px-2 py-0.5 rounded-full ${
|
|
||||||
active ? 'bg-white/20 text-white' : 'bg-slate-100 text-slate-600'
|
|
||||||
}`}>
|
|
||||||
{catTools.length}
|
|
||||||
</span>
|
|
||||||
</button>
|
|
||||||
);
|
);
|
||||||
|
|
||||||
|
return (
|
||||||
|
<section id="studio-suite" className="scroll-mt-24 border-y border-slate-900/[0.08] bg-[#FAF8F5] py-16 sm:py-20 lg:py-24">
|
||||||
|
<div id="tools-stack" className="relative -top-24" />
|
||||||
|
<div className="mx-auto max-w-7xl px-4 sm:px-6 lg:px-8">
|
||||||
|
<header className="mx-auto max-w-3xl text-center">
|
||||||
|
<p className="eyebrow">THE CREATIVE STUDIO SUITE</p>
|
||||||
|
<h2 className="mt-3 text-3xl font-display font-bold tracking-tight text-slate-900 sm:text-4xl lg:text-5xl">Find the right tool, fast.</h2>
|
||||||
|
<p className="mt-4 text-base leading-relaxed text-slate-600 sm:text-lg">Choose a creative task, see a real preview, and start your edit in one tap.</p>
|
||||||
|
</header>
|
||||||
|
|
||||||
|
<div className="tool-filter-rail mt-9 flex gap-2 overflow-x-auto pb-2 sm:mt-10 sm:flex-wrap sm:justify-center sm:overflow-visible" role="tablist" aria-label="Tool categories">
|
||||||
|
<FilterButton active={category === 'all'} onClick={() => setCategory('all')} label="All tools" count={tools.length} icon={Layers} />
|
||||||
|
{categories.map((item) => {
|
||||||
|
const Icon = icons[item.icon || 'Sparkles'] || Sparkles;
|
||||||
|
return <FilterButton key={item.slug} active={category === item.slug} onClick={() => setCategory(item.slug)} label={resolveLocalised(item.name, locale)} count={tools.filter((tool) => tool.category === item.slug).length} icon={Icon} />;
|
||||||
})}
|
})}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{/* Expansive Full-Width Vertical Tool Stack */}
|
<div className="mt-10 space-y-12 sm:mt-12 sm:space-y-14">
|
||||||
<div className="w-full space-y-16 sm:space-y-20">
|
{visibleCategories.map((item) => {
|
||||||
{filteredCategories.map((category) => {
|
const categoryTools = tools.filter((tool) => tool.category === item.slug);
|
||||||
const catTools = tools.filter((t) => t.category === category.slug);
|
if (!categoryTools.length) return null;
|
||||||
if (catTools.length === 0) return null;
|
const Icon = icons[item.icon || 'Sparkles'] || Sparkles;
|
||||||
const Icon = ICON_MAP[category.icon || 'Sparkles'] || Sparkles;
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div key={category.slug} className="space-y-8">
|
<section key={item.slug} aria-labelledby={`${item.slug}-title`}>
|
||||||
{/* Category Section Header */}
|
<div className="mb-5 flex items-end justify-between border-b border-slate-200 pb-4">
|
||||||
<div className="flex flex-col sm:flex-row sm:items-center justify-between gap-3 pb-4 border-b border-slate-900/[0.08]">
|
<div className="flex items-center gap-3">
|
||||||
<div className="flex items-center gap-3.5">
|
<span className="grid h-10 w-10 place-items-center rounded-2xl bg-blue-50 text-blue-700"><Icon className="h-5 w-5" /></span>
|
||||||
<div className="w-10 h-10 rounded-2xl bg-blue-50 border border-blue-200 flex items-center justify-center text-blue-600 shadow-sm">
|
|
||||||
<Icon className="w-5 h-5" />
|
|
||||||
</div>
|
|
||||||
<div>
|
<div>
|
||||||
<h3 className="text-xl sm:text-2xl font-display font-bold text-slate-900">
|
<h3 id={`${item.slug}-title`} className="text-xl font-display font-bold text-slate-900 sm:text-2xl">{resolveLocalised(item.name, locale)}</h3>
|
||||||
{resolveLocalised(category.name, locale)}
|
<p className="mt-0.5 text-sm text-slate-600">{resolveLocalised(item.description, locale)}</p>
|
||||||
</h3>
|
|
||||||
<p className="text-xs sm:text-sm text-slate-500 font-normal">
|
|
||||||
{resolveLocalised(category.description, locale)}
|
|
||||||
</p>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<span className="self-start sm:self-auto text-xs font-mono font-semibold text-blue-700 bg-blue-50 border border-blue-200 px-3.5 py-1 rounded-full">
|
<span className="hidden text-xs font-semibold text-slate-500 sm:block">{categoryTools.length} tools</span>
|
||||||
{catTools.length} {catTools.length === 1 ? 'Production Tool' : 'Production Tools'}
|
|
||||||
</span>
|
|
||||||
</div>
|
</div>
|
||||||
|
<div className="grid gap-5 sm:grid-cols-2 lg:grid-cols-3">
|
||||||
{/* Dynamic Multi-Format Tool Cards with Alternating Layouts */}
|
{categoryTools.map((tool) => <ToolCard key={tool.id} tool={tool} app={apps.find((item) => item.id === tool.homeApp)} locale={locale} />)}
|
||||||
<div className="space-y-10 sm:space-y-12">
|
|
||||||
{catTools.map((tool, toolIdx) => {
|
|
||||||
const homeApp = apps.find((app) => app.id === tool.homeApp);
|
|
||||||
const badgeInfo = MODEL_BADGES[tool.id] || {
|
|
||||||
model: 'Neural Vision v2.0',
|
|
||||||
latency: '< 450ms',
|
|
||||||
chip: 'Neural Precision',
|
|
||||||
};
|
|
||||||
const example = tool.content?.examples?.[0] || {
|
|
||||||
before: 'https://images.unsplash.com/photo-1534528741775-53994a69daeb?w=800&auto=format&fit=crop&q=80',
|
|
||||||
after: 'https://images.unsplash.com/photo-1517841905240-472988babdf9?w=800&auto=format&fit=crop&q=80',
|
|
||||||
caption: 'Interactive Before/After Preview',
|
|
||||||
};
|
|
||||||
|
|
||||||
const isZigZag = toolIdx % 2 === 1;
|
|
||||||
const isMattingTool = tool.id === 'cutout.p3m.bg';
|
|
||||||
const isTeethTool = tool.id === 'face.teeth.whitener';
|
|
||||||
const isArtTool = tool.category === 'creative-art' || tool.id === 'art.cartoon.gan';
|
|
||||||
const isBanner = (tool as any).variant === 'banner' || (tool as any).previewType === 'banner' || isTeethTool || !example.after;
|
|
||||||
|
|
||||||
// Category accent styles
|
|
||||||
const accent = ACCENT_STYLES[tool.category] || ACCENT_STYLES['portrait-retouch'];
|
|
||||||
|
|
||||||
return (
|
|
||||||
<SpotlightCard
|
|
||||||
key={tool.id}
|
|
||||||
className="bg-white rounded-3xl p-6 sm:p-8 lg:p-10 border border-slate-900/[0.08] hover:border-blue-400/80 shadow-sm hover:shadow-2xl hover:-translate-y-1 transition-all duration-300 relative group"
|
|
||||||
>
|
|
||||||
{/* Top Metadata Row */}
|
|
||||||
<div className="flex flex-wrap items-center justify-between gap-3 mb-6 pb-4 border-b border-slate-100">
|
|
||||||
<div className="flex flex-wrap items-center gap-2">
|
|
||||||
<span className={`inline-flex items-center gap-1.5 px-3 py-1 rounded-full border font-mono text-[11px] font-semibold ${accent.badge}`}>
|
|
||||||
<Cpu className="w-3 h-3" />
|
|
||||||
<span>{badgeInfo.model}</span>
|
|
||||||
</span>
|
|
||||||
<span className="px-2.5 py-1 rounded-full bg-slate-100 border border-slate-200 text-slate-700 text-[11px] font-mono font-medium">
|
|
||||||
{badgeInfo.chip}
|
|
||||||
</span>
|
|
||||||
</div>
|
</div>
|
||||||
|
</section>
|
||||||
<div className="flex items-center gap-1.5 text-[11px] font-mono text-emerald-700 bg-emerald-50 border border-emerald-200 px-3 py-1 rounded-full font-semibold">
|
|
||||||
<span className="w-1.5 h-1.5 rounded-full bg-emerald-500 animate-pulse" />
|
|
||||||
<span>{badgeInfo.latency} Stream</span>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
{/* Symmetrical Two-Column Content Grid with Alternating Zig-Zag Flow */}
|
|
||||||
<div className="grid grid-cols-1 lg:grid-cols-12 gap-8 lg:gap-12 items-center">
|
|
||||||
{/* Visual Media Viewport */}
|
|
||||||
<div className={`lg:col-span-7 ${isZigZag ? 'order-last lg:order-first' : ''}`}>
|
|
||||||
{isMattingTool ? (
|
|
||||||
/* VARIATION B: Side-by-Side Transparent Alpha Cutout Frame with Checkerboard */
|
|
||||||
<div className="grid grid-cols-2 gap-3 aspect-[16/10] w-full rounded-2xl overflow-hidden p-2.5 bg-slate-900 border border-slate-200 shadow-md">
|
|
||||||
<div className="relative rounded-xl overflow-hidden border border-white/10 bg-slate-950">
|
|
||||||
{/* eslint-disable-next-line @next/next/no-img-element */}
|
|
||||||
<img src={example.before} alt="Source Portrait" className="w-full h-full object-cover" />
|
|
||||||
<span className="absolute bottom-2 left-2 bg-black/80 backdrop-blur-md px-2 py-0.5 rounded text-[9px] font-mono font-bold text-white border border-white/10">
|
|
||||||
RAW PORTRAIT
|
|
||||||
</span>
|
|
||||||
</div>
|
|
||||||
<div
|
|
||||||
className="relative rounded-xl overflow-hidden border border-white/20 bg-slate-950 flex items-center justify-center group/cutout"
|
|
||||||
style={{
|
|
||||||
backgroundImage: `
|
|
||||||
linear-gradient(45deg, #1e293b 25%, transparent 25%),
|
|
||||||
linear-gradient(-45deg, #1e293b 25%, transparent 25%),
|
|
||||||
linear-gradient(45deg, transparent 75%, #1e293b 75%),
|
|
||||||
linear-gradient(-45deg, transparent 75%, #1e293b 75%)
|
|
||||||
`,
|
|
||||||
backgroundSize: '16px 16px',
|
|
||||||
backgroundPosition: '0 0, 0 8px, 8px -8px, -8px 0px'
|
|
||||||
}}
|
|
||||||
>
|
|
||||||
{/* eslint-disable-next-line @next/next/no-img-element */}
|
|
||||||
<img src={example.after} alt="P3M Cutout" className="w-full h-full object-cover group-hover/cutout:scale-105 transition-transform duration-700" />
|
|
||||||
<span className="absolute bottom-2 right-2 bg-blue-600/90 backdrop-blur-md px-2 py-0.5 rounded text-[9px] font-mono font-bold text-white shadow-sm">
|
|
||||||
ALPHA PNG STREAM
|
|
||||||
</span>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
) : isBanner ? (
|
|
||||||
/* VARIATION C: Editorial Studio Luminescence Banner */
|
|
||||||
<div className="relative aspect-[16/10] rounded-2xl overflow-hidden border border-slate-200 bg-slate-950 shadow-md group/vbanner">
|
|
||||||
{/* eslint-disable-next-line @next/next/no-img-element */}
|
|
||||||
<img
|
|
||||||
src={example.before || 'https://images.unsplash.com/photo-1534528741775-53994a69daeb?w=800&auto=format&fit=crop&q=80'}
|
|
||||||
alt={resolveLocalised(tool.name, locale)}
|
|
||||||
className="w-full h-full object-cover group-hover/vbanner:scale-105 transition-transform duration-700"
|
|
||||||
/>
|
|
||||||
<div className="absolute inset-0 bg-gradient-to-t from-slate-950/80 via-transparent to-transparent pointer-events-none" />
|
|
||||||
<div className="absolute top-4 left-4">
|
|
||||||
<span className="px-3 py-1 rounded-full bg-white/90 backdrop-blur-md text-slate-900 text-xs font-mono font-bold shadow-md">
|
|
||||||
STUDIO PRESET • {badgeInfo.model}
|
|
||||||
</span>
|
|
||||||
</div>
|
|
||||||
<div className="absolute bottom-4 left-4 right-4 flex items-center justify-between text-white">
|
|
||||||
<span className="text-xs font-mono font-semibold text-slate-200">Enamel Lustre Preservation</span>
|
|
||||||
<span className="px-2.5 py-1 rounded-full bg-blue-600/90 text-[10px] font-mono font-bold">Lossless Output</span>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
) : (
|
|
||||||
/* VARIATION A: Interactive 3D Before/After Slider */
|
|
||||||
<div className="rounded-2xl overflow-hidden border border-slate-200 shadow-md">
|
|
||||||
<BeforeAfterSlider
|
|
||||||
beforeUrl={example.before}
|
|
||||||
afterUrl={example.after}
|
|
||||||
beforeLabel="Raw Input"
|
|
||||||
afterLabel="CRE Result"
|
|
||||||
aspectRatio="aspect-[16/10]"
|
|
||||||
autoSlide={false}
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
)}
|
|
||||||
</div>
|
|
||||||
|
|
||||||
{/* Editorial Details Column */}
|
|
||||||
<div className="lg:col-span-5 space-y-5">
|
|
||||||
<div>
|
|
||||||
<span className="text-xs font-mono text-blue-600 font-bold uppercase tracking-wider block mb-1">
|
|
||||||
{badgeInfo.chip}
|
|
||||||
</span>
|
|
||||||
<h4 className="text-2xl sm:text-3xl font-display font-bold text-slate-900 group-hover:text-blue-600 transition-colors">
|
|
||||||
{resolveLocalised(tool.name, locale)}
|
|
||||||
</h4>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<p className="text-xs sm:text-sm text-slate-600 leading-relaxed font-normal">
|
|
||||||
{resolveLocalised(tool.summary, locale)}
|
|
||||||
</p>
|
|
||||||
|
|
||||||
{/* Features Checklist */}
|
|
||||||
<div className="space-y-2.5 pt-1">
|
|
||||||
<div className="flex items-center gap-2.5 text-xs text-slate-700 font-medium">
|
|
||||||
<CheckCircle2 className="w-4 h-4 text-blue-600 shrink-0" />
|
|
||||||
<span>Sub-pixel edge and realistic texture preservation</span>
|
|
||||||
</div>
|
|
||||||
<div className="flex items-center gap-2.5 text-xs text-slate-700 font-medium">
|
|
||||||
<CheckCircle2 className="w-4 h-4 text-blue-600 shrink-0" />
|
|
||||||
<span>Studio-grade 4K lossless enhancement</span>
|
|
||||||
</div>
|
|
||||||
<div className="flex items-center gap-2.5 text-xs text-slate-700 font-medium">
|
|
||||||
<CheckCircle2 className="w-4 h-4 text-blue-600 shrink-0" />
|
|
||||||
<span>Full creative control in native iOS & Android apps</span>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
{/* Action Buttons */}
|
|
||||||
<div className="pt-3 flex flex-wrap items-center gap-3">
|
|
||||||
<Link
|
|
||||||
href={`/tools/${tool.slug}`}
|
|
||||||
className="inline-flex items-center gap-2 px-6 py-3 rounded-full text-xs font-bold text-white bg-blue-600 hover:bg-blue-700 shadow-sm shadow-blue-500/20 transition-all duration-200 hover:-translate-y-0.5 active:translate-y-0"
|
|
||||||
>
|
|
||||||
<span>Launch Tool Online</span>
|
|
||||||
<ArrowRight className="w-3.5 h-3.5" />
|
|
||||||
</Link>
|
|
||||||
|
|
||||||
<Link
|
|
||||||
href={homeApp ? `/apps/${homeApp.slug}` : '/apps'}
|
|
||||||
className="inline-flex items-center gap-1.5 px-5 py-3 rounded-full text-xs font-bold text-slate-700 bg-slate-100 border border-slate-200 hover:bg-slate-200 transition-colors"
|
|
||||||
>
|
|
||||||
<Smartphone className="w-3.5 h-3.5 text-blue-600" />
|
|
||||||
<span>Native App</span>
|
|
||||||
</Link>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</SpotlightCard>
|
|
||||||
);
|
);
|
||||||
})}
|
})}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
);
|
|
||||||
})}
|
|
||||||
</div>
|
|
||||||
|
|
||||||
{/* Centered Symmetrical Bottom Banner (Expansive Width) */}
|
|
||||||
<div className="mt-16 w-full rounded-3xl bg-white p-6 sm:p-8 border border-slate-900/[0.08] shadow-sm flex flex-col sm:flex-row items-center justify-between gap-5 text-center sm:text-left">
|
|
||||||
<div className="flex items-center gap-3.5">
|
|
||||||
<div className="w-10 h-10 rounded-2xl bg-blue-50 border border-blue-200 flex items-center justify-center text-blue-600 shrink-0">
|
|
||||||
<Smartphone className="w-5 h-5" />
|
|
||||||
</div>
|
|
||||||
<div>
|
|
||||||
<p className="text-sm font-display font-bold text-slate-900">
|
|
||||||
Dedicated Mobile Creative Suites for iOS & Android
|
|
||||||
</p>
|
|
||||||
<p className="text-xs text-slate-500 font-normal">
|
|
||||||
Batch enhancement, RAW camera file support, and instant offline exports across our native mobile app lineup.
|
|
||||||
</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<Link
|
|
||||||
href="/apps"
|
|
||||||
className="shrink-0 inline-flex items-center gap-2 px-5 py-2.5 rounded-full text-xs font-bold text-white bg-blue-600 hover:bg-blue-700 shadow-sm shadow-blue-500/20 transition-all"
|
|
||||||
>
|
|
||||||
<span>Explore Mobile Apps</span>
|
|
||||||
<ArrowRight className="w-3.5 h-3.5" />
|
|
||||||
</Link>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</section>
|
</section>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function FilterButton({ active, onClick, label, count, icon: Icon }: { active: boolean; onClick: () => void; label: string; count: number; icon: ElementType }) {
|
||||||
|
return (
|
||||||
|
<button type="button" role="tab" aria-selected={active} onClick={onClick} className={`inline-flex min-h-11 shrink-0 items-center gap-2 rounded-full border px-4 py-2 text-sm font-semibold transition-colors ${active ? 'border-slate-950 bg-slate-950 text-white' : 'border-slate-200 bg-white text-slate-700 hover:border-slate-400 hover:bg-slate-50'}`}>
|
||||||
|
<Icon className="h-4 w-4" /> {label} <span className={`rounded-full px-1.5 py-0.5 text-[10px] ${active ? 'bg-white/15' : 'bg-slate-100 text-slate-500'}`}>{count}</span>
|
||||||
|
</button>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
function ToolCard({ tool, app, locale }: { tool: ToolItem; app?: AppItem; locale: string }) {
|
||||||
|
const example = tool.content?.examples?.[0];
|
||||||
|
const hasComparison = !!(example?.before && example?.after);
|
||||||
|
const image = example?.after || example?.before || fallbackImage;
|
||||||
|
|
||||||
|
return (
|
||||||
|
<article className="group overflow-hidden rounded-3xl border border-slate-900/[0.08] bg-white shadow-cream-sm transition-[box-shadow,border-color,transform] duration-300 hover:-translate-y-0.5 hover:border-blue-300 hover:shadow-cream-md">
|
||||||
|
<div className="relative aspect-[16/10] overflow-hidden bg-slate-100">
|
||||||
|
{hasComparison ? (
|
||||||
|
<DeferredComparison
|
||||||
|
beforeUrl={example.before}
|
||||||
|
afterUrl={example.after}
|
||||||
|
beforeLabel="ORIGINAL"
|
||||||
|
afterLabel="RESULT"
|
||||||
|
aspectRatio="aspect-[16/10]"
|
||||||
|
/>
|
||||||
|
) : (
|
||||||
|
/* eslint-disable-next-line @next/next/no-img-element */
|
||||||
|
<img
|
||||||
|
src={image}
|
||||||
|
alt={resolveLocalised(tool.name, locale)}
|
||||||
|
loading="lazy"
|
||||||
|
decoding="async"
|
||||||
|
className="h-full w-full object-cover transition-transform duration-500 group-hover:scale-[1.03]"
|
||||||
|
/>
|
||||||
|
)}
|
||||||
|
<span className="pointer-events-none absolute left-3 top-3 z-10 rounded-full bg-white/94 px-2.5 py-1 text-[10px] font-semibold uppercase tracking-wide text-slate-700 shadow-sm backdrop-blur">
|
||||||
|
{tool.category.replace('-', ' ')}
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
<div className="p-5">
|
||||||
|
<h4 className="text-xl font-display font-bold tracking-tight text-slate-900">
|
||||||
|
<Link href={`/tools/${tool.slug}`} className="hover:text-blue-700 transition-colors">
|
||||||
|
{resolveLocalised(tool.name, locale)}
|
||||||
|
</Link>
|
||||||
|
</h4>
|
||||||
|
<p className="mt-2 line-clamp-2 text-sm leading-relaxed text-slate-600">
|
||||||
|
{resolveLocalised(tool.summary, locale)}
|
||||||
|
</p>
|
||||||
|
<div className="mt-5 flex items-center justify-between gap-3">
|
||||||
|
<Link
|
||||||
|
href={`/tools/${tool.slug}`}
|
||||||
|
className="inline-flex min-h-11 items-center gap-1.5 text-sm font-semibold text-blue-700 transition-transform hover:translate-x-0.5"
|
||||||
|
>
|
||||||
|
Try it <ArrowRight className="h-4 w-4" />
|
||||||
|
</Link>
|
||||||
|
{app && (
|
||||||
|
<Link
|
||||||
|
href={`/apps/${app.slug}`}
|
||||||
|
className="text-xs font-medium text-slate-500 hover:text-slate-900"
|
||||||
|
>
|
||||||
|
Get app
|
||||||
|
</Link>
|
||||||
|
)}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</article>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user