feat: complete dynamic JSON-driven photo tools frontend connected to FastAPI backend

This commit is contained in:
2026-11-03 12:24:43 +05:30
commit fa2eca3643
91 changed files with 11372 additions and 0 deletions
+31
View File
@@ -0,0 +1,31 @@
import React from 'react';
interface StatsSectionProps {
items?: Array<{
value: string;
label: string;
}>;
}
export function StatsSection({ items = [] }: StatsSectionProps) {
if (!items || items.length === 0) return null;
return (
<section className="py-8 bg-slate-50/50 dark:bg-slate-950/40 border-y border-slate-200 dark:border-slate-800">
<div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
<div className="grid grid-cols-2 md:grid-cols-4 gap-6 text-center">
{items.map((stat, idx) => (
<div key={idx} className="space-y-1">
<p className="text-3xl sm:text-4xl font-extrabold bg-clip-text text-transparent bg-gradient-to-r from-blue-600 to-teal-500">
{stat.value}
</p>
<p className="text-xs font-medium text-slate-500 dark:text-slate-400">
{stat.label}
</p>
</div>
))}
</div>
</div>
</section>
);
}