feat(ui): complete vertical layout overhaul, dynamic JSON banners, and animate-ui text motion graphics

This commit is contained in:
2026-11-03 18:06:20 +05:30
parent 8cec9692dc
commit b47b033ab7
24 changed files with 1419 additions and 608 deletions
+16 -13
View File
@@ -1,4 +1,8 @@
'use client';
import React from 'react';
import { NumberCounter } from '@/components/animate-ui/NumberCounter';
import { AnimatedGradientText } from '@/components/animate-ui/AnimatedGradientText';
interface StatsSectionProps {
items?: Array<{
@@ -11,21 +15,20 @@ export function StatsSection({ items = [] }: StatsSectionProps) {
if (!items || items.length === 0) return null;
return (
<section className="py-12 bg-[#FAF8F5] border-y border-slate-900/[0.08] relative overflow-hidden">
<div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 relative z-10">
<section className="py-14 sm:py-16 bg-[#FAF8F5] border-y border-slate-900/[0.08] relative overflow-hidden">
<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">
<div className="grid grid-cols-2 md:grid-cols-4 gap-8 text-center divide-y md:divide-y-0 md:divide-x divide-slate-200">
{items.map((stat, idx) => (
<div key={idx} className="pt-4 md:pt-0 space-y-2 preserve-3d perspective-800 group hover:-translate-y-1 transition-transform duration-300">
<p
className="text-4xl sm:text-5xl lg:text-6xl font-display font-black bg-clip-text text-transparent bg-gradient-to-r from-blue-700 via-indigo-600 to-amber-600 tracking-tight stat-value inline-block preserve-3d"
style={{ transform: 'translateZ(30px)' }}
>
{stat.value}
</p>
<p
className="text-xs font-mono uppercase tracking-wider text-slate-600 font-bold block preserve-3d"
style={{ transform: 'translateZ(14px)' }}
>
<div
key={idx}
className="pt-4 md:pt-0 space-y-2 group hover:-translate-y-1 transition-all duration-300"
>
<div className="text-4xl sm:text-5xl lg:text-6xl font-display font-black tracking-tight inline-block">
<AnimatedGradientText duration={5}>
<NumberCounter value={stat.value} duration={1.8} />
</AnimatedGradientText>
</div>
<p className="text-xs sm:text-sm font-mono uppercase tracking-wider text-slate-600 font-bold block">
{stat.label}
</p>
</div>