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
+100
View File
@@ -0,0 +1,100 @@
import React from 'react';
import Link from 'next/link';
import { Sparkles, Shield, Heart } from 'lucide-react';
import { SiteConfig, resolveLocalised } from '@/types';
interface FooterProps {
config: SiteConfig;
currentLocale: string;
}
export function Footer({ config, currentLocale }: FooterProps) {
return (
<footer className="bg-slate-50 dark:bg-slate-950 border-t border-slate-200 dark:border-slate-800 transition-colors">
<div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-12 lg:py-16">
<div className="grid grid-cols-1 md:grid-cols-4 gap-8">
{/* Brand info */}
<div className="md:col-span-2 space-y-4">
<div className="flex items-center space-x-3">
<div className="w-8 h-8 rounded-lg bg-blue-600 flex items-center justify-center text-white">
<Sparkles className="w-4 h-4" />
</div>
<span className="text-xl font-bold text-slate-900 dark:text-white">
{config.brand.name}
</span>
</div>
<p className="text-sm text-slate-600 dark:text-slate-400 max-w-sm">
{resolveLocalised(config.brand.tagline, currentLocale)}. Try our professional photo AI tools free online, then unlock 4K batch processing in our native mobile apps.
</p>
<div className="flex items-center space-x-2 text-xs text-emerald-600 dark:text-emerald-400 font-medium">
<Shield className="w-4 h-4" />
<span>Zero-Storage Policy: Photos processed in RAM and streamed directly back.</span>
</div>
</div>
{/* Quick Links */}
<div>
<h4 className="text-sm font-semibold uppercase tracking-wider text-slate-900 dark:text-white mb-4">
Explore
</h4>
<ul className="space-y-2 text-sm">
<li>
<Link href="/tools" className="text-slate-600 dark:text-slate-400 hover:text-blue-600 dark:hover:text-blue-400">
All Photo Tools
</Link>
</li>
<li>
<Link href="/apps" className="text-slate-600 dark:text-slate-400 hover:text-blue-600 dark:hover:text-blue-400">
Mobile Apps Suite
</Link>
</li>
<li>
<Link href="/pricing" className="text-slate-600 dark:text-slate-400 hover:text-blue-600 dark:hover:text-blue-400">
Pricing & In-App Credits
</Link>
</li>
<li>
<Link href="/catalog-manager" className="text-slate-600 dark:text-slate-400 hover:text-blue-600 dark:hover:text-blue-400">
API Catalogue Inspector
</Link>
</li>
</ul>
</div>
{/* Legal & Trust */}
<div>
<h4 className="text-sm font-semibold uppercase tracking-wider text-slate-900 dark:text-white mb-4">
Trust & Legal
</h4>
<ul className="space-y-2 text-sm">
<li>
<Link href="/trust" className="text-slate-600 dark:text-slate-400 hover:text-blue-600 dark:hover:text-blue-400">
Trust & Security
</Link>
</li>
<li>
<Link href="/privacy" className="text-slate-600 dark:text-slate-400 hover:text-blue-600 dark:hover:text-blue-400">
Privacy Policy
</Link>
</li>
<li>
<Link href="/terms" className="text-slate-600 dark:text-slate-400 hover:text-blue-600 dark:hover:text-blue-400">
Terms of Service
</Link>
</li>
</ul>
</div>
</div>
{/* Bottom Bar */}
<div className="mt-12 pt-8 border-t border-slate-200 dark:border-slate-800 flex flex-col sm:flex-row items-center justify-between text-xs text-slate-500 dark:text-slate-500">
<p>{config.footer.copyright}</p>
<p className="mt-2 sm:mt-0 flex items-center space-x-1">
<span>Built with precision for creators</span>
<Heart className="w-3.5 h-3.5 text-rose-500 inline fill-rose-500" />
</p>
</div>
</div>
</footer>
);
}