feat: complete visual redesign with Outfit & Plus Jakarta Sans fonts, visual use-cases, transformation reel, and enhanced SEO

This commit is contained in:
2026-11-03 12:43:34 +05:30
parent 7e137d88bc
commit be817fea91
12 changed files with 806 additions and 122 deletions
+51 -17
View File
@@ -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
View File
@@ -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
View File
@@ -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" />
+34
View File
@@ -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} />
))}
+53 -14
View File
@@ -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>