feat: complete visual redesign with Outfit & Plus Jakarta Sans fonts, visual use-cases, transformation reel, and enhanced SEO
This commit is contained in:
@@ -21,16 +21,21 @@ export async function generateMetadata({ params }: AppPageProps): Promise<Metada
|
||||
const tagline = resolveLocalised(app.tagline, 'en');
|
||||
|
||||
return {
|
||||
title: `${name} | Official Mobile App Download`,
|
||||
title: `${name} | Official Mobile App Download | CRE Innovations`,
|
||||
description: tagline,
|
||||
alternates: {
|
||||
canonical: `/apps/${app.slug}`,
|
||||
},
|
||||
openGraph: {
|
||||
title: `${name} — AI Photo Editing App`,
|
||||
title: `${name} — AI Photo Editing App | CRE Innovations`,
|
||||
description: tagline,
|
||||
type: 'website',
|
||||
},
|
||||
twitter: {
|
||||
card: 'summary_large_image',
|
||||
title: `${name} | CRE Innovations`,
|
||||
description: tagline,
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
@@ -48,24 +53,53 @@ export default function AppDetailPage({ params }: AppPageProps) {
|
||||
locale: 'en',
|
||||
};
|
||||
|
||||
const appName = resolveLocalised(app.name, 'en');
|
||||
const appTagline = resolveLocalised(app.tagline, 'en');
|
||||
|
||||
// Structured Data (JSON-LD) per PRD §10 SEO-07
|
||||
const structuredData = {
|
||||
'@context': 'https://schema.org',
|
||||
'@type': 'SoftwareApplication',
|
||||
name: resolveLocalised(app.name, 'en'),
|
||||
operatingSystem: 'ANDROID, IOS',
|
||||
applicationCategory: 'MultimediaApplication',
|
||||
aggregateRating: {
|
||||
'@type': 'AggregateRating',
|
||||
ratingValue: app.rating.value.toString(),
|
||||
ratingCount: app.rating.count.toString(),
|
||||
const structuredData = [
|
||||
{
|
||||
'@context': 'https://schema.org',
|
||||
'@type': 'SoftwareApplication',
|
||||
name: appName,
|
||||
operatingSystem: 'ANDROID, IOS',
|
||||
applicationCategory: 'MultimediaApplication',
|
||||
aggregateRating: {
|
||||
'@type': 'AggregateRating',
|
||||
ratingValue: app.rating.value.toString(),
|
||||
ratingCount: app.rating.count.toString(),
|
||||
},
|
||||
offers: {
|
||||
'@type': 'Offer',
|
||||
price: '0',
|
||||
priceCurrency: 'USD',
|
||||
},
|
||||
},
|
||||
offers: {
|
||||
'@type': 'Offer',
|
||||
price: '0',
|
||||
priceCurrency: 'USD',
|
||||
{
|
||||
'@context': 'https://schema.org',
|
||||
'@type': 'BreadcrumbList',
|
||||
itemListElement: [
|
||||
{
|
||||
'@type': 'ListItem',
|
||||
position: 1,
|
||||
name: 'Home',
|
||||
item: 'http://localhost:3000',
|
||||
},
|
||||
{
|
||||
'@type': 'ListItem',
|
||||
position: 2,
|
||||
name: 'Apps',
|
||||
item: 'http://localhost:3000/apps',
|
||||
},
|
||||
{
|
||||
'@type': 'ListItem',
|
||||
position: 3,
|
||||
name: appName,
|
||||
item: `http://localhost:3000/apps/${app.slug}`,
|
||||
},
|
||||
],
|
||||
},
|
||||
};
|
||||
];
|
||||
|
||||
return (
|
||||
<div>
|
||||
|
||||
+81
-25
@@ -2,35 +2,91 @@
|
||||
@tailwind components;
|
||||
@tailwind utilities;
|
||||
|
||||
:root {
|
||||
--color-primary: #2563EB;
|
||||
--color-primary-hover: #1D4ED8;
|
||||
--color-primary-light: #EFF6FF;
|
||||
--color-primary-dark: #1E40AF;
|
||||
--color-accent: #0E9F9A;
|
||||
--color-accent-hover: #0B7F7B;
|
||||
--color-accent-light: #F0FDF4;
|
||||
--color-surface: #FFFFFF;
|
||||
--color-surface-subtle: #F8FAFC;
|
||||
--color-surface-dark: #0F172A;
|
||||
--color-surface-dark-subtle: #1E293B;
|
||||
--theme-radius: 12px;
|
||||
--theme-max-width: 1280px;
|
||||
@layer base {
|
||||
:root {
|
||||
--color-primary: #2563EB;
|
||||
--color-primary-hover: #1D4ED8;
|
||||
--color-primary-light: #EFF6FF;
|
||||
--color-primary-dark: #1E40AF;
|
||||
--color-accent: #06B6D4;
|
||||
--color-accent-hover: #0891B2;
|
||||
--color-accent-light: #ECFEFF;
|
||||
--color-surface: #FFFFFF;
|
||||
--color-surface-subtle: #F8FAFC;
|
||||
--color-surface-dark: #030712;
|
||||
--color-surface-dark-subtle: #0B0F19;
|
||||
--theme-radius: 18px;
|
||||
--theme-max-width: 1360px;
|
||||
}
|
||||
|
||||
.dark {
|
||||
--color-surface: #030712;
|
||||
--color-surface-subtle: #0B0F19;
|
||||
}
|
||||
|
||||
body {
|
||||
color: #0F172A;
|
||||
background-color: #FAFAFC;
|
||||
font-family: var(--font-sans), system-ui, -apple-system, sans-serif;
|
||||
overflow-x: hidden;
|
||||
scroll-behavior: smooth;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
}
|
||||
|
||||
.dark body {
|
||||
color: #F1F5F9;
|
||||
background-color: #030712;
|
||||
}
|
||||
|
||||
h1, h2, h3, h4, .font-display {
|
||||
font-family: var(--font-display), var(--font-sans), sans-serif;
|
||||
letter-spacing: -0.025em;
|
||||
}
|
||||
}
|
||||
|
||||
.dark {
|
||||
--color-surface: #0B1220;
|
||||
--color-surface-subtle: #0F172A;
|
||||
/* Glassmorphism & High-tech Panel Helpers */
|
||||
.glass-panel {
|
||||
background: rgba(255, 255, 255, 0.75);
|
||||
backdrop-filter: blur(20px);
|
||||
-webkit-backdrop-filter: blur(20px);
|
||||
border: 1px solid rgba(226, 232, 240, 0.8);
|
||||
}
|
||||
|
||||
body {
|
||||
color: #0F1F3D;
|
||||
background-color: #FFFFFF;
|
||||
font-family: Inter, system-ui, -apple-system, sans-serif;
|
||||
overflow-x: hidden;
|
||||
.dark .glass-panel {
|
||||
background: rgba(11, 15, 25, 0.75);
|
||||
backdrop-filter: blur(24px);
|
||||
-webkit-backdrop-filter: blur(24px);
|
||||
border: 1px solid rgba(30, 41, 59, 0.7);
|
||||
}
|
||||
|
||||
.dark body {
|
||||
color: #E5E9F2;
|
||||
background-color: #0B1220;
|
||||
/* Subtle Shimmer Effect for Buttons & Badges */
|
||||
.shimmer-badge {
|
||||
background: linear-gradient(
|
||||
90deg,
|
||||
rgba(255, 255, 255, 0) 0%,
|
||||
rgba(255, 255, 255, 0.25) 50%,
|
||||
rgba(255, 255, 255, 0) 100%
|
||||
);
|
||||
background-size: 200% 100%;
|
||||
animation: shimmer 3s infinite;
|
||||
}
|
||||
|
||||
/* Modern Minimalist Scrollbar */
|
||||
::-webkit-scrollbar {
|
||||
width: 8px;
|
||||
height: 8px;
|
||||
}
|
||||
::-webkit-scrollbar-track {
|
||||
background: transparent;
|
||||
}
|
||||
::-webkit-scrollbar-thumb {
|
||||
background: #CBD5E1;
|
||||
border-radius: 9999px;
|
||||
}
|
||||
.dark ::-webkit-scrollbar-thumb {
|
||||
background: #1E293B;
|
||||
}
|
||||
::-webkit-scrollbar-thumb:hover {
|
||||
background: #94A3B8;
|
||||
}
|
||||
|
||||
+55
-7
@@ -1,25 +1,54 @@
|
||||
import type { Metadata } from 'next';
|
||||
import { Inter } from 'next/font/google';
|
||||
import { Plus_Jakarta_Sans, Outfit } from 'next/font/google';
|
||||
import './globals.css';
|
||||
import { getSiteConfig } from '@/lib/config/loader';
|
||||
import { Navbar } from '@/components/ui/Navbar';
|
||||
import { Footer } from '@/components/ui/Footer';
|
||||
|
||||
const inter = Inter({ subsets: ['latin'], variable: '--font-inter' });
|
||||
const sansFont = Plus_Jakarta_Sans({
|
||||
subsets: ['latin'],
|
||||
variable: '--font-sans',
|
||||
display: 'swap',
|
||||
});
|
||||
|
||||
const displayFont = Outfit({
|
||||
subsets: ['latin'],
|
||||
variable: '--font-display',
|
||||
display: 'swap',
|
||||
});
|
||||
|
||||
export async function generateMetadata(): Promise<Metadata> {
|
||||
const config = getSiteConfig();
|
||||
return {
|
||||
title: {
|
||||
default: config.brand.name + ' | AI Photo Tools',
|
||||
default: `${config.brand.name} | Advanced AI Photo Tools & Creative Tech`,
|
||||
template: config.seo.titleTemplate || `%s | ${config.brand.name}`,
|
||||
},
|
||||
description: typeof config.brand.tagline === 'string' ? config.brand.tagline : config.brand.tagline.en,
|
||||
description: 'Commercial-grade neural vision models for instant portrait retouching, hair-strand matting background cutouts, and 4K photo restoration.',
|
||||
metadataBase: new URL(config.seo.siteUrl || 'http://localhost:3000'),
|
||||
keywords: [
|
||||
'CRE Innovations',
|
||||
'AI photo editor',
|
||||
'online blemish remover',
|
||||
'P3M background remover',
|
||||
'photo enhancer 4K',
|
||||
'vintage photo restoration',
|
||||
'teeth whitener AI',
|
||||
'CartoonGAN anime avatar',
|
||||
],
|
||||
authors: [{ name: 'CRE Innovations Engineering Team' }],
|
||||
openGraph: {
|
||||
type: 'website',
|
||||
siteName: config.brand.name,
|
||||
images: [{ url: config.seo.defaultOgImage || '/brand/og-default.png' }],
|
||||
title: `${config.brand.name} | AI Photo Tools`,
|
||||
description: 'Free online AI photo tools with zero photo retention and native mobile app handoff.',
|
||||
images: [{ url: '/brand/og-default.png', width: 1200, height: 630, alt: config.brand.name }],
|
||||
},
|
||||
twitter: {
|
||||
card: 'summary_large_image',
|
||||
title: `${config.brand.name} | AI Photo Tools`,
|
||||
description: 'Free online AI photo tools with zero storage and native mobile app handoff.',
|
||||
images: ['/brand/og-default.png'],
|
||||
},
|
||||
};
|
||||
}
|
||||
@@ -31,9 +60,28 @@ export default function RootLayout({
|
||||
}) {
|
||||
const config = getSiteConfig();
|
||||
|
||||
// Root Schema.org JSON-LD for Organization & WebSite
|
||||
const organizationJsonLd = {
|
||||
'@context': 'https://schema.org',
|
||||
'@type': 'Organization',
|
||||
name: config.brand.name,
|
||||
url: config.seo.siteUrl || 'http://localhost:3000',
|
||||
logo: `${config.seo.siteUrl || 'http://localhost:3000'}/brand/logo.svg`,
|
||||
sameAs: [
|
||||
'https://play.google.com/store/apps/dev?id=creinnovations',
|
||||
'https://apps.apple.com/developer/creinnovations',
|
||||
],
|
||||
};
|
||||
|
||||
return (
|
||||
<html lang="en" className={inter.variable}>
|
||||
<body className="min-h-screen flex flex-col antialiased selection:bg-blue-500 selection:text-white">
|
||||
<html lang="en" className={`${sansFont.variable} ${displayFont.variable}`}>
|
||||
<head>
|
||||
<script
|
||||
type="application/ld+json"
|
||||
dangerouslySetInnerHTML={{ __html: JSON.stringify(organizationJsonLd) }}
|
||||
/>
|
||||
</head>
|
||||
<body className="min-h-screen flex flex-col antialiased selection:bg-blue-600 selection:text-white">
|
||||
<Navbar config={config} currentLocale="en" />
|
||||
<main className="flex-1">{children}</main>
|
||||
<Footer config={config} currentLocale="en" />
|
||||
|
||||
@@ -30,8 +30,42 @@ export default function HomePage() {
|
||||
locale: 'en',
|
||||
};
|
||||
|
||||
// Structured Data (JSON-LD) for WebSite and FAQPage (PRD §10 SEO-07)
|
||||
const faqSection = page.sections.find((s) => s.type === 'faq');
|
||||
const faqItems = faqSection?.props?.items || [];
|
||||
|
||||
const jsonLdData = [
|
||||
{
|
||||
'@context': 'https://schema.org',
|
||||
'@type': 'WebSite',
|
||||
name: 'CRE Innovations',
|
||||
url: 'http://localhost:3000',
|
||||
potentialAction: {
|
||||
'@type': 'SearchAction',
|
||||
target: 'http://localhost:3000/tools?q={search_term_string}',
|
||||
'query-input': 'required name=search_term_string',
|
||||
},
|
||||
},
|
||||
{
|
||||
'@context': 'https://schema.org',
|
||||
'@type': 'FAQPage',
|
||||
mainEntity: faqItems.map((item: any) => ({
|
||||
'@type': 'Question',
|
||||
name: item.q,
|
||||
acceptedAnswer: {
|
||||
'@type': 'Answer',
|
||||
text: item.a,
|
||||
},
|
||||
})),
|
||||
},
|
||||
];
|
||||
|
||||
return (
|
||||
<div>
|
||||
<script
|
||||
type="application/ld+json"
|
||||
dangerouslySetInnerHTML={{ __html: JSON.stringify(jsonLdData) }}
|
||||
/>
|
||||
{page.sections.map((section) => (
|
||||
<SectionRenderer key={section.id} section={section} context={context} />
|
||||
))}
|
||||
|
||||
@@ -20,6 +20,7 @@ export async function generateMetadata({ params }: ToolPageProps): Promise<Metad
|
||||
|
||||
const name = resolveLocalised(tool.name, 'en');
|
||||
const summary = resolveLocalised(tool.summary, 'en');
|
||||
const exampleImg = tool.content?.examples?.[0]?.after || '/brand/og-default.png';
|
||||
|
||||
return {
|
||||
title: tool.seo?.title || `${name} Free Online | CRE Innovations`,
|
||||
@@ -28,9 +29,16 @@ export async function generateMetadata({ params }: ToolPageProps): Promise<Metad
|
||||
canonical: `/tools/${tool.slug}`,
|
||||
},
|
||||
openGraph: {
|
||||
title: `${name} Free Online`,
|
||||
title: `${name} Free Online | CRE Innovations`,
|
||||
description: summary,
|
||||
type: 'website',
|
||||
images: [{ url: exampleImg, width: 800, height: 600, alt: name }],
|
||||
},
|
||||
twitter: {
|
||||
card: 'summary_large_image',
|
||||
title: `${name} Free Online | CRE Innovations`,
|
||||
description: summary,
|
||||
images: [exampleImg],
|
||||
},
|
||||
};
|
||||
}
|
||||
@@ -60,20 +68,51 @@ export default function ToolDetailPage({ params }: ToolPageProps) {
|
||||
locale: 'en',
|
||||
};
|
||||
|
||||
// Structured Data (JSON-LD) per PRD §10 SEO-07
|
||||
const structuredData = {
|
||||
'@context': 'https://schema.org',
|
||||
'@type': 'WebApplication',
|
||||
name: resolveLocalised(tool.name, 'en'),
|
||||
description: resolveLocalised(tool.summary, 'en'),
|
||||
applicationCategory: 'MultimediaApplication',
|
||||
operatingSystem: 'Any',
|
||||
offers: {
|
||||
'@type': 'Offer',
|
||||
price: '0',
|
||||
priceCurrency: 'USD',
|
||||
const toolName = resolveLocalised(tool.name, 'en');
|
||||
const toolSummary = resolveLocalised(tool.summary, 'en');
|
||||
const exampleImg = tool.content?.examples?.[0]?.after || 'http://localhost:3000/brand/og-default.png';
|
||||
|
||||
// Structured Data (JSON-LD) for WebApplication and Breadcrumbs per PRD §10 SEO-07
|
||||
const structuredData = [
|
||||
{
|
||||
'@context': 'https://schema.org',
|
||||
'@type': 'WebApplication',
|
||||
name: toolName,
|
||||
description: toolSummary,
|
||||
applicationCategory: 'MultimediaApplication',
|
||||
operatingSystem: 'Any',
|
||||
image: exampleImg,
|
||||
offers: {
|
||||
'@type': 'Offer',
|
||||
price: '0',
|
||||
priceCurrency: 'USD',
|
||||
},
|
||||
},
|
||||
};
|
||||
{
|
||||
'@context': 'https://schema.org',
|
||||
'@type': 'BreadcrumbList',
|
||||
itemListElement: [
|
||||
{
|
||||
'@type': 'ListItem',
|
||||
position: 1,
|
||||
name: 'Home',
|
||||
item: 'http://localhost:3000',
|
||||
},
|
||||
{
|
||||
'@type': 'ListItem',
|
||||
position: 2,
|
||||
name: 'Tools',
|
||||
item: 'http://localhost:3000/tools',
|
||||
},
|
||||
{
|
||||
'@type': 'ListItem',
|
||||
position: 3,
|
||||
name: toolName,
|
||||
item: `http://localhost:3000/tools/${tool.slug}`,
|
||||
},
|
||||
],
|
||||
},
|
||||
];
|
||||
|
||||
return (
|
||||
<div>
|
||||
|
||||
@@ -19,6 +19,9 @@ import { RelatedToolsSection } from './RelatedToolsSection';
|
||||
import { RichTextSection } from './RichTextSection';
|
||||
import { CtaBannerSection } from './CtaBannerSection';
|
||||
import { NoticeSection } from './NoticeSection';
|
||||
import { TransformationReelSection } from './TransformationReelSection';
|
||||
import { VisualUseCasesSection } from './VisualUseCasesSection';
|
||||
import { WorkflowVisualizerSection } from './WorkflowVisualizerSection';
|
||||
|
||||
interface SectionRendererProps {
|
||||
section: SectionConfig;
|
||||
@@ -62,6 +65,15 @@ export function SectionRenderer({ section, context }: SectionRendererProps) {
|
||||
/>
|
||||
);
|
||||
|
||||
case 'transformationReel':
|
||||
return <TransformationReelSection />;
|
||||
|
||||
case 'visualUseCases':
|
||||
return <VisualUseCasesSection />;
|
||||
|
||||
case 'workflowVisualizer':
|
||||
return <WorkflowVisualizerSection />;
|
||||
|
||||
case 'toolGrid':
|
||||
return (
|
||||
<ToolGridSection
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
import React, { useState, useMemo } from 'react';
|
||||
import Link from 'next/link';
|
||||
import { Search, Sparkles, ArrowRight, Wand2, Scissors, Smile, Palette, RefreshCcw } from 'lucide-react';
|
||||
import { Search, Sparkles, ArrowRight, Wand2, Scissors, Smile, Palette, RefreshCcw, Eye } from 'lucide-react';
|
||||
import { ToolItem, CategoryItem, AppItem, resolveLocalised } from '@/types';
|
||||
|
||||
interface ToolGridSectionProps {
|
||||
@@ -75,7 +75,7 @@ export function ToolGridSection({
|
||||
{(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-black text-slate-900 dark:text-white tracking-tight">
|
||||
<h2 className="text-3xl sm:text-4xl lg:text-5xl font-black text-slate-900 dark:text-white tracking-tight">
|
||||
{resolveLocalised(title, locale)}
|
||||
</h2>
|
||||
)}
|
||||
@@ -134,22 +134,56 @@ export function ToolGridSection({
|
||||
</div>
|
||||
)}
|
||||
|
||||
{/* Tools Cards Grid */}
|
||||
<div className="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-6">
|
||||
{/* Tools Cards Grid with Visual Image Previews */}
|
||||
<div className="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-6 sm:gap-7">
|
||||
{filteredTools.map((tool) => {
|
||||
const homeApp = appMap.get(tool.homeApp);
|
||||
const example = tool.content?.examples?.[0];
|
||||
|
||||
return (
|
||||
<div
|
||||
key={tool.id}
|
||||
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"
|
||||
className="group relative bg-white dark:bg-slate-900/95 rounded-3xl p-5 sm:p-6 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.5 transition-all duration-300 flex flex-col justify-between"
|
||||
>
|
||||
<div>
|
||||
{/* Visual Before/After Preview Card */}
|
||||
{example ? (
|
||||
<div className="relative aspect-[16/10] rounded-2xl overflow-hidden mb-4 bg-slate-950 shadow-inner group/thumb">
|
||||
<div className="grid grid-cols-2 h-full w-full">
|
||||
<div className="relative h-full overflow-hidden border-r border-white/20">
|
||||
{/* eslint-disable-next-line @next/next/no-img-element */}
|
||||
<img
|
||||
src={example.before}
|
||||
alt="Before preview"
|
||||
loading="lazy"
|
||||
className="h-full w-full object-cover"
|
||||
/>
|
||||
<span className="absolute bottom-1.5 left-1.5 bg-black/75 backdrop-blur-md px-1.5 py-0.5 rounded text-[9px] font-bold text-white">
|
||||
Before
|
||||
</span>
|
||||
</div>
|
||||
<div className="relative h-full overflow-hidden">
|
||||
{/* eslint-disable-next-line @next/next/no-img-element */}
|
||||
<img
|
||||
src={example.after}
|
||||
alt="After preview"
|
||||
loading="lazy"
|
||||
className="h-full w-full object-cover group-hover:scale-105 transition-transform duration-300"
|
||||
/>
|
||||
<span className="absolute bottom-1.5 right-1.5 bg-blue-600/90 backdrop-blur-md px-1.5 py-0.5 rounded text-[9px] font-bold text-white">
|
||||
After
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
) : null}
|
||||
|
||||
{/* Category Tag & Icon */}
|
||||
<div className="flex items-center justify-between mb-4">
|
||||
<div className="flex items-center justify-between mb-3">
|
||||
<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-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">
|
||||
<div className="w-8 h-8 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>
|
||||
@@ -158,12 +192,12 @@ export function ToolGridSection({
|
||||
{resolveLocalised(tool.name, locale)}
|
||||
</h3>
|
||||
|
||||
<p className="mt-2 text-xs text-slate-600 dark:text-slate-400 line-clamp-3 leading-relaxed">
|
||||
<p className="mt-2 text-xs text-slate-600 dark:text-slate-400 line-clamp-2 leading-relaxed">
|
||||
{resolveLocalised(tool.summary, locale)}
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div className="mt-6 pt-4 border-t border-slate-100 dark:border-slate-800/80 space-y-3">
|
||||
<div className="mt-5 pt-4 border-t border-slate-100 dark:border-slate-800/80 space-y-3">
|
||||
{homeApp && (
|
||||
<div className="text-[11px] text-slate-500 dark:text-slate-400 flex items-center justify-between">
|
||||
<span className="font-medium">Home App:</span>
|
||||
|
||||
@@ -0,0 +1,135 @@
|
||||
'use client';
|
||||
|
||||
import React from 'react';
|
||||
import Link from 'next/link';
|
||||
import { ArrowRight, Sparkles } from 'lucide-react';
|
||||
|
||||
interface TransformationItem {
|
||||
toolSlug: string;
|
||||
toolName: string;
|
||||
category: string;
|
||||
before: string;
|
||||
after: string;
|
||||
tag: string;
|
||||
}
|
||||
|
||||
const transformations: TransformationItem[] = [
|
||||
{
|
||||
toolSlug: 'blemish-remover',
|
||||
toolName: 'AI Blemish Remover',
|
||||
category: 'Portrait Retouch',
|
||||
before: 'https://images.unsplash.com/photo-1534528741775-53994a69daeb?w=400&auto=format&fit=crop&q=80',
|
||||
after: 'https://images.unsplash.com/photo-1517841905240-472988babdf9?w=400&auto=format&fit=crop&q=80',
|
||||
tag: 'Skin Pore Texture Preserved',
|
||||
},
|
||||
{
|
||||
toolSlug: 'background-remover',
|
||||
toolName: 'P3M Background Cutout',
|
||||
category: 'Matting',
|
||||
before: 'https://images.unsplash.com/photo-1507003211169-0a1dd7228f2d?w=400&auto=format&fit=crop&q=80',
|
||||
after: 'https://images.unsplash.com/photo-1500648767791-00dcc994a43e?w=400&auto=format&fit=crop&q=80',
|
||||
tag: 'Sub-Pixel Hair Strands',
|
||||
},
|
||||
{
|
||||
toolSlug: 'photo-enhancer',
|
||||
toolName: 'Ultra HD 4K Enhancer',
|
||||
category: 'Restoration',
|
||||
before: 'https://images.unsplash.com/photo-1544005313-94ddf0286df2?w=400&auto=format&fit=crop&q=80',
|
||||
after: 'https://images.unsplash.com/photo-1494790108377-be9c29b29330?w=400&auto=format&fit=crop&q=80',
|
||||
tag: 'Deblur & Iris Sharpness',
|
||||
},
|
||||
{
|
||||
toolSlug: 'old-photo-restorer',
|
||||
toolName: 'Vintage Restorer',
|
||||
category: 'Archives',
|
||||
before: 'https://images.unsplash.com/photo-1509198397868-475647b2a1e5?w=400&auto=format&fit=crop&q=80',
|
||||
after: 'https://images.unsplash.com/photo-1506794778202-cad84cf45f1d?w=400&auto=format&fit=crop&q=80',
|
||||
tag: 'Scratch & Tear Removal',
|
||||
},
|
||||
{
|
||||
toolSlug: 'cartoon-avatar',
|
||||
toolName: 'CartoonGAN Anime',
|
||||
category: 'Creative Art',
|
||||
before: 'https://images.unsplash.com/photo-1534528741775-53994a69daeb?w=400&auto=format&fit=crop&q=80',
|
||||
after: 'https://images.unsplash.com/photo-1578632767115-351597cf2477?w=400&auto=format&fit=crop&q=80',
|
||||
tag: 'Manga Cel Animation',
|
||||
},
|
||||
{
|
||||
toolSlug: 'colorization',
|
||||
toolName: 'B&W Colorizer',
|
||||
category: 'Historical Color',
|
||||
before: 'https://images.unsplash.com/photo-1544717305-2782549b5136?w=400&auto=format&fit=crop&q=80',
|
||||
after: 'https://images.unsplash.com/photo-1534528741775-53994a69daeb?w=400&auto=format&fit=crop&q=80',
|
||||
tag: 'Deep Neural Palette',
|
||||
},
|
||||
];
|
||||
|
||||
export function TransformationReelSection() {
|
||||
return (
|
||||
<section className="py-10 bg-slate-100/50 dark:bg-slate-950/40 border-y border-slate-200/80 dark:border-slate-800/80 overflow-hidden">
|
||||
<div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 mb-6 flex items-center justify-between">
|
||||
<div className="flex items-center space-x-2">
|
||||
<Sparkles className="w-4 h-4 text-cyan-500 animate-pulse" />
|
||||
<h3 className="text-xs sm:text-sm font-extrabold uppercase tracking-wider text-slate-900 dark:text-white">
|
||||
Live Transformations by CRE Neural Engine
|
||||
</h3>
|
||||
</div>
|
||||
<Link
|
||||
href="/tools"
|
||||
className="text-xs font-bold text-blue-600 dark:text-cyan-400 hover:underline flex items-center space-x-1"
|
||||
>
|
||||
<span>Explore all 8+ tools</span>
|
||||
<ArrowRight className="w-3.5 h-3.5" />
|
||||
</Link>
|
||||
</div>
|
||||
|
||||
{/* Horizontal scrolling showcase */}
|
||||
<div className="flex gap-4 sm:gap-6 overflow-x-auto pb-4 px-4 sm:px-8 no-scrollbar scroll-smooth">
|
||||
{transformations.map((item, idx) => (
|
||||
<Link
|
||||
key={idx}
|
||||
href={`/tools/${item.toolSlug}`}
|
||||
className="group shrink-0 w-64 sm:w-72 bg-white dark:bg-slate-900 rounded-2xl p-3 border border-slate-200/80 dark:border-slate-800/80 shadow-sm hover:shadow-xl hover:border-blue-500/50 hover:-translate-y-1 transition-all duration-300"
|
||||
>
|
||||
{/* Visual side-by-side or split thumbnail */}
|
||||
<div className="relative aspect-[16/10] rounded-xl overflow-hidden mb-3 bg-slate-950">
|
||||
<div className="grid grid-cols-2 h-full w-full">
|
||||
<div className="relative h-full overflow-hidden border-r border-white/20">
|
||||
{/* eslint-disable-next-line @next/next/no-img-element */}
|
||||
<img src={item.before} alt="Before" className="h-full w-full object-cover" />
|
||||
<span className="absolute bottom-1.5 left-1.5 bg-black/70 backdrop-blur-md px-1.5 py-0.5 rounded text-[9px] font-bold text-white">
|
||||
Before
|
||||
</span>
|
||||
</div>
|
||||
<div className="relative h-full overflow-hidden">
|
||||
{/* eslint-disable-next-line @next/next/no-img-element */}
|
||||
<img src={item.after} alt="After" className="h-full w-full object-cover group-hover:scale-105 transition-transform duration-300" />
|
||||
<span className="absolute bottom-1.5 right-1.5 bg-blue-600/90 backdrop-blur-md px-1.5 py-0.5 rounded text-[9px] font-bold text-white">
|
||||
After
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div className="space-y-1">
|
||||
<div className="flex items-center justify-between">
|
||||
<span className="text-[10px] font-bold text-cyan-600 dark:text-cyan-400 uppercase tracking-wide">
|
||||
{item.category}
|
||||
</span>
|
||||
<span className="text-[10px] font-medium text-slate-400">
|
||||
Try Free →
|
||||
</span>
|
||||
</div>
|
||||
<p className="font-bold text-xs sm:text-sm text-slate-900 dark:text-white truncate group-hover:text-blue-600 transition-colors">
|
||||
{item.toolName}
|
||||
</p>
|
||||
<p className="text-[11px] text-slate-500 dark:text-slate-400 truncate">
|
||||
{item.tag}
|
||||
</p>
|
||||
</div>
|
||||
</Link>
|
||||
))}
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,162 @@
|
||||
import React from 'react';
|
||||
import Link from 'next/link';
|
||||
import { Sparkles, ArrowRight, CheckCircle2, ShoppingBag, Camera, Archive, Palette } from 'lucide-react';
|
||||
|
||||
interface UseCaseCard {
|
||||
title: string;
|
||||
category: string;
|
||||
desc: string;
|
||||
toolSlug: string;
|
||||
toolName: string;
|
||||
icon: any;
|
||||
beforeImg: string;
|
||||
afterImg: string;
|
||||
badge: string;
|
||||
benefits: string[];
|
||||
}
|
||||
|
||||
const useCases: UseCaseCard[] = [
|
||||
{
|
||||
title: 'E-Commerce & Product Isolation',
|
||||
category: 'Commercial Cutouts',
|
||||
desc: 'Isolate products, apparel, and models with sub-pixel hair strand precision and transparent PNG export ready for Shopify, Amazon, and marketplaces.',
|
||||
toolSlug: 'background-remover',
|
||||
toolName: 'P3M Background Remover',
|
||||
icon: ShoppingBag,
|
||||
beforeImg: 'https://images.unsplash.com/photo-1507003211169-0a1dd7228f2d?w=600&auto=format&fit=crop&q=80',
|
||||
afterImg: 'https://images.unsplash.com/photo-1500648767791-00dcc994a43e?w=600&auto=format&fit=crop&q=80',
|
||||
badge: 'P3M Dual-Stream Matting',
|
||||
benefits: ['Clean alpha transparent PNG', 'Flyaway hair strand detection', 'Batch cutout ready in app'],
|
||||
},
|
||||
{
|
||||
title: 'Studio Portraits & Beauty Retouching',
|
||||
category: 'Headshots & Beauty',
|
||||
desc: 'Remove blemishes, acne, scars, and under-eye discoloration while safeguarding natural skin pore texture without the artificial plastic blur.',
|
||||
toolSlug: 'blemish-remover',
|
||||
toolName: 'AI Blemish Remover',
|
||||
icon: Camera,
|
||||
beforeImg: 'https://images.unsplash.com/photo-1534528741775-53994a69daeb?w=600&auto=format&fit=crop&q=80',
|
||||
afterImg: 'https://images.unsplash.com/photo-1517841905240-472988babdf9?w=600&auto=format&fit=crop&q=80',
|
||||
badge: 'Micro-Pore Safeguard',
|
||||
benefits: ['Zero artificial plastic look', 'Localised neural inpainting', 'Multi-mode eye & skin fixes'],
|
||||
},
|
||||
{
|
||||
title: 'Vintage Archives & Photo Restoration',
|
||||
category: 'Genealogy & Memories',
|
||||
desc: 'Erase physical folding creases, tear marks, and sepia fade from antique family photos, then breathe life into monochrome prints with deep colorization.',
|
||||
toolSlug: 'old-photo-restorer',
|
||||
toolName: 'Vintage Photo Restorer',
|
||||
icon: Archive,
|
||||
beforeImg: 'https://images.unsplash.com/photo-1509198397868-475647b2a1e5?w=600&auto=format&fit=crop&q=80',
|
||||
afterImg: 'https://images.unsplash.com/photo-1506794778202-cad84cf45f1d?w=600&auto=format&fit=crop&q=80',
|
||||
badge: 'Historical Inpainting',
|
||||
benefits: ['Physical scratch & crease repair', 'Historical skin tone colorizer', 'Preserve family heritage'],
|
||||
},
|
||||
{
|
||||
title: 'Creator Avatars & CartoonGAN Stylization',
|
||||
category: 'Social Media & Creators',
|
||||
desc: 'Convert any portrait selfie into striking anime cel illustrations, manga linework, or nostalgic vintage Polaroid instant camera prints.',
|
||||
toolSlug: 'cartoon-avatar',
|
||||
toolName: 'CartoonGAN Anime Avatar',
|
||||
icon: Palette,
|
||||
beforeImg: 'https://images.unsplash.com/photo-1534528741775-53994a69daeb?w=600&auto=format&fit=crop&q=80',
|
||||
afterImg: 'https://images.unsplash.com/photo-1578632767115-351597cf2477?w=600&auto=format&fit=crop&q=80',
|
||||
badge: 'Generative Adversarial Nets',
|
||||
benefits: ['Facial geometry preservation', 'Manga cel shading', 'Social media ready avatars'],
|
||||
},
|
||||
];
|
||||
|
||||
export function VisualUseCasesSection() {
|
||||
return (
|
||||
<section className="py-16 sm:py-24 bg-white dark:bg-slate-900 border-t border-slate-200/80 dark:border-slate-800/80">
|
||||
<div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
|
||||
<div className="text-center max-w-3xl mx-auto mb-14 space-y-3">
|
||||
<div className="inline-flex items-center space-x-2 px-3.5 py-1.5 rounded-full bg-cyan-50 dark:bg-cyan-950/70 border border-cyan-200 dark:border-cyan-800 text-xs font-bold text-cyan-700 dark:text-cyan-300">
|
||||
<Sparkles className="w-3.5 h-3.5 text-cyan-500" />
|
||||
<span>Real-World Visual Capabilities</span>
|
||||
</div>
|
||||
<h2 className="text-3xl sm:text-4xl lg:text-5xl font-black text-slate-900 dark:text-white tracking-tight">
|
||||
Engineered for Creators & Studios
|
||||
</h2>
|
||||
<p className="text-sm sm:text-base text-slate-600 dark:text-slate-400">
|
||||
From single-click browser trials to full 4K studio batch exports, CRE Innovations powers every stage of your visual workflow.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
{/* 2x2 Visual Cards Grid */}
|
||||
<div className="grid grid-cols-1 lg:grid-cols-2 gap-8 sm:gap-10">
|
||||
{useCases.map((uc, idx) => {
|
||||
const Icon = uc.icon;
|
||||
return (
|
||||
<div
|
||||
key={idx}
|
||||
className="group relative bg-slate-50/80 dark:bg-slate-950/80 rounded-3xl p-6 sm:p-8 border border-slate-200/80 dark:border-slate-800/80 shadow-md hover:shadow-2xl hover:border-blue-500/40 transition-all duration-300 flex flex-col justify-between"
|
||||
>
|
||||
<div>
|
||||
{/* Visual Before / After Split Frame */}
|
||||
<div className="relative aspect-[16/10] rounded-2xl overflow-hidden mb-6 bg-slate-950 shadow-inner">
|
||||
<div className="grid grid-cols-2 h-full w-full">
|
||||
<div className="relative h-full overflow-hidden border-r border-white/20">
|
||||
{/* eslint-disable-next-line @next/next/no-img-element */}
|
||||
<img src={uc.beforeImg} alt={`${uc.title} before`} className="h-full w-full object-cover" />
|
||||
<span className="absolute top-3 left-3 bg-black/75 backdrop-blur-md px-2.5 py-1 rounded-md text-[10px] font-bold text-white">
|
||||
Original Input
|
||||
</span>
|
||||
</div>
|
||||
<div className="relative h-full overflow-hidden">
|
||||
{/* eslint-disable-next-line @next/next/no-img-element */}
|
||||
<img src={uc.afterImg} alt={`${uc.title} after`} className="h-full w-full object-cover group-hover:scale-105 transition-transform duration-300" />
|
||||
<span className="absolute top-3 right-3 bg-gradient-to-r from-blue-600 to-cyan-500 backdrop-blur-md px-2.5 py-1 rounded-md text-[10px] font-bold text-white shadow-md">
|
||||
CRE AI Result
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{/* Header */}
|
||||
<div className="flex items-center justify-between mb-2">
|
||||
<div className="flex items-center space-x-2 text-xs font-bold text-cyan-600 dark:text-cyan-400">
|
||||
<Icon className="w-4 h-4" />
|
||||
<span>{uc.category}</span>
|
||||
</div>
|
||||
<span className="text-[11px] font-bold text-slate-500 bg-white dark:bg-slate-900 border border-slate-200 dark:border-slate-800 px-2.5 py-0.5 rounded-full">
|
||||
{uc.badge}
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<h3 className="text-xl sm:text-2xl font-black text-slate-900 dark:text-white">
|
||||
{uc.title}
|
||||
</h3>
|
||||
|
||||
<p className="mt-2 text-xs sm:text-sm text-slate-600 dark:text-slate-400 leading-relaxed">
|
||||
{uc.desc}
|
||||
</p>
|
||||
|
||||
{/* Benefit points */}
|
||||
<div className="mt-4 pt-4 border-t border-slate-200/60 dark:border-slate-800/60 space-y-2">
|
||||
{uc.benefits.map((b, bIdx) => (
|
||||
<div key={bIdx} className="flex items-center space-x-2 text-xs font-medium text-slate-700 dark:text-slate-300">
|
||||
<CheckCircle2 className="w-3.5 h-3.5 text-emerald-500 shrink-0" />
|
||||
<span>{b}</span>
|
||||
</div>
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div className="mt-6 pt-4">
|
||||
<Link
|
||||
href={`/tools/${uc.toolSlug}`}
|
||||
className="inline-flex items-center space-x-2 text-xs font-bold text-blue-600 dark:text-cyan-400 hover:text-blue-700 group-hover:translate-x-1 transition-all"
|
||||
>
|
||||
<span>Launch {uc.toolName} online</span>
|
||||
<ArrowRight className="w-3.5 h-3.5" />
|
||||
</Link>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
})}
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,85 @@
|
||||
import React from 'react';
|
||||
import { UploadCloud, Cpu, Smartphone, ShieldCheck, Zap, ArrowRight } from 'lucide-react';
|
||||
|
||||
export function WorkflowVisualizerSection() {
|
||||
const steps = [
|
||||
{
|
||||
num: '01',
|
||||
title: 'Upload Any Photo',
|
||||
desc: 'Drag & drop JPG, PNG, or WEBP up to 12MB. Client-side signature checks ensure fast, safe processing.',
|
||||
icon: UploadCloud,
|
||||
highlight: 'Zero Sign-Up Required',
|
||||
badgeColor: 'text-blue-500 bg-blue-50 dark:bg-blue-950/60',
|
||||
},
|
||||
{
|
||||
num: '02',
|
||||
title: 'In-Memory Neural Inference',
|
||||
desc: 'Our neural models process pixels in volatile RAM and stream the result straight back. Nothing is stored.',
|
||||
icon: Cpu,
|
||||
highlight: 'Zero Storage Guarantee',
|
||||
badgeColor: 'text-cyan-500 bg-cyan-50 dark:bg-cyan-950/60',
|
||||
},
|
||||
{
|
||||
num: '03',
|
||||
title: 'Instant HD & 4K Mobile Handoff',
|
||||
desc: 'Download your result in standard HD or scan the QR code to unlock batch processing and 4K export in our app.',
|
||||
icon: Smartphone,
|
||||
highlight: '50 Free App Credits',
|
||||
badgeColor: 'text-indigo-500 bg-indigo-50 dark:bg-indigo-950/60',
|
||||
},
|
||||
];
|
||||
|
||||
return (
|
||||
<section className="py-16 sm:py-24 bg-slate-50/60 dark:bg-slate-950/60 border-t border-slate-200/80 dark:border-slate-800/80">
|
||||
<div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
|
||||
<div className="text-center max-w-3xl mx-auto mb-14 space-y-3">
|
||||
<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-200/60 dark:border-blue-800/60">
|
||||
<Zap className="w-3.5 h-3.5 text-blue-500" />
|
||||
<span>High-Speed Architecture</span>
|
||||
</div>
|
||||
<h2 className="text-3xl sm:text-4xl lg:text-5xl font-black text-slate-900 dark:text-white tracking-tight">
|
||||
How CRE Innovations Works
|
||||
</h2>
|
||||
<p className="text-sm sm:text-base text-slate-600 dark:text-slate-400">
|
||||
A frictionless pipeline engineered for speed, privacy, and seamless mobile transition.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div className="grid grid-cols-1 md:grid-cols-3 gap-8">
|
||||
{steps.map((st, idx) => {
|
||||
const Icon = st.icon;
|
||||
return (
|
||||
<div
|
||||
key={idx}
|
||||
className="relative bg-white dark:bg-slate-900 rounded-3xl p-7 sm:p-8 border border-slate-200/80 dark:border-slate-800/80 shadow-md hover:shadow-xl hover:-translate-y-1 transition-all duration-300 flex flex-col justify-between"
|
||||
>
|
||||
<div>
|
||||
<div className="flex items-center justify-between mb-6">
|
||||
<span className="text-3xl font-black text-slate-300 dark:text-slate-700 tracking-tighter">
|
||||
{st.num}
|
||||
</span>
|
||||
<div className={`w-12 h-12 rounded-2xl flex items-center justify-center ${st.badgeColor} shadow-inner`}>
|
||||
<Icon className="w-6 h-6" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<h3 className="text-xl font-bold text-slate-900 dark:text-white mb-2">
|
||||
{st.title}
|
||||
</h3>
|
||||
<p className="text-xs sm:text-sm text-slate-600 dark:text-slate-400 leading-relaxed mb-6">
|
||||
{st.desc}
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div className="pt-4 border-t border-slate-100 dark:border-slate-800 flex items-center space-x-2 text-xs font-bold text-slate-700 dark:text-slate-300">
|
||||
<ShieldCheck className="w-4 h-4 text-emerald-500" />
|
||||
<span>{st.highlight}</span>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
})}
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user