From 3390175f0d243e058835b118a071e55004a017ef Mon Sep 17 00:00:00 2001 From: vshnosngh Date: Thu, 5 Nov 2026 11:01:09 +0530 Subject: [PATCH] fix: resolve homepage and tools hero inversion, remove acne references, restore centered directory heroes across all routes --- .../collections/tools/blemish-remover.json | 8 +-- content/pages/home.json | 2 +- management/pages/home/page.config.json | 2 +- .../tools/blemish-remover/tool.config.json | 18 +++--- src/app/page.tsx | 12 +--- src/components/sections/AppPickerSection.tsx | 2 +- src/components/sections/HeroSection.tsx | 55 ++++++++++++++++++- .../sections/MajorToolBannersSection.tsx | 4 +- .../sections/ReviewsMarqueeSection.tsx | 2 +- src/components/sections/SectionRenderer.tsx | 3 +- .../sections/ShiftableToolsGridSection.tsx | 2 +- .../sections/VisualUseCasesSection.tsx | 2 +- 12 files changed, 75 insertions(+), 37 deletions(-) diff --git a/content/collections/tools/blemish-remover.json b/content/collections/tools/blemish-remover.json index 4db5c02..935a34d 100644 --- a/content/collections/tools/blemish-remover.json +++ b/content/collections/tools/blemish-remover.json @@ -4,12 +4,12 @@ "status": "published", "category": "portrait-retouch", "name": { - "en": "AI Blemish & Acne Remover", - "hi": "एआई मुंहासे और दाग हटाने वाला" + "en": "AI Blemish Remover", + "hi": "एआई दाग हटाने वाला" }, "summary": { - "en": "Remove acne, pimples, scars, and eye defects while preserving natural skin pores.", - "hi": "प्राकृतिक त्वचा के छिद्रों को सुरक्षित रखते हुए मुंहासे, दाग और आंखों के दोष हटाएं।" + "en": "Remove blemishes, pimples, scars, and eye defects while preserving natural skin pores.", + "hi": "प्राकृतिक त्वचा के छिद्रों को सुरक्षित रखते हुए दाग और आंखों के दोष हटाएं।" }, "homeApp": "portrait-app", "alsoIn": [], diff --git a/content/pages/home.json b/content/pages/home.json index d94434f..72f66fe 100644 --- a/content/pages/home.json +++ b/content/pages/home.json @@ -4,7 +4,7 @@ "status": "published", "seo": { "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 }, "sections": [ diff --git a/management/pages/home/page.config.json b/management/pages/home/page.config.json index d94434f..72f66fe 100644 --- a/management/pages/home/page.config.json +++ b/management/pages/home/page.config.json @@ -4,7 +4,7 @@ "status": "published", "seo": { "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 }, "sections": [ diff --git a/management/pages/tools/blemish-remover/tool.config.json b/management/pages/tools/blemish-remover/tool.config.json index 06113c2..48ab75e 100644 --- a/management/pages/tools/blemish-remover/tool.config.json +++ b/management/pages/tools/blemish-remover/tool.config.json @@ -4,12 +4,12 @@ "status": "published", "category": "portrait-retouch", "name": { - "en": "AI Blemish & Acne 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" + "en": "AI Blemish Remover", + "hi": "\u090f\u0906\u0908 \u0926\u093e\u0917 \u0939\u091f\u093e\u0928\u0947 \u0935\u093e\u0932\u093e" }, "summary": { - "en": "Remove acne, 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" + "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 \u0926\u093e\u0917 \u0914\u0930 \u0906\u0902\u0916\u094b\u0902 \u0915\u0947 \u0926\u094b\u0937 \u0939\u091f\u093e\u090f\u0902\u0964" }, "homeApp": "portrait-app", "alsoIn": [], @@ -61,8 +61,8 @@ "hi": "\u092e\u094b\u0921 \u091a\u0941\u0928\u0947\u0902" }, "desc": { - "en": "Pick Acne Removal, 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" + "en": "Pick Blemish Retouch, Eye Fix, or Overall Skin Smoothening.", + "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": [ { "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?", @@ -104,8 +104,8 @@ "face.eyebag.remove" ], "seo": { - "title": "Remove Blemishes & Acne 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." + "title": "AI Blemish & Skin Retoucher Free Online | CRE Innovations", + "description": "Retouch blemishes, spots, and imperfections from portrait photos in seconds. Free online AI blemish remover with natural skin texture preservation." }, "displayType": "beforeAfter", "media": { diff --git a/src/app/page.tsx b/src/app/page.tsx index 73074cf..546027c 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -1,6 +1,5 @@ import React from 'react'; -import { getPageConfig, getAllTools, getAllApps, getAllCategories, getToolById, getAppById, getSiteConfig } from '@/lib/config/loader'; -import { getEndpointById } from '@/lib/catalog/loader'; +import { getPageConfig, getAllTools, getAllApps, getAllCategories, getSiteConfig } from '@/lib/config/loader'; import { SectionRenderer } from '@/components/sections/SectionRenderer'; import { notFound } from 'next/navigation'; @@ -16,20 +15,11 @@ export default function HomePage() { const categories = getAllCategories(); 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 = { page, tools, apps, categories, - tool: heroTool, - homeApp: heroApp, - variants, locale: 'en', }; diff --git a/src/components/sections/AppPickerSection.tsx b/src/components/sections/AppPickerSection.tsx index e52f7e7..93a883c 100644 --- a/src/components/sections/AppPickerSection.tsx +++ b/src/components/sections/AppPickerSection.tsx @@ -24,7 +24,7 @@ export function AppPickerSection({ { id: 'portrait', title: 'Portraits, Selfies & Skin Beauty', - desc: 'Acne, blemish removal, teeth whitening, eye redness', + desc: 'Skin retouching, blemish removal, teeth whitening, eye refinement', icon: Smile, appSlug: 'portrait-app', }, diff --git a/src/components/sections/HeroSection.tsx b/src/components/sections/HeroSection.tsx index 369473e..955edb8 100644 --- a/src/components/sections/HeroSection.tsx +++ b/src/components/sections/HeroSection.tsx @@ -41,6 +41,7 @@ export function HeroSection({ subtitle, primaryCta, secondaryCta, + variant = 'frontpage', tool, homeApp, variants = [], @@ -54,8 +55,8 @@ export function HeroSection({ const secondaryCtaLabel = resolveLocalised(secondaryCta?.label, locale, 'Mobile App Studio'); const secondaryCtaHref = secondaryCta?.href || '#recommended-apps'; - // Dedicated Tool Detail Page Hero (when viewing a specific tool page like /tools/[slug]) - if (tool) { + // 1. Dedicated Tool Detail Page Hero (when viewing /tools/[slug] with variant='toolHero') + if (variant === 'toolHero' && tool) { const appName = homeApp ? resolveLocalised(homeApp.name, locale) : 'Mobile App'; const toolMedia = (tool as any).media; 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 ( +
+
+ +
+ {resolvedBadge && ( +
+ + {resolvedBadge} +
+ )} + +

+ {resolvedTitle} +

+ + {resolvedSubtitle && ( +

+ {resolvedSubtitle} +

+ )} + +
+ + Explore Studio Suite + + + + + Mobile Apps Suite + +
+
+
+ ); + } + // ------------------------------------------------------------- - // Pure Front Page Hero View: + // 3. Pure Front Page Hero View (for homepage /): // ONLY Animated Text, 3D WebGL Prism, Particles, Radiant Colors & Effects // Zero tool names, zero tool selection, zero feature lists // ------------------------------------------------------------- diff --git a/src/components/sections/MajorToolBannersSection.tsx b/src/components/sections/MajorToolBannersSection.tsx index bbcfe16..cae80f6 100644 --- a/src/components/sections/MajorToolBannersSection.tsx +++ b/src/components/sections/MajorToolBannersSection.tsx @@ -51,7 +51,7 @@ const flagshipBanners: FlagshipBanner[] = [ latency: '< 380ms Stream', title: 'Sub-Pore Skin Retouching & Blemish Removal', 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', appSlug: 'portrait-app', appName: 'Portrait Studio AI', @@ -59,7 +59,7 @@ const flagshipBanners: FlagshipBanner[] = [ afterUrl: '/management/pages/home/media/showcase_02_portrait_after.jpg', benefits: [ 'Microscopic skin pore texture retained', - 'Instant acne, scar & discoloration repair', + 'Instant blemish, scar & discoloration repair', 'Authentic skin tone & micro-pore retention', ], align: 'right', diff --git a/src/components/sections/ReviewsMarqueeSection.tsx b/src/components/sections/ReviewsMarqueeSection.tsx index bd7350f..731313a 100644 --- a/src/components/sections/ReviewsMarqueeSection.tsx +++ b/src/components/sections/ReviewsMarqueeSection.tsx @@ -18,7 +18,7 @@ const REVIEWS_ROW_1 = [ role: 'Editorial Portrait Photographer', rating: 5, 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', }, { diff --git a/src/components/sections/SectionRenderer.tsx b/src/components/sections/SectionRenderer.tsx index 0d89da0..5c710bd 100644 --- a/src/components/sections/SectionRenderer.tsx +++ b/src/components/sections/SectionRenderer.tsx @@ -77,12 +77,11 @@ function SectionContent({ section, context }: SectionRendererProps) { switch (section.type) { case 'hero': { - const isHomePage = (context.page?.slug === 'home' || context.page?.id === 'home') && !context.tool; return (