1 Commits
Author SHA1 Message Date
vaishnosingh d5941bc53c feat(ui): align dropdown menus, hero headline, brand logo, and directory pages with Figma design
- Redesign Navbar dropdowns to 4-column clean text layout matching Figma design
- Add dedicated /ai-image-generate page and divide tools into AI Tools and AI Image Generate
- Update BrandLogo and favicons with official icon_website.svg vector
- Scale hero headline typography to match Figma proportions
- Update FAQ section styling (#F3F5FE) and 5-column dark footer
- Remove header from studio reviews marquee to match Figma
- Add scroll navigation buttons to both ends of horizontal trendy carousel
2026-11-18 18:58:56 +05:30
24 changed files with 1059 additions and 537 deletions
+30
View File
@@ -0,0 +1,30 @@
{
"id": "ai-image-generate-index",
"route": "/ai-image-generate",
"status": "published",
"seo": {
"title": "AI Image Generate | Free Text to Image & Creative Effects | CRE Innovations",
"description": "Create stunning images with generative AI: text to image, 3D caricatures, cartoon GAN, style transfer, and outpainting. 100% free with no watermarks.",
"indexable": true
},
"sections": [
{
"id": "ai-image-generate-grid",
"type": "toolGrid",
"props": {
"title": {
"en": "AI Image Generate Studio",
"hi": "एआई इमेज जनरेट स्टूडियो"
},
"subtitle": {
"en": "Generate breathtaking art, 3D caricatures, cartoon avatars, and stylized visuals with advanced generative neural models.",
"hi": "उन्नत जनरेटिव मॉडल के साथ कला, 3D कैरिकेचर और कार्टून अवतार बनाएं।"
},
"source": "all",
"showCategoryFilter": true,
"showSearch": true,
"columns": 2
}
}
]
}
+24 -9
View File
@@ -18,12 +18,12 @@
"props": {
"badge": "Photographic tools",
"title": {
"en": "Photographic tools, built with precision.",
"hi": "नेक्स्ट-जेन न्यूरल एआई के साथ फोटो बदलें"
"en": "Imagine Transform Create Impossible",
"hi": "इमेजिन ट्रांसफॉर्म क्रिएट इम्पॉसिबल"
},
"subtitle": {
"en": "Retouch portraits, extract cutouts, and restore archival prints directly in your browser.",
"hi": "बिना साइन-अप के स्टूडियो-ग्रेड फोटो टूल्स मुफ़्त में आज़माएं। हमारे मोबाइल ऐप्स में 4K एक्सपोर्ट प्राप्त करें।"
"en": "Turn ordinary moments into extraordinary visual art. Instant and private photo transformation right in your browser with hardware acceleration.",
"hi": "साधारण पलों को असाधारण दृश्य कला में बदलें। हार्डवेयर त्वरण के साथ अपने ब्राउज़र में तुरंत और निजी फोटो परिवर्तन।"
},
"primaryCta": {
"label": "Explore our tools",
@@ -42,8 +42,8 @@
"tierLabel": "Tier 2: Interactive Tools Grid",
"folderPath": "management/pages/home/sections/our-tools",
"props": {
"badge": "Tool catalogue",
"title": "Our tools",
"badge": "Popular tools",
"title": "Most Popular AI tools",
"subtitle": "Test any tool directly in your browser with your own photos.",
"items": [
{
@@ -120,7 +120,7 @@
"folderPath": "management/pages/home/sections/trendy-bento",
"props": {
"badge": "Model capabilities",
"title": "Trendy features",
"title": "Trendy Effects",
"subtitle": "Computer vision models engineered for professional photographers and studios."
}
},
@@ -132,10 +132,25 @@
"folderPath": "management/pages/home/sections/recommended-apps",
"props": {
"badge": "Native clients",
"title": "Mobile studio applications",
"title": "Mobile studio",
"subtitle": "Dedicated iOS and Android clients for hardware-accelerated offline batch processing."
}
},
{
"id": "community-stats",
"type": "stats",
"tier": "social-proof",
"tierLabel": "Tier 3: Platform Metrics",
"props": {
"title": "Join 10M+ Users and Unleash Your Creativity",
"items": [
{ "value": "150+", "label": "Applications" },
{ "value": "10 Million +", "label": "Users" },
{ "value": "5 Million +", "label": "Reviews" },
{ "value": "180+", "label": "Countries" }
]
}
},
{
"id": "community-reviews",
"type": "reviewsMarquee",
@@ -144,7 +159,7 @@
"folderPath": "management/pages/home/sections/community-reviews",
"props": {
"badge": "Community feedback",
"title": "Photographer & studio notes",
"title": "Photographer",
"subtitle": "Feedback from portrait photographers, archivists, and studio retouchers."
}
},
+4
View File
@@ -16,6 +16,10 @@
"en": "AI Photo & Vision Tools Studio",
"hi": "एआई फोटो और विज़न टूल्स स्टूडियो"
},
"subtitle": {
"en": "Explore professional AI photo retouching, background cutout, restoration, and studio tools with hardware acceleration.",
"hi": "हार्डवेयर त्वरण के साथ पेशेवर एआई फोटो रीटचिंग, बैकग्राउंड कटआउट और स्टूडियो टूल्स।"
},
"source": "all",
"showCategoryFilter": true,
"showSearch": true,
+8 -2
View File
@@ -38,8 +38,14 @@
"href": "/"
},
{
"label": { "en": "Tools", "hi": "टूल्स" },
"href": "/tools"
"label": { "en": "AI Tools", "hi": "एआई टूल्स" },
"href": "/tools",
"hasDropdown": true
},
{
"label": { "en": "AI Image Generate", "hi": "एआई इमेज जनरेट" },
"href": "/ai-image-generate",
"hasDropdown": true
},
{
"label": { "en": "Apps", "hi": "ऐप्स" },
+5
View File
@@ -0,0 +1,5 @@
<svg width="71" height="71" viewBox="0 0 71 71" fill="none" xmlns="http://www.w3.org/2000/svg">
<circle cx="35.5" cy="35.5" r="35.5" fill="#9A70EE"/>
<path d="M33.4992 22.3346C30.8958 22.3348 28.3508 23.1071 26.1861 24.5535C24.0212 26.0001 22.3329 28.056 21.3365 30.4615C20.3402 32.8669 20.0801 35.5141 20.5878 38.0677C21.0958 40.6215 22.3499 42.9689 24.191 44.8101C26.0321 46.651 28.3777 47.9054 30.9311 48.4134C33.4847 48.9214 36.1316 48.6589 38.537 47.6626C40.9426 46.6662 43.0004 44.98 44.4469 42.815C45.8935 40.6499 46.6658 38.1033 46.6658 35.4995H59C59 40.543 57.5044 45.4747 54.7025 49.6682C51.9006 53.8614 47.9182 57.1303 43.2591 59.0604C38.5999 60.9903 33.4724 61.4934 28.5262 60.5096C23.5797 59.5257 19.0346 57.0972 15.4684 53.5309C11.9026 49.9647 9.4737 45.421 8.48986 40.4748C7.50605 35.5283 8.01123 30.4009 9.94119 25.7414C11.8712 21.0819 15.1398 17.0997 19.333 14.2977C23.5262 11.4958 28.4561 10.0001 33.4992 10V22.3346Z" fill="white"/>
<path d="M61 24C61 28.4183 57.4183 32 53 32C48.5817 32 45 28.4183 45 24C45 19.5817 48.5817 16 53 16C57.4183 16 61 19.5817 61 24Z" fill="white"/>
</svg>

After

Width:  |  Height:  |  Size: 1.1 KiB

+24 -9
View File
@@ -18,12 +18,12 @@
"props": {
"badge": "Photographic tools",
"title": {
"en": "Photographic tools, built with precision.",
"hi": "नेक्स्ट-जेन न्यूरल एआई के साथ फोटो बदलें"
"en": "Imagine Transform Create Impossible",
"hi": "इमेजिन ट्रांसफॉर्म क्रिएट इम्पॉसिबल"
},
"subtitle": {
"en": "Retouch portraits, extract cutouts, and restore archival prints directly in your browser.",
"hi": "बिना साइन-अप के स्टूडियो-ग्रेड फोटो टूल्स मुफ़्त में आज़माएं। हमारे मोबाइल ऐप्स में 4K एक्सपोर्ट प्राप्त करें।"
"en": "Turn ordinary moments into extraordinary visual art. Instant and private photo transformation right in your browser with hardware acceleration.",
"hi": "साधारण पलों को असाधारण दृश्य कला में बदलें। हार्डवेयर त्वरण के साथ अपने ब्राउज़र में तुरंत और निजी फोटो परिवर्तन।"
},
"primaryCta": {
"label": "Explore our tools",
@@ -42,8 +42,8 @@
"tierLabel": "Tier 2: Interactive Tools Grid",
"folderPath": "management/pages/home/sections/our-tools",
"props": {
"badge": "Tool catalogue",
"title": "Our tools",
"badge": "Popular tools",
"title": "Most Popular AI tools",
"subtitle": "Test any tool directly in your browser with your own photos.",
"items": [
{
@@ -120,7 +120,7 @@
"folderPath": "management/pages/home/sections/trendy-bento",
"props": {
"badge": "Model capabilities",
"title": "Trendy features",
"title": "Trendy Effects",
"subtitle": "Computer vision models engineered for professional photographers and studios."
}
},
@@ -132,10 +132,25 @@
"folderPath": "management/pages/home/sections/recommended-apps",
"props": {
"badge": "Native clients",
"title": "Mobile studio applications",
"title": "Mobile studio",
"subtitle": "Dedicated iOS and Android clients for hardware-accelerated offline batch processing."
}
},
{
"id": "community-stats",
"type": "stats",
"tier": "social-proof",
"tierLabel": "Tier 3: Platform Metrics",
"props": {
"title": "Join 10M+ Users and Unleash Your Creativity",
"items": [
{ "value": "150+", "label": "Applications" },
{ "value": "10 Million +", "label": "Users" },
{ "value": "5 Million +", "label": "Reviews" },
{ "value": "180+", "label": "Countries" }
]
}
},
{
"id": "community-reviews",
"type": "reviewsMarquee",
@@ -144,7 +159,7 @@
"folderPath": "management/pages/home/sections/community-reviews",
"props": {
"badge": "Community feedback",
"title": "Photographer & studio notes",
"title": "Photographer",
"subtitle": "Feedback from portrait photographers, archivists, and studio retouchers.",
"_reviewsSource": "content/features/reviews.json"
}
+4 -64
View File
@@ -1,65 +1,5 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" fill="none">
<defs>
<linearGradient id="cre-bright-cyan" x1="0%" y1="0%" x2="100%" y2="100%">
<stop offset="0%" stop-color="#00F5FF" />
<stop offset="100%" stop-color="#2563EB" />
</linearGradient>
<linearGradient id="cre-bright-purple" x1="0%" y1="0%" x2="100%" y2="100%">
<stop offset="0%" stop-color="#A855F7" />
<stop offset="100%" stop-color="#EC4899" />
</linearGradient>
<linearGradient id="cre-bright-gold" x1="0%" y1="0%" x2="100%" y2="100%">
<stop offset="0%" stop-color="#F59E0B" />
<stop offset="100%" stop-color="#FACC15" />
</linearGradient>
<linearGradient id="cre-bright-teal" x1="0%" y1="0%" x2="100%" y2="100%">
<stop offset="0%" stop-color="#10B981" />
<stop offset="100%" stop-color="#06B6D4" />
</linearGradient>
<radialGradient id="cre-star-bloom" cx="50%" cy="50%" r="50%">
<stop offset="0%" stop-color="#FFFFFF" />
<stop offset="35%" stop-color="#38BDF8" stop-opacity="0.95" />
<stop offset="70%" stop-color="#818CF8" stop-opacity="0.4" />
<stop offset="100%" stop-color="#0284C7" stop-opacity="0" />
</radialGradient>
<radialGradient id="cre-bg-cosmic" cx="50%" cy="50%" r="50%">
<stop offset="0%" stop-color="#1E293B" />
<stop offset="60%" stop-color="#0F172A" />
<stop offset="100%" stop-color="#020617" />
</radialGradient>
</defs>
<!-- Cosmic Background Disc -->
<circle cx="50" cy="50" r="48" fill="url(#cre-bg-cosmic)" />
<!-- Outer Orbiting Energy Ring -->
<circle cx="50" cy="50" r="41" stroke="rgba(56, 189, 248, 0.45)" stroke-width="1.5" stroke-dasharray="4 6" />
<circle cx="50" cy="9" r="3" fill="#00F5FF" />
<circle cx="91" cy="50" r="2.5" fill="#EC4899" />
<circle cx="15" cy="70" r="2.5" fill="#FACC15" />
<!-- Inner Counter-Orbiting Track -->
<circle cx="50" cy="50" r="33" stroke="rgba(168, 85, 247, 0.35)" stroke-width="1" stroke-dasharray="2 4" />
<!-- Faceted Quantum Crystal Prism -->
<polygon points="50,16 62,38 50,50 38,38" fill="url(#cre-bright-cyan)" opacity="0.95" />
<polygon points="84,50 62,62 50,50 62,38" fill="url(#cre-bright-purple)" opacity="0.95" />
<polygon points="50,84 38,62 50,50 62,62" fill="url(#cre-bright-gold)" opacity="0.95" />
<polygon points="16,50 38,38 50,50 38,62" fill="url(#cre-bright-teal)" opacity="0.95" />
<polygon points="50,50 62,38 72,28 62,28" fill="#38BDF8" opacity="0.8" />
<polygon points="50,50 62,62 72,72 72,62" fill="#EC4899" opacity="0.8" />
<polygon points="50,50 38,62 28,72 38,72" fill="#FACC15" opacity="0.8" />
<polygon points="50,50 38,38 28,28 28,38" fill="#10B981" opacity="0.8" />
<line x1="50" y1="16" x2="50" y2="84" stroke="#FFFFFF" stroke-width="1.2" opacity="0.85" />
<line x1="16" y1="50" x2="84" y2="50" stroke="#FFFFFF" stroke-width="1.2" opacity="0.85" />
<line x1="26" y1="26" x2="74" y2="74" stroke="#FFFFFF" stroke-width="0.8" opacity="0.6" />
<line x1="74" y1="26" x2="26" y2="74" stroke="#FFFFFF" stroke-width="0.8" opacity="0.6" />
<!-- Radiant Core Bloom -->
<circle cx="50" cy="50" r="14" fill="url(#cre-star-bloom)" />
<circle cx="50" cy="50" r="5" fill="#FFFFFF" />
<polygon points="50,42 52,50 50,58 48,50" fill="#FFFFFF" />
<polygon points="42,50 50,52 58,50 50,48" fill="#FFFFFF" />
<svg width="71" height="71" viewBox="0 0 71 71" fill="none" xmlns="http://www.w3.org/2000/svg">
<circle cx="35.5" cy="35.5" r="35.5" fill="#9A70EE"/>
<path d="M33.4992 22.3346C30.8958 22.3348 28.3508 23.1071 26.1861 24.5535C24.0212 26.0001 22.3329 28.056 21.3365 30.4615C20.3402 32.8669 20.0801 35.5141 20.5878 38.0677C21.0958 40.6215 22.3499 42.9689 24.191 44.8101C26.0321 46.651 28.3777 47.9054 30.9311 48.4134C33.4847 48.9214 36.1316 48.6589 38.537 47.6626C40.9426 46.6662 43.0004 44.98 44.4469 42.815C45.8935 40.6499 46.6658 38.1033 46.6658 35.4995H59C59 40.543 57.5044 45.4747 54.7025 49.6682C51.9006 53.8614 47.9182 57.1303 43.2591 59.0604C38.5999 60.9903 33.4724 61.4934 28.5262 60.5096C23.5797 59.5257 19.0346 57.0972 15.4684 53.5309C11.9026 49.9647 9.4737 45.421 8.48986 40.4748C7.50605 35.5283 8.01123 30.4009 9.94119 25.7414C11.8712 21.0819 15.1398 17.0997 19.333 14.2977C23.5262 11.4958 28.4561 10.0001 33.4992 10V22.3346Z" fill="white"/>
<path d="M61 24C61 28.4183 57.4183 32 53 32C48.5817 32 45 28.4183 45 24C45 19.5817 48.5817 16 53 16C57.4183 16 61 19.5817 61 24Z" fill="white"/>
</svg>

Before

Width:  |  Height:  |  Size: 3.3 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

+4 -54
View File
@@ -1,55 +1,5 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 80" fill="none">
<defs>
<linearGradient id="cre-cyan-blue-full" x1="0%" y1="0%" x2="100%" y2="100%">
<stop offset="0%" stop-color="#00F0FF" />
<stop offset="100%" stop-color="#3B82F6" />
</linearGradient>
<linearGradient id="cre-purple-pink-full" x1="0%" y1="0%" x2="100%" y2="100%">
<stop offset="0%" stop-color="#7928CA" />
<stop offset="100%" stop-color="#FF0080" />
</linearGradient>
<linearGradient id="cre-emerald-teal-full" x1="0%" y1="0%" x2="100%" y2="100%">
<stop offset="0%" stop-color="#10B981" />
<stop offset="100%" stop-color="#00F0FF" />
</linearGradient>
<linearGradient id="text-gradient" x1="0%" y1="0%" x2="100%" y2="0%">
<stop offset="0%" stop-color="#FFFFFF" />
<stop offset="70%" stop-color="#FFFFFF" />
<stop offset="100%" stop-color="#00F0FF" />
</linearGradient>
<radialGradient id="core-glow-full" cx="50%" cy="50%" r="50%">
<stop offset="0%" stop-color="#FFFFFF" />
<stop offset="40%" stop-color="#00F0FF" stop-opacity="0.8" />
<stop offset="100%" stop-color="#00F0FF" stop-opacity="0" />
</radialGradient>
</defs>
<!-- Left Icon Emblem Group -->
<g transform="translate(10, 10) scale(0.6)">
<circle cx="50" cy="50" r="44" stroke="rgba(255, 255, 255, 0.15)" stroke-width="1.5" stroke-dasharray="4 6" />
<path d="M 50 14 C 68 14, 82 26, 84 44 C 74 38, 62 38, 50 44 C 42 34, 46 22, 50 14 Z" fill="url(#cre-cyan-blue-full)" opacity="0.95" />
<path d="M 84 56 C 80 74, 66 84, 50 86 C 54 74, 50 62, 40 54 C 52 48, 66 48, 84 56 Z" fill="url(#cre-purple-pink-full)" opacity="0.95" />
<path d="M 38 82 C 22 76, 14 62, 16 44 C 26 50, 38 48, 48 42 C 46 56, 44 70, 38 82 Z" fill="url(#cre-emerald-teal-full)" opacity="0.95" />
<path d="M 50 20 L 76 68 L 24 68 Z" stroke="rgba(255, 255, 255, 0.4)" stroke-width="1.5" fill="none" />
<circle cx="50" cy="52" r="12" fill="url(#core-glow-full)" />
<circle cx="50" cy="52" r="4.5" fill="#FFFFFF" />
<circle cx="50" cy="20" r="2.5" fill="#00F0FF" />
<circle cx="76" cy="68" r="2.5" fill="#FF0080" />
<circle cx="24" cy="68" r="2.5" fill="#10B981" />
</g>
<!-- Typographic Wordmark -->
<!-- "CRE" Brand Mark -->
<text x="82" y="38" font-family="system-ui, -apple-system, sans-serif" font-weight="900" font-size="24" letter-spacing="3" fill="url(#text-gradient)">
CRE
</text>
<!-- "INNOVATIONS" Tag -->
<text x="144" y="38" font-family="system-ui, -apple-system, sans-serif" font-weight="600" font-size="20" letter-spacing="4" fill="#E2E8F0">
INNOVATIONS
</text>
<!-- Sub-label: "NEURAL VISION STUDIO" -->
<text x="83" y="55" font-family="monospace, system-ui" font-weight="500" font-size="8.5" letter-spacing="3.2" fill="#00F0FF" opacity="0.9">
NEURAL VISION STUDIO
</text>
<svg width="71" height="71" viewBox="0 0 71 71" fill="none" xmlns="http://www.w3.org/2000/svg">
<circle cx="35.5" cy="35.5" r="35.5" fill="#9A70EE"/>
<path d="M33.4992 22.3346C30.8958 22.3348 28.3508 23.1071 26.1861 24.5535C24.0212 26.0001 22.3329 28.056 21.3365 30.4615C20.3402 32.8669 20.0801 35.5141 20.5878 38.0677C21.0958 40.6215 22.3499 42.9689 24.191 44.8101C26.0321 46.651 28.3777 47.9054 30.9311 48.4134C33.4847 48.9214 36.1316 48.6589 38.537 47.6626C40.9426 46.6662 43.0004 44.98 44.4469 42.815C45.8935 40.6499 46.6658 38.1033 46.6658 35.4995H59C59 40.543 57.5044 45.4747 54.7025 49.6682C51.9006 53.8614 47.9182 57.1303 43.2591 59.0604C38.5999 60.9903 33.4724 61.4934 28.5262 60.5096C23.5797 59.5257 19.0346 57.0972 15.4684 53.5309C11.9026 49.9647 9.4737 45.421 8.48986 40.4748C7.50605 35.5283 8.01123 30.4009 9.94119 25.7414C11.8712 21.0819 15.1398 17.0997 19.333 14.2977C23.5262 11.4958 28.4561 10.0001 33.4992 10V22.3346Z" fill="white"/>
<path d="M61 24C61 28.4183 57.4183 32 53 32C48.5817 32 45 28.4183 45 24C45 19.5817 48.5817 16 53 16C57.4183 16 61 19.5817 61 24Z" fill="white"/>
</svg>

Before

Width:  |  Height:  |  Size: 2.8 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

+142
View File
@@ -0,0 +1,142 @@
import { Metadata } from 'next';
import { getPageConfig, getAllTools, getAllApps, getAllCategories, getSiteConfig } from '@/lib/config/loader';
import { SectionRenderer } from '@/components/sections/SectionRenderer';
import { notFound } from 'next/navigation';
import { resolveLocalised } from '@/types';
export const dynamic = 'force-dynamic';
export const revalidate = 0;
export async function generateMetadata(): Promise<Metadata> {
const siteConfig = getSiteConfig();
const siteUrl = (process.env.SITE_URL || siteConfig.seo.siteUrl || 'http://localhost:3000').replace(/\/$/, '');
const title = 'AI Image Generate - Text to Image, 3D Caricatures & Art Studio';
const description = 'Generate creative AI artwork, 3D caricatures, cartoon avatars, and generative effects. 100% free with browser hardware acceleration.';
return {
title,
description,
keywords: [
'ai image generate',
'text to image free',
'3d caricature maker',
'ai cartoon avatar',
'ai face swap online',
'art style transfer',
'image outpainting',
'comic generator',
'CRE Innovations art'
],
alternates: {
canonical: `${siteUrl}/ai-image-generate`,
},
openGraph: {
title: `${title} | CRE Innovations`,
description,
url: `${siteUrl}/ai-image-generate`,
siteName: 'CRE Innovations',
locale: 'en_US',
type: 'website',
images: [
{
url: `${siteUrl}/brand/og-default.png`,
width: 1200,
height: 630,
alt: 'CRE Innovations - AI Image Generate Studio',
},
],
},
twitter: {
card: 'summary_large_image',
title: `${title} | CRE Innovations`,
description,
images: [`${siteUrl}/brand/og-default.png`],
creator: '@CREInnovations',
site: '@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 AiImageGeneratePage() {
const page = getPageConfig('ai-image-generate');
if (!page) notFound();
const allTools = getAllTools();
const tools = allTools.filter((t) => t.category === 'creative-art');
const apps = getAllApps();
const categories = getAllCategories().filter((c) => c.id === 'creative-art');
const siteConfig = getSiteConfig();
const siteUrl = (process.env.SITE_URL || siteConfig.seo.siteUrl || 'http://localhost:3000').replace(/\/$/, '');
const context = {
page,
tools,
apps,
categories,
locale: 'en',
};
// Structured Data (JSON-LD) for CollectionPage & ItemList
const structuredData = [
{
'@context': 'https://schema.org',
'@type': 'CollectionPage',
name: 'AI Image Generate & Creative Studio',
description: 'Comprehensive directory of 40+ generative AI tools, caricatures, and artistic filters.',
url: `${siteUrl}/ai-image-generate`,
mainEntity: {
'@type': 'ItemList',
numberOfItems: tools.length,
itemListElement: tools.map((tool, idx) => ({
'@type': 'ListItem',
position: idx + 1,
name: resolveLocalised(tool.name, 'en'),
url: `${siteUrl}/tools/${tool.slug}`,
description: tool.seo?.description || resolveLocalised(tool.summary, 'en'),
})),
},
},
{
'@context': 'https://schema.org',
'@type': 'BreadcrumbList',
itemListElement: [
{
'@type': 'ListItem',
position: 1,
name: 'Home',
item: siteUrl,
},
{
'@type': 'ListItem',
position: 2,
name: 'AI Image Generate',
item: `${siteUrl}/ai-image-generate`,
},
],
},
];
return (
<div>
<script
type="application/ld+json"
dangerouslySetInnerHTML={{ __html: JSON.stringify(structuredData) }}
/>
{page.sections.map((section) => (
<SectionRenderer key={section.id} section={section} context={context} />
))}
</div>
);
}
+2 -3
View File
@@ -4,8 +4,7 @@
/* Hallmark · pre-emit critique: P5 H5 E5 S5 R5 V5 · elegant porcelain cream light studio with sapphire and indigo accents, smooth rounded pill geometry */
@import url("./tokens.css");
@import url("./base.css");
@import url("https://fonts.cdnfonts.com/css/sf-pro-display");
@import url("https://fonts.googleapis.com/css2?family=Geist:wght@300;400;500;600;700;800;900&family=Geist+Mono:wght@400;500&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Geist:wght@300;400;500;600;700;800;900&family=Geist+Mono:wght@400;500&display=swap");
@tailwind base;
@tailwind components;
@@ -53,7 +52,7 @@
--color-surface-card: var(--color-paper-hi);
--theme-radius: 24px;
--theme-max-width: 1440px;
--font-sf: "SF Pro Display", "SF Pro Text", "SF Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
--font-sf: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
--font-sans: var(--font-sf);
--font-body: var(--font-sf);
--font-serif: var(--font-sf);
+4 -64
View File
@@ -1,65 +1,5 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" fill="none">
<defs>
<linearGradient id="cre-bright-cyan" x1="0%" y1="0%" x2="100%" y2="100%">
<stop offset="0%" stop-color="#00F5FF" />
<stop offset="100%" stop-color="#2563EB" />
</linearGradient>
<linearGradient id="cre-bright-purple" x1="0%" y1="0%" x2="100%" y2="100%">
<stop offset="0%" stop-color="#A855F7" />
<stop offset="100%" stop-color="#EC4899" />
</linearGradient>
<linearGradient id="cre-bright-gold" x1="0%" y1="0%" x2="100%" y2="100%">
<stop offset="0%" stop-color="#F59E0B" />
<stop offset="100%" stop-color="#FACC15" />
</linearGradient>
<linearGradient id="cre-bright-teal" x1="0%" y1="0%" x2="100%" y2="100%">
<stop offset="0%" stop-color="#10B981" />
<stop offset="100%" stop-color="#06B6D4" />
</linearGradient>
<radialGradient id="cre-star-bloom" cx="50%" cy="50%" r="50%">
<stop offset="0%" stop-color="#FFFFFF" />
<stop offset="35%" stop-color="#38BDF8" stop-opacity="0.95" />
<stop offset="70%" stop-color="#818CF8" stop-opacity="0.4" />
<stop offset="100%" stop-color="#0284C7" stop-opacity="0" />
</radialGradient>
<radialGradient id="cre-bg-cosmic" cx="50%" cy="50%" r="50%">
<stop offset="0%" stop-color="#1E293B" />
<stop offset="60%" stop-color="#0F172A" />
<stop offset="100%" stop-color="#020617" />
</radialGradient>
</defs>
<!-- Cosmic Background Disc -->
<circle cx="50" cy="50" r="48" fill="url(#cre-bg-cosmic)" />
<!-- Outer Orbiting Energy Ring -->
<circle cx="50" cy="50" r="41" stroke="rgba(56, 189, 248, 0.45)" stroke-width="1.5" stroke-dasharray="4 6" />
<circle cx="50" cy="9" r="3" fill="#00F5FF" />
<circle cx="91" cy="50" r="2.5" fill="#EC4899" />
<circle cx="15" cy="70" r="2.5" fill="#FACC15" />
<!-- Inner Counter-Orbiting Track -->
<circle cx="50" cy="50" r="33" stroke="rgba(168, 85, 247, 0.35)" stroke-width="1" stroke-dasharray="2 4" />
<!-- Faceted Quantum Crystal Prism -->
<polygon points="50,16 62,38 50,50 38,38" fill="url(#cre-bright-cyan)" opacity="0.95" />
<polygon points="84,50 62,62 50,50 62,38" fill="url(#cre-bright-purple)" opacity="0.95" />
<polygon points="50,84 38,62 50,50 62,62" fill="url(#cre-bright-gold)" opacity="0.95" />
<polygon points="16,50 38,38 50,50 38,62" fill="url(#cre-bright-teal)" opacity="0.95" />
<polygon points="50,50 62,38 72,28 62,28" fill="#38BDF8" opacity="0.8" />
<polygon points="50,50 62,62 72,72 72,62" fill="#EC4899" opacity="0.8" />
<polygon points="50,50 38,62 28,72 38,72" fill="#FACC15" opacity="0.8" />
<polygon points="50,50 38,38 28,28 28,38" fill="#10B981" opacity="0.8" />
<line x1="50" y1="16" x2="50" y2="84" stroke="#FFFFFF" stroke-width="1.2" opacity="0.85" />
<line x1="16" y1="50" x2="84" y2="50" stroke="#FFFFFF" stroke-width="1.2" opacity="0.85" />
<line x1="26" y1="26" x2="74" y2="74" stroke="#FFFFFF" stroke-width="0.8" opacity="0.6" />
<line x1="74" y1="26" x2="26" y2="74" stroke="#FFFFFF" stroke-width="0.8" opacity="0.6" />
<!-- Radiant Core Bloom -->
<circle cx="50" cy="50" r="14" fill="url(#cre-star-bloom)" />
<circle cx="50" cy="50" r="5" fill="#FFFFFF" />
<polygon points="50,42 52,50 50,58 48,50" fill="#FFFFFF" />
<polygon points="42,50 50,52 58,50 50,48" fill="#FFFFFF" />
<svg width="71" height="71" viewBox="0 0 71 71" fill="none" xmlns="http://www.w3.org/2000/svg">
<circle cx="35.5" cy="35.5" r="35.5" fill="#9A70EE"/>
<path d="M33.4992 22.3346C30.8958 22.3348 28.3508 23.1071 26.1861 24.5535C24.0212 26.0001 22.3329 28.056 21.3365 30.4615C20.3402 32.8669 20.0801 35.5141 20.5878 38.0677C21.0958 40.6215 22.3499 42.9689 24.191 44.8101C26.0321 46.651 28.3777 47.9054 30.9311 48.4134C33.4847 48.9214 36.1316 48.6589 38.537 47.6626C40.9426 46.6662 43.0004 44.98 44.4469 42.815C45.8935 40.6499 46.6658 38.1033 46.6658 35.4995H59C59 40.543 57.5044 45.4747 54.7025 49.6682C51.9006 53.8614 47.9182 57.1303 43.2591 59.0604C38.5999 60.9903 33.4724 61.4934 28.5262 60.5096C23.5797 59.5257 19.0346 57.0972 15.4684 53.5309C11.9026 49.9647 9.4737 45.421 8.48986 40.4748C7.50605 35.5283 8.01123 30.4009 9.94119 25.7414C11.8712 21.0819 15.1398 17.0997 19.333 14.2977C23.5262 11.4958 28.4561 10.0001 33.4992 10V22.3346Z" fill="white"/>
<path d="M61 24C61 28.4183 57.4183 32 53 32C48.5817 32 45 28.4183 45 24C45 19.5817 48.5817 16 53 16C57.4183 16 61 19.5817 61 24Z" fill="white"/>
</svg>

Before

Width:  |  Height:  |  Size: 3.3 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

+1
View File
@@ -199,6 +199,7 @@ export default function RootLayout({
config={config}
currentLocale="en"
categories={categories}
tools={tools}
totalToolsCount={tools.length}
/>
<main id="main-content" className="flex-1">{children}</main>
+5 -4
View File
@@ -11,8 +11,8 @@ export async function generateMetadata(): Promise<Metadata> {
const siteConfig = getSiteConfig();
const siteUrl = (process.env.SITE_URL || siteConfig.seo.siteUrl || 'http://localhost:3000').replace(/\/$/, '');
const title = 'All AI Photo Tools & Creative Studio - 80+ Free Online Tools';
const description = 'Explore 80+ free online AI photo editing tools: blemish remover, background cutout, 4K photo enhancer, vintage photo restorer, and anime avatars. No signup, no watermarks.';
const title = 'AI Photo Tools Studio - Retouching, Cutout & Restoration Suite';
const description = 'Explore free online AI photo editing and retouching tools: blemish remover, background cutout, 4K photo enhancer, vintage photo restorer, and teeth whitener. No signup, no watermarks.';
return {
title,
@@ -74,9 +74,10 @@ export default function ToolsIndexPage() {
const page = getPageConfig('tools');
if (!page) notFound();
const tools = getAllTools();
const allTools = getAllTools();
const tools = allTools.filter((t) => t.category !== 'creative-art');
const apps = getAllApps();
const categories = getAllCategories();
const categories = getAllCategories().filter((c) => c.id !== 'creative-art');
const siteConfig = getSiteConfig();
const siteUrl = (process.env.SITE_URL || siteConfig.seo.siteUrl || 'http://localhost:3000').replace(/\/$/, '');
+50 -43
View File
@@ -25,7 +25,7 @@ export function FaqSection({
const defaultItems = [
{
q: 'Do you store or retain uploaded user photos?',
a: 'Never. CRE Innovations enforces a strict zero-retention policy. All photo inferences occur synchronously in volatile GPU memory and the enhanced image is streamed straight back to your browser session. No images are saved on disk or remote servers.',
a: 'Never. CRE Innovations enforces a strict Zero-Retention Policy. All photo inferences occur synchronously in volatile GPU memory and the enhanced image is streamed straight back to your browser session. No images are saved on disk or remote servers.',
},
{
q: 'Can I try all tools free on the web without an account?',
@@ -44,51 +44,58 @@ export function FaqSection({
const displayItems = items && items.length > 0 ? items : defaultItems;
return (
<section id="faq" className="py-8 sm:py-12 bg-paper relative">
<div className="max-w-3xl mx-auto px-4 sm:px-6 lg:px-8 space-y-6">
{/* Section Header without thin separator */}
<div className="space-y-1.5 pb-1">
<h2 className="text-3xl sm:text-4xl font-display font-bold text-ink tracking-tight">
<KineticText>{resolvedTitle}</KineticText>
</h2>
<p className="text-sm sm:text-base text-ink-2 font-body text-pretty">
Technical details regarding zero-storage privacy, format limits, and mobile client handoff.
</p>
</div>
<section id="faq" className="py-14 sm:py-18 lg:py-24 bg-[#F3F5FE] relative overflow-hidden">
<div className="max-w-container mx-auto px-4 sm:px-6 lg:px-8 relative z-10">
<div className="grid grid-cols-1 lg:grid-cols-12 gap-8 lg:gap-14 items-start">
{/* Rounded Accordion Cards (NO SHARP EDGES) */}
<div className="space-y-3.5">
{displayItems.map((item, idx) => {
const isOpen = openIndex === idx;
return (
<div
key={idx}
className={`rounded-2xl bg-paper-hi border shadow-xs transition-[border-color,box-shadow] duration-200 overflow-hidden ${
isOpen ? 'border-accent shadow-glow' : 'border-rule hover:border-accent/50'
}`}
>
<button
type="button"
onClick={() => setOpenIndex(isOpen ? null : idx)}
className="w-full text-left p-5 flex items-center justify-between gap-4 font-body font-bold text-base text-ink hover:text-accent transition-colors focus-visible:ring-2 focus-visible:ring-accent active:bg-paper-2"
aria-expanded={isOpen}
{/* Left Column: Heading & Subtitle (Left Aligned matching Figma) */}
<div className="lg:col-span-5 space-y-3.5 text-left lg:sticky lg:top-28">
<h2 className="text-3xl sm:text-4xl lg:text-5xl font-display font-bold text-slate-900 tracking-tight leading-[1.12]">
<span className="block">Frequently</span>
<span className="bg-gradient-to-r from-[#EF4444] via-[#F59E0B] via-[#10B981] to-[#3B82F6] bg-clip-text text-transparent block">
{resolvedTitle.toLowerCase().includes('frequently') ? resolvedTitle.replace(/frequently/i, '').trim() : 'asked questions'}
</span>
</h2>
<p className="text-sm sm:text-base text-slate-600 font-body text-pretty leading-relaxed max-w-md">
Technical details regarding zero-storage privacy, format limits, and mobile client handoff.
</p>
</div>
{/* Right Column: Rounded White Accordion Cards matching Figma */}
<div className="lg:col-span-7 space-y-3.5">
{displayItems.map((item, idx) => {
const isOpen = openIndex === idx;
return (
<div
key={idx}
className={`rounded-2xl bg-white border transition-[border-color,box-shadow] duration-200 overflow-hidden ${
isOpen ? 'border-[#3B82F6] shadow-md ring-1 ring-[#3B82F6]/20' : 'border-slate-200/90 shadow-xs hover:border-slate-300'
}`}
>
<span>{item.q}</span>
<div className={`w-8 h-8 rounded-full bg-paper-2 flex items-center justify-center shrink-0 transition-transform duration-200 ${
isOpen ? 'rotate-180 bg-accent text-white' : 'text-muted'
}`}>
<ChevronDown className="w-4 h-4" aria-hidden="true" />
</div>
</button>
<button
type="button"
onClick={() => setOpenIndex(isOpen ? null : idx)}
className="w-full text-left p-5 flex items-center justify-between gap-4 font-body font-semibold text-base text-slate-900 hover:text-blue-600 transition-colors focus-visible:ring-2 focus-visible:ring-blue-500 active:bg-slate-50"
aria-expanded={isOpen}
>
<span>{item.q}</span>
<div className={`w-8 h-8 rounded-full flex items-center justify-center shrink-0 transition-transform duration-200 ${
isOpen ? 'rotate-180 bg-blue-600 text-white' : 'bg-slate-100 text-slate-500'
}`}>
<ChevronDown className="w-4 h-4" aria-hidden="true" />
</div>
</button>
{isOpen && (
<div className="px-5 pb-5 pt-1 text-sm text-slate-600 leading-relaxed font-body border-t border-slate-100">
{item.a}
</div>
)}
</div>
);
})}
</div>
{isOpen && (
<div className="px-5 pb-5 pt-1 text-sm text-ink-2 leading-relaxed font-body border-t border-rule/60">
{item.a}
</div>
)}
</div>
);
})}
</div>
</div>
</section>
+77 -41
View File
@@ -196,10 +196,12 @@ export function HeroSection({
);
}
// 2. Centered Directory Hero (for /tools, /apps, /pricing, /trust)
if (variant === 'centered') {
const resolvedTitle = resolveLocalised(title, locale) || 'Creative studio';
// 2. Centered Directory Hero (for /tools, /apps, /pricing, /trust, and app detail pages)
if (variant === 'centered' || variant === 'appHero') {
const isAppHero = variant === 'appHero';
const resolvedTitle = resolveLocalised(title, locale) || (isAppHero ? 'Mobile Studio App' : 'Creative studio');
const resolvedSubtitle = resolveLocalised(subtitle, locale);
const resolvedBadge = resolveLocalised(badge, locale);
const isTrustOrPrivacy =
resolvedTitle.toLowerCase().includes('trust') ||
@@ -226,11 +228,11 @@ export function HeroSection({
<div className="inline-flex items-center gap-2 px-4 py-1.5 rounded-full bg-paper-hi border border-rule text-xs font-body text-ink shadow-xs">
<span className="w-2 h-2 rounded-full bg-accent animate-pulse" />
<span className="font-semibold text-accent">
{isTrustOrPrivacy ? 'Security & Biometric Architecture' : 'Studio Neural Directory'}
{resolvedBadge || (isTrustOrPrivacy ? 'Security & Biometric Architecture' : isAppHero ? 'Official Mobile App' : 'Studio Neural Directory')}
</span>
<span className="w-1 h-1 rounded-full bg-muted/40" />
<span className="text-muted">
{isTrustOrPrivacy ? 'Zero photo retention' : 'Direct browser trials'}
{isTrustOrPrivacy ? 'Zero photo retention' : isAppHero ? 'iOS & Android Suite' : 'Direct browser trials'}
</span>
</div>
</BlurFade>
@@ -275,6 +277,21 @@ export function HeroSection({
<span>Zero AI model training</span>
</span>
</>
) : isAppHero ? (
<>
<span className="inline-flex items-center gap-1.5 px-3 py-1 rounded-full bg-paper-hi/90 border border-rule shadow-2xs">
<Smartphone className="w-3.5 h-3.5 text-accent" />
<span>Hardware Accelerated GPU</span>
</span>
<span className="inline-flex items-center gap-1.5 px-3 py-1 rounded-full bg-paper-hi/90 border border-rule shadow-2xs">
<ShieldCheck className="w-3.5 h-3.5 text-emerald-600" />
<span>Offline batch processing</span>
</span>
<span className="inline-flex items-center gap-1.5 px-3 py-1 rounded-full bg-paper-hi/90 border border-rule shadow-2xs">
<Zap className="w-3.5 h-3.5 text-amber-500" />
<span>4K Lossless Export</span>
</span>
</>
) : (
<>
<span className="inline-flex items-center gap-1.5 px-3 py-1 rounded-full bg-paper-hi/90 border border-rule shadow-2xs">
@@ -304,6 +321,17 @@ export function HeroSection({
</RainbowButton>
<InteractiveHoverButton text="View Privacy Policy" href="/privacy" />
</>
) : isAppHero ? (
<>
<Link
href="#app-handoff-main"
className="inline-flex items-center justify-center gap-2 px-7 py-3 rounded-full bg-slate-950 hover:bg-slate-800 text-white font-body font-semibold text-sm shadow-md transition-all active:scale-95"
>
<Smartphone className="w-4 h-4" aria-hidden="true" />
<span>Get Mobile App</span>
</Link>
<InteractiveHoverButton text="View App Tools" href="#app-tools-grid" />
</>
) : (
<>
<RainbowButton href="#tools-catalog">
@@ -348,74 +376,82 @@ export function HeroSection({
</picture>
{/* Dynamic Studio Gradient Feathering (Light Theme Porcelain Scrims) */}
{/* Left Side Scrim for Desktop: Ensures 100% typography contrast while keeping the photography vibrant */}
<div className="absolute inset-0 bg-gradient-to-r from-paper via-paper/85 via-35% to-transparent to-60% hidden sm:block pointer-events-none" />
{/* Central Radial Scrim to ensure pristine readability of centered headline while keeping side photography vibrant */}
<div className="absolute inset-0 [background:radial-gradient(ellipse_70%_60%_at_50%_45%,color-mix(in_oklab,var(--color-paper)_90%,transparent)_0%,color-mix(in_oklab,var(--color-paper)_50%,transparent)_60%,transparent_100%)] pointer-events-none" />
{/* Mobile Scrim: Prevents background portrait from obscuring text on phones */}
<div className="absolute inset-0 bg-paper/75 backdrop-blur-[2px] sm:backdrop-blur-none sm:hidden pointer-events-none" />
{/* Ultra-Deep Soft Bottom Fade: Seamlessly dissolves into pure white/porcelain theme */}
<div className="absolute inset-x-0 bottom-0 h-48 sm:h-72 md:h-96 lg:h-[450px] bg-gradient-to-t from-paper from-15% via-paper/95 via-40% via-paper/60 via-70% to-transparent to-100% pointer-events-none" />
<div className="absolute inset-x-0 bottom-0 h-24 sm:h-36 bg-gradient-to-t from-paper to-paper/90 pointer-events-none" />
</div>
{/* Background Layer 2: Magic UI Atmospheric Light Rays */}
<LightRays className="opacity-45" />
<LightRays className="opacity-35" />
{/* Background Layer 3: Fine Dot Matrix Pattern */}
<div
className="pointer-events-none absolute inset-0 opacity-20 studio-proof-grid z-0"
className="pointer-events-none absolute inset-0 opacity-15 studio-proof-grid z-0"
aria-hidden="true"
/>
{/* Content Container (Website Introduction, Visual Hierarchy, Kinetic Motion) */}
<div className="relative z-10 max-w-[1720px] w-full mx-auto px-4 sm:px-8 lg:px-14 flex flex-col justify-center min-h-[75vh] sm:min-h-[80vh]">
<div className="max-w-2xl sm:max-w-3xl lg:max-w-4xl space-y-4 sm:space-y-6 text-center sm:text-left mx-auto sm:mx-0">
{/* Content Container (Centered Headline & Visual Hierarchy matching Figma) */}
<div className="relative z-10 max-w-[1720px] w-full mx-auto px-4 sm:px-8 lg:px-14 flex flex-col items-center justify-center min-h-[70vh] sm:min-h-[75vh]">
<div className="max-w-4xl lg:max-w-5xl xl:max-w-6xl space-y-5 sm:space-y-7 text-center mx-auto">
{/* Masterpiece 3-Line Headline:
Line 1: Imagine -> Magic UI TextAnimate on first, AnimatedShinyText on hover
Line 2: Transform -> Magic UI TextAnimate on first, AnimatedShinyText on hover
Line 3: Create Impossible -> Bold bluish-purple accent */}
<div className="space-y-0.5 sm:space-y-1">
{/* Centered 2-Line Headline matching Figma:
Line 1: Imagine Transform (Large prominent bold dark text ~80px-92px)
Line 2: Create Impossible (Identical large font size in gradient ~80px-92px) */}
<div className="space-y-1.5 sm:space-y-2">
<h1 className="sr-only">Imagine Transform Create Impossible</h1>
{/* Line 1 - Imagine */}
<div className="text-3xl sm:text-5xl md:text-6xl lg:text-7xl font-display font-black font-[950] tracking-tight leading-[1.2] sm:leading-[1.15] pb-1.5 sm:pb-2 block overflow-visible [text-shadow:_0_0.5px_0_currentColor]">
<HeroHeadlineItem text="Imagine" delay={0.08} />
{/* Line 1 - Imagine Transform */}
<div className="text-4xl sm:text-6xl md:text-7xl lg:text-[80px] xl:text-[92px] font-display font-extrabold text-ink tracking-tight leading-[1.03] block overflow-visible">
<AnimatedShinyText
shimmerWidth={340}
hoverOnly={true}
className="font-display font-extrabold text-ink tracking-tight inline-block cursor-pointer select-none"
>
<span>Imagine Transform</span>
</AnimatedShinyText>
</div>
{/* Line 2 - Transform */}
<div className="text-3xl sm:text-5xl md:text-6xl lg:text-7xl font-display font-black font-[950] tracking-tight leading-[1.2] sm:leading-[1.15] pb-1.5 sm:pb-2 block overflow-visible [text-shadow:_0_0.5px_0_currentColor]">
<HeroHeadlineItem text="Transform" delay={0.28} />
</div>
{/* Line 3 - Create Impossible */}
<div className="text-3xl sm:text-5xl md:text-6xl lg:text-7xl font-display font-black font-[950] tracking-tight bg-gradient-to-r from-blue-600 via-indigo-600 to-purple-600 bg-clip-text text-transparent leading-[1.2] sm:leading-[1.15] pt-0.5 block overflow-visible [text-shadow:_0_0.5px_0_rgba(37,99,235,0.2)]">
{/* Line 2 - Create Impossible (Identical font size to Line 1 matching Figma) */}
<div className="text-4xl sm:text-6xl md:text-7xl lg:text-[80px] xl:text-[92px] font-display font-extrabold tracking-tight bg-gradient-to-r from-[#2563EB] via-[#4F46E5] to-[#7C3AED] bg-clip-text text-transparent leading-[1.03] block overflow-visible">
Create Impossible
</div>
</div>
{/* Subtitle - reduced by 1 */}
{/* Subtitle - Centered matching Figma */}
<BlurFade delay={0.16}>
<div className="space-y-3 max-w-xl mx-auto sm:mx-0">
<p className="text-sm sm:text-lg md:text-xl text-ink-2 font-body font-normal leading-relaxed text-pretty">
<div className="max-w-2xl mx-auto px-2">
<p className="text-base sm:text-lg md:text-xl text-ink-2 font-body font-normal leading-relaxed text-pretty">
Turn ordinary moments into extraordinary visual art. Instant and private photo transformation right in your browser with hardware acceleration.
</p>
</div>
</BlurFade>
{/* Action Buttons: Redesigned with RainbowButton & InteractiveHoverButton */}
{/* Centered Action Buttons matching Figma:
Button 1: Black Pill with subtle rainbow border "Explore our tools ->"
Button 2: Clean White Pill "• Mobile studio apps" */}
<BlurFade delay={0.24}>
<div className="flex flex-col sm:flex-row items-center sm:items-start justify-center sm:justify-start gap-4 pt-1">
<RainbowButton
<div className="flex flex-col sm:flex-row items-center justify-center gap-3.5 pt-2">
<Link
href={primaryCtaHref}
className="w-full max-w-[280px] sm:max-w-none sm:w-auto"
className="group relative p-[1px] rounded-full bg-gradient-to-r from-blue-500 via-indigo-500 to-purple-500 hover:from-blue-600 hover:to-purple-600 shadow-md active:scale-95 transition-all inline-flex w-full sm:w-auto"
>
<span>{primaryCtaLabel}</span>
<ArrowRight className="w-4 h-4 ml-1.5 inline shrink-0" aria-hidden="true" />
</RainbowButton>
<span className="inline-flex items-center justify-center gap-2 px-7 py-3 rounded-full bg-slate-950 hover:bg-slate-900 text-white font-body font-semibold text-sm transition-colors w-full sm:w-auto">
<span>{primaryCtaLabel}</span>
<ArrowRight className="w-4 h-4 group-hover:translate-x-0.5 transition-transform" aria-hidden="true" />
</span>
</Link>
<InteractiveHoverButton
text={secondaryCtaLabel}
<Link
href={secondaryCtaHref}
className="w-full max-w-[280px] sm:max-w-none sm:w-auto min-h-[50px]"
/>
className="inline-flex items-center justify-center gap-2 px-6 py-3 rounded-full bg-paper-hi hover:bg-paper-2 text-ink border border-rule/80 font-body font-semibold text-sm shadow-xs transition-all active:scale-95 w-full sm:w-auto"
>
<span className="w-2 h-2 rounded-full bg-blue-600 inline-block shrink-0" aria-hidden="true" />
<span>{secondaryCtaLabel}</span>
</Link>
</div>
</BlurFade>
@@ -156,7 +156,23 @@ export function RecommendedAppsSection({
</span>
</div>
<h2 className="text-3xl sm:text-4xl font-display font-bold text-ink tracking-tight">
<KineticText>{title}</KineticText>
{title.toLowerCase().includes('studio') ? (
<>
{title.replace(/studio/i, '').trim()}{' '}
<span className="bg-gradient-to-r from-blue-600 via-indigo-600 to-purple-600 bg-clip-text text-transparent">
studio
</span>
</>
) : title.toLowerCase().includes('applications') ? (
<>
{title.replace(/applications/i, '').trim()}{' '}
<span className="bg-gradient-to-r from-blue-600 via-indigo-600 to-purple-600 bg-clip-text text-transparent">
applications
</span>
</>
) : (
<KineticText>{title}</KineticText>
)}
</h2>
<p className="text-sm sm:text-base text-ink-2 font-body text-pretty">
{subtitle}
@@ -184,20 +200,30 @@ export function RecommendedAppsSection({
/>
<div className="space-y-4 relative z-10">
{/* Top Bar: Squircle App Icon & Category */}
{/* Top Bar: Squircle App Icon, Get App Button & Category matching Figma */}
<div className="flex items-center justify-between border-b border-rule pb-4">
{/* Vibrant Squircle App Icon with 3D bevel & glowing drop shadow */}
<div className="relative">
<div className={`w-14 h-14 rounded-2xl ${theme.iconGradient} shadow-lg ${theme.iconShadow} flex items-center justify-center text-white ring-1 ring-black/10 group-hover:scale-105 motion-safe:transition-transform duration-200`}>
<AppIcon className="w-7 h-7 drop-shadow-sm" aria-hidden="true" />
</div>
<div className="absolute -bottom-1 -right-1 w-5 h-5 rounded-full bg-paper-hi border border-rule flex items-center justify-center text-ink shadow-xs">
<Smartphone className="w-3 h-3 text-ink-2" aria-hidden="true" />
<div className="flex items-center gap-3">
{/* Squircle App Icon */}
<div className="relative">
<div className={`w-12 h-12 sm:w-14 sm:h-14 rounded-2xl ${theme.iconGradient} shadow-lg ${theme.iconShadow} flex items-center justify-center text-white ring-1 ring-black/10 group-hover:scale-105 motion-safe:transition-transform duration-200`}>
<AppIcon className="w-6 h-6 sm:w-7 sm:h-7 drop-shadow-sm" aria-hidden="true" />
</div>
<div className="absolute -bottom-1 -right-1 w-5 h-5 rounded-full bg-paper-hi border border-rule flex items-center justify-center text-ink shadow-xs">
<Smartphone className="w-3 h-3 text-ink-2" aria-hidden="true" />
</div>
</div>
{/* Get App Button */}
<Link
href={`/apps/${slug}`}
className="inline-flex items-center justify-center px-3.5 py-1.5 rounded-full bg-blue-600 hover:bg-blue-700 text-white font-body font-semibold text-xs shadow-xs transition-all active:scale-95"
>
Get App
</Link>
</div>
<div className="text-right">
<span className={`text-[11px] font-semibold font-body px-2.5 py-1 rounded-full border ${theme.categoryPill}`}>
<span className={`text-[10px] sm:text-[11px] font-semibold font-body px-2.5 py-0.5 rounded-full border ${theme.categoryPill}`}>
{app.category || 'Mobile suite'}
</span>
<div className="flex items-center justify-end gap-1 mt-1 text-xs text-muted font-body">
@@ -240,13 +266,13 @@ export function RecommendedAppsSection({
)}
</div>
{/* Bottom CTA Button */}
<div className="pt-5 mt-4 border-t border-rule relative z-10">
{/* Bottom CTA Button: Learn More Button taking to dedicated app page in apps tab */}
<div className="pt-4 mt-4 border-t border-rule relative z-10">
<Link
href={`/apps/${slug}`}
className="group/btn flex items-center justify-center gap-2 w-full py-2.5 px-4 rounded-pill bg-paper-2 hover:bg-ink hover:text-paper-hi text-ink font-body font-semibold text-xs border border-rule hover:border-ink shadow-xs motion-safe:transition-[background-color,border-color,color] duration-150"
className="group/btn flex items-center justify-center gap-2 w-full py-2.5 px-4 rounded-full bg-paper-2 hover:bg-slate-950 hover:text-white text-ink font-body font-semibold text-xs sm:text-sm border border-rule/80 hover:border-slate-950 shadow-xs motion-safe:transition-[background-color,border-color,color] duration-150"
>
<span>View app & QR code</span>
<span>Learn More</span>
<ArrowRight className="w-3.5 h-3.5 group-hover/btn:translate-x-1 motion-safe:transition-transform duration-150" aria-hidden="true" />
</Link>
</div>
@@ -3,7 +3,6 @@
import React from 'react';
import { Star, CheckCircle2 } from 'lucide-react';
import { Marquee } from '@/components/magicui/marquee';
import { KineticText } from '@/components/magicui/kinetic-text';
interface ReviewsMarqueeSectionProps {
title?: string;
@@ -137,7 +136,7 @@ export function ReviewsMarqueeSection({
return (
<section
id="user-reviews"
className="py-8 sm:py-12 bg-paper relative overflow-hidden"
className="py-10 sm:py-14 bg-paper relative overflow-hidden"
>
{/* Studio Lighting Ambient Glow */}
<div
@@ -149,42 +148,25 @@ export function ReviewsMarqueeSection({
aria-hidden="true"
/>
<div className="max-w-container mx-auto px-4 sm:px-6 md:px-8 lg:px-10 space-y-6 relative z-10">
{/* Section Header without thin separator */}
<div className="max-w-2xl space-y-1.5 pb-1">
<div className="flex items-center gap-2">
<span className="w-2 h-2 rounded-full bg-accent animate-pulse" aria-hidden="true" />
<span className="text-xs font-semibold text-accent font-body">
Verified studio reviews
</span>
</div>
<h2 className="text-3xl sm:text-4xl font-display font-bold text-ink tracking-tight">
<KineticText>{title}</KineticText>
</h2>
<p className="text-sm sm:text-base text-ink-2 font-body text-pretty">
{subtitle}
</p>
</div>
{/* Single Marquee Row of Feedbacks with Localized Edge Fades matching Figma */}
<div className="relative overflow-hidden w-full z-10">
{/* Subtle Local Edge Fades strictly confined to the moving review cards */}
<div
className="pointer-events-none absolute inset-y-0 left-0 w-12 sm:w-24 bg-gradient-to-r from-paper to-transparent z-10"
aria-hidden="true"
/>
<div
className="pointer-events-none absolute inset-y-0 right-0 w-12 sm:w-24 bg-gradient-to-l from-paper to-transparent z-10"
aria-hidden="true"
/>
{/* Single Marquee Row of Feedbacks with Localized Edge Fades */}
<div className="relative overflow-hidden w-full">
{/* Subtle Local Edge Fades strictly confined to the moving review cards */}
<div
className="pointer-events-none absolute inset-y-0 left-0 w-10 sm:w-20 bg-gradient-to-r from-paper to-transparent z-10"
aria-hidden="true"
/>
<div
className="pointer-events-none absolute inset-y-0 right-0 w-10 sm:w-20 bg-gradient-to-l from-paper to-transparent z-10"
aria-hidden="true"
/>
<Marquee pauseOnHover repeat={2} className="[--duration:38s]">
{displayReviews.map((rev, i) => (
<div
key={i}
className="w-[320px] sm:w-[380px] p-5 sm:p-6 mx-3 rounded-3xl bg-paper-hi border border-rule shadow-sheet hover:border-blue-700 hover:shadow-glow hover:-translate-y-0.5 motion-safe:transition-[border-color,box-shadow,transform] duration-200 flex flex-col justify-between"
>
<div>
<Marquee pauseOnHover repeat={2} className="[--duration:38s]">
{displayReviews.map((rev, i) => (
<div
key={i}
className="w-[320px] sm:w-[380px] p-5 sm:p-6 mx-3 rounded-2xl bg-white border border-slate-200/80 shadow-xs hover:border-blue-500 hover:shadow-md hover:-translate-y-0.5 motion-safe:transition-[border-color,box-shadow,transform] duration-200 flex flex-col justify-between"
>
<div>
{/* Top Bar: Tool Pill & 5 Stars */}
<div className="flex items-center justify-between border-b border-rule pb-3 mb-3">
<span className="text-xs font-semibold font-body text-accent bg-accent/10 px-2.5 py-0.5 rounded-full border border-accent/20">
@@ -228,7 +210,6 @@ export function ReviewsMarqueeSection({
))}
</Marquee>
</div>
</div>
</section>
);
}
@@ -125,7 +125,16 @@ export function ShiftableToolsGridSection({
{/* Section Header - Clean editorial layout without thin separator */}
<div className="max-w-2xl space-y-1.5 pb-1">
<h2 className="text-3xl sm:text-4xl font-display font-bold text-ink tracking-tight">
<KineticText>{title}</KineticText>
{title.includes('AI tools') ? (
<>
{title.replace('AI tools', '').trim()}{' '}
<span className="bg-gradient-to-r from-red-500 via-rose-500 to-purple-600 bg-clip-text text-transparent">
AI tools
</span>
</>
) : (
<KineticText>{title}</KineticText>
)}
</h2>
<p className="text-sm sm:text-base text-ink-2 font-body text-pretty">
{subtitle}
@@ -138,20 +147,21 @@ export function ShiftableToolsGridSection({
<ShiftableRow items={row2} />
</div>
{/* Mobile / Phone View (<md): Pure Vertical Stack */}
{/* Mobile / Phone View (<md): Responsive Grid */}
<div className="block md:hidden">
<MobileVerticalToolsList items={displayItems} />
</div>
{/* All tools link */}
<div className="pt-4 flex justify-between items-center text-xs font-body text-muted border-t border-rule">
<span>Eight neural models active on web trial</span>
{/* Centered "View All AI Tool Directory ->" button matching Figma */}
<div className="pt-8 flex justify-center">
<Link
href="/tools"
className="text-accent hover:underline font-medium inline-flex items-center gap-1"
className="group relative p-[1px] rounded-full bg-gradient-to-r from-blue-500 via-indigo-500 to-purple-500 hover:from-blue-600 hover:to-purple-600 shadow-md active:scale-95 transition-all inline-flex"
>
<span>View complete tool directory</span>
<ArrowRight className="w-3.5 h-3.5" aria-hidden="true" />
<span className="inline-flex items-center justify-center gap-2 px-7 py-3 rounded-full bg-slate-950 hover:bg-slate-900 text-white font-body font-semibold text-xs sm:text-sm transition-colors">
<span>View All AI Tool Directory</span>
<ArrowRight className="w-4 h-4 group-hover:translate-x-0.5 transition-transform" aria-hidden="true" />
</span>
</Link>
</div>
</div>
@@ -161,14 +171,14 @@ export function ShiftableToolsGridSection({
function MobileVerticalToolsList({ items }: { items: ToolMediaItem[] }) {
return (
<div className="flex flex-col gap-8 w-full">
<div className="grid grid-cols-1 sm:grid-cols-2 gap-5 w-full">
{items.map((item) => (
<div key={item.id} className="w-full flex flex-col">
<div className="relative w-full h-[230px] rounded-2xl overflow-hidden bg-paper-2 border border-rule/80 hover:border-blue-700 transition-[border-color,box-shadow]">
<div key={item.id} className="w-full flex flex-col group">
<div className="relative w-full h-[210px] rounded-2xl overflow-hidden bg-paper-2 border border-purple-200/60 dark:border-purple-900/40 hover:border-purple-500 transition-[border-color,box-shadow]">
<ToolWindowMedia item={item} isHovered={false} />
<Link
href={`/tools/${item.slug}`}
className="absolute top-3 right-3 z-30 inline-flex items-center gap-1.5 px-3.5 py-1.5 rounded-full text-xs font-body font-bold bg-paper-hi text-ink border border-rule hover:border-accent hover:text-accent transition-colors duration-150 shadow-sm active:scale-95"
className="absolute top-3 right-3 z-30 inline-flex items-center gap-1.5 px-3 py-1 rounded-full text-xs font-body font-semibold bg-paper-hi text-ink border border-rule hover:border-accent hover:text-accent transition-colors duration-150 shadow-sm active:scale-95"
aria-label={`Open ${item.title}`}
>
<span>Try tool</span>
@@ -177,10 +187,10 @@ function MobileVerticalToolsList({ items }: { items: ToolMediaItem[] }) {
</div>
<Link
href={`/tools/${item.slug}`}
className="mt-2.5 flex items-center justify-between text-base font-body font-semibold text-ink hover:text-accent transition-colors px-1"
className="mt-2.5 flex items-center justify-between text-sm font-body font-semibold text-ink group-hover:text-accent transition-colors px-1"
>
<span>{item.title}</span>
<ArrowRight className="w-4 h-4 text-accent" aria-hidden="true" />
<ArrowRight className="w-3.5 h-3.5 text-accent" aria-hidden="true" />
</Link>
</div>
))}
@@ -208,7 +218,7 @@ function ShiftableRow({ items }: { items: ToolMediaItem[] }) {
style={{ flexGrow: flexGrowValue }}
>
<div className={`relative w-full h-[220px] lg:h-[240px] rounded-2xl overflow-hidden bg-paper-2 border transition-[border-color,box-shadow] duration-500 ease-[cubic-bezier(0.16,1,0.3,1)] ${
isHovered ? 'border-blue-700 shadow-glow' : 'border-rule/80 hover:border-blue-700'
isHovered ? 'border-purple-500 shadow-glow' : 'border-purple-200/60 dark:border-purple-900/40 hover:border-purple-500'
}`}>
<ToolWindowMedia item={item} isHovered={isHovered} />
+35 -11
View File
@@ -1,33 +1,57 @@
import React from 'react';
interface StatsSectionProps {
title?: string;
items?: Array<{
value: string;
label: string;
}>;
}
export function StatsSection({ items = [] }: StatsSectionProps) {
if (!items || items.length === 0) return null;
export function StatsSection({
title = 'Join 10M+ Users and Unleash Your Creativity',
items,
}: StatsSectionProps) {
const defaultItems = [
{ value: '150+', label: 'Applications' },
{ value: '10 Million +', label: 'Users' },
{ value: '5 Million +', label: 'Reviews' },
{ value: '180+', label: 'Countries' },
];
const displayItems = items && items.length > 0 ? items : defaultItems;
return (
<section className="py-14 sm:py-16 bg-[#FAF8F5] border-y border-slate-900/[0.08] relative overflow-hidden">
<div className="w-full max-w-[1640px] 2xl:max-w-[1720px] mx-auto px-4 sm:px-6 lg:px-8 xl:px-10 relative z-10">
<div className="grid grid-cols-2 md:grid-cols-4 gap-8 text-center divide-y md:divide-y-0 md:divide-x divide-slate-200">
{items.map((stat, idx) => (
<section id="stats-section" className="py-14 sm:py-20 bg-white relative overflow-hidden">
<div className="max-w-container mx-auto px-4 sm:px-6 lg:px-8 relative z-10">
{/* Section Heading matching Figma */}
<div className="text-center mb-10 sm:mb-14">
<h2 className="text-3xl sm:text-4xl lg:text-[42px] font-display font-bold text-slate-900 tracking-tight leading-tight">
{title}
</h2>
</div>
{/* 4 Gradient Stat Cards matching Figma */}
<div className="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-6 sm:gap-7">
{displayItems.map((stat, idx) => (
<div
key={idx}
className="pt-4 md:pt-0 space-y-2"
className="relative rounded-[28px] bg-gradient-to-b from-[#2563EB] via-[#3B82F6] to-[#60A5FA] py-14 sm:py-16 px-6 flex flex-col items-center justify-center text-center shadow-lg shadow-blue-500/15 hover:shadow-2xl hover:shadow-blue-500/25 transition-all duration-300 group hover:-translate-y-1.5"
>
<div className="text-4xl sm:text-5xl lg:text-6xl font-display font-black tracking-tight text-gradient-brand">
{/* Stat Value */}
<div className="text-white font-display font-bold text-4xl sm:text-[46px] lg:text-[50px] tracking-tight leading-none mb-6 drop-shadow-sm">
{stat.value}
</div>
<p className="text-xs sm:text-sm font-mono uppercase tracking-wider text-slate-600 font-bold block">
{stat.label}
</p>
{/* White Pill Badge with Blue Label */}
<div className="inline-flex items-center justify-center px-7 py-2.5 rounded-full bg-white text-[#2563EB] font-body font-bold text-sm sm:text-base shadow-sm">
<span>{stat.label}</span>
</div>
</div>
))}
</div>
</div>
</section>
);
+108 -50
View File
@@ -1,6 +1,6 @@
'use client';
import React from 'react';
import React, { useRef } from 'react';
import Link from 'next/link';
import {
Scissors,
@@ -10,7 +10,9 @@ import {
ArrowRight,
Smile,
Eraser,
Sparkles
Sparkles,
ChevronLeft,
ChevronRight
} from 'lucide-react';
import { KineticText } from '@/components/magicui/kinetic-text';
import { AnimatedShinyText } from '@/components/magicui/animated-shiny-text';
@@ -106,13 +108,21 @@ const INITIAL_TILES: TileItem[] = [
];
export function TrendyBentoSection({
title = 'Trendy features',
title = 'Trendy Effects',
subtitle = 'Computer vision models engineered for professional photographers and studios.',
}: TrendyBentoSectionProps) {
const tiles = INITIAL_TILES;
const scrollRef = useRef<HTMLDivElement>(null);
const scroll = (direction: 'left' | 'right') => {
if (scrollRef.current) {
const scrollAmount = direction === 'left' ? -340 : 340;
scrollRef.current.scrollBy({ left: scrollAmount, behavior: 'smooth' });
}
};
return (
<section id="trendy-effects" className="py-8 sm:py-12 px-4 sm:px-6 md:px-8 lg:px-10 bg-paper relative overflow-hidden">
<section id="trendy-effects" className="py-10 sm:py-16 px-4 sm:px-6 md:px-8 lg:px-10 bg-paper relative overflow-hidden">
{/* Studio Lighting Ambient Glow */}
<div
className="pointer-events-none absolute bottom-0 right-1/4 w-[500px] h-[350px] [background:radial-gradient(circle_at_center,color-mix(in_oklab,var(--color-accent)_10%,transparent)_0%,transparent_70%)]"
@@ -124,59 +134,107 @@ export function TrendyBentoSection({
/>
<div className="max-w-container mx-auto space-y-6 relative z-10">
{/* Header without thin separator */}
<div className="max-w-2xl space-y-1.5 pb-1">
<h2 className="text-3xl sm:text-4xl font-display font-bold text-ink tracking-tight">
<KineticText>{title}</KineticText>
</h2>
<p className="text-sm sm:text-base text-ink-2 font-body text-pretty">
{subtitle}
</p>
{/* Header with Title on Left, and View All on Right matching Figma */}
<div className="flex flex-col sm:flex-row sm:items-end justify-between gap-4 pb-1">
<div className="max-w-2xl space-y-1.5">
<h2 className="text-3xl sm:text-4xl font-display font-bold text-ink tracking-tight">
{title.toLowerCase().includes('effects') ? (
<>
{title.replace(/effects/i, '').trim()}{' '}
<span className="bg-gradient-to-r from-rose-500 via-pink-500 to-purple-600 bg-clip-text text-transparent">
Effects
</span>
</>
) : (
<KineticText>{title}</KineticText>
)}
</h2>
<p className="text-sm sm:text-base text-ink-2 font-body text-pretty">
{subtitle}
</p>
</div>
<div className="flex items-center gap-2.5 shrink-0 self-start sm:self-auto">
{/* View All Button */}
<Link
href="/tools"
className="group inline-flex items-center gap-1.5 px-4 py-2 rounded-full border border-rule/80 hover:border-ink bg-paper-hi text-ink text-xs font-semibold shadow-2xs transition-all active:scale-95"
>
<span>View All</span>
<ArrowRight className="w-3.5 h-3.5 group-hover:translate-x-0.5 transition-transform" aria-hidden="true" />
</Link>
</div>
</div>
{/* Specimen Tiles Grid */}
<div className="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-6">
{tiles.map((tile) => {
const Icon = tile.icon;
{/* Specimen Tiles Horizontal Scrolling Row with Buttons at Both Ends */}
<div className="relative group/carousel">
{/* Navigation Button at Left End */}
<button
type="button"
onClick={() => scroll('left')}
className="absolute -left-2 sm:-left-5 top-1/2 -translate-y-1/2 z-30 w-10 h-10 sm:w-11 sm:h-11 rounded-full bg-paper-hi/95 hover:bg-paper-2 backdrop-blur-md border border-rule/80 hover:border-accent text-ink hover:text-accent shadow-md hover:shadow-lg flex items-center justify-center hover:scale-110 active:scale-95 transition-all"
aria-label="Scroll left"
>
<ChevronLeft className="w-5 h-5" aria-hidden="true" />
</button>
return (
<Link
key={tile.id}
href={tile.href}
className="studio-sheet p-4 rounded-3xl bg-paper-hi border border-rule shadow-sheet hover:border-blue-700 hover:shadow-glow flex flex-col justify-between group motion-safe:transition-[border-color,box-shadow,transform] duration-200"
>
{/* Image Specimen */}
<div className="relative aspect-[4/3] rounded-2xl overflow-hidden bg-paper-2 border border-rule mb-3.5">
<img
src={tile.imageUrl}
alt={tile.name}
className="w-full h-full object-cover"
loading="eager"
/>
</div>
{/* Horizontal Scrolling Track */}
<div
ref={scrollRef}
className="flex items-stretch gap-5 sm:gap-6 overflow-x-auto pb-4 pt-1 scrollbar-none snap-x snap-mandatory scroll-smooth px-1"
>
{tiles.map((tile) => {
const Icon = tile.icon;
{/* Details */}
<div className="space-y-2 px-1 flex-1 flex flex-col justify-between">
<div>
<div className="flex items-center gap-2 mb-1">
<Icon className="w-4 h-4 text-accent" aria-hidden="true" />
<h3 className="text-base font-body font-bold text-ink">
<AnimatedShinyText>{tile.name}</AnimatedShinyText>
</h3>
return (
<Link
key={tile.id}
href={tile.href}
className="w-[280px] sm:w-[320px] shrink-0 snap-start studio-sheet p-4 rounded-3xl bg-paper-hi border border-rule shadow-sheet hover:border-accent hover:shadow-glow flex flex-col justify-between group motion-safe:transition-[border-color,box-shadow,transform] duration-200"
>
{/* Image Specimen */}
<div className="relative aspect-[4/3] rounded-2xl overflow-hidden bg-paper-2 border border-rule mb-3.5">
<img
src={tile.imageUrl}
alt={tile.name}
className="w-full h-full object-cover group-hover:scale-105 transition-transform duration-500"
loading="lazy"
/>
</div>
{/* Details */}
<div className="space-y-2 px-1 flex-1 flex flex-col justify-between">
<div>
<div className="flex items-center gap-2 mb-1">
<Icon className="w-4 h-4 text-accent" aria-hidden="true" />
<h3 className="text-base font-body font-bold text-ink">
<AnimatedShinyText>{tile.name}</AnimatedShinyText>
</h3>
</div>
<p className="text-xs text-muted leading-relaxed font-body line-clamp-2">
{tile.description}
</p>
</div>
<p className="text-xs text-muted leading-relaxed font-body">
{tile.description}
</p>
</div>
<div className="pt-2.5 mt-2 border-t border-rule flex items-center justify-between text-xs font-body font-semibold text-accent">
<span>{tile.cta}</span>
<ArrowRight className="w-4 h-4 motion-safe:transition-transform group-hover:translate-x-1" aria-hidden="true" />
<div className="pt-2.5 mt-2 border-t border-rule flex items-center justify-between text-xs font-body font-semibold text-accent">
<span>{tile.cta}</span>
<ArrowRight className="w-4 h-4 motion-safe:transition-transform group-hover:translate-x-1" aria-hidden="true" />
</div>
</div>
</div>
</Link>
);
})}
</Link>
);
})}
</div>
{/* Navigation Button at Right End */}
<button
type="button"
onClick={() => scroll('right')}
className="absolute -right-2 sm:-right-5 top-1/2 -translate-y-1/2 z-30 w-10 h-10 sm:w-11 sm:h-11 rounded-full bg-paper-hi/95 hover:bg-paper-2 backdrop-blur-md border border-rule/80 hover:border-accent text-ink hover:text-accent shadow-md hover:shadow-lg flex items-center justify-center hover:scale-110 active:scale-95 transition-all"
aria-label="Scroll right"
>
<ChevronRight className="w-5 h-5" aria-hidden="true" />
</button>
</div>
</div>
</section>
+14 -29
View File
@@ -30,52 +30,37 @@ export function BrandLogo({
style={{ width: iconDimensions.w, height: iconDimensions.h }}
>
<svg
viewBox="0 0 40 40"
viewBox="0 0 71 71"
fill="none"
className="w-full h-full"
xmlns="http://www.w3.org/2000/svg"
aria-hidden="true"
>
{/* Outer Lens Ring */}
<circle
cx="20"
cy="20"
r="18"
stroke="var(--color-ink)"
strokeWidth="1.5"
{/* Purple Brand Emblem Circle matching management/icon_website.svg */}
<circle cx="35.5" cy="35.5" r="35.5" fill="#9A70EE" />
<path
d="M33.4992 22.3346C30.8958 22.3348 28.3508 23.1071 26.1861 24.5535C24.0212 26.0001 22.3329 28.056 21.3365 30.4615C20.3402 32.8669 20.0801 35.5141 20.5878 38.0677C21.0958 40.6215 22.3499 42.9689 24.191 44.8101C26.0321 46.651 28.3777 47.9054 30.9311 48.4134C33.4847 48.9214 36.1316 48.6589 38.537 47.6626C40.9426 46.6662 43.0004 44.98 44.4469 42.815C45.8935 40.6499 46.6658 38.1033 46.6658 35.4995H59C59 40.543 57.5044 45.4747 54.7025 49.6682C51.9006 53.8614 47.9182 57.1303 43.2591 59.0604C38.5999 60.9903 33.4724 61.4934 28.5262 60.5096C23.5797 59.5257 19.0346 57.0972 15.4684 53.5309C11.9026 49.9647 9.4737 45.421 8.48986 40.4748C7.50605 35.5283 8.01123 30.4009 9.94119 25.7414C11.8712 21.0819 15.1398 17.0997 19.333 14.2977C23.5262 11.4958 28.4561 10.0001 33.4992 10V22.3346Z"
fill="white"
/>
{/* Inner Ground Circle */}
<circle
cx="20"
cy="20"
r="12"
stroke="var(--color-rule)"
strokeWidth="1"
strokeDasharray="2 3"
<path
d="M61 24C61 28.4183 57.4183 32 53 32C48.5817 32 45 28.4183 45 24C45 19.5817 48.5817 16 53 16C57.4183 16 61 19.5817 61 24Z"
fill="white"
/>
{/* Optical Blades / Crosshair */}
<line x1="20" y1="2" x2="20" y2="8" stroke="var(--color-ink)" strokeWidth="1.5" />
<line x1="20" y1="32" x2="20" y2="38" stroke="var(--color-ink)" strokeWidth="1.5" />
<line x1="2" y1="20" x2="8" y2="20" stroke="var(--color-ink)" strokeWidth="1.5" />
<line x1="32" y1="20" x2="38" y2="20" stroke="var(--color-ink)" strokeWidth="1.5" />
{/* Focal Point (Cadmium Orange Studio Accent) */}
<circle cx="20" cy="20" r="4.5" fill="var(--color-accent)" />
<circle cx="20" cy="20" r="1.5" fill="var(--color-paper-hi)" />
</svg>
</div>
{/* Typographic Wordmark */}
{/* Typographic Wordmark matching Figma */}
{showWordmark && (
<div className="flex flex-col text-left">
<div className="flex items-baseline gap-1.5 leading-none">
<span className={`font-inter font-bold text-ink ${iconDimensions.title}`}>
<span className={`font-inter font-bold text-[#9A70EE] ${iconDimensions.title}`}>
CRE
</span>
<span className={`font-inter font-normal text-ink-2 ${iconDimensions.title}`}>
Innovations
<span className={`font-inter font-bold tracking-tight ${isDark ? 'text-white' : 'text-slate-900'} ${iconDimensions.title}`}>
INNOVATIONS
</span>
</div>
<span className={`font-body text-muted ${iconDimensions.sub} mt-0.5 leading-none`}>
<span className={`font-body ${isDark ? 'text-zinc-400' : 'text-slate-500'} ${iconDimensions.sub} mt-1 leading-none font-medium`}>
Photographic tools
</span>
</div>
+113 -29
View File
@@ -11,77 +11,161 @@ interface FooterProps {
export function Footer({ config, currentLocale }: FooterProps) {
return (
<footer className="bg-paper-2 text-ink-2 border-t border-rule relative">
<footer className="bg-black text-zinc-300 border-t border-zinc-900 relative">
<div className="max-w-container mx-auto px-4 sm:px-6 md:px-8 lg:px-10 py-16 lg:py-20">
<div className="grid grid-cols-1 md:grid-cols-4 gap-10">
{/* Brand & Editorial Statement */}
<div className="md:col-span-2 space-y-4">
<BrandLogo size="md" />
<p className="text-sm text-ink-2 max-w-md leading-relaxed font-body">
{resolveLocalised(config.brand.tagline, currentLocale)}. Deep learning neural vision models for sub-pore portrait retouching, hair-strand matting, and archival restoration.
<div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-12 gap-10 lg:gap-8">
{/* Brand & Editorial Statement (4 cols on lg) matching Figma */}
<div className="lg:col-span-4 space-y-4">
<BrandLogo size="md" isDark={true} />
<p className="text-sm text-zinc-400 max-w-sm leading-relaxed font-body">
Next-Gen AI Photo Editing Tools. Deep learning neural vision models for sub-pore portrait retouching, hair-strand matting, and archival restoration.
</p>
<div className="pt-2">
<div className="inline-flex items-center gap-2 text-xs text-ink bg-paper-hi border border-rule px-4 py-2 rounded-full font-body shadow-xs">
<ShieldCheck className="w-3.5 h-3.5 text-accent" aria-hidden="true" />
<div className="inline-flex items-center gap-2 text-xs text-slate-900 bg-white border border-transparent px-4 py-2 rounded-full font-body font-medium shadow-sm">
<ShieldCheck className="w-3.5 h-3.5 text-blue-600" aria-hidden="true" />
<span>Zero-storage policy: photos processed in volatile memory only</span>
</div>
</div>
</div>
{/* Platform Suite */}
<div className="space-y-3">
<h4 className="text-xs font-body font-semibold text-ink">
Platform tools
{/* Column 2: AI Tools (2 cols on lg) matching Figma */}
<div className="lg:col-span-2 space-y-3">
<h4 className="text-xs font-body font-semibold text-white tracking-wider">
<Link href="/tools" className="hover:text-blue-400 transition-colors">
AI Tools
</Link>
</h4>
<ul className="space-y-2 text-sm font-body">
<li>
<Link href="/tools" className="text-muted hover:text-ink transition-colors">
All neural photo tools
<Link href="/tools/photo-enhancer" className="text-zinc-400 hover:text-white transition-colors">
Photo Enhancer
</Link>
</li>
<li>
<Link href="/apps" className="text-muted hover:text-ink transition-colors">
Native mobile applications
<Link href="/tools/background-remover" className="text-zinc-400 hover:text-white transition-colors">
Background Remover
</Link>
</li>
<li>
<Link href="/catalog-manager" className="text-muted hover:text-ink transition-colors inline-flex items-center gap-1">
<span>Catalogue inspector</span>
<ArrowUpRight className="w-3 h-3 text-accent" aria-hidden="true" />
<Link href="/tools/studio-headshots" className="text-zinc-400 hover:text-white transition-colors">
Headshots
</Link>
</li>
<li>
<Link href="/tools/hair-color-changer" className="text-zinc-400 hover:text-white transition-colors">
Hair Color
</Link>
</li>
<li>
<Link href="/tools/eye-color-changer" className="text-zinc-400 hover:text-white transition-colors">
Eye Color
</Link>
</li>
<li>
<Link href="/tools/dress-changer" className="text-zinc-400 hover:text-white transition-colors">
Dress Color
</Link>
</li>
<li>
<Link href="/tools/dress-replacer" className="text-zinc-400 hover:text-white transition-colors">
Clothes Changer
</Link>
</li>
</ul>
</div>
{/* Trust & Architecture */}
<div className="space-y-3">
<h4 className="text-xs font-body font-semibold text-ink">
{/* Column 3: Image Generation (2 cols on lg) matching Figma */}
<div className="lg:col-span-2 space-y-3">
<h4 className="text-xs font-body font-semibold text-white tracking-wider">
<Link href="/ai-image-generate" className="hover:text-blue-400 transition-colors">
Image Generation
</Link>
</h4>
<ul className="space-y-2 text-sm font-body">
<li>
<Link href="/tools/text-to-image" className="text-zinc-400 hover:text-white transition-colors">
AI Text to Image
</Link>
</li>
<li>
<Link href="/tools/caricature-avatar-couple" className="text-zinc-400 hover:text-white transition-colors">
Couple caricature
</Link>
</li>
<li>
<Link href="/tools/caricature-avatar" className="text-zinc-400 hover:text-white transition-colors">
3D Caricature
</Link>
</li>
<li>
<Link href="/tools/face-swap" className="text-zinc-400 hover:text-white transition-colors">
AI Text to Face Swap
</Link>
</li>
</ul>
</div>
{/* Column 4: Platform tools (2 cols on lg) matching Figma */}
<div className="lg:col-span-2 space-y-3">
<h4 className="text-xs font-body font-semibold text-white tracking-wider">
Platform tools
</h4>
<ul className="space-y-2 text-sm font-body">
<li>
<Link href="/tools" className="text-zinc-400 hover:text-white transition-colors">
All neural photo tools
</Link>
</li>
<li>
<Link href="/ai-image-generate" className="text-zinc-400 hover:text-white transition-colors">
AI image generation suite
</Link>
</li>
<li>
<Link href="/apps" className="text-zinc-400 hover:text-white transition-colors">
Native mobile applications
</Link>
</li>
<li>
<Link href="/catalog-manager" className="text-zinc-400 hover:text-white transition-colors inline-flex items-center gap-1">
<span>Catalogue inspector</span>
<ArrowUpRight className="w-3 h-3 text-blue-500" aria-hidden="true" />
</Link>
</li>
</ul>
</div>
{/* Column 5: Trust & safeguards (2 cols on lg) matching Figma */}
<div className="lg:col-span-2 space-y-3">
<h4 className="text-xs font-body font-semibold text-white tracking-wider">
Trust & safeguards
</h4>
<ul className="space-y-2 text-sm font-body">
<li>
<Link href="/trust" className="text-muted hover:text-ink transition-colors">
<Link href="/trust" className="text-zinc-400 hover:text-white transition-colors">
Security safeguards
</Link>
</li>
<li>
<Link href="/privacy" className="text-muted hover:text-ink transition-colors">
<Link href="/privacy" className="text-zinc-400 hover:text-white transition-colors">
Privacy policy
</Link>
</li>
<li>
<Link href="/terms" className="text-muted hover:text-ink transition-colors">
<Link href="/terms" className="text-zinc-400 hover:text-white transition-colors">
Terms of service
</Link>
</li>
</ul>
</div>
</div>
{/* Bottom Bar */}
<div className="mt-12 pt-6 border-t border-rule flex flex-col sm:flex-row items-center justify-between text-xs text-muted gap-3 font-body">
<p>{config.footer.copyright}</p>
{/* Bottom Bar matching Figma */}
<div className="mt-14 pt-6 border-t border-zinc-800/80 flex flex-col sm:flex-row items-center justify-between text-xs text-zinc-500 gap-3 font-body">
<p>© 2026 CRE Innovations. All rights reserved.</p>
<p>CRE Innovations · Precision photographic studio</p>
</div>
</div>
+317 -55
View File
@@ -7,44 +7,120 @@ import {
Menu,
X,
ArrowRight,
ChevronDown,
ChevronRight,
Sparkles,
Smartphone,
Layers,
ShieldCheck,
Smile,
Scissors,
Palette,
Wand2,
Home
Home,
Camera,
} from 'lucide-react';
import { SiteConfig, CategoryItem, resolveLocalised } from '@/types';
import { SiteConfig, CategoryItem, ToolItem, resolveLocalised } from '@/types';
import { BrandLogo } from './BrandLogo';
import { RainbowButton } from '@/components/magicui/rainbow-button';
interface NavbarProps {
config: SiteConfig;
currentLocale: string;
categories?: CategoryItem[];
tools?: ToolItem[];
totalToolsCount?: number;
}
const ICON_MAP: Record<string, React.ComponentType<{ className?: string }>> = {
Smile,
Sparkles,
Scissors,
Palette,
Wand2,
Layers,
Smartphone,
ShieldCheck,
// AI Tools dropdown — 4 columns, text-only items matching Figma
const AI_TOOLS_DROPDOWN = {
columns: [
{
heading: 'Portrait Retouch',
items: [
{ slug: 'blemish-remover', title: 'Blemish Remover' },
{ slug: 'eye-bag-remover', title: 'Eye Bag Remover' },
{ slug: 'teeth-whitener', title: 'Teeth Whitener' },
{ slug: 'studio-headshots', title: 'Studio Headshots' },
],
},
{
heading: 'Skin & Hair',
items: [
{ slug: 'hair-color-changer', title: 'Hair Color Changer' },
{ slug: 'hair-style-changer', title: 'Hair Style Changer' },
{ slug: 'eye-color-changer', title: 'Eye Color Changer' },
{ slug: 'eye-redness-remover', title: 'Eye Redness Remover' },
],
},
{
heading: 'Photo Restoration',
items: [
{ slug: 'photo-enhancer', title: 'Photo Enhancer' },
{ slug: 'old-photo-restorer', title: 'Old Photo Restorer' },
{ slug: 'colorization', title: 'Colorization' },
{ slug: 'vintage-look', title: 'Vintage Look' },
],
},
{
heading: 'Cutout & Eraser',
items: [
{ slug: 'background-remover', title: 'Background Remover' },
{ slug: 'object-eraser', title: 'Object Eraser' },
{ slug: 'background-with-depth', title: 'Background Depth' },
{ slug: 'studio-relighting', title: 'Studio Relighting' },
],
},
],
};
export function Navbar({ config, currentLocale, categories = [], totalToolsCount }: NavbarProps) {
// AI Image Generate dropdown — 4 columns, text-only items matching Figma
const AI_IMAGE_GENERATE_DROPDOWN = {
columns: [
{
heading: 'Generative Art',
items: [
{ slug: 'text-to-image', title: 'Text to Image' },
{ slug: 'stable-diffusion', title: 'Stable Diffusion' },
{ slug: 'image-outpainting', title: 'Image Outpainting' },
{ slug: 'inpaint-object-replacer', title: 'Object Replacer' },
],
},
{
heading: 'Caricatures & Avatars',
items: [
{ slug: 'caricature-avatar', title: '3D Caricature' },
{ slug: 'caricature-avatar-couple', title: 'Couple Caricature' },
{ slug: 'text-to-caricature', title: 'Text to Caricature' },
{ slug: 'caricature-maker', title: 'Caricature Maker' },
],
},
{
heading: 'Style Transfer',
items: [
{ slug: 'art-style-transfer', title: 'Art Style Transfer' },
{ slug: 'double-exposure', title: 'Double Exposure' },
{ slug: 'silhouette', title: 'Silhouette Art' },
{ slug: 'polaroid-maker', title: 'Polaroid Maker' },
],
},
{
heading: 'Face & Fashion',
items: [
{ slug: 'face-swap', title: 'Face Swap' },
{ slug: 'cartoon-avatar', title: '3D Cartoon' },
{ slug: 'dress-changer', title: 'Dress Changer' },
{ slug: 'facial-expressions', title: 'Facial Expressions' },
],
},
],
};
export function Navbar({ config, currentLocale, categories = [], tools = [] }: NavbarProps) {
const [mobileMenuOpen, setMobileMenuOpen] = useState(false);
const [scrolled, setScrolled] = useState(false);
const pathname = usePathname();
const [openDropdown, setOpenDropdown] = useState<'tools' | 'generate' | null>(null);
const [mobileExpanded, setMobileExpanded] = useState<'tools' | 'generate' | null>(null);
// Detect scroll to slightly elevate glass opacity
const pathname = usePathname();
const closeTimerRef = useRef<NodeJS.Timeout | null>(null);
const navRef = useRef<HTMLElement>(null);
// Detect scroll to elevate glass opacity
useEffect(() => {
const handleScroll = () => {
setScrolled(window.scrollY > 20);
@@ -54,15 +130,34 @@ export function Navbar({ config, currentLocale, categories = [], totalToolsCount
return () => window.removeEventListener('scroll', handleScroll);
}, []);
// Close mobile menu on Escape key
// Close menus on Escape key
useEffect(() => {
if (!mobileMenuOpen) return;
const closeOnEscape = (event: KeyboardEvent) => {
if (event.key === 'Escape') setMobileMenuOpen(false);
const handleKeyDown = (event: KeyboardEvent) => {
if (event.key === 'Escape') {
setMobileMenuOpen(false);
setOpenDropdown(null);
}
};
document.addEventListener('keydown', closeOnEscape);
return () => document.removeEventListener('keydown', closeOnEscape);
}, [mobileMenuOpen]);
document.addEventListener('keydown', handleKeyDown);
return () => document.removeEventListener('keydown', handleKeyDown);
}, []);
// Close dropdown on click outside
useEffect(() => {
const handleClickOutside = (event: MouseEvent) => {
if (navRef.current && !navRef.current.contains(event.target as Node)) {
setOpenDropdown(null);
}
};
document.addEventListener('mousedown', handleClickOutside);
return () => document.removeEventListener('mousedown', handleClickOutside);
}, []);
// Close on route change
useEffect(() => {
setOpenDropdown(null);
setMobileMenuOpen(false);
}, [pathname]);
// Lock body scroll on mobile drawer
useEffect(() => {
@@ -79,11 +174,28 @@ export function Navbar({ config, currentLocale, categories = [], totalToolsCount
};
}, [mobileMenuOpen]);
// Dynamic Navigation Items from JSON (PRD §5 CFG-01..04)
const handleDropdownEnter = (type: 'tools' | 'generate') => {
if (closeTimerRef.current) {
clearTimeout(closeTimerRef.current);
closeTimerRef.current = null;
}
setOpenDropdown(type);
};
const handleDropdownLeave = () => {
if (closeTimerRef.current) clearTimeout(closeTimerRef.current);
closeTimerRef.current = setTimeout(() => {
setOpenDropdown(null);
}, 180);
};
// Dynamic Navigation Items from JSON
const navLinks = (config.nav?.header || []).map((item) => ({
href: item.href,
label: resolveLocalised(item.label, currentLocale),
badge: item.badge,
hasDropdown: item.hasDropdown,
hasChevronRight: item.hasChevronRight,
exact: item.href === '/',
}));
@@ -112,25 +224,112 @@ export function Navbar({ config, currentLocale, categories = [], totalToolsCount
<BrandLogo size="md" />
</div>
{/* Center Floating Docked Pill Menu (Desktop) */}
{/* Center Floating Docked Pill Menu (Desktop) matching Figma */}
<nav
ref={navRef}
aria-label="Main navigation"
className="hidden md:flex items-center gap-1 bg-paper-2/70 p-1 rounded-full border border-rule/70 shadow-[inset_0_1px_2px_color-mix(in_oklab,var(--color-ink)_3%,transparent)] relative z-20"
className="hidden md:flex items-center gap-0.5 bg-paper-2/70 p-1 rounded-full border border-rule/70 shadow-[inset_0_1px_2px_color-mix(in_oklab,var(--color-ink)_3%,transparent)] relative z-20"
>
{navLinks.map((link) => {
{navLinks.map((link, idx) => {
const active = isLinkActive(link.href, link.exact);
const isToolsLink = link.href === '/tools' || link.label.toLowerCase().includes('tools');
const isGenerateLink = link.href === '/ai-image-generate' || link.label.toLowerCase().includes('image');
const dropdownType = isToolsLink ? 'tools' : isGenerateLink ? 'generate' : null;
const isOpen = openDropdown === dropdownType;
const dropdownData = dropdownType === 'tools' ? AI_TOOLS_DROPDOWN : AI_IMAGE_GENERATE_DROPDOWN;
if (dropdownType) {
return (
<div
key={`${link.href}-${idx}`}
className="relative"
onMouseEnter={() => handleDropdownEnter(dropdownType)}
onMouseLeave={handleDropdownLeave}
>
<Link
href={link.href}
onClick={() => setOpenDropdown(null)}
className={`relative px-3.5 py-1.5 rounded-full text-xs sm:text-sm font-body motion-safe:transition-[color,background-color,box-shadow] duration-150 flex items-center gap-1 cursor-pointer ${
active || isOpen
? 'bg-paper-hi text-ink font-semibold shadow-xs border border-rule/80'
: 'text-ink-2 hover:text-ink hover:bg-paper-hi/60 font-medium'
}`}
>
<span>{link.label}</span>
<ChevronDown
className={`w-3.5 h-3.5 opacity-60 ml-0.5 transition-transform duration-200 ${
isOpen ? 'rotate-180 opacity-100' : ''
}`}
aria-hidden="true"
/>
{link.badge && (
<span className="text-[10px] px-1.5 py-0.2 rounded-full font-body bg-paper-3/80 text-muted">
{link.badge}
</span>
)}
</Link>
{/* Dropdown Popover — Figma: clean text columns + View All button */}
{isOpen && (
<div
className="absolute top-full left-1/2 -translate-x-1/2 pt-3 z-50 pointer-events-auto"
onMouseEnter={() => handleDropdownEnter(dropdownType)}
onMouseLeave={handleDropdownLeave}
>
<div className="rounded-2xl bg-white border border-black/10 shadow-[0_8px_32px_-8px_rgba(0,0,0,0.18)] p-6 text-left animate-in fade-in zoom-in-95 duration-150 min-w-[560px]">
{/* Column Grid */}
<div className="grid grid-cols-4 gap-6">
{dropdownData.columns.map((col) => (
<div key={col.heading} className="flex flex-col gap-1">
<span className="text-[11px] font-semibold text-gray-400 uppercase tracking-wider mb-1">
{col.heading}
</span>
{col.items.map((item) => (
<Link
key={item.slug}
href={`/tools/${item.slug}`}
onClick={() => setOpenDropdown(null)}
className="text-sm text-gray-800 hover:text-black font-medium py-0.5 transition-colors hover:underline underline-offset-2"
>
{item.title}
</Link>
))}
</div>
))}
</div>
{/* View All button — Figma: outline pill, centered */}
<div className="mt-5 pt-4 border-t border-gray-100 flex justify-center">
<Link
href={dropdownType === 'tools' ? '/tools' : '/ai-image-generate'}
onClick={() => setOpenDropdown(null)}
className="inline-flex items-center gap-2 px-6 py-2 rounded-full border border-gray-900 text-gray-900 text-sm font-semibold hover:bg-gray-900 hover:text-white transition-all duration-150"
>
<span>View All</span>
<ArrowRight className="w-3.5 h-3.5" />
</Link>
</div>
</div>
</div>
)}
</div>
);
}
return (
<Link
key={link.href}
key={`${link.href}-${idx}`}
href={link.href}
className={`relative px-3.5 py-1.5 rounded-full text-xs sm:text-sm font-body motion-safe:transition-[color,background-color,box-shadow] duration-150 flex items-center gap-1.5 ${
className={`relative px-3.5 py-1.5 rounded-full text-xs sm:text-sm font-body motion-safe:transition-[color,background-color,box-shadow] duration-150 flex items-center gap-1 ${
active
? 'bg-paper-hi text-ink font-medium shadow-xs border border-rule/80'
: 'text-ink-2 hover:text-ink hover:bg-paper-hi/60'
? 'bg-paper-hi text-ink font-semibold shadow-xs border border-rule/80'
: 'text-ink-2 hover:text-ink hover:bg-paper-hi/60 font-medium'
}`}
>
<span>{link.label}</span>
{link.hasChevronRight && (
<ChevronRight className="w-3.5 h-3.5 opacity-60 ml-0.5" aria-hidden="true" />
)}
{link.badge && (
<span
className={`text-[10px] px-1.5 py-0.2 rounded-full font-body ${
@@ -149,10 +348,15 @@ export function Navbar({ config, currentLocale, categories = [], totalToolsCount
{/* Right CTA Actions from JSON */}
<div className="hidden md:flex items-center gap-3 relative z-20 flex-shrink-0">
<RainbowButton href={ctaHref}>
<span>{ctaLabel}</span>
<ArrowRight className="w-3.5 h-3.5 ml-1 inline" aria-hidden="true" />
</RainbowButton>
<Link
href={ctaHref}
className="group relative p-[1px] rounded-full bg-gradient-to-r from-blue-500 via-indigo-500 via-purple-500 to-pink-500 hover:from-blue-600 hover:to-pink-600 shadow-sm active:scale-95 transition-all inline-flex"
>
<span className="inline-flex items-center gap-2 px-5 py-2 rounded-full bg-slate-950 hover:bg-slate-900 text-white font-body font-semibold text-xs sm:text-sm transition-colors">
<span>{ctaLabel}</span>
<ArrowRight className="w-3.5 h-3.5 group-hover:translate-x-0.5 transition-transform" aria-hidden="true" />
</span>
</Link>
</div>
{/* Mobile Hamburger Toggle Button */}
@@ -176,46 +380,104 @@ export function Navbar({ config, currentLocale, categories = [], totalToolsCount
<div className="md:hidden fixed inset-x-0 top-[65px] bottom-0 z-50 bg-paper border-t border-rule px-5 py-6 flex flex-col justify-between overflow-y-auto">
<nav className="flex flex-col space-y-2.5">
<span className="text-xs font-body font-semibold text-muted px-2 py-1">Navigation</span>
{navLinks.map((link) => {
{navLinks.map((link, idx) => {
const active = isLinkActive(link.href, link.exact);
const isToolsLink = link.href === '/tools' || link.label.toLowerCase().includes('tools');
const isGenerateLink = link.href === '/ai-image-generate' || link.label.toLowerCase().includes('image');
const dropdownType = isToolsLink ? 'tools' : isGenerateLink ? 'generate' : null;
const isExpanded = mobileExpanded === dropdownType;
const mobileDropData = dropdownType === 'tools' ? AI_TOOLS_DROPDOWN : AI_IMAGE_GENERATE_DROPDOWN;
return (
<div key={link.href} className="space-y-1">
<Link
href={link.href}
onClick={() => setMobileMenuOpen(false)}
<div key={`${link.href}-${idx}`} className="space-y-1">
<div
className={`flex items-center justify-between px-4 py-3 rounded-2xl text-base font-body motion-safe:transition-colors ${
active
? 'bg-paper-hi text-ink font-semibold border border-rule shadow-xs'
: 'text-ink-2 hover:text-ink hover:bg-paper-2 bg-paper-hi/60 border border-rule/50'
}`}
>
<span className="flex items-center gap-3">
<Link
href={link.href}
onClick={() => setMobileMenuOpen(false)}
className="flex items-center gap-3 flex-1"
>
{link.href === '/' && <Home className="w-4 h-4 text-accent" />}
{link.href === '/tools' && <Sparkles className="w-4 h-4 text-accent" />}
{link.label.toLowerCase().includes('tools') && <Sparkles className="w-4 h-4 text-accent" />}
{link.label.toLowerCase().includes('image') && <Camera className="w-4 h-4 text-accent" />}
{link.href === '/apps' && <Smartphone className="w-4 h-4 text-accent" />}
{link.href === '/trust' && <ShieldCheck className="w-4 h-4 text-accent" />}
<span>{link.label}</span>
</span>
{link.badge && (
<span className="text-xs px-2.5 py-0.5 rounded-full bg-paper-2 border border-rule text-muted">
{link.badge}
</span>
</Link>
{dropdownType ? (
<button
type="button"
onClick={(e) => {
e.stopPropagation();
setMobileExpanded(isExpanded ? null : dropdownType);
}}
className="p-1.5 -mr-1 rounded-lg hover:bg-paper-2 text-muted"
aria-label={`Toggle ${link.label} submenu`}
>
<ChevronDown
className={`w-4 h-4 transition-transform duration-200 ${isExpanded ? 'rotate-180 text-accent' : ''}`}
/>
</button>
) : (
link.hasChevronRight && (
<ChevronRight className="w-4 h-4 text-muted" aria-hidden="true" />
)
)}
</Link>
</div>
{/* Mobile Submenu Accordion — flat list of all items from all columns */}
{dropdownType && isExpanded && (
<div className="bg-paper-2/60 rounded-xl p-2.5 space-y-1 border border-rule/60 ml-3 animate-in fade-in duration-150">
{mobileDropData.columns.map((col) => (
<div key={col.heading}>
<span className="block px-3 pt-2 pb-1 text-[10px] font-semibold text-muted uppercase tracking-wider">
{col.heading}
</span>
{col.items.map((item) => (
<Link
key={item.slug}
href={`/tools/${item.slug}`}
onClick={() => setMobileMenuOpen(false)}
className="flex items-center gap-2.5 px-3 py-2 rounded-lg text-xs font-medium text-ink hover:bg-paper-hi transition-colors"
>
<span className="truncate flex-1">{item.title}</span>
</Link>
))}
</div>
))}
<div className="pt-2 mt-1 border-t border-rule/60">
<Link
href={link.href}
onClick={() => setMobileMenuOpen(false)}
className="flex items-center justify-between px-3 py-1.5 rounded-lg text-xs font-semibold text-gray-900 hover:bg-paper-hi"
>
<span>View All {dropdownType === 'tools' ? 'AI Tools' : 'AI Generators'}</span>
<ArrowRight className="w-3.5 h-3.5" />
</Link>
</div>
</div>
)}
</div>
);
})}
</nav>
<div className="pt-6 border-t border-rule space-y-3">
<RainbowButton
<Link
href={ctaHref}
onClick={() => setMobileMenuOpen(false)}
className="w-full text-center"
className="inline-flex items-center justify-center gap-2 w-full py-3 px-5 rounded-full bg-slate-950 hover:bg-slate-800 text-white font-body font-semibold text-sm shadow-md text-center transition-all active:scale-95"
>
<span>{ctaLabel}</span>
<ArrowRight className="w-4 h-4 ml-1 inline" aria-hidden="true" />
</RainbowButton>
</Link>
<div className="flex items-center justify-center gap-4 text-xs text-muted font-body">
<span>{dropdownTagline}</span>
</div>
+1
View File
@@ -49,6 +49,7 @@ export interface SiteConfig {
children?: string;
badge?: string;
hasDropdown?: boolean;
hasChevronRight?: boolean;
}>;
cta: {
label: Localised;