2026-11-03 12:24:43 +05:30
|
|
|
import type { Metadata } from 'next';
|
2026-11-04 17:55:18 +05:30
|
|
|
import { Poppins, Inter, JetBrains_Mono } from 'next/font/google';
|
2026-11-03 12:24:43 +05:30
|
|
|
import './globals.css';
|
2026-11-11 11:20:04 +05:30
|
|
|
import { getSiteConfig, getAllCategories, getAllTools } from '@/lib/config/loader';
|
2026-11-03 12:24:43 +05:30
|
|
|
import { Navbar } from '@/components/ui/Navbar';
|
|
|
|
|
import { Footer } from '@/components/ui/Footer';
|
2026-11-05 11:18:35 +05:30
|
|
|
import { SmoothScrollProvider } from '@/components/ui/SmoothScrollProvider';
|
2026-11-03 12:24:43 +05:30
|
|
|
|
2026-11-04 17:55:18 +05:30
|
|
|
const poppinsFont = Poppins({
|
2026-11-03 12:43:34 +05:30
|
|
|
subsets: ['latin'],
|
2026-11-04 17:55:18 +05:30
|
|
|
weight: ['300', '400', '500', '600', '700', '800'],
|
|
|
|
|
variable: '--font-poppins',
|
2026-11-03 12:43:34 +05:30
|
|
|
display: 'swap',
|
|
|
|
|
});
|
|
|
|
|
|
2026-11-04 17:55:18 +05:30
|
|
|
const interFont = Inter({
|
2026-11-03 12:43:34 +05:30
|
|
|
subsets: ['latin'],
|
2026-11-04 17:55:18 +05:30
|
|
|
weight: ['300', '400', '500', '600', '700'],
|
|
|
|
|
variable: '--font-inter',
|
2026-11-03 12:43:34 +05:30
|
|
|
display: 'swap',
|
|
|
|
|
});
|
2026-11-03 12:24:43 +05:30
|
|
|
|
2026-11-03 12:52:43 +05:30
|
|
|
const monoFont = JetBrains_Mono({
|
|
|
|
|
subsets: ['latin'],
|
|
|
|
|
variable: '--font-mono',
|
|
|
|
|
display: 'swap',
|
|
|
|
|
});
|
|
|
|
|
|
2026-11-03 12:24:43 +05:30
|
|
|
export async function generateMetadata(): Promise<Metadata> {
|
|
|
|
|
const config = getSiteConfig();
|
2026-11-13 11:45:59 +05:30
|
|
|
const siteUrl = (process.env.SITE_URL || config.seo.siteUrl || 'http://localhost:3000').replace(/\/$/, '');
|
2026-11-03 12:24:43 +05:30
|
|
|
return {
|
|
|
|
|
title: {
|
2026-11-13 11:45:59 +05:30
|
|
|
default: `CRE Innovations | Free AI Photo Editor - Background Remover, Face Retouch & More`,
|
|
|
|
|
template: config.seo.titleTemplate || `%s | CRE Innovations`,
|
2026-11-03 12:24:43 +05:30
|
|
|
},
|
2026-11-13 11:45:59 +05:30
|
|
|
description: 'Free online AI photo editing tools: remove backgrounds instantly, retouch portraits, restore old photos, whiten teeth, swap faces & apply 200+ creative filters. No signup, no watermark.',
|
2026-11-04 12:28:32 +05:30
|
|
|
metadataBase: new URL(siteUrl),
|
2026-11-03 12:43:34 +05:30
|
|
|
keywords: [
|
2026-11-13 11:45:59 +05:30
|
|
|
'free AI photo editor online',
|
|
|
|
|
'background remover',
|
|
|
|
|
'AI portrait retouching',
|
|
|
|
|
'face retouch online free',
|
|
|
|
|
'old photo restoration',
|
2026-11-03 12:43:34 +05:30
|
|
|
'teeth whitener AI',
|
2026-11-13 11:45:59 +05:30
|
|
|
'AI face swap',
|
|
|
|
|
'anime avatar maker',
|
|
|
|
|
'photo enhancer 4K',
|
|
|
|
|
'remove background from photo',
|
|
|
|
|
'CRE Innovations',
|
|
|
|
|
'AI photo tools',
|
2026-11-03 12:43:34 +05:30
|
|
|
],
|
2026-11-13 11:45:59 +05:30
|
|
|
authors: [{ name: 'CRE Innovations', url: siteUrl }],
|
|
|
|
|
creator: 'CRE Innovations',
|
|
|
|
|
publisher: 'CRE Innovations',
|
|
|
|
|
applicationName: 'CRE Innovations Studio',
|
|
|
|
|
generator: 'Next.js',
|
|
|
|
|
referrer: 'origin-when-cross-origin',
|
|
|
|
|
alternates: {
|
|
|
|
|
canonical: siteUrl,
|
|
|
|
|
},
|
2026-11-03 12:24:43 +05:30
|
|
|
openGraph: {
|
|
|
|
|
type: 'website',
|
2026-11-13 11:45:59 +05:30
|
|
|
siteName: 'CRE Innovations',
|
|
|
|
|
title: `CRE Innovations | Free AI Photo Editor & Creative Tools`,
|
|
|
|
|
description: 'Remove backgrounds, retouch portraits, restore old photos & apply 200+ AI effects. Free online, no signup required.',
|
|
|
|
|
url: siteUrl,
|
2026-11-13 11:59:34 +05:30
|
|
|
locale: config.seo.locale || 'en_US',
|
2026-11-13 11:45:59 +05:30
|
|
|
images: [{ url: `${siteUrl}/brand/og-default.png`, width: 1200, height: 630, alt: 'CRE Innovations - Free AI Photo Editing Tools' }],
|
2026-11-03 12:43:34 +05:30
|
|
|
},
|
|
|
|
|
twitter: {
|
|
|
|
|
card: 'summary_large_image',
|
2026-11-13 11:59:34 +05:30
|
|
|
site: config.seo.twitterHandle || '@CREInnovations',
|
|
|
|
|
creator: config.seo.twitterHandle || '@CREInnovations',
|
2026-11-13 11:45:59 +05:30
|
|
|
title: `CRE Innovations | Free AI Photo Editor & Creative Tools`,
|
|
|
|
|
description: 'Remove backgrounds, retouch portraits, restore old photos & apply 200+ AI effects. Free, no signup.',
|
|
|
|
|
images: [`${siteUrl}/brand/og-default.png`],
|
2026-11-03 12:24:43 +05:30
|
|
|
},
|
2026-11-13 11:45:59 +05:30
|
|
|
robots: {
|
|
|
|
|
index: true,
|
|
|
|
|
follow: true,
|
|
|
|
|
nocache: false,
|
|
|
|
|
googleBot: {
|
|
|
|
|
index: true,
|
|
|
|
|
follow: true,
|
|
|
|
|
'max-video-preview': -1,
|
|
|
|
|
'max-image-preview': 'large',
|
|
|
|
|
'max-snippet': -1,
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
manifest: '/manifest.webmanifest',
|
2026-11-13 12:07:35 +05:30
|
|
|
icons: {
|
|
|
|
|
icon: [
|
|
|
|
|
{ url: '/favicon.ico', sizes: 'any' },
|
|
|
|
|
{ url: '/brand/icon.svg', type: 'image/svg+xml' },
|
|
|
|
|
],
|
|
|
|
|
apple: '/brand/icon.svg',
|
|
|
|
|
},
|
2026-11-13 11:45:59 +05:30
|
|
|
appleWebApp: {
|
|
|
|
|
capable: true,
|
|
|
|
|
statusBarStyle: 'black-translucent',
|
|
|
|
|
title: 'CRE Innovations',
|
|
|
|
|
},
|
|
|
|
|
category: 'technology',
|
2026-11-03 12:24:43 +05:30
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export default function RootLayout({
|
|
|
|
|
children,
|
|
|
|
|
}: {
|
|
|
|
|
children: React.ReactNode;
|
|
|
|
|
}) {
|
|
|
|
|
const config = getSiteConfig();
|
2026-11-11 11:20:04 +05:30
|
|
|
const categories = getAllCategories();
|
|
|
|
|
const tools = getAllTools();
|
2026-11-13 11:45:59 +05:30
|
|
|
const siteUrl = (process.env.SITE_URL || config.seo.siteUrl || 'http://localhost:3000').replace(/\/$/, '');
|
2026-11-03 12:24:43 +05:30
|
|
|
|
2026-11-03 12:43:34 +05:30
|
|
|
// Root Schema.org JSON-LD for Organization & WebSite
|
|
|
|
|
const organizationJsonLd = {
|
|
|
|
|
'@context': 'https://schema.org',
|
2026-11-13 11:45:59 +05:30
|
|
|
'@graph': [
|
|
|
|
|
{
|
|
|
|
|
'@type': 'Organization',
|
|
|
|
|
'@id': `${siteUrl}/#organization`,
|
|
|
|
|
name: 'CRE Innovations',
|
|
|
|
|
url: siteUrl,
|
|
|
|
|
logo: {
|
|
|
|
|
'@type': 'ImageObject',
|
|
|
|
|
url: `${siteUrl}/brand/logo.svg`,
|
|
|
|
|
width: 200,
|
|
|
|
|
height: 60,
|
|
|
|
|
},
|
2026-11-13 11:59:34 +05:30
|
|
|
description: config.organization?.description || 'CRE Innovations builds free AI-powered photo editing tools: background removal, portrait retouching, photo restoration, and 200+ creative filters.',
|
|
|
|
|
foundingDate: config.organization?.foundingDate || '2021',
|
|
|
|
|
...(config.organization?.storeUrls ? {
|
|
|
|
|
sameAs: [
|
|
|
|
|
config.organization.storeUrls.android,
|
|
|
|
|
config.organization.storeUrls.ios,
|
|
|
|
|
].filter(Boolean),
|
|
|
|
|
} : {
|
|
|
|
|
sameAs: [
|
|
|
|
|
'https://play.google.com/store/apps/developer?id=CRE+Innovations',
|
|
|
|
|
'https://apps.apple.com/developer/cre-innovations',
|
|
|
|
|
],
|
|
|
|
|
}),
|
2026-11-13 11:45:59 +05:30
|
|
|
contactPoint: {
|
|
|
|
|
'@type': 'ContactPoint',
|
|
|
|
|
contactType: 'customer support',
|
2026-11-13 11:59:34 +05:30
|
|
|
availableLanguage: config.organization?.contactLanguages || ['English', 'Hindi'],
|
2026-11-13 11:45:59 +05:30
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
'@type': 'WebSite',
|
|
|
|
|
'@id': `${siteUrl}/#website`,
|
|
|
|
|
url: siteUrl,
|
|
|
|
|
name: 'CRE Innovations',
|
|
|
|
|
description: 'Free AI photo editing tools — no signup, no watermark.',
|
|
|
|
|
publisher: { '@id': `${siteUrl}/#organization` },
|
|
|
|
|
potentialAction: {
|
|
|
|
|
'@type': 'SearchAction',
|
|
|
|
|
target: { '@type': 'EntryPoint', urlTemplate: `${siteUrl}/tools?q={search_term_string}` },
|
|
|
|
|
'query-input': 'required name=search_term_string',
|
|
|
|
|
},
|
|
|
|
|
inLanguage: 'en-US',
|
|
|
|
|
},
|
2026-11-03 12:43:34 +05:30
|
|
|
],
|
|
|
|
|
};
|
|
|
|
|
|
2026-11-03 12:24:43 +05:30
|
|
|
return (
|
2026-11-04 17:55:18 +05:30
|
|
|
<html lang="en" className={`${poppinsFont.variable} ${interFont.variable} ${monoFont.variable} font-sans`}>
|
2026-11-03 12:43:34 +05:30
|
|
|
<head>
|
|
|
|
|
<script
|
|
|
|
|
type="application/ld+json"
|
|
|
|
|
dangerouslySetInnerHTML={{ __html: JSON.stringify(organizationJsonLd) }}
|
|
|
|
|
/>
|
|
|
|
|
</head>
|
2026-11-06 10:53:55 +05:30
|
|
|
<body className="min-h-screen flex flex-col antialiased bg-paper text-ink relative font-sans overflow-x-clip">
|
2026-11-05 11:18:35 +05:30
|
|
|
<SmoothScrollProvider>
|
2026-11-13 17:48:49 +05:30
|
|
|
<a href="#main-content" className="skip-link">Skip to main content</a>
|
|
|
|
|
<Navbar
|
|
|
|
|
config={config}
|
|
|
|
|
currentLocale="en"
|
|
|
|
|
categories={categories}
|
|
|
|
|
totalToolsCount={tools.length}
|
|
|
|
|
/>
|
|
|
|
|
<main id="main-content" className="flex-1">{children}</main>
|
|
|
|
|
<Footer config={config} currentLocale="en" />
|
2026-11-05 11:18:35 +05:30
|
|
|
</SmoothScrollProvider>
|
2026-11-03 12:24:43 +05:30
|
|
|
</body>
|
|
|
|
|
</html>
|
|
|
|
|
);
|
|
|
|
|
}
|