fix: resolve homepage and tools hero inversion, remove acne references, restore centered directory heroes across all routes
This commit is contained in:
@@ -4,12 +4,12 @@
|
|||||||
"status": "published",
|
"status": "published",
|
||||||
"category": "portrait-retouch",
|
"category": "portrait-retouch",
|
||||||
"name": {
|
"name": {
|
||||||
"en": "AI Blemish & Acne Remover",
|
"en": "AI Blemish Remover",
|
||||||
"hi": "एआई मुंहासे और दाग हटाने वाला"
|
"hi": "एआई दाग हटाने वाला"
|
||||||
},
|
},
|
||||||
"summary": {
|
"summary": {
|
||||||
"en": "Remove acne, pimples, scars, and eye defects while preserving natural skin pores.",
|
"en": "Remove blemishes, pimples, scars, and eye defects while preserving natural skin pores.",
|
||||||
"hi": "प्राकृतिक त्वचा के छिद्रों को सुरक्षित रखते हुए मुंहासे, दाग और आंखों के दोष हटाएं।"
|
"hi": "प्राकृतिक त्वचा के छिद्रों को सुरक्षित रखते हुए दाग और आंखों के दोष हटाएं।"
|
||||||
},
|
},
|
||||||
"homeApp": "portrait-app",
|
"homeApp": "portrait-app",
|
||||||
"alsoIn": [],
|
"alsoIn": [],
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
"status": "published",
|
"status": "published",
|
||||||
"seo": {
|
"seo": {
|
||||||
"title": "CRE Innovations | Advanced AI Photo Tools & Creative Studio",
|
"title": "CRE Innovations | Advanced AI Photo Tools & Creative Studio",
|
||||||
"description": "Transform photos in seconds with CRE Innovations neural vision models: acne removal, P3M background matting, 4K photo restoration, and anime avatars.",
|
"description": "Transform photos in seconds with CRE Innovations neural vision models: portrait retouching, P3M background matting, 4K photo restoration, and anime avatars.",
|
||||||
"indexable": true
|
"indexable": true
|
||||||
},
|
},
|
||||||
"sections": [
|
"sections": [
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
"status": "published",
|
"status": "published",
|
||||||
"seo": {
|
"seo": {
|
||||||
"title": "CRE Innovations | Advanced AI Photo Tools & Creative Studio",
|
"title": "CRE Innovations | Advanced AI Photo Tools & Creative Studio",
|
||||||
"description": "Transform photos in seconds with CRE Innovations neural vision models: acne removal, P3M background matting, 4K photo restoration, and anime avatars.",
|
"description": "Transform photos in seconds with CRE Innovations neural vision models: portrait retouching, P3M background matting, 4K photo restoration, and anime avatars.",
|
||||||
"indexable": true
|
"indexable": true
|
||||||
},
|
},
|
||||||
"sections": [
|
"sections": [
|
||||||
|
|||||||
@@ -4,12 +4,12 @@
|
|||||||
"status": "published",
|
"status": "published",
|
||||||
"category": "portrait-retouch",
|
"category": "portrait-retouch",
|
||||||
"name": {
|
"name": {
|
||||||
"en": "AI Blemish & Acne Remover",
|
"en": "AI Blemish Remover",
|
||||||
"hi": "\u090f\u0906\u0908 \u092e\u0941\u0902\u0939\u093e\u0938\u0947 \u0914\u0930 \u0926\u093e\u0917 \u0939\u091f\u093e\u0928\u0947 \u0935\u093e\u0932\u093e"
|
"hi": "\u090f\u0906\u0908 \u0926\u093e\u0917 \u0939\u091f\u093e\u0928\u0947 \u0935\u093e\u0932\u093e"
|
||||||
},
|
},
|
||||||
"summary": {
|
"summary": {
|
||||||
"en": "Remove acne, pimples, scars, and eye defects while preserving natural skin pores.",
|
"en": "Remove blemishes, pimples, scars, and eye defects while preserving natural skin pores.",
|
||||||
"hi": "\u092a\u094d\u0930\u093e\u0915\u0943\u0924\u093f\u0915 \u0924\u094d\u0935\u091a\u093e \u0915\u0947 \u091b\u093f\u0926\u094d\u0930\u094b\u0902 \u0915\u094b \u0938\u0941\u0930\u0915\u094d\u0937\u093f\u0924 \u0930\u0916\u0924\u0947 \u0939\u0941\u090f \u092e\u0941\u0902\u0939\u093e\u0938\u0947, \u0926\u093e\u0917 \u0914\u0930 \u0906\u0902\u0916\u094b\u0902 \u0915\u0947 \u0926\u094b\u0937 \u0939\u091f\u093e\u090f\u0902\u0964"
|
"hi": "\u092a\u094d\u0930\u093e\u0915\u0943\u0924\u093f\u0915 \u0924\u094d\u0935\u091a\u093e \u0915\u0947 \u091b\u093f\u0926\u094d\u0930\u094b\u0902 \u0915\u094b \u0938\u0941\u0930\u0915\u094d\u0937\u093f\u0924 \u0930\u0916\u0924\u0947 \u0939\u0941\u090f \u0926\u093e\u0917 \u0914\u0930 \u0906\u0902\u0916\u094b\u0902 \u0915\u0947 \u0926\u094b\u0937 \u0939\u091f\u093e\u090f\u0902\u0964"
|
||||||
},
|
},
|
||||||
"homeApp": "portrait-app",
|
"homeApp": "portrait-app",
|
||||||
"alsoIn": [],
|
"alsoIn": [],
|
||||||
@@ -61,8 +61,8 @@
|
|||||||
"hi": "\u092e\u094b\u0921 \u091a\u0941\u0928\u0947\u0902"
|
"hi": "\u092e\u094b\u0921 \u091a\u0941\u0928\u0947\u0902"
|
||||||
},
|
},
|
||||||
"desc": {
|
"desc": {
|
||||||
"en": "Pick Acne Removal, Eye Fix, or Overall Skin Smoothening.",
|
"en": "Pick Blemish Retouch, Eye Fix, or Overall Skin Smoothening.",
|
||||||
"hi": "\u092e\u0941\u0902\u0939\u093e\u0938\u0947 \u0939\u091f\u093e\u0928\u093e, \u0906\u0902\u0916\u0947\u0902 \u0938\u0941\u0927\u093e\u0930\u0928\u093e \u092f\u093e \u0924\u094d\u0935\u091a\u093e \u0938\u094d\u092e\u0942\u0925 \u0915\u0930\u0928\u093e \u091a\u0941\u0928\u0947\u0902\u0964"
|
"hi": "\u0926\u093e\u0917 \u0939\u091f\u093e\u0928\u093e, \u0906\u0902\u0916\u0947\u0902 \u0938\u0941\u0927\u093e\u0930\u0928\u093e \u092f\u093e \u0924\u094d\u0935\u091a\u093e \u0938\u094d\u092e\u0942\u0925 \u0915\u0930\u0928\u093e \u091a\u0941\u0928\u0947\u0902\u0964"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -86,7 +86,7 @@
|
|||||||
"faqs": [
|
"faqs": [
|
||||||
{
|
{
|
||||||
"q": "Does this make the skin look plastic or blurry?",
|
"q": "Does this make the skin look plastic or blurry?",
|
||||||
"a": "No! Our neural model identifies individual acne, moles, and surface flaws and reconstructs only those localized areas while keeping natural skin pores and micro-textures 100% intact."
|
"a": "No! Our neural model identifies individual blemishes, moles, and surface flaws and reconstructs only those localized areas while keeping natural skin pores and micro-textures 100% intact."
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"q": "Is my uploaded photo kept private?",
|
"q": "Is my uploaded photo kept private?",
|
||||||
@@ -104,8 +104,8 @@
|
|||||||
"face.eyebag.remove"
|
"face.eyebag.remove"
|
||||||
],
|
],
|
||||||
"seo": {
|
"seo": {
|
||||||
"title": "Remove Blemishes & Acne Free Online | CRE Innovations",
|
"title": "AI Blemish & Skin Retoucher Free Online | CRE Innovations",
|
||||||
"description": "Remove acne, pimples, and blemishes from portrait photos in seconds. Free online AI blemish remover with natural skin texture preservation."
|
"description": "Retouch blemishes, spots, and imperfections from portrait photos in seconds. Free online AI blemish remover with natural skin texture preservation."
|
||||||
},
|
},
|
||||||
"displayType": "beforeAfter",
|
"displayType": "beforeAfter",
|
||||||
"media": {
|
"media": {
|
||||||
|
|||||||
+1
-11
@@ -1,6 +1,5 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { getPageConfig, getAllTools, getAllApps, getAllCategories, getToolById, getAppById, getSiteConfig } from '@/lib/config/loader';
|
import { getPageConfig, getAllTools, getAllApps, getAllCategories, getSiteConfig } from '@/lib/config/loader';
|
||||||
import { getEndpointById } from '@/lib/catalog/loader';
|
|
||||||
import { SectionRenderer } from '@/components/sections/SectionRenderer';
|
import { SectionRenderer } from '@/components/sections/SectionRenderer';
|
||||||
import { notFound } from 'next/navigation';
|
import { notFound } from 'next/navigation';
|
||||||
|
|
||||||
@@ -16,20 +15,11 @@ export default function HomePage() {
|
|||||||
const categories = getAllCategories();
|
const categories = getAllCategories();
|
||||||
const siteUrl = (process.env.SITE_URL || getSiteConfig().seo.siteUrl || 'http://localhost:3000').replace(/\/$/, '');
|
const siteUrl = (process.env.SITE_URL || getSiteConfig().seo.siteUrl || 'http://localhost:3000').replace(/\/$/, '');
|
||||||
|
|
||||||
// Find hero tool and variants
|
|
||||||
const heroTool = getToolById('face.blemish.remove') || tools[0];
|
|
||||||
const heroApp = heroTool ? getAppById(heroTool.homeApp) : null;
|
|
||||||
const endpoint = heroTool?.tryIt?.endpointRef?.id ? getEndpointById(heroTool.tryIt.endpointRef.id) : undefined;
|
|
||||||
const variants = endpoint?.variants || [];
|
|
||||||
|
|
||||||
const context = {
|
const context = {
|
||||||
page,
|
page,
|
||||||
tools,
|
tools,
|
||||||
apps,
|
apps,
|
||||||
categories,
|
categories,
|
||||||
tool: heroTool,
|
|
||||||
homeApp: heroApp,
|
|
||||||
variants,
|
|
||||||
locale: 'en',
|
locale: 'en',
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ export function AppPickerSection({
|
|||||||
{
|
{
|
||||||
id: 'portrait',
|
id: 'portrait',
|
||||||
title: 'Portraits, Selfies & Skin Beauty',
|
title: 'Portraits, Selfies & Skin Beauty',
|
||||||
desc: 'Acne, blemish removal, teeth whitening, eye redness',
|
desc: 'Skin retouching, blemish removal, teeth whitening, eye refinement',
|
||||||
icon: Smile,
|
icon: Smile,
|
||||||
appSlug: 'portrait-app',
|
appSlug: 'portrait-app',
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -41,6 +41,7 @@ export function HeroSection({
|
|||||||
subtitle,
|
subtitle,
|
||||||
primaryCta,
|
primaryCta,
|
||||||
secondaryCta,
|
secondaryCta,
|
||||||
|
variant = 'frontpage',
|
||||||
tool,
|
tool,
|
||||||
homeApp,
|
homeApp,
|
||||||
variants = [],
|
variants = [],
|
||||||
@@ -54,8 +55,8 @@ export function HeroSection({
|
|||||||
const secondaryCtaLabel = resolveLocalised(secondaryCta?.label, locale, 'Mobile App Studio');
|
const secondaryCtaLabel = resolveLocalised(secondaryCta?.label, locale, 'Mobile App Studio');
|
||||||
const secondaryCtaHref = secondaryCta?.href || '#recommended-apps';
|
const secondaryCtaHref = secondaryCta?.href || '#recommended-apps';
|
||||||
|
|
||||||
// Dedicated Tool Detail Page Hero (when viewing a specific tool page like /tools/[slug])
|
// 1. Dedicated Tool Detail Page Hero (when viewing /tools/[slug] with variant='toolHero')
|
||||||
if (tool) {
|
if (variant === 'toolHero' && tool) {
|
||||||
const appName = homeApp ? resolveLocalised(homeApp.name, locale) : 'Mobile App';
|
const appName = homeApp ? resolveLocalised(homeApp.name, locale) : 'Mobile App';
|
||||||
const toolMedia = (tool as any).media;
|
const toolMedia = (tool as any).media;
|
||||||
const primaryExample = tool.content?.examples?.[0] || {
|
const primaryExample = tool.content?.examples?.[0] || {
|
||||||
@@ -207,8 +208,56 @@ export function HeroSection({
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 2. Centered Directory & Info Page Hero (for /tools, /apps, /pricing, /trust, /privacy, /terms)
|
||||||
|
if (variant === 'centered') {
|
||||||
|
const resolvedTitle = resolveLocalised(title, locale) || 'Creative Studio';
|
||||||
|
const resolvedSubtitle = resolveLocalised(subtitle, locale);
|
||||||
|
|
||||||
|
return (
|
||||||
|
<section className="relative overflow-hidden pt-28 pb-16 sm:pt-36 sm:pb-20 text-center bg-[#FAF8F5] border-b border-slate-900/[0.07]">
|
||||||
|
<div className="absolute top-0 left-1/2 -translate-x-1/2 w-full max-w-7xl h-96 bg-gradient-to-b from-blue-500/[0.04] to-transparent blur-3xl pointer-events-none -z-10" />
|
||||||
|
|
||||||
|
<div className="max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 space-y-6 relative z-10">
|
||||||
|
{resolvedBadge && (
|
||||||
|
<div className="inline-flex items-center gap-2 px-4 py-1.5 rounded-full bg-blue-50 border border-blue-200 text-xs font-mono font-semibold text-blue-700 shadow-sm">
|
||||||
|
<Sparkles className="w-3.5 h-3.5 text-blue-600" />
|
||||||
|
<span>{resolvedBadge}</span>
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
|
|
||||||
|
<h1 className="text-4xl sm:text-5xl lg:text-6xl font-display font-black text-slate-900 tracking-tight leading-tight">
|
||||||
|
{resolvedTitle}
|
||||||
|
</h1>
|
||||||
|
|
||||||
|
{resolvedSubtitle && (
|
||||||
|
<p className="text-base sm:text-lg text-slate-600 max-w-2xl mx-auto leading-relaxed font-sans">
|
||||||
|
{resolvedSubtitle}
|
||||||
|
</p>
|
||||||
|
)}
|
||||||
|
|
||||||
|
<div className="flex flex-wrap items-center justify-center gap-4 pt-3">
|
||||||
|
<Link
|
||||||
|
href="/#our-tools"
|
||||||
|
className="inline-flex items-center gap-2 px-6 py-3 rounded-full font-bold text-xs sm:text-sm text-white bg-slate-950 hover:bg-blue-600 shadow-sm transition-all hover:scale-105 active:scale-95"
|
||||||
|
>
|
||||||
|
<span>Explore Studio Suite</span>
|
||||||
|
<ArrowRight className="w-4 h-4" />
|
||||||
|
</Link>
|
||||||
|
<Link
|
||||||
|
href="/apps"
|
||||||
|
className="inline-flex items-center gap-2 px-6 py-3 rounded-full font-bold text-xs sm:text-sm text-slate-700 bg-white border border-slate-200 hover:bg-slate-50 transition-colors shadow-sm"
|
||||||
|
>
|
||||||
|
<Smartphone className="w-4 h-4 text-blue-600" />
|
||||||
|
<span>Mobile Apps Suite</span>
|
||||||
|
</Link>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
// -------------------------------------------------------------
|
// -------------------------------------------------------------
|
||||||
// Pure Front Page Hero View:
|
// 3. Pure Front Page Hero View (for homepage /):
|
||||||
// ONLY Animated Text, 3D WebGL Prism, Particles, Radiant Colors & Effects
|
// ONLY Animated Text, 3D WebGL Prism, Particles, Radiant Colors & Effects
|
||||||
// Zero tool names, zero tool selection, zero feature lists
|
// Zero tool names, zero tool selection, zero feature lists
|
||||||
// -------------------------------------------------------------
|
// -------------------------------------------------------------
|
||||||
|
|||||||
@@ -51,7 +51,7 @@ const flagshipBanners: FlagshipBanner[] = [
|
|||||||
latency: '< 380ms Stream',
|
latency: '< 380ms Stream',
|
||||||
title: 'Sub-Pore Skin Retouching & Blemish Removal',
|
title: 'Sub-Pore Skin Retouching & Blemish Removal',
|
||||||
tagline: 'Natural texture preservation without artificial plastic smoothing.',
|
tagline: 'Natural texture preservation without artificial plastic smoothing.',
|
||||||
description: 'Unlike standard beauty filters that smear your face into plastic, RetouchGAN operates at the dermal level—erasing acne, blemishes, and under-eye redness while reconstructing microscopic skin pore geometry.',
|
description: 'Unlike standard beauty filters that smear your face into plastic, RetouchGAN operates at the dermal level—erasing blemishes, redness, and discoloration while reconstructing microscopic skin pore geometry.',
|
||||||
toolSlug: 'blemish-remover',
|
toolSlug: 'blemish-remover',
|
||||||
appSlug: 'portrait-app',
|
appSlug: 'portrait-app',
|
||||||
appName: 'Portrait Studio AI',
|
appName: 'Portrait Studio AI',
|
||||||
@@ -59,7 +59,7 @@ const flagshipBanners: FlagshipBanner[] = [
|
|||||||
afterUrl: '/management/pages/home/media/showcase_02_portrait_after.jpg',
|
afterUrl: '/management/pages/home/media/showcase_02_portrait_after.jpg',
|
||||||
benefits: [
|
benefits: [
|
||||||
'Microscopic skin pore texture retained',
|
'Microscopic skin pore texture retained',
|
||||||
'Instant acne, scar & discoloration repair',
|
'Instant blemish, scar & discoloration repair',
|
||||||
'Authentic skin tone & micro-pore retention',
|
'Authentic skin tone & micro-pore retention',
|
||||||
],
|
],
|
||||||
align: 'right',
|
align: 'right',
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ const REVIEWS_ROW_1 = [
|
|||||||
role: 'Editorial Portrait Photographer',
|
role: 'Editorial Portrait Photographer',
|
||||||
rating: 5,
|
rating: 5,
|
||||||
avatar: 'ER',
|
avatar: 'ER',
|
||||||
body: 'The blemish remover is lightyears ahead of typical automated tools. It removes red spots and acne while keeping real pores and skin texture intact.',
|
body: 'The blemish remover is lightyears ahead of typical automated tools. It removes red spots and imperfections while keeping real pores and skin texture intact.',
|
||||||
tool: 'Blemish Remover',
|
tool: 'Blemish Remover',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -77,12 +77,11 @@ function SectionContent({ section, context }: SectionRendererProps) {
|
|||||||
|
|
||||||
switch (section.type) {
|
switch (section.type) {
|
||||||
case 'hero': {
|
case 'hero': {
|
||||||
const isHomePage = (context.page?.slug === 'home' || context.page?.id === 'home') && !context.tool;
|
|
||||||
return (
|
return (
|
||||||
<HeroSection
|
<HeroSection
|
||||||
{...resolvedProps}
|
{...resolvedProps}
|
||||||
variant={section.variant}
|
variant={section.variant}
|
||||||
tool={isHomePage ? undefined : (context.tool || undefined)}
|
tool={context.tool || undefined}
|
||||||
homeApp={context.homeApp || undefined}
|
homeApp={context.homeApp || undefined}
|
||||||
variants={context.variants}
|
variants={context.variants}
|
||||||
locale={locale}
|
locale={locale}
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ export const DEFAULT_TOOL_ITEMS: ToolMediaItem[] = [
|
|||||||
{
|
{
|
||||||
id: 'tool-blemish',
|
id: 'tool-blemish',
|
||||||
slug: 'blemish-remover',
|
slug: 'blemish-remover',
|
||||||
title: 'Blemish & Acne Remover',
|
title: 'Skin & Blemish Retoucher',
|
||||||
mediaType: 'comparison',
|
mediaType: 'comparison',
|
||||||
beforeUrl: '/management/pages/home/media/landscape_blemish_before.jpg',
|
beforeUrl: '/management/pages/home/media/landscape_blemish_before.jpg',
|
||||||
afterUrl: '/management/pages/home/media/landscape_blemish_after.jpg',
|
afterUrl: '/management/pages/home/media/landscape_blemish_after.jpg',
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ const useCases: UseCaseCard[] = [
|
|||||||
{
|
{
|
||||||
title: 'Studio Portraits & Beauty Retouching',
|
title: 'Studio Portraits & Beauty Retouching',
|
||||||
category: 'Headshots & Beauty',
|
category: 'Headshots & Beauty',
|
||||||
desc: 'Remove blemishes, acne, scars, and under-eye discoloration while safeguarding natural skin pore texture without the artificial plastic blur.',
|
desc: 'Remove blemishes, spots, scars, and under-eye discoloration while safeguarding natural skin pore texture without the artificial plastic blur.',
|
||||||
toolSlug: 'blemish-remover',
|
toolSlug: 'blemish-remover',
|
||||||
toolName: 'AI Blemish Remover',
|
toolName: 'AI Blemish Remover',
|
||||||
icon: Camera,
|
icon: Camera,
|
||||||
|
|||||||
Reference in New Issue
Block a user