feat: rebrand to CRE Innovations, enhance ultra-smooth UI and mobile responsiveness
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
# Ekagni PhotoAI — Dynamic, JSON-Driven Photo Tools Website
|
||||
# CRE Innovations — Dynamic, JSON-Driven Photo Tools Website
|
||||
|
||||
> Built strictly to specification from `PROJECT_REQUIREMENT_DOCUMENTATION.md` (PRD v1.1).
|
||||
> Dynamic React (Next.js App Router + TypeScript + Tailwind CSS) marketing and try-it engine driven by JSON content and an external, replaceable API Catalogue connected to `FastAPI_BACKEND`.
|
||||
|
||||
@@ -16,8 +16,8 @@
|
||||
},
|
||||
"stores": {
|
||||
"android": {
|
||||
"packageId": "com.ekagni.artstudio",
|
||||
"url": "https://play.google.com/store/apps/details?id=com.ekagni.artstudio"
|
||||
"packageId": "com.creinnovations.artstudio",
|
||||
"url": "https://play.google.com/store/apps/details?id=com.creinnovations.artstudio"
|
||||
},
|
||||
"ios": {
|
||||
"appId": "1672384913",
|
||||
@@ -25,7 +25,7 @@
|
||||
}
|
||||
},
|
||||
"deepLink": {
|
||||
"base": "ekagniart://open",
|
||||
"base": "creinnovationsart://open",
|
||||
"toolParam": "tool",
|
||||
"sourceParam": "src",
|
||||
"bonusParam": "promo"
|
||||
|
||||
@@ -16,8 +16,8 @@
|
||||
},
|
||||
"stores": {
|
||||
"android": {
|
||||
"packageId": "com.ekagni.bgcleaner",
|
||||
"url": "https://play.google.com/store/apps/details?id=com.ekagni.bgcleaner"
|
||||
"packageId": "com.creinnovations.bgcleaner",
|
||||
"url": "https://play.google.com/store/apps/details?id=com.creinnovations.bgcleaner"
|
||||
},
|
||||
"ios": {
|
||||
"appId": "1672384912",
|
||||
@@ -25,7 +25,7 @@
|
||||
}
|
||||
},
|
||||
"deepLink": {
|
||||
"base": "ekagnibg://open",
|
||||
"base": "creinnovationsbg://open",
|
||||
"toolParam": "tool",
|
||||
"sourceParam": "src",
|
||||
"bonusParam": "promo"
|
||||
|
||||
@@ -16,8 +16,8 @@
|
||||
},
|
||||
"stores": {
|
||||
"android": {
|
||||
"packageId": "com.ekagni.photoenhancer",
|
||||
"url": "https://play.google.com/store/apps/details?id=com.ekagni.photoenhancer"
|
||||
"packageId": "com.creinnovations.photoenhancer",
|
||||
"url": "https://play.google.com/store/apps/details?id=com.creinnovations.photoenhancer"
|
||||
},
|
||||
"ios": {
|
||||
"appId": "1672384911",
|
||||
@@ -25,7 +25,7 @@
|
||||
}
|
||||
},
|
||||
"deepLink": {
|
||||
"base": "ekagnienhance://open",
|
||||
"base": "creinnovationsenhance://open",
|
||||
"toolParam": "tool",
|
||||
"sourceParam": "src",
|
||||
"bonusParam": "promo"
|
||||
|
||||
@@ -16,8 +16,8 @@
|
||||
},
|
||||
"stores": {
|
||||
"android": {
|
||||
"packageId": "com.ekagni.portraitpro",
|
||||
"url": "https://play.google.com/store/apps/details?id=com.ekagni.portraitpro"
|
||||
"packageId": "com.creinnovations.portraitpro",
|
||||
"url": "https://play.google.com/store/apps/details?id=com.creinnovations.portraitpro"
|
||||
},
|
||||
"ios": {
|
||||
"appId": "1672384910",
|
||||
@@ -25,7 +25,7 @@
|
||||
}
|
||||
},
|
||||
"deepLink": {
|
||||
"base": "ekagniportrait://open",
|
||||
"base": "creinnovationsportrait://open",
|
||||
"toolParam": "tool",
|
||||
"sourceParam": "src",
|
||||
"bonusParam": "promo"
|
||||
|
||||
@@ -65,7 +65,7 @@
|
||||
},
|
||||
"related": ["cutout.lama.erase", "face.blemish.remove", "restore.enhancer"],
|
||||
"seo": {
|
||||
"title": "Free AI Background Remover Online (P3M) | Ekagni PhotoAI",
|
||||
"title": "Free AI Background Remover Online (P3M) | CRE Innovations",
|
||||
"description": "Remove image backgrounds online in 3 seconds with P3M AI matting. High precision hair edge cutouts with free transparent PNG download."
|
||||
}
|
||||
}
|
||||
|
||||
@@ -77,7 +77,7 @@
|
||||
},
|
||||
"related": ["face.eyeredness.remove", "face.teeth.whitener", "face.eyebag.remove"],
|
||||
"seo": {
|
||||
"title": "Remove Blemishes & Acne Free Online | Ekagni PhotoAI",
|
||||
"title": "Remove Blemishes & Acne Free Online | CRE Innovations",
|
||||
"description": "Remove acne, pimples, and blemishes from portrait photos in seconds. Free online AI blemish remover with natural skin texture preservation."
|
||||
}
|
||||
}
|
||||
|
||||
@@ -61,7 +61,7 @@
|
||||
},
|
||||
"related": ["art.polaroid.film", "face.blemish.remove", "restore.enhancer"],
|
||||
"seo": {
|
||||
"title": "Turn Photos into Cartoons Free Online | Ekagni PhotoAI",
|
||||
"title": "Turn Photos into Cartoons Free Online | CRE Innovations",
|
||||
"description": "Convert photo to anime cartoon online free with CartoonGAN. Generate aesthetic illustrated profile pictures and manga avatars."
|
||||
}
|
||||
}
|
||||
|
||||
@@ -61,7 +61,7 @@
|
||||
},
|
||||
"related": ["restore.oldphoto", "restore.enhancer"],
|
||||
"seo": {
|
||||
"title": "Colorize Black and White Photos Free Online | Ekagni PhotoAI",
|
||||
"title": "Colorize Black and White Photos Free Online | CRE Innovations",
|
||||
"description": "Turn old black and white pictures into realistic full-color memories online with AI deep learning colorization."
|
||||
}
|
||||
}
|
||||
|
||||
@@ -61,7 +61,7 @@
|
||||
},
|
||||
"related": ["restore.colorization", "restore.enhancer", "face.blemish.remove"],
|
||||
"seo": {
|
||||
"title": "Restore Old Scratched Photos Free Online | Ekagni PhotoAI",
|
||||
"title": "Restore Old Scratched Photos Free Online | CRE Innovations",
|
||||
"description": "Fix damaged, scratched, and faded vintage family photos free online. AI neural scratch removal and historic print restoration."
|
||||
}
|
||||
}
|
||||
|
||||
@@ -73,7 +73,7 @@
|
||||
},
|
||||
"related": ["restore.oldphoto", "restore.colorization", "face.blemish.remove"],
|
||||
"seo": {
|
||||
"title": "Enhance Blurry Photos Free Online | Ekagni PhotoAI",
|
||||
"title": "Enhance Blurry Photos Free Online | CRE Innovations",
|
||||
"description": "Deblur and upscale blurry photos online with AI. Recover facial details, fix camera shake, and get high-definition clarity free."
|
||||
}
|
||||
}
|
||||
|
||||
@@ -61,7 +61,7 @@
|
||||
},
|
||||
"related": ["art.cartoon.gan", "restore.colorization"],
|
||||
"seo": {
|
||||
"title": "Vintage Polaroid Photo Filter Free Online | Ekagni PhotoAI",
|
||||
"title": "Vintage Polaroid Photo Filter Free Online | CRE Innovations",
|
||||
"description": "Transform regular photos into vintage Polaroid instant camera prints free online with film grain and retro borders."
|
||||
}
|
||||
}
|
||||
|
||||
@@ -69,7 +69,7 @@
|
||||
},
|
||||
"related": ["face.blemish.remove", "face.eyeredness.remove"],
|
||||
"seo": {
|
||||
"title": "Whiten Teeth in Photos Free Online | Ekagni PhotoAI",
|
||||
"title": "Whiten Teeth in Photos Free Online | CRE Innovations",
|
||||
"description": "Whiten teeth in photos free online with AI. Brighten your smile naturally while preserving lip and gum color."
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
"route": "/apps",
|
||||
"status": "published",
|
||||
"seo": {
|
||||
"title": "Mobile Apps Suite | Android & iOS | Ekagni PhotoAI",
|
||||
"title": "Mobile Apps Suite | Android & iOS | CRE Innovations",
|
||||
"description": "Download our dedicated AI photo editing mobile apps for Android and iOS. Portrait Studio AI, Enhance Ultra AI, Magic Cutout Studio, and Toonify.",
|
||||
"indexable": true
|
||||
},
|
||||
|
||||
@@ -25,8 +25,8 @@
|
||||
"toolRef": "face.blemish.remove"
|
||||
},
|
||||
"badge": {
|
||||
"en": "⚡ Powered by Ekagni Deep Learning Engine",
|
||||
"hi": "⚡ एकग्नि डीप लर्निंग इंजन द्वारा संचालित"
|
||||
"en": "⚡ Powered by CRE Innovations Deep Learning Engine",
|
||||
"hi": "⚡ सीआरई इनोवेशन्स डीप लर्निंग इंजन द्वारा संचालित"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
"route": "/pricing",
|
||||
"status": "published",
|
||||
"seo": {
|
||||
"title": "Pricing & In-App Purchases | Ekagni PhotoAI",
|
||||
"description": "Understand how pricing and free tries work across Ekagni PhotoAI web tools and dedicated iOS and Android mobile apps.",
|
||||
"title": "Pricing & In-App Purchases | CRE Innovations",
|
||||
"description": "Understand how pricing and free tries work across CRE Innovations web tools and dedicated iOS and Android mobile apps.",
|
||||
"indexable": true
|
||||
},
|
||||
"sections": [
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
"route": "/privacy",
|
||||
"status": "published",
|
||||
"seo": {
|
||||
"title": "Privacy Policy | Ekagni PhotoAI",
|
||||
"description": "Ekagni PhotoAI Privacy Policy. Information on data processing, zero-storage policy, and compliance with GDPR and DPDP Act.",
|
||||
"title": "Privacy Policy | CRE Innovations",
|
||||
"description": "CRE Innovations Privacy Policy. Information on data processing, zero-storage policy, and compliance with GDPR and DPDP Act.",
|
||||
"indexable": true
|
||||
},
|
||||
"sections": [
|
||||
@@ -21,7 +21,7 @@
|
||||
"id": "privacy-content",
|
||||
"type": "richText",
|
||||
"props": {
|
||||
"markdown": "### 1. Information We Collect\nWe collect anonymous usage telemetry (such as browser type, tool selected, and error codes) only after you provide consent. We do **not** collect your name, email, or identity for web tool usage.\n\n### 2. Processing of Photo Files\nUploaded image files are processed strictly in volatile memory. No copies of uploaded images or processed output files are retained on our servers after delivery.\n\n### 3. In-App Purchases\nWhen you download and purchase features within our mobile apps (Portrait Studio AI, Enhance Ultra AI, Magic Cutout Studio, Toonify), transactions are handled securely by Google Play Store or Apple App Store. We do not receive or store your payment card numbers.\n\n### 4. Contact Us\nFor privacy inquiries, please contact privacy@ekagniai.com."
|
||||
"markdown": "### 1. Information We Collect\nWe collect anonymous usage telemetry (such as browser type, tool selected, and error codes) only after you provide consent. We do **not** collect your name, email, or identity for web tool usage.\n\n### 2. Processing of Photo Files\nUploaded image files are processed strictly in volatile memory. No copies of uploaded images or processed output files are retained on our servers after delivery.\n\n### 3. In-App Purchases\nWhen you download and purchase features within our mobile apps (Portrait Studio AI, Enhance Ultra AI, Magic Cutout Studio, Toonify), transactions are handled securely by Google Play Store or Apple App Store. We do not receive or store your payment card numbers.\n\n### 4. Contact Us\nFor privacy inquiries, please contact privacy@creinnovationsai.com."
|
||||
}
|
||||
}
|
||||
]
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
"route": "/terms",
|
||||
"status": "published",
|
||||
"seo": {
|
||||
"title": "Terms of Service | Ekagni PhotoAI",
|
||||
"description": "Ekagni PhotoAI Terms of Service. Acceptable use policy and mobile app handoff terms.",
|
||||
"title": "Terms of Service | CRE Innovations",
|
||||
"description": "CRE Innovations Terms of Service. Acceptable use policy and mobile app handoff terms.",
|
||||
"indexable": true
|
||||
},
|
||||
"sections": [
|
||||
@@ -14,14 +14,14 @@
|
||||
"variant": "centered",
|
||||
"props": {
|
||||
"title": { "en": "Terms of Service", "hi": "सेवा की शर्तें" },
|
||||
"subtitle": { "en": "Guidelines and conditions for using Ekagni PhotoAI web and mobile services.", "hi": "शर्तें और दिशानिर्देश।" }
|
||||
"subtitle": { "en": "Guidelines and conditions for using CRE Innovations web and mobile services.", "hi": "शर्तें और दिशानिर्देश।" }
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "terms-content",
|
||||
"type": "richText",
|
||||
"props": {
|
||||
"markdown": "### 1. Acceptance of Terms\nBy accessing or using the Ekagni PhotoAI website and services, you agree to comply with and be bound by these Terms of Service.\n\n### 2. Permitted Use\nYou agree to upload only photos for which you own the copyright or have express authorization from the subject. Uploading harmful, illegal, non-consensual, or infringing imagery is strictly prohibited.\n\n### 3. Service Availability\nFree web try tools are subject to fair use limits and daily infrastructure budgets. We reserve the right to temporarily pause or modify access to ensure service quality for all users.\n\n### 4. Separate App Purchases\nEach mobile app maintains separate licensing, subscriptions, and purchases. A purchase in one mobile app does not grant credits or licenses in another mobile app."
|
||||
"markdown": "### 1. Acceptance of Terms\nBy accessing or using the CRE Innovations website and services, you agree to comply with and be bound by these Terms of Service.\n\n### 2. Permitted Use\nYou agree to upload only photos for which you own the copyright or have express authorization from the subject. Uploading harmful, illegal, non-consensual, or infringing imagery is strictly prohibited.\n\n### 3. Service Availability\nFree web try tools are subject to fair use limits and daily infrastructure budgets. We reserve the right to temporarily pause or modify access to ensure service quality for all users.\n\n### 4. Separate App Purchases\nEach mobile app maintains separate licensing, subscriptions, and purchases. A purchase in one mobile app does not grant credits or licenses in another mobile app."
|
||||
}
|
||||
}
|
||||
]
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
"route": "/tools",
|
||||
"status": "published",
|
||||
"seo": {
|
||||
"title": "All AI Photo Tools | Free Online Suite | Ekagni PhotoAI",
|
||||
"title": "All AI Photo Tools | Free Online Suite | CRE Innovations",
|
||||
"description": "Browse our complete directory of free online AI photo tools: blemish removal, background cutout, deblurring, vintage photo restoration, teeth whitening, and cartoon avatars.",
|
||||
"indexable": true
|
||||
},
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
"route": "/trust",
|
||||
"status": "published",
|
||||
"seo": {
|
||||
"title": "Trust, Security & Photo Privacy | Ekagni PhotoAI",
|
||||
"description": "Learn how Ekagni PhotoAI protects your biometric privacy, encrypts upload streams, and ensures zero retention of your processed photos.",
|
||||
"title": "Trust, Security & Photo Privacy | CRE Innovations",
|
||||
"description": "Learn how CRE Innovations protects your biometric privacy, encrypts upload streams, and ensures zero retention of your processed photos.",
|
||||
"indexable": true
|
||||
},
|
||||
"sections": [
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"schemaVersion": "1.0",
|
||||
"brand": {
|
||||
"name": "Ekagni PhotoAI",
|
||||
"name": "CRE Innovations",
|
||||
"logo": "/brand/logo.svg",
|
||||
"tagline": {
|
||||
"en": "Next-Gen AI Photo Editing Tools",
|
||||
@@ -56,7 +56,7 @@
|
||||
}
|
||||
},
|
||||
"footer": {
|
||||
"copyright": "© 2026 Ekagni PhotoAI. All rights reserved.",
|
||||
"copyright": "© 2026 CRE Innovations. All rights reserved.",
|
||||
"links": [
|
||||
{ "label": { "en": "All Tools", "hi": "सभी टूल्स" }, "href": "/tools" },
|
||||
{ "label": { "en": "Mobile Apps", "hi": "मोबाइल ऐप्स" }, "href": "/apps" },
|
||||
@@ -73,7 +73,7 @@
|
||||
"webWallet": false
|
||||
},
|
||||
"seo": {
|
||||
"titleTemplate": "%s | Ekagni PhotoAI",
|
||||
"titleTemplate": "%s | CRE Innovations",
|
||||
"defaultOgImage": "/brand/og-default.png",
|
||||
"siteUrl": "http://localhost:3000"
|
||||
},
|
||||
|
||||
@@ -4,7 +4,7 @@ import { SectionRenderer } from '@/components/sections/SectionRenderer';
|
||||
import { notFound } from 'next/navigation';
|
||||
|
||||
export const metadata: Metadata = {
|
||||
title: 'Dedicated Mobile Apps Suite | Android & iOS | Ekagni PhotoAI',
|
||||
title: 'Dedicated Mobile Apps Suite | Android & iOS | CRE Innovations',
|
||||
description: 'Download our suite of AI photo editing apps for Android and iOS. Built with hardware-accelerated neural networks and 4K lossless export.',
|
||||
};
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ import { SectionRenderer } from '@/components/sections/SectionRenderer';
|
||||
import { notFound } from 'next/navigation';
|
||||
|
||||
export const metadata: Metadata = {
|
||||
title: 'Pricing & In-App Purchases | Ekagni PhotoAI',
|
||||
title: 'Pricing & In-App Purchases | CRE Innovations',
|
||||
description: 'Understand how free web tries and app-specific pricing work. No cross-app subscriptions or web wallets.',
|
||||
};
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ import { SectionRenderer } from '@/components/sections/SectionRenderer';
|
||||
import { notFound } from 'next/navigation';
|
||||
|
||||
export const metadata: Metadata = {
|
||||
title: 'Privacy Policy | Ekagni PhotoAI',
|
||||
title: 'Privacy Policy | CRE Innovations',
|
||||
description: 'Full privacy policy: transient image handling, zero retention, and GDPR compliance.',
|
||||
};
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ import { SectionRenderer } from '@/components/sections/SectionRenderer';
|
||||
import { notFound } from 'next/navigation';
|
||||
|
||||
export const metadata: Metadata = {
|
||||
title: 'Terms of Service | Ekagni PhotoAI',
|
||||
title: 'Terms of Service | CRE Innovations',
|
||||
description: 'Terms of Service for online web tools and mobile app handoff.',
|
||||
};
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@ export async function generateMetadata({ params }: ToolPageProps): Promise<Metad
|
||||
const summary = resolveLocalised(tool.summary, 'en');
|
||||
|
||||
return {
|
||||
title: tool.seo?.title || `${name} Free Online | Ekagni PhotoAI`,
|
||||
title: tool.seo?.title || `${name} Free Online | CRE Innovations`,
|
||||
description: tool.seo?.description || summary,
|
||||
alternates: {
|
||||
canonical: `/tools/${tool.slug}`,
|
||||
|
||||
@@ -4,7 +4,7 @@ import { SectionRenderer } from '@/components/sections/SectionRenderer';
|
||||
import { notFound } from 'next/navigation';
|
||||
|
||||
export const metadata: Metadata = {
|
||||
title: 'Trust & Biometric Privacy Safeguards | Ekagni PhotoAI',
|
||||
title: 'Trust & Biometric Privacy Safeguards | CRE Innovations',
|
||||
description: 'Our four privacy pillars: Zero-storage, RAM processing, no model training on user photos, and strict biometric protections.',
|
||||
};
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import React from 'react';
|
||||
import Link from 'next/link';
|
||||
import { Smartphone, Star, Check, ArrowRight, ShieldCheck } from 'lucide-react';
|
||||
import { Smartphone, Star, Check, ArrowRight, ShieldCheck, Download } from 'lucide-react';
|
||||
import { AppItem, resolveLocalised } from '@/types';
|
||||
|
||||
interface AppCardsSectionProps {
|
||||
@@ -21,47 +21,48 @@ export function AppCardsSection({
|
||||
locale = 'en',
|
||||
}: AppCardsSectionProps) {
|
||||
return (
|
||||
<section className="py-12 lg:py-16 bg-slate-50/50 dark:bg-slate-950/50">
|
||||
<section className="py-14 sm:py-20 bg-gradient-to-b from-slate-50/50 via-white to-slate-50/50 dark:from-slate-950/60 dark:via-slate-900/40 dark:to-slate-950/60 border-y border-slate-200/80 dark:border-slate-800/80">
|
||||
<div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
|
||||
{(title || subtitle) && (
|
||||
<div className="text-center max-w-3xl mx-auto mb-12 space-y-3">
|
||||
<div className="text-center max-w-3xl mx-auto mb-12 sm:mb-16 space-y-3">
|
||||
{title && (
|
||||
<h2 className="text-3xl sm:text-4xl font-bold text-slate-900 dark:text-white">
|
||||
<h2 className="text-3xl sm:text-4xl font-black text-slate-900 dark:text-white tracking-tight">
|
||||
{resolveLocalised(title, locale)}
|
||||
</h2>
|
||||
)}
|
||||
{subtitle && (
|
||||
<p className="text-base text-slate-600 dark:text-slate-400">
|
||||
<p className="text-sm sm:text-base text-slate-600 dark:text-slate-400">
|
||||
{resolveLocalised(subtitle, locale)}
|
||||
</p>
|
||||
)}
|
||||
</div>
|
||||
)}
|
||||
|
||||
<div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6">
|
||||
<div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6 sm:gap-8">
|
||||
{apps.map((app) => (
|
||||
<div
|
||||
key={app.id}
|
||||
className="bg-white dark:bg-slate-900 rounded-3xl p-6 border border-slate-200 dark:border-slate-800 shadow-sm hover:shadow-xl transition-all flex flex-col justify-between"
|
||||
className="bg-white/95 dark:bg-slate-900/95 backdrop-blur-xl rounded-3xl p-6 sm:p-7 border border-slate-200/80 dark:border-slate-800/80 shadow-md hover:shadow-2xl hover:shadow-blue-500/10 hover:border-blue-500/40 hover:-translate-y-1 transition-all duration-300 flex flex-col justify-between"
|
||||
>
|
||||
<div>
|
||||
{/* Header: Icon & Rating */}
|
||||
<div className="flex items-center justify-between mb-4">
|
||||
<div className="w-12 h-12 rounded-2xl bg-gradient-to-tr from-blue-600 to-indigo-600 flex items-center justify-center text-white shadow-md shadow-blue-500/20">
|
||||
<Smartphone className="w-6 h-6" />
|
||||
<div className="flex items-center justify-between mb-5">
|
||||
<div className="w-13 h-13 sm:w-14 sm:h-14 rounded-2xl bg-gradient-to-tr from-blue-600 via-indigo-600 to-cyan-400 flex items-center justify-center text-white shadow-lg shadow-blue-500/25 p-3">
|
||||
<Smartphone className="w-7 h-7" />
|
||||
</div>
|
||||
{showRating && (
|
||||
<div className="flex items-center space-x-1 bg-amber-50 dark:bg-amber-950/50 border border-amber-200 dark:border-amber-800 px-2.5 py-1 rounded-full text-xs font-semibold text-amber-700 dark:text-amber-400">
|
||||
<div className="flex items-center space-x-1.5 bg-amber-50 dark:bg-amber-950/50 border border-amber-200/80 dark:border-amber-800/80 px-3 py-1.5 rounded-full text-xs font-bold text-amber-800 dark:text-amber-300 shadow-sm">
|
||||
<Star className="w-3.5 h-3.5 fill-amber-400 text-amber-400" />
|
||||
<span>{app.rating.value}</span>
|
||||
<span className="text-[10px] text-amber-600/80 font-normal">({(app.rating.count / 1000).toFixed(1)}k)</span>
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
|
||||
<h3 className="text-xl font-bold text-slate-900 dark:text-white">
|
||||
<h3 className="text-xl font-extrabold text-slate-900 dark:text-white">
|
||||
{resolveLocalised(app.name, locale)}
|
||||
</h3>
|
||||
<p className="mt-1 text-xs text-blue-600 dark:text-blue-400 font-medium">
|
||||
<p className="mt-1 text-xs text-blue-600 dark:text-cyan-400 font-bold tracking-wide">
|
||||
{resolveLocalised(app.tagline, locale)}
|
||||
</p>
|
||||
|
||||
@@ -71,7 +72,7 @@ export function AppCardsSection({
|
||||
|
||||
{/* Features Checklist */}
|
||||
{app.features && app.features.length > 0 && (
|
||||
<div className="mt-4 pt-4 border-t border-slate-100 dark:border-slate-800 space-y-2">
|
||||
<div className="mt-5 pt-4 border-t border-slate-100 dark:border-slate-800/80 space-y-2">
|
||||
{app.features.slice(0, 3).map((feat, idx) => (
|
||||
<div key={idx} className="flex items-start space-x-2 text-xs text-slate-600 dark:text-slate-300">
|
||||
<Check className="w-3.5 h-3.5 text-emerald-500 shrink-0 mt-0.5" />
|
||||
@@ -82,17 +83,17 @@ export function AppCardsSection({
|
||||
)}
|
||||
</div>
|
||||
|
||||
<div className="mt-6 pt-4 border-t border-slate-100 dark:border-slate-800 space-y-3">
|
||||
{/* Mandatory Disclaimer (PRD §1.2, §9 APP-10) */}
|
||||
<div className="mt-6 pt-4 border-t border-slate-100 dark:border-slate-800/80 space-y-3">
|
||||
{/* Mandatory Disclaimer */}
|
||||
<p className="text-[10px] text-slate-400 dark:text-slate-500 italic text-center">
|
||||
{resolveLocalised(app.creditsNote, locale, 'Credits and purchases are specific to this app.')}
|
||||
</p>
|
||||
|
||||
<Link
|
||||
href={`/apps/${app.slug}`}
|
||||
className="w-full inline-flex items-center justify-center space-x-2 py-3 rounded-xl text-xs font-semibold text-white bg-slate-900 dark:bg-white dark:text-slate-900 hover:bg-blue-600 dark:hover:bg-blue-500 dark:hover:text-white transition-all shadow-md"
|
||||
className="w-full inline-flex items-center justify-center space-x-2 py-3.5 rounded-2xl text-xs font-bold text-white bg-slate-900 hover:bg-blue-600 dark:bg-white dark:text-slate-900 dark:hover:bg-blue-500 dark:hover:text-white transition-all duration-200 shadow-md hover:shadow-lg"
|
||||
>
|
||||
<span>Get App & Bonus</span>
|
||||
<span>Get App & 50 Bonus Credits</span>
|
||||
<ArrowRight className="w-3.5 h-3.5" />
|
||||
</Link>
|
||||
</div>
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
import React, { useState, useEffect } from 'react';
|
||||
import QRCode from 'qrcode';
|
||||
import { Smartphone, QrCode, Copy, Check, Gift } from 'lucide-react';
|
||||
import { Smartphone, QrCode, Copy, Check, Gift, ExternalLink } from 'lucide-react';
|
||||
import { AppItem, ToolItem, resolveLocalised } from '@/types';
|
||||
|
||||
interface AppHandoffSectionProps {
|
||||
@@ -33,7 +33,7 @@ export function AppHandoffSection({
|
||||
useEffect(() => {
|
||||
if (showQr) {
|
||||
QRCode.toDataURL(targetUrl, {
|
||||
width: 180,
|
||||
width: 200,
|
||||
margin: 1,
|
||||
color: {
|
||||
dark: '#0f172a',
|
||||
@@ -52,46 +52,46 @@ export function AppHandoffSection({
|
||||
};
|
||||
|
||||
return (
|
||||
<section className="py-12 bg-gradient-to-br from-blue-50/50 via-white to-teal-50/50 dark:from-slate-900 dark:via-slate-900 dark:to-slate-950 border-y border-slate-200 dark:border-slate-800">
|
||||
<section className="py-12 sm:py-16 bg-gradient-to-br from-blue-50/50 via-white to-cyan-50/50 dark:from-slate-900/60 dark:via-slate-900/40 dark:to-slate-950/60 border-y border-slate-200/80 dark:border-slate-800/80">
|
||||
<div className="max-w-6xl mx-auto px-4 sm:px-6 lg:px-8">
|
||||
<div className="bg-white dark:bg-slate-900 rounded-3xl p-6 sm:p-10 border border-slate-200 dark:border-slate-800 shadow-xl flex flex-col md:flex-row items-center justify-between gap-8">
|
||||
<div className="bg-white/95 dark:bg-slate-900/95 backdrop-blur-xl rounded-3xl p-6 sm:p-10 border border-slate-200/80 dark:border-slate-800/80 shadow-2xl flex flex-col md:flex-row items-center justify-between gap-8 sm:gap-12">
|
||||
{/* Left Column: Copy & Store CTA */}
|
||||
<div className="space-y-4 max-w-xl">
|
||||
<div className="inline-flex items-center space-x-2 px-3 py-1 rounded-full bg-blue-50 dark:bg-blue-950 text-blue-600 dark:text-blue-400 text-xs font-semibold">
|
||||
<div className="inline-flex items-center space-x-2 px-3.5 py-1.5 rounded-full bg-blue-50 dark:bg-blue-950 text-blue-600 dark:text-cyan-400 text-xs font-bold border border-blue-100 dark:border-blue-900/40">
|
||||
<Smartphone className="w-3.5 h-3.5" />
|
||||
<span>Native iOS & Android App</span>
|
||||
<span>Native iOS & Android Application</span>
|
||||
</div>
|
||||
|
||||
<h3 className="text-2xl sm:text-3xl font-extrabold text-slate-900 dark:text-white">
|
||||
<h3 className="text-2xl sm:text-3xl font-black text-slate-900 dark:text-white tracking-tight">
|
||||
{tool
|
||||
? `Continue in ${resolveLocalised(app.name, locale)} with 4K Lossless Export`
|
||||
: `Download ${resolveLocalised(app.name, locale)}`}
|
||||
</h3>
|
||||
|
||||
<p className="text-sm text-slate-600 dark:text-slate-400 leading-relaxed">
|
||||
Experience zero-latency hardware accelerated neural processing, batch photoshoot enhancement, and professional fine-tuning sliders.
|
||||
<p className="text-xs sm:text-sm text-slate-600 dark:text-slate-400 leading-relaxed">
|
||||
Experience zero-latency hardware-accelerated neural processing, batch photoshoot enhancement, and professional fine-tuning sliders on your phone.
|
||||
</p>
|
||||
|
||||
{/* Welcome Bonus Promo Banner */}
|
||||
{showBonus && (
|
||||
<div className="p-4 rounded-2xl bg-amber-50 dark:bg-amber-950/40 border border-amber-200 dark:border-amber-800/60 flex items-center justify-between">
|
||||
<div className="flex items-center space-x-3">
|
||||
<div className="w-10 h-10 rounded-xl bg-amber-100 dark:bg-amber-900/60 flex items-center justify-center text-amber-600">
|
||||
<div className="p-4 sm:p-5 rounded-2xl bg-gradient-to-r from-amber-50 to-orange-50 dark:from-amber-950/40 dark:to-orange-950/40 border border-amber-200/80 dark:border-amber-800/60 flex items-center justify-between shadow-sm">
|
||||
<div className="flex items-center space-x-3.5">
|
||||
<div className="w-11 h-11 rounded-xl bg-amber-100 dark:bg-amber-900/60 flex items-center justify-center text-amber-600 shrink-0">
|
||||
<Gift className="w-5 h-5" />
|
||||
</div>
|
||||
<div>
|
||||
<p className="text-xs font-bold text-slate-900 dark:text-white">
|
||||
<p className="text-xs sm:text-sm font-extrabold text-slate-900 dark:text-white">
|
||||
{app.welcomeBonus?.title || '50 Free HD Export Credits'}
|
||||
</p>
|
||||
<p className="text-[11px] text-slate-500 dark:text-slate-400">
|
||||
Claim promo code on first launch
|
||||
<p className="text-[11px] text-slate-600 dark:text-slate-400">
|
||||
Claim promo code upon first mobile install
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<button
|
||||
onClick={copyPromo}
|
||||
className="inline-flex items-center space-x-1.5 px-3 py-1.5 rounded-lg text-xs font-mono font-bold bg-white dark:bg-slate-900 border border-amber-300 dark:border-amber-700 text-amber-800 dark:text-amber-300 hover:bg-amber-100 dark:hover:bg-amber-950 transition-colors"
|
||||
className="inline-flex items-center space-x-1.5 px-3 py-1.5 rounded-xl text-xs font-mono font-bold bg-white dark:bg-slate-900 border border-amber-300 dark:border-amber-700 text-amber-800 dark:text-amber-300 hover:bg-amber-100 dark:hover:bg-amber-950 shadow-sm transition-colors"
|
||||
>
|
||||
{copied ? <Check className="w-3.5 h-3.5 text-emerald-600" /> : <Copy className="w-3.5 h-3.5" />}
|
||||
<span>{bonusCode}</span>
|
||||
@@ -105,17 +105,19 @@ export function AppHandoffSection({
|
||||
href={app.stores.android?.url || '#'}
|
||||
target="_blank"
|
||||
rel="noreferrer"
|
||||
className="px-5 py-2.5 rounded-xl text-xs font-semibold text-white bg-slate-900 hover:bg-slate-800 dark:bg-white dark:text-slate-900 dark:hover:bg-slate-100 shadow-md transition-all flex items-center space-x-2"
|
||||
className="px-5 py-3 rounded-2xl text-xs font-bold text-white bg-slate-900 hover:bg-slate-800 dark:bg-white dark:text-slate-900 dark:hover:bg-slate-100 shadow-md transition-all flex items-center space-x-2"
|
||||
>
|
||||
<span>Google Play</span>
|
||||
<ExternalLink className="w-3.5 h-3.5 opacity-60" />
|
||||
</a>
|
||||
<a
|
||||
href={app.stores.ios?.url || '#'}
|
||||
target="_blank"
|
||||
rel="noreferrer"
|
||||
className="px-5 py-2.5 rounded-xl text-xs font-semibold text-white bg-slate-900 hover:bg-slate-800 dark:bg-white dark:text-slate-900 dark:hover:bg-slate-100 shadow-md transition-all flex items-center space-x-2"
|
||||
className="px-5 py-3 rounded-2xl text-xs font-bold text-white bg-slate-900 hover:bg-slate-800 dark:bg-white dark:text-slate-900 dark:hover:bg-slate-100 shadow-md transition-all flex items-center space-x-2"
|
||||
>
|
||||
<span>Apple App Store</span>
|
||||
<ExternalLink className="w-3.5 h-3.5 opacity-60" />
|
||||
</a>
|
||||
</div>
|
||||
|
||||
@@ -125,17 +127,18 @@ export function AppHandoffSection({
|
||||
</p>
|
||||
</div>
|
||||
|
||||
{/* Right Column: QR Code Handoff (PRD §9 APP-05) */}
|
||||
{/* Right Column: QR Code Handoff */}
|
||||
{showQr && qrDataUrl && (
|
||||
<div className="text-center p-6 rounded-2xl bg-slate-50 dark:bg-slate-950/60 border border-slate-200 dark:border-slate-800 shrink-0">
|
||||
<div className="p-2 bg-white rounded-xl shadow-inner inline-block">
|
||||
<div className="text-center p-6 sm:p-8 rounded-3xl bg-slate-50/80 dark:bg-slate-950/80 border border-slate-200/80 dark:border-slate-800/80 shadow-inner shrink-0">
|
||||
<div className="p-3 bg-white rounded-2xl shadow-md inline-block">
|
||||
{/* eslint-disable-next-line @next/next/no-img-element */}
|
||||
<img src={qrDataUrl} alt="Scan QR code to install app" className="w-36 h-36" />
|
||||
<img src={qrDataUrl} alt="Scan QR code to install app" className="w-36 h-36 sm:w-40 sm:h-40" />
|
||||
</div>
|
||||
<div className="mt-3 flex items-center justify-center space-x-1.5 text-xs text-slate-600 dark:text-slate-400 font-medium">
|
||||
<QrCode className="w-4 h-4 text-blue-600" />
|
||||
<div className="mt-3.5 flex items-center justify-center space-x-2 text-xs font-bold text-slate-700 dark:text-slate-300">
|
||||
<QrCode className="w-4 h-4 text-blue-600 dark:text-cyan-400" />
|
||||
<span>Scan with phone camera</span>
|
||||
</div>
|
||||
<p className="text-[10px] text-slate-500 mt-0.5">Instant redirect to store listing</p>
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
import React, { useState } from 'react';
|
||||
import Link from 'next/link';
|
||||
import { HelpCircle, CheckCircle2, ArrowRight, Sparkles, Smartphone } from 'lucide-react';
|
||||
import { HelpCircle, ArrowRight, Sparkles, Smile, RefreshCcw, Scissors, Palette } from 'lucide-react';
|
||||
import { AppItem, resolveLocalised } from '@/types';
|
||||
|
||||
interface AppPickerSectionProps {
|
||||
@@ -19,31 +19,34 @@ export function AppPickerSection({
|
||||
locale = 'en',
|
||||
}: AppPickerSectionProps) {
|
||||
const [photoGoal, setPhotoGoal] = useState<string>('portrait');
|
||||
const [step, setStep] = useState<number>(1);
|
||||
|
||||
const goalOptions = [
|
||||
{
|
||||
id: 'portrait',
|
||||
title: 'Portraits, Selfies & Skin Beauty',
|
||||
desc: 'Acne, blemish removal, teeth whitening, eye redness',
|
||||
icon: Smile,
|
||||
appSlug: 'portrait-app',
|
||||
},
|
||||
{
|
||||
id: 'restoration',
|
||||
title: 'Blurry, Damaged or Old Photos',
|
||||
desc: 'Restoring old photos, fixing scratches, sharpening faces',
|
||||
desc: 'Fixing scratches, sharpening faces, colorizing black & white',
|
||||
icon: RefreshCcw,
|
||||
appSlug: 'photo-enhancer-pro',
|
||||
},
|
||||
{
|
||||
id: 'cutout',
|
||||
title: 'Background Cutout & Object Removal',
|
||||
desc: 'Transparent PNGs, product photography, erasing strangers',
|
||||
title: 'Background Cutout & Eraser',
|
||||
desc: 'Transparent PNGs, e-commerce products, erasing strangers',
|
||||
icon: Scissors,
|
||||
appSlug: 'bg-cleaner-app',
|
||||
},
|
||||
{
|
||||
id: 'art',
|
||||
title: 'Anime, Cartoon & Vintage Film Art',
|
||||
desc: 'Cartoon avatars, Polaroid aesthetic, anime stylization',
|
||||
desc: 'Cartoon avatars, Polaroid frames, manga illustrations',
|
||||
icon: Palette,
|
||||
appSlug: 'art-studio-app',
|
||||
},
|
||||
];
|
||||
@@ -52,68 +55,79 @@ export function AppPickerSection({
|
||||
const recommendedApp = apps.find((a) => a.slug === matchedGoal.appSlug) || apps[0];
|
||||
|
||||
return (
|
||||
<section className="py-12 lg:py-16 bg-white dark:bg-slate-900 border-t border-slate-200 dark:border-slate-800">
|
||||
<section className="py-14 sm:py-20 bg-white dark:bg-slate-900 border-t border-slate-200/80 dark:border-slate-800/80">
|
||||
<div className="max-w-4xl mx-auto px-4 sm:px-6 lg:px-8">
|
||||
<div className="text-center space-y-3 mb-10">
|
||||
<div className="inline-flex items-center space-x-2 px-3 py-1 rounded-full bg-blue-50 dark:bg-blue-950 text-blue-600 dark:text-blue-400 text-xs font-semibold">
|
||||
<div className="inline-flex items-center space-x-2 px-3.5 py-1.5 rounded-full bg-blue-50 dark:bg-blue-950/80 text-blue-600 dark:text-cyan-400 text-xs font-bold border border-blue-200/60 dark:border-blue-800/60">
|
||||
<HelpCircle className="w-3.5 h-3.5" />
|
||||
<span>Interactive App Matcher</span>
|
||||
<span>Interactive Tool & App Matcher</span>
|
||||
</div>
|
||||
<h2 className="text-3xl font-bold text-slate-900 dark:text-white">
|
||||
<h2 className="text-3xl sm:text-4xl font-black text-slate-900 dark:text-white tracking-tight">
|
||||
{resolveLocalised(title, locale, 'Not Sure Which App You Need?')}
|
||||
</h2>
|
||||
<p className="text-sm text-slate-600 dark:text-slate-400">
|
||||
{resolveLocalised(subtitle, locale, 'Select your photo editing goal to find your tailored mobile tool.')}
|
||||
<p className="text-sm text-slate-600 dark:text-slate-400 max-w-lg mx-auto">
|
||||
{resolveLocalised(subtitle, locale, 'Select what you want to edit and find your tailored CRE Innovations app.')}
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div className="bg-slate-50 dark:bg-slate-950 rounded-3xl p-6 sm:p-8 border border-slate-200 dark:border-slate-800 shadow-md space-y-8">
|
||||
<div className="bg-slate-50/80 dark:bg-slate-950/80 rounded-3xl p-6 sm:p-9 border border-slate-200/80 dark:border-slate-800/80 shadow-xl space-y-8">
|
||||
<div>
|
||||
<label className="block text-xs font-bold uppercase tracking-wider text-slate-500 dark:text-slate-400 mb-4">
|
||||
Step 1: What would you like to edit?
|
||||
Select Your Creative Goal:
|
||||
</label>
|
||||
<div className="grid grid-cols-1 sm:grid-cols-2 gap-3">
|
||||
{goalOptions.map((opt) => (
|
||||
<button
|
||||
key={opt.id}
|
||||
onClick={() => setPhotoGoal(opt.id)}
|
||||
className={`p-4 rounded-2xl border text-left transition-all ${
|
||||
photoGoal === opt.id
|
||||
? 'border-blue-600 bg-white dark:bg-slate-900 shadow-md ring-2 ring-blue-500/20'
|
||||
: 'border-slate-200 dark:border-slate-800 hover:border-slate-300 dark:hover:border-slate-700 bg-white/60 dark:bg-slate-900/60'
|
||||
}`}
|
||||
>
|
||||
<p className="font-semibold text-sm text-slate-900 dark:text-white">
|
||||
{opt.title}
|
||||
</p>
|
||||
<p className="text-xs text-slate-500 dark:text-slate-400 mt-1">
|
||||
{opt.desc}
|
||||
</p>
|
||||
</button>
|
||||
))}
|
||||
<div className="grid grid-cols-1 sm:grid-cols-2 gap-3.5">
|
||||
{goalOptions.map((opt) => {
|
||||
const Icon = opt.icon;
|
||||
const isSelected = photoGoal === opt.id;
|
||||
return (
|
||||
<button
|
||||
key={opt.id}
|
||||
onClick={() => setPhotoGoal(opt.id)}
|
||||
className={`p-4 sm:p-5 rounded-2xl border text-left transition-all duration-200 flex items-start space-x-3.5 ${
|
||||
isSelected
|
||||
? 'border-blue-600 bg-white dark:bg-slate-900 shadow-lg ring-2 ring-blue-500/20 scale-[1.01]'
|
||||
: 'border-slate-200/80 dark:border-slate-800/80 hover:border-slate-300 dark:hover:border-slate-700 bg-white/70 dark:bg-slate-900/70'
|
||||
}`}
|
||||
>
|
||||
<div className={`w-9 h-9 rounded-xl flex items-center justify-center shrink-0 mt-0.5 ${
|
||||
isSelected ? 'bg-blue-600 text-white' : 'bg-slate-100 dark:bg-slate-800 text-slate-500'
|
||||
}`}>
|
||||
<Icon className="w-4 h-4" />
|
||||
</div>
|
||||
<div>
|
||||
<p className="font-bold text-sm text-slate-900 dark:text-white">
|
||||
{opt.title}
|
||||
</p>
|
||||
<p className="text-xs text-slate-500 dark:text-slate-400 mt-1 leading-relaxed">
|
||||
{opt.desc}
|
||||
</p>
|
||||
</div>
|
||||
</button>
|
||||
);
|
||||
})}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{/* Recommended Result */}
|
||||
{/* Recommended Result Box */}
|
||||
{recommendedApp && (
|
||||
<div className="pt-6 border-t border-slate-200 dark:border-slate-800 flex flex-col sm:flex-row items-center justify-between gap-6 bg-gradient-to-r from-blue-50/50 to-teal-50/50 dark:from-blue-950/20 dark:to-teal-950/20 p-6 rounded-2xl">
|
||||
<div className="pt-6 border-t border-slate-200 dark:border-slate-800 flex flex-col sm:flex-row items-start sm:items-center justify-between gap-6 bg-gradient-to-r from-blue-50 via-indigo-50 to-cyan-50 dark:from-blue-950/40 dark:via-indigo-950/40 dark:to-cyan-950/40 p-6 sm:p-7 rounded-2xl border border-blue-200/60 dark:border-blue-900/40 shadow-sm">
|
||||
<div className="space-y-1">
|
||||
<span className="text-[11px] font-bold uppercase tracking-wider text-emerald-600 dark:text-emerald-400">
|
||||
Recommended Match:
|
||||
<span className="text-[11px] font-black uppercase tracking-wider text-blue-600 dark:text-cyan-400">
|
||||
★ Recommended Match
|
||||
</span>
|
||||
<h4 className="text-xl font-bold text-slate-900 dark:text-white">
|
||||
<h4 className="text-xl sm:text-2xl font-black text-slate-900 dark:text-white">
|
||||
{resolveLocalised(recommendedApp.name, locale)}
|
||||
</h4>
|
||||
<p className="text-xs text-slate-600 dark:text-slate-400">
|
||||
<p className="text-xs sm:text-sm text-slate-600 dark:text-slate-400">
|
||||
{resolveLocalised(recommendedApp.tagline, locale)}
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<Link
|
||||
href={`/apps/${recommendedApp.slug}`}
|
||||
className="shrink-0 inline-flex items-center space-x-2 px-5 py-3 rounded-xl text-xs font-semibold text-white bg-blue-600 hover:bg-blue-700 shadow-md shadow-blue-500/20 transition-all hover:scale-105"
|
||||
className="w-full sm:w-auto shrink-0 inline-flex items-center justify-center space-x-2 px-6 py-3.5 rounded-2xl text-xs font-bold text-white bg-blue-600 hover:bg-blue-700 shadow-lg shadow-blue-500/25 transition-all hover:scale-105 active:scale-95"
|
||||
>
|
||||
<span>View App & Get 50 Bonus Credits</span>
|
||||
<span>Get App & 50 Bonus Credits</span>
|
||||
<ArrowRight className="w-4 h-4" />
|
||||
</Link>
|
||||
</div>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import React from 'react';
|
||||
import Link from 'next/link';
|
||||
import { Sparkles, ArrowRight, Smartphone } from 'lucide-react';
|
||||
import { Sparkles, ArrowRight, Smartphone, ShieldCheck, Zap } from 'lucide-react';
|
||||
import { resolveLocalised, ToolItem, AppItem, VariantSpec } from '@/types';
|
||||
import { TryItWidget } from './TryItWidget';
|
||||
|
||||
@@ -34,27 +34,43 @@ export function HeroSection({
|
||||
|
||||
if (variant === 'tryit' && tool) {
|
||||
return (
|
||||
<section className="relative overflow-hidden pt-8 pb-16 lg:pt-14 lg:pb-24">
|
||||
{/* Ambient Gradient Background Glow */}
|
||||
<div className="absolute top-0 left-1/2 -translate-x-1/2 w-full max-w-7xl h-96 bg-gradient-to-tr from-blue-500/10 via-teal-500/10 to-indigo-500/10 blur-3xl pointer-events-none -z-10" />
|
||||
<section className="relative overflow-hidden pt-8 pb-14 sm:pt-12 sm:pb-20 lg:pt-16 lg:pb-24">
|
||||
{/* Ambient Radial Gradient Lights */}
|
||||
<div className="absolute top-0 left-1/2 -translate-x-1/2 w-full max-w-7xl h-96 bg-gradient-to-tr from-blue-600/15 via-cyan-500/10 to-indigo-600/15 blur-3xl pointer-events-none -z-10" />
|
||||
|
||||
<div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
|
||||
<div className="text-center max-w-3xl mx-auto space-y-4 mb-10">
|
||||
<div className="text-center max-w-3xl mx-auto space-y-4 mb-8 sm:mb-12">
|
||||
{resolvedBadge && (
|
||||
<div className="inline-flex items-center space-x-2 px-3.5 py-1.5 rounded-full bg-blue-50 dark:bg-blue-950/60 border border-blue-200 dark:border-blue-800 text-xs font-semibold text-blue-700 dark:text-blue-300">
|
||||
<Sparkles className="w-3.5 h-3.5 text-blue-500" />
|
||||
<div className="inline-flex items-center space-x-2 px-4 py-1.5 rounded-full bg-blue-50/80 dark:bg-blue-950/80 border border-blue-200/80 dark:border-blue-800/80 text-xs font-bold text-blue-700 dark:text-cyan-300 shadow-sm backdrop-blur-md">
|
||||
<Sparkles className="w-3.5 h-3.5 text-blue-500 dark:text-cyan-400" />
|
||||
<span>{resolvedBadge}</span>
|
||||
</div>
|
||||
)}
|
||||
<h1 className="text-4xl sm:text-5xl lg:text-6xl font-extrabold text-slate-900 dark:text-white tracking-tight leading-tight">
|
||||
<h1 className="text-3xl sm:text-5xl lg:text-6xl font-black text-slate-900 dark:text-white tracking-tight leading-tight">
|
||||
{resolvedTitle}
|
||||
</h1>
|
||||
<p className="text-lg text-slate-600 dark:text-slate-300 leading-relaxed">
|
||||
<p className="text-sm sm:text-lg text-slate-600 dark:text-slate-300 leading-relaxed max-w-2xl mx-auto">
|
||||
{resolvedSubtitle}
|
||||
</p>
|
||||
|
||||
{/* Quick Guarantees Pill */}
|
||||
<div className="pt-1 flex flex-wrap items-center justify-center gap-3 sm:gap-6 text-xs font-semibold text-slate-500 dark:text-slate-400">
|
||||
<span className="flex items-center space-x-1.5">
|
||||
<ShieldCheck className="w-4 h-4 text-emerald-500" />
|
||||
<span>Zero Storage Retention</span>
|
||||
</span>
|
||||
<span className="flex items-center space-x-1.5">
|
||||
<Zap className="w-4 h-4 text-amber-500" />
|
||||
<span>Hardware Accelerated</span>
|
||||
</span>
|
||||
<span className="flex items-center space-x-1.5">
|
||||
<Sparkles className="w-4 h-4 text-blue-500" />
|
||||
<span>Pore-Preserving Texture</span>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{/* Embedded Interactive Try-It Widget */}
|
||||
{/* Embedded Interactive Free Try-It Widget */}
|
||||
<div className="max-w-4xl mx-auto">
|
||||
<TryItWidget
|
||||
tool={tool}
|
||||
@@ -68,38 +84,38 @@ export function HeroSection({
|
||||
);
|
||||
}
|
||||
|
||||
// Centered or Standard Hero
|
||||
// Centered Hero
|
||||
return (
|
||||
<section className="relative overflow-hidden pt-12 pb-16 lg:pt-20 lg:pb-24 text-center">
|
||||
<div className="absolute top-0 left-1/2 -translate-x-1/2 w-full max-w-7xl h-80 bg-gradient-to-b from-blue-500/10 to-transparent blur-3xl pointer-events-none -z-10" />
|
||||
<section className="relative overflow-hidden pt-12 pb-16 sm:pt-20 sm:pb-24 text-center">
|
||||
<div className="absolute top-0 left-1/2 -translate-x-1/2 w-full max-w-7xl h-80 bg-gradient-to-b from-blue-500/10 via-cyan-500/5 to-transparent blur-3xl pointer-events-none -z-10" />
|
||||
|
||||
<div className="max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 space-y-6">
|
||||
{resolvedBadge && (
|
||||
<div className="inline-flex items-center space-x-2 px-3.5 py-1.5 rounded-full bg-blue-50 dark:bg-blue-950/60 border border-blue-200 dark:border-blue-800 text-xs font-semibold text-blue-700 dark:text-blue-300">
|
||||
<div className="inline-flex items-center space-x-2 px-4 py-1.5 rounded-full bg-blue-50 dark:bg-blue-950/80 border border-blue-200 dark:border-blue-800 text-xs font-bold text-blue-700 dark:text-cyan-300">
|
||||
<Sparkles className="w-3.5 h-3.5" />
|
||||
<span>{resolvedBadge}</span>
|
||||
</div>
|
||||
)}
|
||||
|
||||
<h1 className="text-4xl sm:text-5xl lg:text-6xl font-extrabold text-slate-900 dark:text-white tracking-tight leading-tight">
|
||||
<h1 className="text-4xl sm:text-5xl lg:text-6xl font-black text-slate-900 dark:text-white tracking-tight leading-tight">
|
||||
{resolvedTitle}
|
||||
</h1>
|
||||
|
||||
<p className="text-lg sm:text-xl text-slate-600 dark:text-slate-300 max-w-2xl mx-auto">
|
||||
<p className="text-base sm:text-xl text-slate-600 dark:text-slate-300 max-w-2xl mx-auto leading-relaxed">
|
||||
{resolvedSubtitle}
|
||||
</p>
|
||||
|
||||
<div className="flex flex-wrap items-center justify-center gap-4 pt-4">
|
||||
<div className="flex flex-wrap items-center justify-center gap-3 sm:gap-4 pt-4">
|
||||
<Link
|
||||
href="/tools"
|
||||
className="inline-flex items-center space-x-2 px-6 py-3.5 rounded-xl font-semibold text-white bg-blue-600 hover:bg-blue-700 shadow-md shadow-blue-500/20 transition-all hover:scale-105 active:scale-95"
|
||||
className="inline-flex items-center space-x-2 px-7 py-3.5 rounded-2xl font-bold text-sm text-white bg-blue-600 hover:bg-blue-700 shadow-xl shadow-blue-500/25 transition-all hover:scale-105 active:scale-95"
|
||||
>
|
||||
<span>Explore All Free Tools</span>
|
||||
<ArrowRight className="w-4 h-4" />
|
||||
</Link>
|
||||
<Link
|
||||
href="/apps"
|
||||
className="inline-flex items-center space-x-2 px-6 py-3.5 rounded-xl font-semibold text-slate-700 dark:text-slate-200 bg-slate-100 dark:bg-slate-800 hover:bg-slate-200 dark:hover:bg-slate-700 transition-colors"
|
||||
className="inline-flex items-center space-x-2 px-7 py-3.5 rounded-2xl font-bold text-sm text-slate-700 dark:text-slate-200 bg-slate-100 dark:bg-slate-800 hover:bg-slate-200 dark:hover:bg-slate-700 transition-colors"
|
||||
>
|
||||
<Smartphone className="w-4 h-4 text-slate-500" />
|
||||
<span>Mobile Apps Suite</span>
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
import React, { useState, useMemo } from 'react';
|
||||
import Link from 'next/link';
|
||||
import { Search, Sparkles, ArrowRight, Wand2, Scissors, Smile, Palette } from 'lucide-react';
|
||||
import { Search, Sparkles, ArrowRight, Wand2, Scissors, Smile, Palette, RefreshCcw } from 'lucide-react';
|
||||
import { ToolItem, CategoryItem, AppItem, resolveLocalised } from '@/types';
|
||||
|
||||
interface ToolGridSectionProps {
|
||||
@@ -53,19 +53,34 @@ export function ToolGridSection({
|
||||
return list;
|
||||
}, [tools, selectedCategory, searchQuery, limit, locale]);
|
||||
|
||||
const getCategoryIcon = (catId: string) => {
|
||||
switch (catId) {
|
||||
case 'portrait-retouch':
|
||||
return <Smile className="w-4 h-4 text-rose-500" />;
|
||||
case 'restoration':
|
||||
return <RefreshCcw className="w-4 h-4 text-amber-500" />;
|
||||
case 'background-cutout':
|
||||
return <Scissors className="w-4 h-4 text-emerald-500" />;
|
||||
case 'creative-art':
|
||||
return <Palette className="w-4 h-4 text-purple-500" />;
|
||||
default:
|
||||
return <Wand2 className="w-4 h-4 text-blue-500" />;
|
||||
}
|
||||
};
|
||||
|
||||
return (
|
||||
<section className="py-12 lg:py-16">
|
||||
<section className="py-12 sm:py-16 lg:py-20">
|
||||
<div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
|
||||
{/* Section Heading */}
|
||||
{(title || subtitle) && (
|
||||
<div className="text-center max-w-3xl mx-auto mb-10 space-y-3">
|
||||
{title && (
|
||||
<h2 className="text-3xl sm:text-4xl font-bold text-slate-900 dark:text-white">
|
||||
<h2 className="text-3xl sm:text-4xl font-black text-slate-900 dark:text-white tracking-tight">
|
||||
{resolveLocalised(title, locale)}
|
||||
</h2>
|
||||
)}
|
||||
{subtitle && (
|
||||
<p className="text-base text-slate-600 dark:text-slate-400">
|
||||
<p className="text-sm sm:text-base text-slate-600 dark:text-slate-400">
|
||||
{resolveLocalised(subtitle, locale)}
|
||||
</p>
|
||||
)}
|
||||
@@ -74,14 +89,14 @@ export function ToolGridSection({
|
||||
|
||||
{/* Search & Filters */}
|
||||
{(showSearch || showCategoryFilter) && (
|
||||
<div className="mb-8 flex flex-col md:flex-row items-center justify-between gap-4">
|
||||
<div className="mb-10 flex flex-col md:flex-row items-stretch md:items-center justify-between gap-4">
|
||||
{showCategoryFilter && categories.length > 0 && (
|
||||
<div className="flex flex-wrap items-center gap-2">
|
||||
<button
|
||||
onClick={() => setSelectedCategory('all')}
|
||||
className={`px-3.5 py-1.5 rounded-full text-xs font-semibold transition-colors ${
|
||||
className={`px-4 py-2 rounded-xl text-xs font-bold transition-all duration-200 ${
|
||||
selectedCategory === 'all'
|
||||
? 'bg-blue-600 text-white'
|
||||
? 'bg-blue-600 text-white shadow-md shadow-blue-500/25 scale-105'
|
||||
: 'bg-slate-100 dark:bg-slate-800 text-slate-600 dark:text-slate-300 hover:bg-slate-200 dark:hover:bg-slate-700'
|
||||
}`}
|
||||
>
|
||||
@@ -91,27 +106,28 @@ export function ToolGridSection({
|
||||
<button
|
||||
key={cat.id}
|
||||
onClick={() => setSelectedCategory(cat.id)}
|
||||
className={`px-3.5 py-1.5 rounded-full text-xs font-semibold transition-colors ${
|
||||
className={`flex items-center space-x-1.5 px-3.5 py-2 rounded-xl text-xs font-bold transition-all duration-200 ${
|
||||
selectedCategory === cat.id
|
||||
? 'bg-blue-600 text-white'
|
||||
? 'bg-blue-600 text-white shadow-md shadow-blue-500/25 scale-105'
|
||||
: 'bg-slate-100 dark:bg-slate-800 text-slate-600 dark:text-slate-300 hover:bg-slate-200 dark:hover:bg-slate-700'
|
||||
}`}
|
||||
>
|
||||
{resolveLocalised(cat.name, locale)}
|
||||
<span>{getCategoryIcon(cat.id)}</span>
|
||||
<span>{resolveLocalised(cat.name, locale)}</span>
|
||||
</button>
|
||||
))}
|
||||
</div>
|
||||
)}
|
||||
|
||||
{showSearch && (
|
||||
<div className="relative w-full md:w-72">
|
||||
<Search className="w-4 h-4 absolute left-3 top-1/2 -translate-y-1/2 text-slate-400" />
|
||||
<div className="relative w-full md:w-80">
|
||||
<Search className="w-4 h-4 absolute left-3.5 top-1/2 -translate-y-1/2 text-slate-400" />
|
||||
<input
|
||||
type="text"
|
||||
placeholder="Search AI photo tools..."
|
||||
value={searchQuery}
|
||||
onChange={(e) => setSearchQuery(e.target.value)}
|
||||
className="w-full pl-9 pr-4 py-2 rounded-xl text-sm border border-slate-200 dark:border-slate-800 bg-white dark:bg-slate-900 text-slate-900 dark:text-white placeholder-slate-400 focus:outline-none focus:ring-2 focus:ring-blue-500"
|
||||
className="w-full pl-10 pr-4 py-2.5 rounded-2xl text-xs sm:text-sm border border-slate-200 dark:border-slate-800 bg-white dark:bg-slate-900 text-slate-900 dark:text-white placeholder-slate-400 focus:outline-none focus:ring-2 focus:ring-blue-500 shadow-sm"
|
||||
/>
|
||||
</div>
|
||||
)}
|
||||
@@ -119,26 +135,26 @@ export function ToolGridSection({
|
||||
)}
|
||||
|
||||
{/* Tools Cards Grid */}
|
||||
<div className="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-6">
|
||||
<div className="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-6">
|
||||
{filteredTools.map((tool) => {
|
||||
const homeApp = appMap.get(tool.homeApp);
|
||||
return (
|
||||
<div
|
||||
key={tool.id}
|
||||
className="group relative bg-white dark:bg-slate-900 rounded-2xl p-6 border border-slate-200 dark:border-slate-800 shadow-sm hover:shadow-xl hover:border-blue-500/50 transition-all flex flex-col justify-between"
|
||||
className="group relative bg-white dark:bg-slate-900/90 rounded-3xl p-6 border border-slate-200/80 dark:border-slate-800/80 shadow-sm hover:shadow-2xl hover:shadow-blue-500/10 hover:border-blue-500/40 hover:-translate-y-1 transition-all duration-300 flex flex-col justify-between"
|
||||
>
|
||||
<div>
|
||||
{/* Category Tag & Icon */}
|
||||
<div className="flex items-center justify-between mb-4">
|
||||
<span className="text-[11px] font-semibold tracking-wider uppercase text-blue-600 dark:text-blue-400 bg-blue-50 dark:bg-blue-950/60 px-2.5 py-1 rounded-md">
|
||||
<span className="text-[11px] font-bold tracking-wider uppercase text-blue-600 dark:text-cyan-400 bg-blue-50 dark:bg-blue-950/60 px-3 py-1 rounded-lg border border-blue-100 dark:border-blue-900/40">
|
||||
{tool.category}
|
||||
</span>
|
||||
<div className="w-8 h-8 rounded-lg bg-slate-100 dark:bg-slate-800 flex items-center justify-center text-slate-600 dark:text-slate-300 group-hover:scale-110 group-hover:text-blue-600 transition-all">
|
||||
<Wand2 className="w-4 h-4" />
|
||||
<div className="w-9 h-9 rounded-xl bg-slate-100 dark:bg-slate-800 flex items-center justify-center text-slate-600 dark:text-slate-300 group-hover:scale-110 group-hover:bg-blue-50 dark:group-hover:bg-blue-950 group-hover:text-blue-600 transition-all duration-200">
|
||||
{getCategoryIcon(tool.category)}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<h3 className="text-lg font-bold text-slate-900 dark:text-white group-hover:text-blue-600 dark:group-hover:text-blue-400 transition-colors">
|
||||
<h3 className="text-lg font-bold text-slate-900 dark:text-white group-hover:text-blue-600 dark:group-hover:text-cyan-400 transition-colors">
|
||||
{resolveLocalised(tool.name, locale)}
|
||||
</h3>
|
||||
|
||||
@@ -148,11 +164,10 @@ export function ToolGridSection({
|
||||
</div>
|
||||
|
||||
<div className="mt-6 pt-4 border-t border-slate-100 dark:border-slate-800/80 space-y-3">
|
||||
{/* Home App Attribution (PRD §1.2, §9 APP-01) */}
|
||||
{homeApp && (
|
||||
<div className="text-[11px] text-slate-500 dark:text-slate-400 flex items-center justify-between">
|
||||
<span>Home App:</span>
|
||||
<span className="font-semibold text-slate-700 dark:text-slate-300">
|
||||
<span className="font-medium">Home App:</span>
|
||||
<span className="font-bold text-slate-700 dark:text-slate-300 truncate max-w-[140px]">
|
||||
{resolveLocalised(homeApp.name, locale)}
|
||||
</span>
|
||||
</div>
|
||||
@@ -160,10 +175,10 @@ export function ToolGridSection({
|
||||
|
||||
<Link
|
||||
href={`/tools/${tool.slug}`}
|
||||
className="w-full inline-flex items-center justify-center space-x-2 py-2.5 rounded-xl text-xs font-semibold text-blue-600 dark:text-blue-400 bg-blue-50 dark:bg-blue-950/40 hover:bg-blue-600 hover:text-white dark:hover:bg-blue-600 dark:hover:text-white transition-all shadow-sm"
|
||||
className="w-full inline-flex items-center justify-center space-x-2 py-3 rounded-2xl text-xs font-bold text-blue-600 dark:text-cyan-400 bg-blue-50 dark:bg-blue-950/40 hover:bg-blue-600 hover:text-white dark:hover:bg-blue-600 dark:hover:text-white transition-all duration-200 shadow-sm group-hover:shadow-md"
|
||||
>
|
||||
<span>Try Free Online</span>
|
||||
<ArrowRight className="w-3.5 h-3.5" />
|
||||
<ArrowRight className="w-3.5 h-3.5 group-hover:translate-x-1 transition-transform" />
|
||||
</Link>
|
||||
</div>
|
||||
</div>
|
||||
@@ -172,8 +187,9 @@ export function ToolGridSection({
|
||||
</div>
|
||||
|
||||
{filteredTools.length === 0 && (
|
||||
<div className="text-center py-12 text-slate-500 dark:text-slate-400">
|
||||
No photo tools found matching your filter.
|
||||
<div className="text-center py-16 text-slate-500 dark:text-slate-400 space-y-2">
|
||||
<p className="font-bold">No photo tools found matching "{searchQuery}"</p>
|
||||
<p className="text-xs">Try searching for "blemish", "background", "photo", or clear filters.</p>
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
import React, { useState, useRef, useEffect } from 'react';
|
||||
import Link from 'next/link';
|
||||
import { UploadCloud, CheckCircle2, AlertCircle, RefreshCw, Download, Smartphone, Sparkles, Loader2, Image as ImageIcon } from 'lucide-react';
|
||||
import { UploadCloud, CheckCircle2, AlertCircle, RefreshCw, Download, Smartphone, Sparkles, Loader2, Image as ImageIcon, Zap, ChevronRight } from 'lucide-react';
|
||||
import { ToolItem, AppItem, VariantSpec, resolveLocalised } from '@/types';
|
||||
import { BeforeAfterSlider } from '../ui/BeforeAfterSlider';
|
||||
|
||||
@@ -30,16 +30,16 @@ export function TryItWidget({
|
||||
const [status, setStatus] = useState<'idle' | 'selected' | 'processing' | 'success' | 'limit' | 'error' | 'unavailable'>('idle');
|
||||
const [errorMessage, setErrorMessage] = useState<string>('');
|
||||
const [remainingTries, setRemainingTries] = useState<number>(tool.tryIt?.limits?.perDay || 5);
|
||||
const [isDragOver, setIsDragOver] = useState<boolean>(false);
|
||||
const fileInputRef = useRef<HTMLInputElement>(null);
|
||||
|
||||
// Sample quick presets if user doesn't have an image on hand
|
||||
const samplePresets = [
|
||||
{
|
||||
label: 'Sample Portrait',
|
||||
label: 'Portrait Sample',
|
||||
url: 'https://images.unsplash.com/photo-1534528741775-53994a69daeb?w=600&auto=format&fit=crop&q=80',
|
||||
},
|
||||
{
|
||||
label: 'Sample Selfie',
|
||||
label: 'Natural Face',
|
||||
url: 'https://images.unsplash.com/photo-1544005313-94ddf0286df2?w=600&auto=format&fit=crop&q=80',
|
||||
},
|
||||
];
|
||||
@@ -74,6 +74,7 @@ export function TryItWidget({
|
||||
|
||||
const handleDrop = (e: React.DragEvent) => {
|
||||
e.preventDefault();
|
||||
setIsDragOver(false);
|
||||
if (e.dataTransfer.files && e.dataTransfer.files[0]) {
|
||||
handleFileChange(e.dataTransfer.files[0]);
|
||||
}
|
||||
@@ -145,25 +146,28 @@ export function TryItWidget({
|
||||
};
|
||||
|
||||
return (
|
||||
<div className={`bg-white dark:bg-slate-900 rounded-3xl p-6 sm:p-8 shadow-xl border border-slate-200 dark:border-slate-800 ${className}`}>
|
||||
<div className={`relative bg-white/90 dark:bg-slate-900/90 backdrop-blur-2xl rounded-3xl p-5 sm:p-8 shadow-2xl border border-slate-200/80 dark:border-slate-800/80 overflow-hidden ${className}`}>
|
||||
{/* Decorative Glow Corner */}
|
||||
<div className="absolute top-0 right-0 w-64 h-64 bg-gradient-to-bl from-blue-500/10 via-cyan-500/10 to-transparent blur-2xl pointer-events-none -z-10" />
|
||||
|
||||
{/* Top Header & Tries Counter */}
|
||||
<div className="flex flex-wrap items-center justify-between gap-4 pb-6 border-b border-slate-100 dark:border-slate-800">
|
||||
<div className="flex flex-col sm:flex-row items-start sm:items-center justify-between gap-3 sm:gap-4 pb-5 sm:pb-6 border-b border-slate-100 dark:border-slate-800">
|
||||
<div className="flex items-center space-x-3">
|
||||
<div className="w-10 h-10 rounded-xl bg-blue-50 dark:bg-blue-950 flex items-center justify-center text-blue-600 dark:text-blue-400">
|
||||
<Sparkles className="w-5 h-5" />
|
||||
<div className="w-10 h-10 rounded-xl bg-gradient-to-tr from-blue-600 to-cyan-500 flex items-center justify-center text-white shadow-md shadow-blue-500/20 shrink-0">
|
||||
<Zap className="w-5 h-5" />
|
||||
</div>
|
||||
<div>
|
||||
<h3 className="font-semibold text-slate-900 dark:text-white">
|
||||
{resolveLocalised(tool.name, locale)} — Free Web Try
|
||||
<h3 className="font-bold text-slate-900 dark:text-white text-base sm:text-lg">
|
||||
{resolveLocalised(tool.name, locale)} — Free Online Try
|
||||
</h3>
|
||||
<p className="text-xs text-slate-500 dark:text-slate-400">
|
||||
Zero watermarks • Instant RAM processing • No sign-up
|
||||
Zero Watermarks • In-Memory Processing • No Sign-Up
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div className="flex items-center space-x-2 bg-emerald-50 dark:bg-emerald-950/40 border border-emerald-200 dark:border-emerald-800 px-3 py-1.5 rounded-full text-xs font-medium text-emerald-700 dark:text-emerald-400">
|
||||
<CheckCircle2 className="w-3.5 h-3.5" />
|
||||
<div className="self-end sm:self-auto flex items-center space-x-2 bg-emerald-50 dark:bg-emerald-950/50 border border-emerald-200 dark:border-emerald-800 px-3 py-1.5 rounded-full text-xs font-semibold text-emerald-700 dark:text-emerald-400">
|
||||
<span className="w-2 h-2 rounded-full bg-emerald-500 animate-pulse"></span>
|
||||
<span>{remainingTries} free tries today</span>
|
||||
</div>
|
||||
</div>
|
||||
@@ -175,9 +179,17 @@ export function TryItWidget({
|
||||
{/* Drag & Drop Upload Zone */}
|
||||
<div
|
||||
onDrop={handleDrop}
|
||||
onDragOver={(e) => e.preventDefault()}
|
||||
onDragOver={(e) => {
|
||||
e.preventDefault();
|
||||
setIsDragOver(true);
|
||||
}}
|
||||
onDragLeave={() => setIsDragOver(false)}
|
||||
onClick={() => fileInputRef.current?.click()}
|
||||
className="border-2 border-dashed border-slate-300 dark:border-slate-700 hover:border-blue-500 dark:hover:border-blue-400 rounded-2xl p-8 sm:p-12 text-center cursor-pointer transition-all hover:bg-slate-50 dark:hover:bg-slate-800/40 group"
|
||||
className={`border-2 border-dashed rounded-3xl p-8 sm:p-14 text-center cursor-pointer transition-all duration-300 group ${
|
||||
isDragOver
|
||||
? 'border-blue-500 bg-blue-50/50 dark:bg-blue-950/40 scale-[1.01]'
|
||||
: 'border-slate-300 dark:border-slate-700 hover:border-blue-500 dark:hover:border-blue-400 hover:bg-slate-50/60 dark:hover:bg-slate-800/40'
|
||||
}`}
|
||||
>
|
||||
<input
|
||||
ref={fileInputRef}
|
||||
@@ -186,30 +198,30 @@ export function TryItWidget({
|
||||
className="hidden"
|
||||
onChange={(e) => e.target.files?.[0] && handleFileChange(e.target.files[0])}
|
||||
/>
|
||||
<div className="w-16 h-16 mx-auto mb-4 rounded-2xl bg-blue-50 dark:bg-blue-950/60 flex items-center justify-center text-blue-600 dark:text-blue-400 group-hover:scale-110 transition-transform">
|
||||
<UploadCloud className="w-8 h-8" />
|
||||
<div className="w-16 h-16 sm:w-20 sm:h-20 mx-auto mb-4 rounded-3xl bg-gradient-to-tr from-blue-50 to-indigo-50 dark:from-blue-950/60 dark:to-indigo-950/60 border border-blue-200/60 dark:border-blue-800/60 flex items-center justify-center text-blue-600 dark:text-blue-400 group-hover:scale-110 transition-transform duration-300 shadow-sm">
|
||||
<UploadCloud className="w-8 h-8 sm:w-10 sm:h-10" />
|
||||
</div>
|
||||
<p className="text-base font-semibold text-slate-900 dark:text-white">
|
||||
Drop your photo here, or <span className="text-blue-600 dark:text-blue-400 underline">browse</span>
|
||||
<p className="text-base sm:text-lg font-bold text-slate-900 dark:text-white">
|
||||
Drag & drop your photo here, or <span className="text-blue-600 dark:text-blue-400 underline decoration-2 underline-offset-4">browse</span>
|
||||
</p>
|
||||
<p className="mt-1 text-xs text-slate-500 dark:text-slate-400">
|
||||
<p className="mt-1.5 text-xs text-slate-500 dark:text-slate-400">
|
||||
Supports JPG, PNG, WEBP up to {tool.tryIt?.limits?.maxMB || 12}MB
|
||||
</p>
|
||||
</div>
|
||||
|
||||
{/* Quick Sample Presets */}
|
||||
<div className="pt-2">
|
||||
<p className="text-xs font-semibold text-slate-500 dark:text-slate-400 uppercase tracking-wider mb-3">
|
||||
Or try a sample photo:
|
||||
<div>
|
||||
<p className="text-xs font-bold text-slate-500 dark:text-slate-400 uppercase tracking-wider mb-3">
|
||||
Or test with a sample photo:
|
||||
</p>
|
||||
<div className="flex flex-wrap gap-3">
|
||||
<div className="flex flex-wrap gap-2.5">
|
||||
{samplePresets.map((preset, idx) => (
|
||||
<button
|
||||
key={idx}
|
||||
onClick={() => loadSamplePreset(preset.url)}
|
||||
className="inline-flex items-center space-x-2 px-3 py-2 rounded-xl text-xs font-medium bg-slate-100 dark:bg-slate-800 text-slate-700 dark:text-slate-200 hover:bg-slate-200 dark:hover:bg-slate-700 transition-colors"
|
||||
className="inline-flex items-center space-x-2 px-4 py-2.5 rounded-xl text-xs font-semibold bg-slate-100 dark:bg-slate-800 text-slate-700 dark:text-slate-200 hover:bg-blue-50 dark:hover:bg-blue-950 hover:text-blue-600 dark:hover:text-blue-400 border border-transparent hover:border-blue-200 dark:hover:border-blue-800 transition-all active:scale-95"
|
||||
>
|
||||
<ImageIcon className="w-4 h-4 text-slate-500" />
|
||||
<ImageIcon className="w-3.5 h-3.5 text-slate-400" />
|
||||
<span>{preset.label}</span>
|
||||
</button>
|
||||
))}
|
||||
@@ -221,33 +233,33 @@ export function TryItWidget({
|
||||
{status === 'selected' && previewUrl && (
|
||||
<div className="space-y-6">
|
||||
<div className="grid grid-cols-1 md:grid-cols-2 gap-6 items-center">
|
||||
{/* Image Preview */}
|
||||
<div className="relative aspect-[4/3] rounded-2xl overflow-hidden border border-slate-200 dark:border-slate-800 bg-slate-100 dark:bg-slate-950">
|
||||
{/* Image Preview Card */}
|
||||
<div className="relative aspect-[4/3] rounded-2xl sm:rounded-3xl overflow-hidden border border-slate-200 dark:border-slate-800 bg-slate-100 dark:bg-slate-950 shadow-md">
|
||||
{/* eslint-disable-next-line @next/next/no-img-element */}
|
||||
<img src={previewUrl} alt="Selected photo" className="w-full h-full object-cover" />
|
||||
<button
|
||||
onClick={reset}
|
||||
className="absolute top-3 right-3 bg-black/60 hover:bg-black/80 text-white text-xs px-2.5 py-1 rounded-md backdrop-blur-md transition-colors"
|
||||
className="absolute top-3 right-3 bg-black/70 hover:bg-black/90 text-white text-xs font-semibold px-3 py-1.5 rounded-xl backdrop-blur-md transition-colors"
|
||||
>
|
||||
Change Photo
|
||||
</button>
|
||||
</div>
|
||||
|
||||
{/* Variant / Mode Controls */}
|
||||
{/* Mode Selection & Run Action */}
|
||||
<div className="space-y-4">
|
||||
{variants.length > 0 && (
|
||||
<div>
|
||||
<label className="block text-xs font-semibold text-slate-500 dark:text-slate-400 uppercase tracking-wider mb-2">
|
||||
{resolveLocalised(tool.tryIt?.variantControl?.label, locale, 'Select Mode')}
|
||||
<label className="block text-xs font-bold text-slate-500 dark:text-slate-400 uppercase tracking-wider mb-2.5">
|
||||
{resolveLocalised(tool.tryIt?.variantControl?.label, locale, 'Select Retouch Mode')}
|
||||
</label>
|
||||
<div className="space-y-2">
|
||||
{variants.map((v) => (
|
||||
<label
|
||||
key={v.id}
|
||||
className={`flex items-center justify-between p-3.5 rounded-xl border cursor-pointer transition-all ${
|
||||
className={`flex items-center justify-between p-3.5 rounded-2xl border cursor-pointer transition-all duration-200 ${
|
||||
activeVariant === v.id
|
||||
? 'border-blue-600 bg-blue-50/50 dark:bg-blue-950/30 dark:border-blue-500'
|
||||
: 'border-slate-200 dark:border-slate-800 hover:border-slate-300'
|
||||
? 'border-blue-600 bg-blue-50/60 dark:bg-blue-950/40 dark:border-blue-500 shadow-sm ring-1 ring-blue-500/20'
|
||||
: 'border-slate-200 dark:border-slate-800 hover:border-slate-300 dark:hover:border-slate-700'
|
||||
}`}
|
||||
>
|
||||
<div className="flex items-center space-x-3">
|
||||
@@ -257,14 +269,14 @@ export function TryItWidget({
|
||||
value={v.id}
|
||||
checked={activeVariant === v.id}
|
||||
onChange={() => setActiveVariant(v.id)}
|
||||
className="text-blue-600 focus:ring-blue-500"
|
||||
className="text-blue-600 focus:ring-blue-500 h-4 w-4"
|
||||
/>
|
||||
<div>
|
||||
<p className="text-sm font-medium text-slate-900 dark:text-white">
|
||||
<p className="text-xs sm:text-sm font-bold text-slate-900 dark:text-white">
|
||||
{resolveLocalised(v.label, locale, v.description || v.id)}
|
||||
</p>
|
||||
{v.description && (
|
||||
<p className="text-xs text-slate-500 dark:text-slate-400">{v.description}</p>
|
||||
<p className="text-[11px] text-slate-500 dark:text-slate-400">{v.description}</p>
|
||||
)}
|
||||
</div>
|
||||
</div>
|
||||
@@ -277,9 +289,9 @@ export function TryItWidget({
|
||||
{/* Run Button */}
|
||||
<button
|
||||
onClick={runTryIt}
|
||||
className="w-full py-3.5 px-6 rounded-xl font-semibold text-white bg-blue-600 hover:bg-blue-700 shadow-lg shadow-blue-500/25 transition-all flex items-center justify-center space-x-2 active:scale-98"
|
||||
className="w-full py-4 px-6 rounded-2xl font-bold text-sm text-white bg-gradient-to-r from-blue-600 via-indigo-600 to-cyan-500 hover:from-blue-700 hover:to-indigo-700 shadow-xl shadow-blue-500/25 hover:shadow-blue-500/40 transition-all flex items-center justify-center space-x-2 active:scale-98"
|
||||
>
|
||||
<Sparkles className="w-5 h-5" />
|
||||
<Sparkles className="w-4 h-4" />
|
||||
<span>Run {resolveLocalised(tool.name, locale)}</span>
|
||||
</button>
|
||||
</div>
|
||||
@@ -288,16 +300,20 @@ export function TryItWidget({
|
||||
)}
|
||||
|
||||
{status === 'processing' && (
|
||||
<div className="py-16 text-center space-y-4">
|
||||
<div className="inline-flex p-4 rounded-full bg-blue-50 dark:bg-blue-950 text-blue-600 animate-spin">
|
||||
<Loader2 className="w-8 h-8" />
|
||||
<div className="py-14 sm:py-20 text-center space-y-4">
|
||||
<div className="relative inline-flex p-4 rounded-2xl bg-blue-50 dark:bg-blue-950/80 text-blue-600 shadow-inner">
|
||||
<Loader2 className="w-10 h-10 animate-spin" />
|
||||
<span className="absolute -top-1 -right-1 flex h-3 w-3">
|
||||
<span className="animate-ping absolute inline-flex h-full w-full rounded-full bg-cyan-400 opacity-75"></span>
|
||||
<span className="relative inline-flex rounded-full h-3 w-3 bg-cyan-500"></span>
|
||||
</span>
|
||||
</div>
|
||||
<div>
|
||||
<h4 className="text-lg font-semibold text-slate-900 dark:text-white">
|
||||
Neural AI is processing your photo...
|
||||
<h4 className="text-lg font-bold text-slate-900 dark:text-white">
|
||||
CRE Neural Vision Engine Processing...
|
||||
</h4>
|
||||
<p className="text-sm text-slate-500 dark:text-slate-400 max-w-sm mx-auto mt-1">
|
||||
Applying model inference and preserving natural textures. Takes 1-3 seconds.
|
||||
<p className="text-xs sm:text-sm text-slate-500 dark:text-slate-400 max-w-sm mx-auto mt-1">
|
||||
Applying deep learning models while keeping original textures and skin pores intact.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
@@ -309,15 +325,15 @@ export function TryItWidget({
|
||||
beforeUrl={previewUrl}
|
||||
afterUrl={resultUrl}
|
||||
beforeLabel="Original"
|
||||
afterLabel="AI Result"
|
||||
caption="Drag slider to inspect enhanced details and natural skin textures."
|
||||
afterLabel="CRE AI Result"
|
||||
caption="Drag slider horizontally to inspect precision AI results and natural textures."
|
||||
/>
|
||||
|
||||
{/* Actions: Download & Reset */}
|
||||
<div className="flex flex-wrap items-center justify-between gap-4 pt-2">
|
||||
<div className="flex flex-wrap items-center justify-between gap-3 pt-2">
|
||||
<button
|
||||
onClick={reset}
|
||||
className="inline-flex items-center space-x-2 px-4 py-2.5 rounded-xl text-sm font-medium border border-slate-300 dark:border-slate-700 hover:bg-slate-100 dark:hover:bg-slate-800 transition-colors"
|
||||
className="inline-flex items-center space-x-2 px-4 py-2.5 rounded-xl text-xs sm:text-sm font-semibold border border-slate-300 dark:border-slate-700 hover:bg-slate-100 dark:hover:bg-slate-800 transition-colors"
|
||||
>
|
||||
<RefreshCw className="w-4 h-4 text-slate-500" />
|
||||
<span>Process Another Photo</span>
|
||||
@@ -326,37 +342,38 @@ export function TryItWidget({
|
||||
<a
|
||||
href={resultUrl}
|
||||
download={`${tool.slug}-result.png`}
|
||||
className="inline-flex items-center space-x-2 px-6 py-2.5 rounded-xl text-sm font-semibold text-white bg-emerald-600 hover:bg-emerald-700 shadow-md shadow-emerald-500/20 transition-all"
|
||||
className="inline-flex items-center space-x-2 px-6 py-2.5 rounded-xl text-xs sm:text-sm font-bold text-white bg-emerald-600 hover:bg-emerald-700 shadow-lg shadow-emerald-500/20 transition-all hover:scale-105 active:scale-95"
|
||||
>
|
||||
<Download className="w-4 h-4" />
|
||||
<span>Download Standard HD</span>
|
||||
<span>Download Result (HD)</span>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
{/* Result App Handoff Card (PRD §8.2, §9 APP-06) */}
|
||||
{/* Result App Handoff Card */}
|
||||
{homeApp && (
|
||||
<div className="mt-6 p-5 rounded-2xl bg-gradient-to-r from-blue-50 to-indigo-50 dark:from-blue-950/40 dark:to-indigo-950/40 border border-blue-100 dark:border-blue-900/60 flex flex-col sm:flex-row items-center justify-between gap-4">
|
||||
<div className="mt-6 p-5 sm:p-6 rounded-3xl bg-gradient-to-r from-blue-50/80 via-indigo-50/80 to-cyan-50/80 dark:from-blue-950/40 dark:via-indigo-950/40 dark:to-cyan-950/40 border border-blue-200/80 dark:border-blue-900/60 flex flex-col sm:flex-row items-start sm:items-center justify-between gap-4">
|
||||
<div className="space-y-1">
|
||||
<div className="flex items-center space-x-2">
|
||||
<Smartphone className="w-4 h-4 text-blue-600 dark:text-blue-400" />
|
||||
<span className="text-xs font-semibold uppercase tracking-wider text-blue-600 dark:text-blue-400">
|
||||
Want 4K Lossless & Batch Export?
|
||||
<span className="text-[11px] font-extrabold uppercase tracking-wider text-blue-600 dark:text-blue-400">
|
||||
Need 4K Lossless & Batch Processing?
|
||||
</span>
|
||||
</div>
|
||||
<h5 className="font-semibold text-slate-900 dark:text-white">
|
||||
<h5 className="font-bold text-slate-900 dark:text-white text-base">
|
||||
Open {resolveLocalised(tool.name, locale)} in {resolveLocalised(homeApp.name, locale)}
|
||||
</h5>
|
||||
<p className="text-xs text-slate-600 dark:text-slate-400">
|
||||
Get 50 free HD export credits upon first mobile install with promo code{' '}
|
||||
<span className="font-mono font-bold text-blue-600">{homeApp.welcomeBonus?.code || 'TRYWEB50'}</span>.
|
||||
Get 50 free HD export credits on first launch with promo code{' '}
|
||||
<span className="font-mono font-extrabold text-blue-600 dark:text-cyan-400">{homeApp.welcomeBonus?.code || 'TRYWEB50'}</span>.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<Link
|
||||
href={`/go/${tool.slug}/${homeApp.slug}`}
|
||||
className="shrink-0 px-5 py-2.5 rounded-xl text-sm font-semibold text-white bg-blue-600 hover:bg-blue-700 shadow-md shadow-blue-500/20 transition-all hover:scale-105 active:scale-95"
|
||||
className="w-full sm:w-auto shrink-0 px-6 py-3 rounded-2xl text-xs font-bold text-white bg-blue-600 hover:bg-blue-700 shadow-md shadow-blue-500/25 transition-all text-center flex items-center justify-center space-x-2"
|
||||
>
|
||||
Open in {resolveLocalised(homeApp.name, locale)}
|
||||
<span>Open in Mobile App</span>
|
||||
<ChevronRight className="w-4 h-4" />
|
||||
</Link>
|
||||
</div>
|
||||
)}
|
||||
@@ -364,19 +381,19 @@ export function TryItWidget({
|
||||
)}
|
||||
|
||||
{(status === 'limit' || status === 'error' || status === 'unavailable') && (
|
||||
<div className="p-6 rounded-2xl bg-amber-50 dark:bg-amber-950/30 border border-amber-200 dark:border-amber-800 text-center space-y-4">
|
||||
<div className="w-12 h-12 mx-auto rounded-full bg-amber-100 dark:bg-amber-900/40 flex items-center justify-center text-amber-600 dark:text-amber-400">
|
||||
<div className="p-6 sm:p-8 rounded-3xl bg-amber-50/80 dark:bg-amber-950/30 border border-amber-200 dark:border-amber-800 text-center space-y-4">
|
||||
<div className="w-12 h-12 mx-auto rounded-2xl bg-amber-100 dark:bg-amber-900/40 flex items-center justify-center text-amber-600 dark:text-amber-400">
|
||||
<AlertCircle className="w-6 h-6" />
|
||||
</div>
|
||||
<div>
|
||||
<h4 className="text-base font-semibold text-slate-900 dark:text-white">
|
||||
<h4 className="text-base font-bold text-slate-900 dark:text-white">
|
||||
{status === 'limit'
|
||||
? 'Daily Free Web Limit Reached'
|
||||
: status === 'unavailable'
|
||||
? 'Service Temporarily Offline'
|
||||
: 'Processing Issue'}
|
||||
</h4>
|
||||
<p className="text-sm text-slate-600 dark:text-slate-400 max-w-md mx-auto mt-1">
|
||||
<p className="text-xs sm:text-sm text-slate-600 dark:text-slate-400 max-w-md mx-auto mt-1">
|
||||
{errorMessage}
|
||||
</p>
|
||||
</div>
|
||||
@@ -384,14 +401,14 @@ export function TryItWidget({
|
||||
<div className="flex flex-wrap items-center justify-center gap-3 pt-2">
|
||||
<button
|
||||
onClick={reset}
|
||||
className="px-4 py-2 rounded-xl text-xs font-medium border border-slate-300 dark:border-slate-700 hover:bg-white dark:hover:bg-slate-800"
|
||||
className="px-4 py-2 rounded-xl text-xs font-semibold border border-slate-300 dark:border-slate-700 hover:bg-white dark:hover:bg-slate-800"
|
||||
>
|
||||
Try Again
|
||||
</button>
|
||||
{homeApp && (
|
||||
<Link
|
||||
href={`/go/${tool.slug}/${homeApp.slug}`}
|
||||
className="px-5 py-2 rounded-xl text-xs font-semibold text-white bg-blue-600 hover:bg-blue-700 shadow-md"
|
||||
className="px-5 py-2 rounded-xl text-xs font-bold text-white bg-blue-600 hover:bg-blue-700 shadow-md"
|
||||
>
|
||||
Open in {resolveLocalised(homeApp.name, locale)}
|
||||
</Link>
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
'use client';
|
||||
|
||||
import React, { useState, useRef, useCallback, useEffect } from 'react';
|
||||
import { Eye, Sparkles } from 'lucide-react';
|
||||
|
||||
interface BeforeAfterSliderProps {
|
||||
beforeUrl: string;
|
||||
@@ -15,9 +16,9 @@ export function BeforeAfterSlider({
|
||||
beforeUrl,
|
||||
afterUrl,
|
||||
beforeLabel = 'Original',
|
||||
afterLabel = 'AI Result',
|
||||
afterLabel = 'CRE AI Result',
|
||||
caption,
|
||||
aspectRatio = 'aspect-[4/3]',
|
||||
aspectRatio = 'aspect-[4/3] sm:aspect-[16/10]',
|
||||
}: BeforeAfterSliderProps) {
|
||||
const [sliderPosition, setSliderPosition] = useState(50);
|
||||
const [isDragging, setIsDragging] = useState(false);
|
||||
@@ -47,9 +48,9 @@ export function BeforeAfterSlider({
|
||||
|
||||
useEffect(() => {
|
||||
if (isDragging) {
|
||||
window.addEventListener('mousemove', handleMouseMove);
|
||||
window.addEventListener('mousemove', handleMouseMove, { passive: true });
|
||||
window.addEventListener('mouseup', handleMouseUp);
|
||||
window.addEventListener('touchmove', handleTouchMove);
|
||||
window.addEventListener('touchmove', handleTouchMove, { passive: true });
|
||||
window.addEventListener('touchend', handleMouseUp);
|
||||
}
|
||||
return () => {
|
||||
@@ -66,58 +67,67 @@ export function BeforeAfterSlider({
|
||||
ref={containerRef}
|
||||
onMouseDown={() => setIsDragging(true)}
|
||||
onTouchStart={() => setIsDragging(true)}
|
||||
className={`relative w-full ${aspectRatio} rounded-2xl overflow-hidden select-none cursor-ew-resize shadow-lg border border-slate-200 dark:border-slate-800 bg-slate-950`}
|
||||
className={`relative w-full ${aspectRatio} rounded-2xl sm:rounded-3xl overflow-hidden select-none cursor-ew-resize shadow-2xl border border-slate-200/80 dark:border-slate-800/80 bg-slate-950 group`}
|
||||
>
|
||||
{/* After Image (Background) */}
|
||||
{/* eslint-disable-next-line @next/next/no-img-element */}
|
||||
<img
|
||||
src={afterUrl}
|
||||
alt="After result"
|
||||
className="absolute inset-0 w-full h-full object-cover pointer-events-none"
|
||||
loading="eager"
|
||||
className="absolute inset-0 w-full h-full object-cover pointer-events-none will-change-transform"
|
||||
/>
|
||||
|
||||
{/* Before Image (Clipped) */}
|
||||
{/* Before Image (Clipped Left side) */}
|
||||
<div
|
||||
className="absolute inset-0 overflow-hidden pointer-events-none"
|
||||
className="absolute inset-0 overflow-hidden pointer-events-none will-change-transform"
|
||||
style={{ clipPath: `polygon(0 0, ${sliderPosition}% 0, ${sliderPosition}% 100%, 0 100%)` }}
|
||||
>
|
||||
{/* eslint-disable-next-line @next/next/no-img-element */}
|
||||
<img
|
||||
src={beforeUrl}
|
||||
alt="Before result"
|
||||
loading="eager"
|
||||
className="absolute inset-0 w-full h-full object-cover"
|
||||
/>
|
||||
</div>
|
||||
|
||||
{/* Split Divider Line */}
|
||||
{/* Split Divider Line with Glow */}
|
||||
<div
|
||||
className="absolute top-0 bottom-0 w-0.5 bg-white shadow-[0_0_10px_rgba(0,0,0,0.5)] z-20 pointer-events-none"
|
||||
className="absolute top-0 bottom-0 w-1 bg-white shadow-[0_0_15px_rgba(37,99,235,0.8)] z-20 pointer-events-none will-change-transform"
|
||||
style={{ left: `${sliderPosition}%` }}
|
||||
>
|
||||
{/* Center Handle */}
|
||||
<div className="absolute top-1/2 -translate-y-1/2 -translate-x-1/2 w-8 h-8 rounded-full bg-white dark:bg-slate-900 border-2 border-blue-600 shadow-md flex items-center justify-center pointer-events-auto cursor-ew-resize">
|
||||
{/* Center Circular Touch/Mouse Handle */}
|
||||
<div className="absolute top-1/2 -translate-y-1/2 -translate-x-1/2 w-9 h-9 sm:w-10 sm:h-10 rounded-full bg-white dark:bg-slate-900 border-2 border-blue-600 shadow-xl flex items-center justify-center pointer-events-auto cursor-ew-resize hover:scale-110 active:scale-95 transition-transform duration-150">
|
||||
<svg
|
||||
className="w-4 h-4 text-blue-600"
|
||||
className="w-4 h-4 text-blue-600 dark:text-blue-400"
|
||||
fill="none"
|
||||
stroke="currentColor"
|
||||
viewBox="0 0 24 24"
|
||||
>
|
||||
<path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M8 9l4-4 4 4m0 6l-4 4-4-4" />
|
||||
<path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2.5} d="M8 9l-3 3 3 3m8-6l3 3-3 3" />
|
||||
</svg>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{/* Floating Labels */}
|
||||
<div className="absolute top-3 left-3 bg-black/60 backdrop-blur-md px-2.5 py-1 rounded-md text-xs font-semibold text-white pointer-events-none z-10">
|
||||
{beforeLabel}
|
||||
{/* Floating Badges */}
|
||||
<div className="absolute top-3 left-3 sm:top-4 sm:left-4 bg-slate-950/70 backdrop-blur-md px-3 py-1.5 rounded-xl text-[11px] sm:text-xs font-bold text-white border border-white/10 pointer-events-none z-10 flex items-center space-x-1.5">
|
||||
<Eye className="w-3.5 h-3.5 text-slate-300" />
|
||||
<span>{beforeLabel}</span>
|
||||
</div>
|
||||
<div className="absolute top-3 right-3 bg-blue-600/90 backdrop-blur-md px-2.5 py-1 rounded-md text-xs font-semibold text-white pointer-events-none z-10">
|
||||
{afterLabel}
|
||||
<div className="absolute top-3 right-3 sm:top-4 sm:right-4 bg-gradient-to-r from-blue-600/90 to-cyan-500/90 backdrop-blur-md px-3 py-1.5 rounded-xl text-[11px] sm:text-xs font-bold text-white shadow-lg shadow-blue-500/25 border border-white/20 pointer-events-none z-10 flex items-center space-x-1.5">
|
||||
<Sparkles className="w-3.5 h-3.5 text-white" />
|
||||
<span>{afterLabel}</span>
|
||||
</div>
|
||||
|
||||
{/* Bottom Helper Hint */}
|
||||
<div className="absolute bottom-3 left-1/2 -translate-x-1/2 bg-black/40 backdrop-blur-md px-3 py-1 rounded-full text-[10px] text-white/80 pointer-events-none opacity-0 group-hover:opacity-100 transition-opacity duration-200">
|
||||
Drag horizontally to compare
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{caption && (
|
||||
<p className="mt-2 text-center text-xs text-slate-500 dark:text-slate-400">
|
||||
<p className="mt-2.5 text-center text-xs font-medium text-slate-500 dark:text-slate-400">
|
||||
{caption}
|
||||
</p>
|
||||
)}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import React from 'react';
|
||||
import Link from 'next/link';
|
||||
import { Sparkles, Shield, Heart } from 'lucide-react';
|
||||
import { ShieldCheck, Heart, ArrowUpRight } from 'lucide-react';
|
||||
import { SiteConfig, resolveLocalised } from '@/types';
|
||||
|
||||
interface FooterProps {
|
||||
@@ -10,75 +10,76 @@ interface FooterProps {
|
||||
|
||||
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">
|
||||
<footer className="bg-slate-900 text-slate-300 dark:bg-black border-t border-slate-800 transition-colors">
|
||||
<div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-14 lg:py-20">
|
||||
<div className="grid grid-cols-1 md:grid-cols-4 gap-10">
|
||||
{/* Brand info */}
|
||||
<div className="md:col-span-2 space-y-4">
|
||||
<div className="md:col-span-2 space-y-5">
|
||||
<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 className="w-10 h-10 rounded-2xl bg-gradient-to-tr from-blue-600 via-indigo-600 to-cyan-400 flex items-center justify-center text-white font-black text-sm tracking-tighter shadow-lg shadow-blue-500/20">
|
||||
CRE
|
||||
</div>
|
||||
<span className="text-xl font-bold text-slate-900 dark:text-white">
|
||||
{config.brand.name}
|
||||
<span className="text-2xl font-black text-white tracking-tight">
|
||||
CRE <span className="text-cyan-400">Innovations</span>
|
||||
</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 className="text-sm text-slate-400 max-w-md leading-relaxed">
|
||||
{resolveLocalised(config.brand.tagline, currentLocale)}. Commercial-grade deep learning vision models for portraits, e-commerce products, enhancement, and creative generative art.
|
||||
</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 className="inline-flex items-center space-x-2 text-xs text-emerald-400 bg-emerald-950/60 border border-emerald-800/80 px-3.5 py-1.5 rounded-full font-medium">
|
||||
<ShieldCheck className="w-4 h-4 text-emerald-400" />
|
||||
<span>Zero-Storage Guarantee: In-memory streaming inference with zero photo retention.</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{/* Quick Links */}
|
||||
<div>
|
||||
<h4 className="text-sm font-semibold uppercase tracking-wider text-slate-900 dark:text-white mb-4">
|
||||
Explore
|
||||
<div className="space-y-4">
|
||||
<h4 className="text-xs font-bold uppercase tracking-wider text-white">
|
||||
Platform & Tools
|
||||
</h4>
|
||||
<ul className="space-y-2 text-sm">
|
||||
<ul className="space-y-2.5 text-xs sm: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 href="/tools" className="text-slate-400 hover:text-cyan-400 transition-colors flex items-center space-x-1">
|
||||
<span>All Photo Tools</span>
|
||||
</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 href="/apps" className="text-slate-400 hover:text-cyan-400 transition-colors flex items-center space-x-1">
|
||||
<span>Mobile Apps Suite</span>
|
||||
</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 href="/pricing" className="text-slate-400 hover:text-cyan-400 transition-colors flex items-center space-x-1">
|
||||
<span>Pricing & Store Credits</span>
|
||||
</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 href="/catalog-manager" className="text-slate-400 hover:text-cyan-400 transition-colors flex items-center space-x-1">
|
||||
<span>API Catalogue Inspector</span>
|
||||
<ArrowUpRight className="w-3 h-3 text-cyan-400" />
|
||||
</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 */}
|
||||
<div className="space-y-4">
|
||||
<h4 className="text-xs font-bold uppercase tracking-wider text-white">
|
||||
Trust & Legal
|
||||
</h4>
|
||||
<ul className="space-y-2 text-sm">
|
||||
<ul className="space-y-2.5 text-xs sm: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 href="/trust" className="text-slate-400 hover:text-cyan-400 transition-colors">
|
||||
Trust & Security Safeguards
|
||||
</Link>
|
||||
</li>
|
||||
<li>
|
||||
<Link href="/privacy" className="text-slate-600 dark:text-slate-400 hover:text-blue-600 dark:hover:text-blue-400">
|
||||
<Link href="/privacy" className="text-slate-400 hover:text-cyan-400 transition-colors">
|
||||
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">
|
||||
<Link href="/terms" className="text-slate-400 hover:text-cyan-400 transition-colors">
|
||||
Terms of Service
|
||||
</Link>
|
||||
</li>
|
||||
@@ -87,11 +88,11 @@ export function Footer({ config, currentLocale }: FooterProps) {
|
||||
</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">
|
||||
<div className="mt-14 pt-8 border-t border-slate-800 flex flex-col sm:flex-row items-center justify-between text-xs text-slate-500 space-y-3 sm:space-y-0">
|
||||
<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 className="flex items-center space-x-1.5">
|
||||
<span>Engineering excellence by CRE Innovations</span>
|
||||
<span className="w-1.5 h-1.5 rounded-full bg-cyan-400"></span>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -3,16 +3,15 @@
|
||||
import React, { useState, useEffect } from 'react';
|
||||
import Link from 'next/link';
|
||||
import { usePathname } from 'next/navigation';
|
||||
import { Sparkles, Moon, Sun, Menu, X, Smartphone, Globe } from 'lucide-react';
|
||||
import { Sparkles, Moon, Sun, Menu, X, Smartphone, Layers, ChevronRight, Zap } from 'lucide-react';
|
||||
import { SiteConfig, resolveLocalised } from '@/types';
|
||||
|
||||
interface NavbarProps {
|
||||
config: SiteConfig;
|
||||
currentLocale: string;
|
||||
onLocaleChange?: (locale: string) => void;
|
||||
}
|
||||
|
||||
export function Navbar({ config, currentLocale, onLocaleChange }: NavbarProps) {
|
||||
export function Navbar({ config, currentLocale }: NavbarProps) {
|
||||
const [isScrolled, setIsScrolled] = useState(false);
|
||||
const [mobileMenuOpen, setMobileMenuOpen] = useState(false);
|
||||
const [isDark, setIsDark] = useState(false);
|
||||
@@ -20,9 +19,9 @@ export function Navbar({ config, currentLocale, onLocaleChange }: NavbarProps) {
|
||||
|
||||
useEffect(() => {
|
||||
const handleScroll = () => {
|
||||
setIsScrolled(window.scrollY > 20);
|
||||
setIsScrolled(window.scrollY > 15);
|
||||
};
|
||||
window.addEventListener('scroll', handleScroll);
|
||||
window.addEventListener('scroll', handleScroll, { passive: true });
|
||||
return () => window.removeEventListener('scroll', handleScroll);
|
||||
}, []);
|
||||
|
||||
@@ -38,40 +37,46 @@ export function Navbar({ config, currentLocale, onLocaleChange }: NavbarProps) {
|
||||
|
||||
return (
|
||||
<header
|
||||
className={`sticky top-0 z-50 transition-all duration-200 ${
|
||||
className={`sticky top-0 z-50 transition-all duration-300 ${
|
||||
isScrolled
|
||||
? 'bg-white/90 dark:bg-slate-900/90 backdrop-blur-md shadow-sm border-b border-slate-200 dark:border-slate-800'
|
||||
: 'bg-white dark:bg-slate-900 border-b border-transparent'
|
||||
? 'bg-white/85 dark:bg-slate-950/85 backdrop-blur-xl shadow-lg shadow-slate-900/5 dark:shadow-black/40 border-b border-slate-200/80 dark:border-slate-800/80'
|
||||
: 'bg-white/50 dark:bg-slate-950/50 backdrop-blur-md border-b border-transparent'
|
||||
}`}
|
||||
>
|
||||
<div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 h-16 flex items-center justify-between">
|
||||
{/* Brand Logo */}
|
||||
<div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 h-16 sm:h-20 flex items-center justify-between">
|
||||
{/* CRE Innovations Brand Mark */}
|
||||
<Link href="/" className="flex items-center space-x-3 group">
|
||||
<div className="w-10 h-10 rounded-xl bg-gradient-to-tr from-blue-600 to-teal-500 flex items-center justify-center text-white shadow-md shadow-blue-500/20 group-hover:scale-105 transition-transform">
|
||||
<Sparkles className="w-5 h-5" />
|
||||
<div className="relative w-10 h-10 sm:w-11 sm:h-11 rounded-2xl bg-gradient-to-tr from-blue-600 via-indigo-600 to-cyan-400 flex items-center justify-center text-white shadow-lg shadow-blue-500/25 group-hover:shadow-blue-500/40 group-hover:scale-105 transition-all duration-300">
|
||||
<span className="font-extrabold text-base tracking-tighter">CRE</span>
|
||||
<span className="absolute -top-1 -right-1 flex h-3 w-3">
|
||||
<span className="animate-ping absolute inline-flex h-full w-full rounded-full bg-cyan-400 opacity-75"></span>
|
||||
<span className="relative inline-flex rounded-full h-3 w-3 bg-cyan-500"></span>
|
||||
</span>
|
||||
</div>
|
||||
<div>
|
||||
<span className="text-xl font-bold bg-clip-text text-transparent bg-gradient-to-r from-blue-600 to-teal-600 dark:from-blue-400 dark:to-teal-400">
|
||||
{config.brand.name}
|
||||
</span>
|
||||
<span className="hidden sm:block text-xs text-slate-500 dark:text-slate-400">
|
||||
{resolveLocalised(config.brand.tagline, currentLocale)}
|
||||
<div className="flex items-center space-x-1.5">
|
||||
<span className="text-lg sm:text-xl font-extrabold tracking-tight text-slate-900 dark:text-white">
|
||||
CRE <span className="bg-clip-text text-transparent bg-gradient-to-r from-blue-600 to-cyan-500 dark:from-blue-400 dark:to-cyan-400">Innovations</span>
|
||||
</span>
|
||||
</div>
|
||||
<span className="hidden sm:block text-[11px] font-medium text-slate-500 dark:text-slate-400 tracking-wide">
|
||||
AI Photo Tools & Neural Vision
|
||||
</span>
|
||||
</div>
|
||||
</Link>
|
||||
|
||||
{/* Desktop Navigation Links */}
|
||||
<nav className="hidden md:flex items-center space-x-1 lg:space-x-2">
|
||||
<nav className="hidden md:flex items-center space-x-1 lg:space-x-1.5 bg-slate-100/70 dark:bg-slate-900/70 p-1.5 rounded-2xl border border-slate-200/60 dark:border-slate-800/60 backdrop-blur-md">
|
||||
{config.nav.header.map((item) => {
|
||||
const active = pathname === item.href;
|
||||
return (
|
||||
<Link
|
||||
key={item.href}
|
||||
href={item.href}
|
||||
className={`px-3 py-2 rounded-lg text-sm font-medium transition-colors ${
|
||||
className={`px-4 py-2 rounded-xl text-xs font-semibold tracking-wide transition-all duration-200 ${
|
||||
active
|
||||
? 'text-blue-600 dark:text-blue-400 bg-blue-50 dark:bg-blue-950/40'
|
||||
: 'text-slate-700 dark:text-slate-200 hover:text-blue-600 dark:hover:text-blue-400 hover:bg-slate-50 dark:hover:bg-slate-800/50'
|
||||
? 'text-white bg-blue-600 shadow-md shadow-blue-500/25'
|
||||
: 'text-slate-700 dark:text-slate-300 hover:text-blue-600 dark:hover:text-blue-400 hover:bg-white/80 dark:hover:bg-slate-800/80'
|
||||
}`}
|
||||
>
|
||||
{resolveLocalised(item.label, currentLocale)}
|
||||
@@ -82,19 +87,19 @@ export function Navbar({ config, currentLocale, onLocaleChange }: NavbarProps) {
|
||||
|
||||
{/* Right Action Buttons */}
|
||||
<div className="hidden md:flex items-center space-x-3">
|
||||
{/* Theme Toggle */}
|
||||
{/* Theme Toggle Button */}
|
||||
<button
|
||||
onClick={toggleTheme}
|
||||
aria-label="Toggle theme"
|
||||
className="p-2 rounded-lg text-slate-500 dark:text-slate-400 hover:bg-slate-100 dark:hover:bg-slate-800 transition-colors"
|
||||
className="p-2.5 rounded-xl border border-slate-200 dark:border-slate-800 text-slate-600 dark:text-slate-400 hover:bg-slate-100 dark:hover:bg-slate-900 transition-colors"
|
||||
>
|
||||
{isDark ? <Sun className="w-5 h-5 text-amber-400" /> : <Moon className="w-5 h-5 text-slate-600" />}
|
||||
{isDark ? <Sun className="w-4 h-4 text-amber-400" /> : <Moon className="w-4 h-4 text-slate-600" />}
|
||||
</button>
|
||||
|
||||
{/* Primary CTA Button */}
|
||||
<Link
|
||||
href={config.nav.cta.href}
|
||||
className="inline-flex items-center space-x-2 px-4 py-2 rounded-xl text-sm font-medium text-white bg-blue-600 hover:bg-blue-700 shadow-md shadow-blue-500/20 transition-all hover:shadow-lg active:scale-95"
|
||||
className="inline-flex items-center space-x-2 px-5 py-2.5 rounded-xl text-xs font-bold text-white bg-gradient-to-r from-blue-600 to-indigo-600 hover:from-blue-700 hover:to-indigo-700 shadow-lg shadow-blue-500/25 hover:shadow-blue-500/40 hover:-translate-y-0.5 active:translate-y-0 transition-all duration-200"
|
||||
>
|
||||
<Smartphone className="w-4 h-4" />
|
||||
<span>{resolveLocalised(config.nav.cta.label, currentLocale)}</span>
|
||||
@@ -105,38 +110,46 @@ export function Navbar({ config, currentLocale, onLocaleChange }: NavbarProps) {
|
||||
<div className="flex md:hidden items-center space-x-2">
|
||||
<button
|
||||
onClick={toggleTheme}
|
||||
className="p-2 rounded-lg text-slate-600 dark:text-slate-300"
|
||||
className="p-2 rounded-xl text-slate-600 dark:text-slate-300 border border-slate-200 dark:border-slate-800"
|
||||
>
|
||||
{isDark ? <Sun className="w-5 h-5 text-amber-400" /> : <Moon className="w-5 h-5" />}
|
||||
{isDark ? <Sun className="w-4 h-4 text-amber-400" /> : <Moon className="w-4 h-4" />}
|
||||
</button>
|
||||
<button
|
||||
onClick={() => setMobileMenuOpen(!mobileMenuOpen)}
|
||||
className="p-2 rounded-lg text-slate-700 dark:text-slate-200 hover:bg-slate-100 dark:hover:bg-slate-800"
|
||||
className="p-2.5 rounded-xl text-slate-700 dark:text-slate-200 bg-slate-100 dark:bg-slate-900 border border-slate-200 dark:border-slate-800 hover:bg-slate-200"
|
||||
aria-label="Open menu"
|
||||
>
|
||||
{mobileMenuOpen ? <X className="w-6 h-6" /> : <Menu className="w-6 h-6" />}
|
||||
{mobileMenuOpen ? <X className="w-5 h-5" /> : <Menu className="w-5 h-5" />}
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{/* Mobile Menu Dropdown */}
|
||||
{/* Mobile Drawer */}
|
||||
{mobileMenuOpen && (
|
||||
<div className="md:hidden border-b border-slate-200 dark:border-slate-800 bg-white dark:bg-slate-900 px-4 pt-2 pb-6 space-y-2">
|
||||
{config.nav.header.map((item) => (
|
||||
<Link
|
||||
key={item.href}
|
||||
href={item.href}
|
||||
onClick={() => setMobileMenuOpen(false)}
|
||||
className="block px-3 py-2 rounded-lg text-base font-medium text-slate-700 dark:text-slate-200 hover:bg-slate-100 dark:hover:bg-slate-800"
|
||||
>
|
||||
{resolveLocalised(item.label, currentLocale)}
|
||||
</Link>
|
||||
))}
|
||||
<div className="pt-2">
|
||||
<div className="md:hidden border-b border-slate-200 dark:border-slate-800 bg-white/95 dark:bg-slate-950/95 backdrop-blur-2xl px-5 pt-3 pb-6 space-y-2 animate-in slide-in-from-top-4 duration-200">
|
||||
{config.nav.header.map((item) => {
|
||||
const active = pathname === item.href;
|
||||
return (
|
||||
<Link
|
||||
key={item.href}
|
||||
href={item.href}
|
||||
onClick={() => setMobileMenuOpen(false)}
|
||||
className={`flex items-center justify-between px-4 py-3 rounded-xl text-sm font-semibold transition-colors ${
|
||||
active
|
||||
? 'text-blue-600 dark:text-blue-400 bg-blue-50 dark:bg-blue-950/40'
|
||||
: 'text-slate-700 dark:text-slate-200 hover:bg-slate-100 dark:hover:bg-slate-900'
|
||||
}`}
|
||||
>
|
||||
<span>{resolveLocalised(item.label, currentLocale)}</span>
|
||||
<ChevronRight className="w-4 h-4 text-slate-400" />
|
||||
</Link>
|
||||
);
|
||||
})}
|
||||
<div className="pt-3">
|
||||
<Link
|
||||
href={config.nav.cta.href}
|
||||
onClick={() => setMobileMenuOpen(false)}
|
||||
className="flex items-center justify-center space-x-2 w-full px-4 py-3 rounded-xl text-sm font-medium text-white bg-blue-600 hover:bg-blue-700"
|
||||
className="flex items-center justify-center space-x-2 w-full py-3.5 rounded-xl text-sm font-bold text-white bg-gradient-to-r from-blue-600 to-indigo-600 shadow-md shadow-blue-500/25"
|
||||
>
|
||||
<Smartphone className="w-4 h-4" />
|
||||
<span>{resolveLocalised(config.nav.cta.label, currentLocale)}</span>
|
||||
|
||||
@@ -11,7 +11,7 @@ describe('Binding & Visibility Engine (PRD §5.2, CFG-08, CFG-09)', () => {
|
||||
},
|
||||
},
|
||||
site: {
|
||||
brand: { name: 'Ekagni PhotoAI' },
|
||||
brand: { name: 'CRE Innovations' },
|
||||
},
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user