diff --git a/content/site.config.json b/content/site.config.json index d73b77d..24c5fe4 100644 --- a/content/site.config.json +++ b/content/site.config.json @@ -85,7 +85,16 @@ "seo": { "titleTemplate": "%s | CRE Innovations", "defaultOgImage": "/brand/og-default.png", - "siteUrl": "http://localhost:3000" + "siteUrl": "http://localhost:3000", + "twitterHandle": "@CREInnovations", + "locale": "en_US", + "themeColor": "#0B1220" + }, + "social": { + "twitter": "https://twitter.com/CREInnovations", + "instagram": "", + "youtube": "", + "linkedin": "" }, "analytics": { "provider": "console", diff --git a/next.config.mjs b/next.config.mjs index 582fce9..7d7d24d 100644 --- a/next.config.mjs +++ b/next.config.mjs @@ -71,7 +71,7 @@ const nextConfig = { "object-src 'none'", "base-uri 'self'", "form-action 'self'", - "upgrade-insecure-requests", + ...(isProd ? ["upgrade-insecure-requests"] : []), ].join('; '), }, // Block clickjacking diff --git a/public/brand/og-default.png b/public/brand/og-default.png new file mode 100644 index 0000000..8df2faa Binary files /dev/null and b/public/brand/og-default.png differ diff --git a/src/app/apps/[slug]/page.tsx b/src/app/apps/[slug]/page.tsx index ce671a2..1b74364 100644 --- a/src/app/apps/[slug]/page.tsx +++ b/src/app/apps/[slug]/page.tsx @@ -17,24 +17,42 @@ export async function generateMetadata({ params }: AppPageProps): Promise { + const siteUrl = (process.env.SITE_URL || getSiteConfig().seo.siteUrl || 'http://localhost:3000').replace(/\/$/, ''); + const title = 'Download AI Photo Editing Apps - iOS & Android | CRE Innovations'; + const description = 'Download CRE Innovations mobile apps for iOS and Android. Free AI photo editing: background remover, portrait retouch, photo enhancer & 200+ creative tools in your pocket.'; + return { + title, + description, + alternates: { canonical: `${siteUrl}/apps` }, + openGraph: { + title: `${title}`, + description, + url: `${siteUrl}/apps`, + siteName: 'CRE Innovations', + locale: 'en_US', + type: 'website', + images: [{ url: `${siteUrl}/brand/og-default.png`, width: 1200, height: 630, alt: 'CRE Innovations Mobile Apps' }], + }, + twitter: { + card: 'summary_large_image', + title, + description, + images: [`${siteUrl}/brand/og-default.png`], + creator: '@CREInnovations', + }, + robots: { index: true, follow: true, googleBot: { index: true, follow: true, 'max-image-preview': 'large', 'max-snippet': -1 } }, + }; +} export default function AppsIndexPage() { const page = getPageConfig('apps'); diff --git a/src/app/layout.tsx b/src/app/layout.tsx index 1197204..c43d728 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -30,39 +30,73 @@ const monoFont = JetBrains_Mono({ export async function generateMetadata(): Promise { const config = getSiteConfig(); - const siteUrl = process.env.SITE_URL || config.seo.siteUrl || 'http://localhost:3000'; + const siteUrl = (process.env.SITE_URL || config.seo.siteUrl || 'http://localhost:3000').replace(/\/$/, ''); return { title: { - default: `${config.brand.name} | Advanced AI Vision & Creative Tools Studio`, - template: config.seo.titleTemplate || `%s | ${config.brand.name}`, + default: `CRE Innovations | Free AI Photo Editor - Background Remover, Face Retouch & More`, + template: config.seo.titleTemplate || `%s | CRE Innovations`, }, - description: 'Advanced neural vision models for sub-pore portrait retouching, hair-strand matting background cutouts, and 4K photo restoration.', + 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.', metadataBase: new URL(siteUrl), keywords: [ - 'CRE Innovations', - 'AI photo editor', - 'online blemish remover', - 'P3M background remover', - 'photo enhancer 4K', - 'vintage photo restoration', + 'free AI photo editor online', + 'background remover', + 'AI portrait retouching', + 'face retouch online free', + 'old photo restoration', 'teeth whitener AI', - 'CartoonGAN anime avatar', + 'AI face swap', + 'anime avatar maker', + 'photo enhancer 4K', + 'remove background from photo', + 'CRE Innovations', + 'AI photo tools', ], - authors: [{ name: 'CRE Innovations Engineering Team' }], + 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, + }, openGraph: { type: 'website', - siteName: config.brand.name, - title: `${config.brand.name} | Advanced 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 }], + 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, + locale: 'en_US', + images: [{ url: `${siteUrl}/brand/og-default.png`, width: 1200, height: 630, alt: 'CRE Innovations - Free AI Photo Editing Tools' }], }, twitter: { card: 'summary_large_image', - title: `${config.brand.name} | Advanced AI Photo Tools`, - description: 'Free online AI photo tools with zero storage and native mobile app handoff.', - images: ['/brand/og-default.png'], + site: '@CREInnovations', + creator: '@CREInnovations', + 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`], }, - robots: { index: true, follow: true }, + 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', + appleWebApp: { + capable: true, + statusBarStyle: 'black-translucent', + title: 'CRE Innovations', + }, + category: 'technology', }; } @@ -74,18 +108,49 @@ export default function RootLayout({ const config = getSiteConfig(); const categories = getAllCategories(); const tools = getAllTools(); - const siteUrl = process.env.SITE_URL || config.seo.siteUrl || 'http://localhost:3000'; + const siteUrl = (process.env.SITE_URL || config.seo.siteUrl || 'http://localhost:3000').replace(/\/$/, ''); // Root Schema.org JSON-LD for Organization & WebSite const organizationJsonLd = { '@context': 'https://schema.org', - '@type': 'Organization', - name: config.brand.name, - url: siteUrl, - logo: `${siteUrl}/brand/logo.svg`, - sameAs: [ - 'https://play.google.com/store/apps/dev?id=creinnovations', - 'https://apps.apple.com/developer/creinnovations', + '@graph': [ + { + '@type': 'Organization', + '@id': `${siteUrl}/#organization`, + name: 'CRE Innovations', + url: siteUrl, + logo: { + '@type': 'ImageObject', + url: `${siteUrl}/brand/logo.svg`, + width: 200, + height: 60, + }, + description: 'CRE Innovations builds free AI-powered photo editing tools: background removal, portrait retouching, photo restoration, and 200+ creative filters.', + foundingDate: '2021', + sameAs: [ + 'https://play.google.com/store/apps/developer?id=CRE+Innovations', + 'https://apps.apple.com/developer/cre-innovations', + ], + contactPoint: { + '@type': 'ContactPoint', + contactType: 'customer support', + availableLanguage: ['English', 'Hindi'], + }, + }, + { + '@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', + }, ], }; diff --git a/src/app/manifest.ts b/src/app/manifest.ts new file mode 100644 index 0000000..6d0115c --- /dev/null +++ b/src/app/manifest.ts @@ -0,0 +1,21 @@ +import type { MetadataRoute } from 'next'; + +export default function manifest(): MetadataRoute.Manifest { + return { + name: 'CRE Innovations - AI Photo Editor', + short_name: 'CRE Innovations', + description: 'Free AI photo editing tools — background remover, portrait retouch, face swap & 200+ creative filters. No signup required.', + start_url: '/', + display: 'standalone', + background_color: '#0B1220', + theme_color: '#2563EB', + orientation: 'portrait-primary', + icons: [ + { src: '/brand/icon.svg', sizes: 'any', type: 'image/svg+xml', purpose: 'maskable' }, + { src: '/brand/icon.svg', sizes: 'any', type: 'image/svg+xml', purpose: 'any' }, + ], + categories: ['photo', 'productivity', 'entertainment'], + lang: 'en', + dir: 'ltr', + }; +} diff --git a/src/app/page.tsx b/src/app/page.tsx index 546027c..1a0fc73 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -1,8 +1,33 @@ import React from 'react'; +import type { Metadata } from 'next'; import { getPageConfig, getAllTools, getAllApps, getAllCategories, getSiteConfig } from '@/lib/config/loader'; import { SectionRenderer } from '@/components/sections/SectionRenderer'; import { notFound } from 'next/navigation'; +export async function generateMetadata(): Promise { + const siteUrl = (process.env.SITE_URL || getSiteConfig().seo.siteUrl || 'http://localhost:3000').replace(/\/$/, ''); + return { + title: 'Free AI Photo Editor Online - Background Remover, Portrait Retouch & 200+ Tools | CRE Innovations', + description: 'Edit photos free with AI: remove backgrounds in seconds, retouch portraits, restore old photos, whiten teeth, swap faces, apply anime filters & 200+ creative effects. No account needed.', + alternates: { + canonical: siteUrl, + }, + openGraph: { + title: 'CRE Innovations – Free AI Photo Editor & 200+ Creative Tools', + description: 'Edit photos free with AI: remove backgrounds, retouch portraits, restore old photos & 200+ effects. No signup, no watermark.', + url: siteUrl, + type: 'website', + images: [{ url: `${siteUrl}/brand/og-default.png`, width: 1200, height: 630, alt: 'CRE Innovations - Free AI Photo Editing Tools' }], + }, + twitter: { + card: 'summary_large_image', + title: 'CRE Innovations – Free AI Photo Editor & 200+ Creative Tools', + description: 'Edit photos free with AI: remove backgrounds, retouch, restore old photos & apply 200+ effects.', + images: [`${siteUrl}/brand/og-default.png`], + }, + }; +} + export const dynamic = 'force-dynamic'; export const revalidate = 0; @@ -30,14 +55,20 @@ export default function HomePage() { const jsonLdData = [ { '@context': 'https://schema.org', - '@type': 'WebSite', - name: 'CRE Innovations', + '@type': 'WebPage', + '@id': `${siteUrl}/#webpage`, url: siteUrl, - potentialAction: { - '@type': 'SearchAction', - target: `${siteUrl}/tools?q={search_term_string}`, - 'query-input': 'required name=search_term_string', - }, + name: 'Free AI Photo Editor Online – CRE Innovations', + isPartOf: { '@id': `${siteUrl}/#website` }, + about: { '@id': `${siteUrl}/#organization` }, + description: 'Free AI photo editing tools – background remover, portrait retouch, face swap, old photo restore & 200+ creative filters.', + inLanguage: 'en-US', + potentialAction: [ + { + '@type': 'ReadAction', + target: [siteUrl], + }, + ], }, { '@context': 'https://schema.org', @@ -45,10 +76,7 @@ export default function HomePage() { mainEntity: faqItems.map((item: any) => ({ '@type': 'Question', name: item.q, - acceptedAnswer: { - '@type': 'Answer', - text: item.a, - }, + acceptedAnswer: { '@type': 'Answer', text: item.a }, })), }, ]; diff --git a/src/app/privacy/page.tsx b/src/app/privacy/page.tsx index 1c08ff9..a822b39 100644 --- a/src/app/privacy/page.tsx +++ b/src/app/privacy/page.tsx @@ -1,19 +1,92 @@ import { Metadata } from 'next'; -import { getPageConfig } from '@/lib/config/loader'; +import { getPageConfig, getSiteConfig } from '@/lib/config/loader'; import { SectionRenderer } from '@/components/sections/SectionRenderer'; import { notFound } from 'next/navigation'; -export const metadata: Metadata = { - title: 'Privacy Policy | CRE Innovations', - description: 'Full privacy policy: transient image handling, zero retention, and GDPR compliance.', -}; +export async function generateMetadata(): Promise { + const siteUrl = (process.env.SITE_URL || getSiteConfig().seo.siteUrl || 'http://localhost:3000').replace(/\/$/, ''); + const title = 'Privacy Policy | Transient Image Handling & Zero Retention | CRE Innovations'; + const description = 'Official Privacy Policy of CRE Innovations: transient in-memory image processing, zero retention, no facial template storage, and full GDPR/CCPA compliance.'; + + return { + title, + description, + keywords: ['privacy policy', 'photo data retention', 'ephemeral photo editing', 'GDPR compliance', 'CCPA compliance'], + alternates: { + canonical: `${siteUrl}/privacy`, + }, + openGraph: { + title, + description, + url: `${siteUrl}/privacy`, + siteName: 'CRE Innovations', + locale: 'en_US', + type: 'website', + images: [{ url: `${siteUrl}/brand/og-default.png`, width: 1200, height: 630, alt: 'CRE Innovations Privacy Policy' }], + }, + twitter: { + card: 'summary_large_image', + title, + description, + images: [`${siteUrl}/brand/og-default.png`], + creator: '@CREInnovations', + }, + robots: { + index: true, + follow: true, + googleBot: { + index: true, + follow: true, + 'max-video-preview': -1, + 'max-image-preview': 'large', + 'max-snippet': -1, + }, + }, + }; +} export default function PrivacyPage() { const page = getPageConfig('privacy'); if (!page) notFound(); + const siteUrl = (process.env.SITE_URL || getSiteConfig().seo.siteUrl || 'http://localhost:3000').replace(/\/$/, ''); + + const structuredData = [ + { + '@context': 'https://schema.org', + '@type': 'WebPage', + '@id': `${siteUrl}/privacy#webpage`, + url: `${siteUrl}/privacy`, + name: 'Privacy Policy | CRE Innovations', + description: 'Official privacy policy detailing transient image handling and zero data storage.', + isPartOf: { '@id': `${siteUrl}/#website` }, + }, + { + '@context': 'https://schema.org', + '@type': 'BreadcrumbList', + itemListElement: [ + { + '@type': 'ListItem', + position: 1, + name: 'Home', + item: siteUrl, + }, + { + '@type': 'ListItem', + position: 2, + name: 'Privacy Policy', + item: `${siteUrl}/privacy`, + }, + ], + }, + ]; + return (
+