feat: complete visual redesign with Outfit & Plus Jakarta Sans fonts, visual use-cases, transformation reel, and enhanced SEO
This commit is contained in:
+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" />
|
||||
|
||||
Reference in New Issue
Block a user