2 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
vaishnosingh 303feb491a feat(apps): update mobile app store links and implement unified device-detecting QR code 2026-11-17 18:52:24 +05:30
33 changed files with 1258 additions and 629 deletions
+6
View File
@@ -38,3 +38,9 @@ ALLOWED_ORIGIN=http://localhost:3000
# --------------------------------------------------------------------------- # ---------------------------------------------------------------------------
NEXT_PUBLIC_TURNSTILE_SITE_KEY=your_cloudflare_turnstile_site_key NEXT_PUBLIC_TURNSTILE_SITE_KEY=your_cloudflare_turnstile_site_key
CLOUDFLARE_TURNSTILE_SECRET_KEY=your_cloudflare_turnstile_secret_key CLOUDFLARE_TURNSTILE_SECRET_KEY=your_cloudflare_turnstile_secret_key
# ---------------------------------------------------------------------------
# Mobile App Redirect Host override (optional - defaults to current origin / SITE_URL)
# Used for single smart QR code device routing to Google Play & App Store
# ---------------------------------------------------------------------------
# NEXT_PUBLIC_APP_REDIRECT_HOST=https://your-public-domain.com
+6 -6
View File
@@ -3,8 +3,8 @@
"slug": "bg-cleaner-app", "slug": "bg-cleaner-app",
"status": "published", "status": "published",
"name": { "name": {
"en": "Magic Cutout & Erase Studio", "en": "BG Remove: Background Editor",
"hi": "मैजिक कटआउट और इरेज़ स्टूडियो" "hi": "BG Remove: Background Editor"
}, },
"tagline": { "tagline": {
"en": "Cut out any subject, erase photobombers, and design product shots", "en": "Cut out any subject, erase photobombers, and design product shots",
@@ -16,12 +16,12 @@
}, },
"stores": { "stores": {
"android": { "android": {
"packageId": "com.creinnovations.bgcleaner", "packageId": "com.me2creative.AiDressChanger",
"url": "https://play.google.com/store/apps/details?id=com.creinnovations.bgcleaner" "url": "https://play.google.com/store/apps/details?id=com.me2creative.AiDressChanger&pcampaignid=web_share"
}, },
"ios": { "ios": {
"appId": "1672384912", "appId": "1497878283",
"url": "https://apps.apple.com/app/id1672384912" "url": "https://apps.apple.com/bn/app/bg-remove-background-editor/id1497878283"
} }
}, },
"deepLink": { "deepLink": {
@@ -3,8 +3,8 @@
"slug": "photo-enhancer-pro", "slug": "photo-enhancer-pro",
"status": "published", "status": "published",
"name": { "name": {
"en": "Enhance Ultra AI", "en": "Enhance Photo Quality",
"hi": "एन्हांस अल्ट्रा एआई" "hi": "Enhance Photo Quality"
}, },
"tagline": { "tagline": {
"en": "Turn blurry or aged photos into crystal clear 4K masterpieces", "en": "Turn blurry or aged photos into crystal clear 4K masterpieces",
@@ -16,12 +16,12 @@
}, },
"stores": { "stores": {
"android": { "android": {
"packageId": "com.creinnovations.photoenhancer", "packageId": "com.smartworld.enhancephotoquality",
"url": "https://play.google.com/store/apps/details?id=com.creinnovations.photoenhancer" "url": "https://play.google.com/store/apps/details?id=com.smartworld.enhancephotoquality&pcampaignid=web_share"
}, },
"ios": { "ios": {
"appId": "1672384911", "appId": "1587310121",
"url": "https://apps.apple.com/app/id1672384911" "url": "https://apps.apple.com/mm/app/enhance-photo-quality/id1587310121"
} }
}, },
"deepLink": { "deepLink": {
+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": { "props": {
"badge": "Photographic tools", "badge": "Photographic tools",
"title": { "title": {
"en": "Photographic tools, built with precision.", "en": "Imagine Transform Create Impossible",
"hi": "नेक्स्ट-जेन न्यूरल एआई के साथ फोटो बदलें" "hi": "इमेजिन ट्रांसफॉर्म क्रिएट इम्पॉसिबल"
}, },
"subtitle": { "subtitle": {
"en": "Retouch portraits, extract cutouts, and restore archival prints directly in your browser.", "en": "Turn ordinary moments into extraordinary visual art. Instant and private photo transformation right in your browser with hardware acceleration.",
"hi": "बिना साइन-अप के स्टूडियो-ग्रेड फोटो टूल्स मुफ़्त में आज़माएं। हमारे मोबाइल ऐप्स में 4K एक्सपोर्ट प्राप्त करें।" "hi": "साधारण पलों को असाधारण दृश्य कला में बदलें। हार्डवेयर त्वरण के साथ अपने ब्राउज़र में तुरंत और निजी फोटो परिवर्तन।"
}, },
"primaryCta": { "primaryCta": {
"label": "Explore our tools", "label": "Explore our tools",
@@ -42,8 +42,8 @@
"tierLabel": "Tier 2: Interactive Tools Grid", "tierLabel": "Tier 2: Interactive Tools Grid",
"folderPath": "management/pages/home/sections/our-tools", "folderPath": "management/pages/home/sections/our-tools",
"props": { "props": {
"badge": "Tool catalogue", "badge": "Popular tools",
"title": "Our tools", "title": "Most Popular AI tools",
"subtitle": "Test any tool directly in your browser with your own photos.", "subtitle": "Test any tool directly in your browser with your own photos.",
"items": [ "items": [
{ {
@@ -120,7 +120,7 @@
"folderPath": "management/pages/home/sections/trendy-bento", "folderPath": "management/pages/home/sections/trendy-bento",
"props": { "props": {
"badge": "Model capabilities", "badge": "Model capabilities",
"title": "Trendy features", "title": "Trendy Effects",
"subtitle": "Computer vision models engineered for professional photographers and studios." "subtitle": "Computer vision models engineered for professional photographers and studios."
} }
}, },
@@ -132,10 +132,25 @@
"folderPath": "management/pages/home/sections/recommended-apps", "folderPath": "management/pages/home/sections/recommended-apps",
"props": { "props": {
"badge": "Native clients", "badge": "Native clients",
"title": "Mobile studio applications", "title": "Mobile studio",
"subtitle": "Dedicated iOS and Android clients for hardware-accelerated offline batch processing." "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", "id": "community-reviews",
"type": "reviewsMarquee", "type": "reviewsMarquee",
@@ -144,7 +159,7 @@
"folderPath": "management/pages/home/sections/community-reviews", "folderPath": "management/pages/home/sections/community-reviews",
"props": { "props": {
"badge": "Community feedback", "badge": "Community feedback",
"title": "Photographer & studio notes", "title": "Photographer",
"subtitle": "Feedback from portrait photographers, archivists, and studio retouchers." "subtitle": "Feedback from portrait photographers, archivists, and studio retouchers."
} }
}, },
+4
View File
@@ -16,6 +16,10 @@
"en": "AI Photo & Vision Tools Studio", "en": "AI Photo & Vision Tools Studio",
"hi": "एआई फोटो और विज़न टूल्स स्टूडियो" "hi": "एआई फोटो और विज़न टूल्स स्टूडियो"
}, },
"subtitle": {
"en": "Explore professional AI photo retouching, background cutout, restoration, and studio tools with hardware acceleration.",
"hi": "हार्डवेयर त्वरण के साथ पेशेवर एआई फोटो रीटचिंग, बैकग्राउंड कटआउट और स्टूडियो टूल्स।"
},
"source": "all", "source": "all",
"showCategoryFilter": true, "showCategoryFilter": true,
"showSearch": true, "showSearch": true,
+8 -2
View File
@@ -38,8 +38,14 @@
"href": "/" "href": "/"
}, },
{ {
"label": { "en": "Tools", "hi": "टूल्स" }, "label": { "en": "AI Tools", "hi": "एआई टूल्स" },
"href": "/tools" "href": "/tools",
"hasDropdown": true
},
{
"label": { "en": "AI Image Generate", "hi": "एआई इमेज जनरेट" },
"href": "/ai-image-generate",
"hasDropdown": true
}, },
{ {
"label": { "en": "Apps", "hi": "ऐप्स" }, "label": { "en": "Apps", "hi": "ऐप्स" },
@@ -3,8 +3,8 @@
"slug": "bg-cleaner-app", "slug": "bg-cleaner-app",
"status": "published", "status": "published",
"name": { "name": {
"en": "Magic Cutout & Erase Studio", "en": "BG Remove: Background Editor",
"hi": "\u092e\u0948\u091c\u093f\u0915 \u0915\u091f\u0906\u0909\u091f \u0914\u0930 \u0907\u0930\u0947\u091c\u093c \u0938\u094d\u091f\u0942\u0921\u093f\u092f\u094b" "hi": "BG Remove: Background Editor"
}, },
"tagline": { "tagline": {
"en": "Cut out any subject, erase photobombers, and design product shots", "en": "Cut out any subject, erase photobombers, and design product shots",
@@ -16,12 +16,12 @@
}, },
"stores": { "stores": {
"android": { "android": {
"packageId": "com.creinnovations.bgcleaner", "packageId": "com.me2creative.AiDressChanger",
"url": "https://play.google.com/store/apps/details?id=com.creinnovations.bgcleaner" "url": "https://play.google.com/store/apps/details?id=com.me2creative.AiDressChanger&pcampaignid=web_share"
}, },
"ios": { "ios": {
"appId": "1672384912", "appId": "1497878283",
"url": "https://apps.apple.com/app/id1672384912" "url": "https://apps.apple.com/bn/app/bg-remove-background-editor/id1497878283"
} }
}, },
"deepLink": { "deepLink": {
@@ -3,8 +3,8 @@
"slug": "photo-enhancer-pro", "slug": "photo-enhancer-pro",
"status": "published", "status": "published",
"name": { "name": {
"en": "Enhance Ultra AI", "en": "Enhance Photo Quality",
"hi": "\u090f\u0928\u094d\u0939\u093e\u0902\u0938 \u0905\u0932\u094d\u091f\u094d\u0930\u093e \u090f\u0906\u0908" "hi": "Enhance Photo Quality"
}, },
"tagline": { "tagline": {
"en": "Turn blurry or aged photos into crystal clear 4K masterpieces", "en": "Turn blurry or aged photos into crystal clear 4K masterpieces",
@@ -16,12 +16,12 @@
}, },
"stores": { "stores": {
"android": { "android": {
"packageId": "com.creinnovations.photoenhancer", "packageId": "com.smartworld.enhancephotoquality",
"url": "https://play.google.com/store/apps/details?id=com.creinnovations.photoenhancer" "url": "https://play.google.com/store/apps/details?id=com.smartworld.enhancephotoquality&pcampaignid=web_share"
}, },
"ios": { "ios": {
"appId": "1672384911", "appId": "1587310121",
"url": "https://apps.apple.com/app/id1672384911" "url": "https://apps.apple.com/mm/app/enhance-photo-quality/id1587310121"
} }
}, },
"deepLink": { "deepLink": {
+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": { "props": {
"badge": "Photographic tools", "badge": "Photographic tools",
"title": { "title": {
"en": "Photographic tools, built with precision.", "en": "Imagine Transform Create Impossible",
"hi": "नेक्स्ट-जेन न्यूरल एआई के साथ फोटो बदलें" "hi": "इमेजिन ट्रांसफॉर्म क्रिएट इम्पॉसिबल"
}, },
"subtitle": { "subtitle": {
"en": "Retouch portraits, extract cutouts, and restore archival prints directly in your browser.", "en": "Turn ordinary moments into extraordinary visual art. Instant and private photo transformation right in your browser with hardware acceleration.",
"hi": "बिना साइन-अप के स्टूडियो-ग्रेड फोटो टूल्स मुफ़्त में आज़माएं। हमारे मोबाइल ऐप्स में 4K एक्सपोर्ट प्राप्त करें।" "hi": "साधारण पलों को असाधारण दृश्य कला में बदलें। हार्डवेयर त्वरण के साथ अपने ब्राउज़र में तुरंत और निजी फोटो परिवर्तन।"
}, },
"primaryCta": { "primaryCta": {
"label": "Explore our tools", "label": "Explore our tools",
@@ -42,8 +42,8 @@
"tierLabel": "Tier 2: Interactive Tools Grid", "tierLabel": "Tier 2: Interactive Tools Grid",
"folderPath": "management/pages/home/sections/our-tools", "folderPath": "management/pages/home/sections/our-tools",
"props": { "props": {
"badge": "Tool catalogue", "badge": "Popular tools",
"title": "Our tools", "title": "Most Popular AI tools",
"subtitle": "Test any tool directly in your browser with your own photos.", "subtitle": "Test any tool directly in your browser with your own photos.",
"items": [ "items": [
{ {
@@ -120,7 +120,7 @@
"folderPath": "management/pages/home/sections/trendy-bento", "folderPath": "management/pages/home/sections/trendy-bento",
"props": { "props": {
"badge": "Model capabilities", "badge": "Model capabilities",
"title": "Trendy features", "title": "Trendy Effects",
"subtitle": "Computer vision models engineered for professional photographers and studios." "subtitle": "Computer vision models engineered for professional photographers and studios."
} }
}, },
@@ -132,10 +132,25 @@
"folderPath": "management/pages/home/sections/recommended-apps", "folderPath": "management/pages/home/sections/recommended-apps",
"props": { "props": {
"badge": "Native clients", "badge": "Native clients",
"title": "Mobile studio applications", "title": "Mobile studio",
"subtitle": "Dedicated iOS and Android clients for hardware-accelerated offline batch processing." "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", "id": "community-reviews",
"type": "reviewsMarquee", "type": "reviewsMarquee",
@@ -144,7 +159,7 @@
"folderPath": "management/pages/home/sections/community-reviews", "folderPath": "management/pages/home/sections/community-reviews",
"props": { "props": {
"badge": "Community feedback", "badge": "Community feedback",
"title": "Photographer & studio notes", "title": "Photographer",
"subtitle": "Feedback from portrait photographers, archivists, and studio retouchers.", "subtitle": "Feedback from portrait photographers, archivists, and studio retouchers.",
"_reviewsSource": "content/features/reviews.json" "_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"> <svg width="71" height="71" viewBox="0 0 71 71" fill="none" xmlns="http://www.w3.org/2000/svg">
<defs> <circle cx="35.5" cy="35.5" r="35.5" fill="#9A70EE"/>
<linearGradient id="cre-bright-cyan" x1="0%" y1="0%" x2="100%" y2="100%"> <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"/>
<stop offset="0%" stop-color="#00F5FF" /> <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"/>
<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> </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"> <svg width="71" height="71" viewBox="0 0 71 71" fill="none" xmlns="http://www.w3.org/2000/svg">
<defs> <circle cx="35.5" cy="35.5" r="35.5" fill="#9A70EE"/>
<linearGradient id="cre-cyan-blue-full" x1="0%" y1="0%" x2="100%" y2="100%"> <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"/>
<stop offset="0%" stop-color="#00F0FF" /> <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"/>
<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> </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 */ /* 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("./tokens.css");
@import url("./base.css"); @import url("./base.css");
@import url("https://fonts.cdnfonts.com/css/sf-pro-display"); @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");
@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");
@tailwind base; @tailwind base;
@tailwind components; @tailwind components;
@@ -53,7 +52,7 @@
--color-surface-card: var(--color-paper-hi); --color-surface-card: var(--color-paper-hi);
--theme-radius: 24px; --theme-radius: 24px;
--theme-max-width: 1440px; --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-sans: var(--font-sf);
--font-body: var(--font-sf); --font-body: var(--font-sf);
--font-serif: var(--font-sf); --font-serif: var(--font-sf);
+5
View File
@@ -7,6 +7,7 @@ export async function GET(
req: NextRequest, req: NextRequest,
{ params }: { params: { tool: string; app: string } } { params }: { params: { tool: string; app: string } }
) { ) {
try {
const tool = getToolBySlug(params.tool) || getToolById(params.tool); const tool = getToolBySlug(params.tool) || getToolById(params.tool);
const app = getAppBySlug(params.app) || getAppById(params.app); const app = getAppBySlug(params.app) || getAppById(params.app);
@@ -42,4 +43,8 @@ export async function GET(
desktopUrl.searchParams.set('src', source); desktopUrl.searchParams.set('src', source);
desktopUrl.searchParams.set('tool', tool ? tool.slug : ''); desktopUrl.searchParams.set('tool', tool ? tool.slug : '');
return NextResponse.redirect(desktopUrl.toString()); return NextResponse.redirect(desktopUrl.toString());
} catch (err: any) {
console.error('[go route error]', err);
return NextResponse.json({ error: err?.message || String(err) }, { status: 500 });
}
} }
+4 -64
View File
@@ -1,65 +1,5 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" fill="none"> <svg width="71" height="71" viewBox="0 0 71 71" fill="none" xmlns="http://www.w3.org/2000/svg">
<defs> <circle cx="35.5" cy="35.5" r="35.5" fill="#9A70EE"/>
<linearGradient id="cre-bright-cyan" x1="0%" y1="0%" x2="100%" y2="100%"> <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"/>
<stop offset="0%" stop-color="#00F5FF" /> <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"/>
<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> </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} config={config}
currentLocale="en" currentLocale="en"
categories={categories} categories={categories}
tools={tools}
totalToolsCount={tools.length} totalToolsCount={tools.length}
/> />
<main id="main-content" className="flex-1">{children}</main> <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 siteConfig = getSiteConfig();
const siteUrl = (process.env.SITE_URL || siteConfig.seo.siteUrl || 'http://localhost:3000').replace(/\/$/, ''); 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 title = 'AI Photo Tools Studio - Retouching, Cutout & Restoration Suite';
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 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 { return {
title, title,
@@ -74,9 +74,10 @@ export default function ToolsIndexPage() {
const page = getPageConfig('tools'); const page = getPageConfig('tools');
if (!page) notFound(); if (!page) notFound();
const tools = getAllTools(); const allTools = getAllTools();
const tools = allTools.filter((t) => t.category !== 'creative-art');
const apps = getAllApps(); const apps = getAllApps();
const categories = getAllCategories(); const categories = getAllCategories().filter((c) => c.id !== 'creative-art');
const siteConfig = getSiteConfig(); const siteConfig = getSiteConfig();
const siteUrl = (process.env.SITE_URL || siteConfig.seo.siteUrl || 'http://localhost:3000').replace(/\/$/, ''); const siteUrl = (process.env.SITE_URL || siteConfig.seo.siteUrl || 'http://localhost:3000').replace(/\/$/, '');
+27 -13
View File
@@ -40,13 +40,21 @@ export function AppHandoffSection({
if (!app) return null; if (!app) return null;
const baseHost = origin || 'http://localhost:3000'; const androidUrl = app.stores?.android?.url || 'https://play.google.com';
const iosUrl = app.stores?.ios?.url || 'https://apps.apple.com';
const redirectHost =
process.env.NEXT_PUBLIC_APP_REDIRECT_HOST ||
process.env.NEXT_PUBLIC_SITE_URL ||
origin ||
'http://localhost:3000';
const targetUrl = tool const targetUrl = tool
? `${baseHost}/go/${tool.slug}/${app.slug}` ? `${redirectHost}/go/${tool.slug}/${app.slug}`
: `${baseHost}/apps/${app.slug}`; : `${redirectHost}/go/explore/${app.slug}`;
useEffect(() => { useEffect(() => {
if (showQr) { if (showQr && targetUrl) {
QRCode.toDataURL(targetUrl, { QRCode.toDataURL(targetUrl, {
width: 220, width: 220,
margin: 1, margin: 1,
@@ -132,7 +140,7 @@ export function AppHandoffSection({
<span className="text-xs text-muted font-body block">Direct store installation</span> <span className="text-xs text-muted font-body block">Direct store installation</span>
<div className="flex flex-col sm:flex-row flex-wrap gap-3"> <div className="flex flex-col sm:flex-row flex-wrap gap-3">
<a <a
href={app.stores?.ios?.url || `/go/${tool?.slug || 'explore'}/${app.slug}`} href={iosUrl}
target="_blank" target="_blank"
rel="noopener noreferrer" rel="noopener noreferrer"
className="btn-secondary min-h-[48px] rounded-full justify-center w-full sm:w-auto" className="btn-secondary min-h-[48px] rounded-full justify-center w-full sm:w-auto"
@@ -143,7 +151,7 @@ export function AppHandoffSection({
</a> </a>
<a <a
href={app.stores?.android?.url || `/go/${tool?.slug || 'explore'}/${app.slug}`} href={androidUrl}
target="_blank" target="_blank"
rel="noopener noreferrer" rel="noopener noreferrer"
className="btn-secondary min-h-[48px] rounded-full justify-center w-full sm:w-auto" className="btn-secondary min-h-[48px] rounded-full justify-center w-full sm:w-auto"
@@ -157,7 +165,7 @@ export function AppHandoffSection({
type="button" type="button"
onClick={copyLink} onClick={copyLink}
className="btn-secondary min-h-[48px] rounded-full justify-center w-full sm:w-auto" className="btn-secondary min-h-[48px] rounded-full justify-center w-full sm:w-auto"
aria-label="Copy direct deep link" aria-label="Copy smart redirect link"
> >
{copiedLink ? <Check className="w-4 h-4 text-accent" aria-hidden="true" /> : <Copy className="w-4 h-4 text-muted" aria-hidden="true" />} {copiedLink ? <Check className="w-4 h-4 text-accent" aria-hidden="true" /> : <Copy className="w-4 h-4 text-muted" aria-hidden="true" />}
<span>{copiedLink ? 'Link copied' : 'Copy link'}</span> <span>{copiedLink ? 'Link copied' : 'Copy link'}</span>
@@ -170,22 +178,28 @@ export function AppHandoffSection({
</div> </div>
</div> </div>
{/* Right Column: Clean QR Code Card */} {/* Right Column: Single Smart QR Code Card */}
{showQr && qrDataUrl && ( {showQr && qrDataUrl && (
<div className="lg:col-span-5 studio-sheet rounded-3xl p-6 sm:p-8 text-center flex flex-col items-center"> <div className="lg:col-span-5 studio-sheet rounded-3xl p-6 sm:p-8 text-center flex flex-col items-center">
<span className="text-xs text-muted font-body mb-4">Scan with phone camera</span> <span className="text-xs text-muted font-body mb-3 font-semibold uppercase tracking-wider">
Scan with Phone Camera
</span>
<div className="p-4 bg-paper-hi border border-rule rounded-2xl inline-block shadow-sm"> <div className="p-4 bg-paper-hi border border-rule rounded-2xl inline-block shadow-sm">
<img <img
src={qrDataUrl} src={qrDataUrl}
alt={`Scan QR code to install ${appName}`} alt={`Scan single QR code to open ${appName}`}
className="w-44 h-44 object-contain rounded-xl" className="w-44 h-44 object-contain rounded-xl"
/> />
</div> </div>
<div className="mt-4 space-y-1 text-xs font-body text-muted"> <div className="mt-4 space-y-1.5 text-xs font-body text-muted">
<p className="font-medium text-ink">Instant mobile handoff</p> <p className="font-semibold text-ink flex items-center justify-center gap-1.5">
<p>Directs to App Store or Google Play for instantaneous installation.</p> <span>⚡ Automatic Store Detection</span>
</p>
<p className="text-[11.5px] text-muted max-w-xs leading-relaxed">
Single QR code — automatically opens <strong>Google Play</strong> on Android or <strong>Apple App Store</strong> on iPhone.
</p>
</div> </div>
</div> </div>
)} )}
+23 -16
View File
@@ -25,7 +25,7 @@ export function FaqSection({
const defaultItems = [ const defaultItems = [
{ {
q: 'Do you store or retain uploaded user photos?', 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?', q: 'Can I try all tools free on the web without an account?',
@@ -44,45 +44,50 @@ export function FaqSection({
const displayItems = items && items.length > 0 ? items : defaultItems; const displayItems = items && items.length > 0 ? items : defaultItems;
return ( return (
<section id="faq" className="py-8 sm:py-12 bg-paper relative"> <section id="faq" className="py-14 sm:py-18 lg:py-24 bg-[#F3F5FE] relative overflow-hidden">
<div className="max-w-3xl mx-auto px-4 sm:px-6 lg:px-8 space-y-6"> <div className="max-w-container mx-auto px-4 sm:px-6 lg:px-8 relative z-10">
{/* Section Header without thin separator */} <div className="grid grid-cols-1 lg:grid-cols-12 gap-8 lg:gap-14 items-start">
<div className="space-y-1.5 pb-1">
<h2 className="text-3xl sm:text-4xl font-display font-bold text-ink tracking-tight"> {/* Left Column: Heading & Subtitle (Left Aligned matching Figma) */}
<KineticText>{resolvedTitle}</KineticText> <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> </h2>
<p className="text-sm sm:text-base text-ink-2 font-body text-pretty"> <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. Technical details regarding zero-storage privacy, format limits, and mobile client handoff.
</p> </p>
</div> </div>
{/* Rounded Accordion Cards (NO SHARP EDGES) */} {/* Right Column: Rounded White Accordion Cards matching Figma */}
<div className="space-y-3.5"> <div className="lg:col-span-7 space-y-3.5">
{displayItems.map((item, idx) => { {displayItems.map((item, idx) => {
const isOpen = openIndex === idx; const isOpen = openIndex === idx;
return ( return (
<div <div
key={idx} key={idx}
className={`rounded-2xl bg-paper-hi border shadow-xs transition-[border-color,box-shadow] duration-200 overflow-hidden ${ className={`rounded-2xl bg-white border transition-[border-color,box-shadow] duration-200 overflow-hidden ${
isOpen ? 'border-accent shadow-glow' : 'border-rule hover:border-accent/50' isOpen ? 'border-[#3B82F6] shadow-md ring-1 ring-[#3B82F6]/20' : 'border-slate-200/90 shadow-xs hover:border-slate-300'
}`} }`}
> >
<button <button
type="button" type="button"
onClick={() => setOpenIndex(isOpen ? null : idx)} 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" 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} aria-expanded={isOpen}
> >
<span>{item.q}</span> <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 ${ <div className={`w-8 h-8 rounded-full flex items-center justify-center shrink-0 transition-transform duration-200 ${
isOpen ? 'rotate-180 bg-accent text-white' : 'text-muted' isOpen ? 'rotate-180 bg-blue-600 text-white' : 'bg-slate-100 text-slate-500'
}`}> }`}>
<ChevronDown className="w-4 h-4" aria-hidden="true" /> <ChevronDown className="w-4 h-4" aria-hidden="true" />
</div> </div>
</button> </button>
{isOpen && ( {isOpen && (
<div className="px-5 pb-5 pt-1 text-sm text-ink-2 leading-relaxed font-body border-t border-rule/60"> <div className="px-5 pb-5 pt-1 text-sm text-slate-600 leading-relaxed font-body border-t border-slate-100">
{item.a} {item.a}
</div> </div>
)} )}
@@ -90,6 +95,8 @@ export function FaqSection({
); );
})} })}
</div> </div>
</div>
</div> </div>
</section> </section>
); );
+76 -40
View File
@@ -196,10 +196,12 @@ export function HeroSection({
); );
} }
// 2. Centered Directory Hero (for /tools, /apps, /pricing, /trust) // 2. Centered Directory Hero (for /tools, /apps, /pricing, /trust, and app detail pages)
if (variant === 'centered') { if (variant === 'centered' || variant === 'appHero') {
const resolvedTitle = resolveLocalised(title, locale) || 'Creative studio'; const isAppHero = variant === 'appHero';
const resolvedTitle = resolveLocalised(title, locale) || (isAppHero ? 'Mobile Studio App' : 'Creative studio');
const resolvedSubtitle = resolveLocalised(subtitle, locale); const resolvedSubtitle = resolveLocalised(subtitle, locale);
const resolvedBadge = resolveLocalised(badge, locale);
const isTrustOrPrivacy = const isTrustOrPrivacy =
resolvedTitle.toLowerCase().includes('trust') || 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"> <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="w-2 h-2 rounded-full bg-accent animate-pulse" />
<span className="font-semibold text-accent"> <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>
<span className="w-1 h-1 rounded-full bg-muted/40" /> <span className="w-1 h-1 rounded-full bg-muted/40" />
<span className="text-muted"> <span className="text-muted">
{isTrustOrPrivacy ? 'Zero photo retention' : 'Direct browser trials'} {isTrustOrPrivacy ? 'Zero photo retention' : isAppHero ? 'iOS & Android Suite' : 'Direct browser trials'}
</span> </span>
</div> </div>
</BlurFade> </BlurFade>
@@ -275,6 +277,21 @@ export function HeroSection({
<span>Zero AI model training</span> <span>Zero AI model training</span>
</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"> <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> </RainbowButton>
<InteractiveHoverButton text="View Privacy Policy" href="/privacy" /> <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"> <RainbowButton href="#tools-catalog">
@@ -348,74 +376,82 @@ export function HeroSection({
</picture> </picture>
{/* Dynamic Studio Gradient Feathering (Light Theme Porcelain Scrims) */} {/* Dynamic Studio Gradient Feathering (Light Theme Porcelain Scrims) */}
{/* Left Side Scrim for Desktop: Ensures 100% typography contrast while keeping the photography vibrant */} {/* Central Radial Scrim to ensure pristine readability of centered headline while keeping side 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" /> <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 */} {/* 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-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 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> </div>
{/* Background Layer 2: Magic UI Atmospheric Light Rays */} {/* Background Layer 2: Magic UI Atmospheric Light Rays */}
<LightRays className="opacity-45" /> <LightRays className="opacity-35" />
{/* Background Layer 3: Fine Dot Matrix Pattern */} {/* Background Layer 3: Fine Dot Matrix Pattern */}
<div <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" aria-hidden="true"
/> />
{/* Content Container (Website Introduction, Visual Hierarchy, Kinetic Motion) */} {/* 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 justify-center min-h-[75vh] sm:min-h-[80vh]"> <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-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"> <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: {/* Centered 2-Line Headline matching Figma:
Line 1: Imagine -> Magic UI TextAnimate on first, AnimatedShinyText on hover Line 1: Imagine Transform (Large prominent bold dark text ~80px-92px)
Line 2: Transform -> Magic UI TextAnimate on first, AnimatedShinyText on hover Line 2: Create Impossible (Identical large font size in gradient ~80px-92px) */}
Line 3: Create Impossible -> Bold bluish-purple accent */} <div className="space-y-1.5 sm:space-y-2">
<div className="space-y-0.5 sm:space-y-1">
<h1 className="sr-only">Imagine Transform Create Impossible</h1> <h1 className="sr-only">Imagine Transform Create Impossible</h1>
{/* Line 1 - Imagine */} {/* Line 1 - Imagine 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]"> <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">
<HeroHeadlineItem text="Imagine" delay={0.08} /> <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> </div>
{/* Line 2 - Transform */} {/* Line 2 - Create Impossible (Identical font size to Line 1 matching Figma) */}
<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]"> <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">
<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)]">
Create Impossible Create Impossible
</div> </div>
</div> </div>
{/* Subtitle - reduced by 1 */} {/* Subtitle - Centered matching Figma */}
<BlurFade delay={0.16}> <BlurFade delay={0.16}>
<div className="space-y-3 max-w-xl mx-auto sm:mx-0"> <div className="max-w-2xl mx-auto px-2">
<p className="text-sm sm:text-lg md:text-xl text-ink-2 font-body font-normal leading-relaxed text-pretty"> <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. Turn ordinary moments into extraordinary visual art. Instant and private photo transformation right in your browser with hardware acceleration.
</p> </p>
</div> </div>
</BlurFade> </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}> <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"> <div className="flex flex-col sm:flex-row items-center justify-center gap-3.5 pt-2">
<RainbowButton <Link
href={primaryCtaHref} 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 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> <span>{primaryCtaLabel}</span>
<ArrowRight className="w-4 h-4 ml-1.5 inline shrink-0" aria-hidden="true" /> <ArrowRight className="w-4 h-4 group-hover:translate-x-0.5 transition-transform" aria-hidden="true" />
</RainbowButton> </span>
</Link>
<InteractiveHoverButton <Link
text={secondaryCtaLabel}
href={secondaryCtaHref} 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> </div>
</BlurFade> </BlurFade>
@@ -94,7 +94,7 @@ const DEFAULT_RECOMMENDED_APPS = [
{ {
id: 'app-enhancer', id: 'app-enhancer',
slug: 'photo-enhancer-pro', slug: 'photo-enhancer-pro',
name: 'Enhance Ultra AI', name: 'Enhance Photo Quality',
tagline: 'Generative 4K super-resolution and archival restoration', tagline: 'Generative 4K super-resolution and archival restoration',
category: 'Super resolution', category: 'Super resolution',
platforms: ['iOS 17+', 'Android 14+'], platforms: ['iOS 17+', 'Android 14+'],
@@ -104,7 +104,7 @@ const DEFAULT_RECOMMENDED_APPS = [
{ {
id: 'app-cutout', id: 'app-cutout',
slug: 'bg-cleaner-app', slug: 'bg-cleaner-app',
name: 'Magic Cutout Studio', name: 'BG Remove: Background Editor',
tagline: 'Sub-pixel P3M alpha matting and background removal', tagline: 'Sub-pixel P3M alpha matting and background removal',
category: 'Background cutout', category: 'Background cutout',
platforms: ['iOS 17+', 'Android 14+'], platforms: ['iOS 17+', 'Android 14+'],
@@ -156,7 +156,23 @@ export function RecommendedAppsSection({
</span> </span>
</div> </div>
<h2 className="text-3xl sm:text-4xl font-display font-bold text-ink tracking-tight"> <h2 className="text-3xl sm:text-4xl font-display font-bold text-ink tracking-tight">
{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> <KineticText>{title}</KineticText>
)}
</h2> </h2>
<p className="text-sm sm:text-base text-ink-2 font-body text-pretty"> <p className="text-sm sm:text-base text-ink-2 font-body text-pretty">
{subtitle} {subtitle}
@@ -184,20 +200,30 @@ export function RecommendedAppsSection({
/> />
<div className="space-y-4 relative z-10"> <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"> <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="flex items-center gap-3">
{/* Squircle App Icon */}
<div className="relative"> <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`}> <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-7 h-7 drop-shadow-sm" aria-hidden="true" /> <AppIcon className="w-6 h-6 sm:w-7 sm:h-7 drop-shadow-sm" aria-hidden="true" />
</div> </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"> <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" /> <Smartphone className="w-3 h-3 text-ink-2" aria-hidden="true" />
</div> </div>
</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"> <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'} {app.category || 'Mobile suite'}
</span> </span>
<div className="flex items-center justify-end gap-1 mt-1 text-xs text-muted font-body"> <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> </div>
{/* Bottom CTA Button */} {/* Bottom CTA Button: Learn More Button taking to dedicated app page in apps tab */}
<div className="pt-5 mt-4 border-t border-rule relative z-10"> <div className="pt-4 mt-4 border-t border-rule relative z-10">
<Link <Link
href={`/apps/${slug}`} 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" /> <ArrowRight className="w-3.5 h-3.5 group-hover/btn:translate-x-1 motion-safe:transition-transform duration-150" aria-hidden="true" />
</Link> </Link>
</div> </div>
@@ -3,7 +3,6 @@
import React from 'react'; import React from 'react';
import { Star, CheckCircle2 } from 'lucide-react'; import { Star, CheckCircle2 } from 'lucide-react';
import { Marquee } from '@/components/magicui/marquee'; import { Marquee } from '@/components/magicui/marquee';
import { KineticText } from '@/components/magicui/kinetic-text';
interface ReviewsMarqueeSectionProps { interface ReviewsMarqueeSectionProps {
title?: string; title?: string;
@@ -137,7 +136,7 @@ export function ReviewsMarqueeSection({
return ( return (
<section <section
id="user-reviews" 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 */} {/* Studio Lighting Ambient Glow */}
<div <div
@@ -149,32 +148,15 @@ export function ReviewsMarqueeSection({
aria-hidden="true" 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"> {/* Single Marquee Row of Feedbacks with Localized Edge Fades matching Figma */}
{/* Section Header without thin separator */} <div className="relative overflow-hidden w-full z-10">
<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 */}
<div className="relative overflow-hidden w-full">
{/* Subtle Local Edge Fades strictly confined to the moving review cards */} {/* Subtle Local Edge Fades strictly confined to the moving review cards */}
<div <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" 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" aria-hidden="true"
/> />
<div <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" 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" aria-hidden="true"
/> />
@@ -182,7 +164,7 @@ export function ReviewsMarqueeSection({
{displayReviews.map((rev, i) => ( {displayReviews.map((rev, i) => (
<div <div
key={i} 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" 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> <div>
{/* Top Bar: Tool Pill & 5 Stars */} {/* Top Bar: Tool Pill & 5 Stars */}
@@ -228,7 +210,6 @@ export function ReviewsMarqueeSection({
))} ))}
</Marquee> </Marquee>
</div> </div>
</div>
</section> </section>
); );
} }
@@ -125,7 +125,16 @@ export function ShiftableToolsGridSection({
{/* Section Header - Clean editorial layout without thin separator */} {/* Section Header - Clean editorial layout without thin separator */}
<div className="max-w-2xl space-y-1.5 pb-1"> <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"> <h2 className="text-3xl sm:text-4xl font-display font-bold text-ink tracking-tight">
{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> <KineticText>{title}</KineticText>
)}
</h2> </h2>
<p className="text-sm sm:text-base text-ink-2 font-body text-pretty"> <p className="text-sm sm:text-base text-ink-2 font-body text-pretty">
{subtitle} {subtitle}
@@ -138,20 +147,21 @@ export function ShiftableToolsGridSection({
<ShiftableRow items={row2} /> <ShiftableRow items={row2} />
</div> </div>
{/* Mobile / Phone View (<md): Pure Vertical Stack */} {/* Mobile / Phone View (<md): Responsive Grid */}
<div className="block md:hidden"> <div className="block md:hidden">
<MobileVerticalToolsList items={displayItems} /> <MobileVerticalToolsList items={displayItems} />
</div> </div>
{/* All tools link */} {/* Centered "View All AI Tool Directory ->" button matching Figma */}
<div className="pt-4 flex justify-between items-center text-xs font-body text-muted border-t border-rule"> <div className="pt-8 flex justify-center">
<span>Eight neural models active on web trial</span>
<Link <Link
href="/tools" 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> <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">
<ArrowRight className="w-3.5 h-3.5" aria-hidden="true" /> <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> </Link>
</div> </div>
</div> </div>
@@ -161,14 +171,14 @@ export function ShiftableToolsGridSection({
function MobileVerticalToolsList({ items }: { items: ToolMediaItem[] }) { function MobileVerticalToolsList({ items }: { items: ToolMediaItem[] }) {
return ( 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) => ( {items.map((item) => (
<div key={item.id} className="w-full flex flex-col"> <div key={item.id} className="w-full flex flex-col group">
<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 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} /> <ToolWindowMedia item={item} isHovered={false} />
<Link <Link
href={`/tools/${item.slug}`} 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}`} aria-label={`Open ${item.title}`}
> >
<span>Try tool</span> <span>Try tool</span>
@@ -177,10 +187,10 @@ function MobileVerticalToolsList({ items }: { items: ToolMediaItem[] }) {
</div> </div>
<Link <Link
href={`/tools/${item.slug}`} 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> <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> </Link>
</div> </div>
))} ))}
@@ -208,7 +218,7 @@ function ShiftableRow({ items }: { items: ToolMediaItem[] }) {
style={{ flexGrow: flexGrowValue }} 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)] ${ <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} /> <ToolWindowMedia item={item} isHovered={isHovered} />
+35 -11
View File
@@ -1,33 +1,57 @@
import React from 'react'; import React from 'react';
interface StatsSectionProps { interface StatsSectionProps {
title?: string;
items?: Array<{ items?: Array<{
value: string; value: string;
label: string; label: string;
}>; }>;
} }
export function StatsSection({ items = [] }: StatsSectionProps) { export function StatsSection({
if (!items || items.length === 0) return null; 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 ( return (
<section className="py-14 sm:py-16 bg-[#FAF8F5] border-y border-slate-900/[0.08] relative overflow-hidden"> <section id="stats-section" className="py-14 sm:py-20 bg-white 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="max-w-container mx-auto px-4 sm:px-6 lg:px-8 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 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 <div
key={idx} 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} {stat.value}
</div> </div>
<p className="text-xs sm:text-sm font-mono uppercase tracking-wider text-slate-600 font-bold block">
{stat.label} {/* White Pill Badge with Blue Label */}
</p> <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> </div>
</div> </div>
</section> </section>
); );
+70 -12
View File
@@ -1,6 +1,6 @@
'use client'; 'use client';
import React from 'react'; import React, { useRef } from 'react';
import Link from 'next/link'; import Link from 'next/link';
import { import {
Scissors, Scissors,
@@ -10,7 +10,9 @@ import {
ArrowRight, ArrowRight,
Smile, Smile,
Eraser, Eraser,
Sparkles Sparkles,
ChevronLeft,
ChevronRight
} from 'lucide-react'; } from 'lucide-react';
import { KineticText } from '@/components/magicui/kinetic-text'; import { KineticText } from '@/components/magicui/kinetic-text';
import { AnimatedShinyText } from '@/components/magicui/animated-shiny-text'; import { AnimatedShinyText } from '@/components/magicui/animated-shiny-text';
@@ -106,13 +108,21 @@ const INITIAL_TILES: TileItem[] = [
]; ];
export function TrendyBentoSection({ export function TrendyBentoSection({
title = 'Trendy features', title = 'Trendy Effects',
subtitle = 'Computer vision models engineered for professional photographers and studios.', subtitle = 'Computer vision models engineered for professional photographers and studios.',
}: TrendyBentoSectionProps) { }: TrendyBentoSectionProps) {
const tiles = INITIAL_TILES; 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 ( 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 */} {/* Studio Lighting Ambient Glow */}
<div <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%)]" 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,18 +134,55 @@ export function TrendyBentoSection({
/> />
<div className="max-w-container mx-auto space-y-6 relative z-10"> <div className="max-w-container mx-auto space-y-6 relative z-10">
{/* Header without thin separator */} {/* Header with Title on Left, and View All on Right matching Figma */}
<div className="max-w-2xl space-y-1.5 pb-1"> <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"> <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> <KineticText>{title}</KineticText>
)}
</h2> </h2>
<p className="text-sm sm:text-base text-ink-2 font-body text-pretty"> <p className="text-sm sm:text-base text-ink-2 font-body text-pretty">
{subtitle} {subtitle}
</p> </p>
</div> </div>
{/* Specimen Tiles Grid */} <div className="flex items-center gap-2.5 shrink-0 self-start sm:self-auto">
<div className="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-6"> {/* 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 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>
{/* 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) => { {tiles.map((tile) => {
const Icon = tile.icon; const Icon = tile.icon;
@@ -143,15 +190,15 @@ export function TrendyBentoSection({
<Link <Link
key={tile.id} key={tile.id}
href={tile.href} 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" 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 */} {/* Image Specimen */}
<div className="relative aspect-[4/3] rounded-2xl overflow-hidden bg-paper-2 border border-rule mb-3.5"> <div className="relative aspect-[4/3] rounded-2xl overflow-hidden bg-paper-2 border border-rule mb-3.5">
<img <img
src={tile.imageUrl} src={tile.imageUrl}
alt={tile.name} alt={tile.name}
className="w-full h-full object-cover" className="w-full h-full object-cover group-hover:scale-105 transition-transform duration-500"
loading="eager" loading="lazy"
/> />
</div> </div>
@@ -164,7 +211,7 @@ export function TrendyBentoSection({
<AnimatedShinyText>{tile.name}</AnimatedShinyText> <AnimatedShinyText>{tile.name}</AnimatedShinyText>
</h3> </h3>
</div> </div>
<p className="text-xs text-muted leading-relaxed font-body"> <p className="text-xs text-muted leading-relaxed font-body line-clamp-2">
{tile.description} {tile.description}
</p> </p>
</div> </div>
@@ -178,6 +225,17 @@ export function TrendyBentoSection({
); );
})} })}
</div> </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> </div>
</section> </section>
); );
+20 -10
View File
@@ -77,13 +77,22 @@ export function PostResultAppHandoff({
const appName = resolveLocalised(appData.name, locale); const appName = resolveLocalised(appData.name, locale);
const toolName = tool.name ? resolveLocalised(tool.name, locale) : 'Photo Tools'; const toolName = tool.name ? resolveLocalised(tool.name, locale) : 'Photo Tools';
const baseHost = origin || 'http://localhost:3000'; const redirectHost =
const targetUrl = `${baseHost}/go/${tool.slug}/${appData.slug}?src=${variant}`; process.env.NEXT_PUBLIC_APP_REDIRECT_HOST ||
const iosUrl = appData.stores?.ios?.url || `/go/${tool.slug}/${appData.slug}?src=ios`; process.env.NEXT_PUBLIC_SITE_URL ||
const androidUrl = appData.stores?.android?.url || `/go/${tool.slug}/${appData.slug}?src=android`; origin ||
'http://localhost:3000';
const targetUrl = tool
? `${redirectHost}/go/${tool.slug}/${appData.slug}?src=${variant}`
: `${redirectHost}/go/explore/${appData.slug}?src=${variant}`;
const iosUrl = appData.stores?.ios?.url || 'https://apps.apple.com';
const androidUrl = appData.stores?.android?.url || 'https://play.google.com';
// Generate dynamic QR Code for instant phone handoff // Generate dynamic QR Code for instant phone handoff
useEffect(() => { useEffect(() => {
if (targetUrl) {
QRCode.toDataURL(targetUrl, { QRCode.toDataURL(targetUrl, {
width: 240, width: 240,
margin: 1, margin: 1,
@@ -94,6 +103,7 @@ export function PostResultAppHandoff({
}) })
.then((url) => setQrDataUrl(url)) .then((url) => setQrDataUrl(url))
.catch((err) => console.error('Failed to generate QR code:', err)); .catch((err) => console.error('Failed to generate QR code:', err));
}
}, [targetUrl]); }, [targetUrl]);
const handleCopyLink = (e: React.MouseEvent) => { const handleCopyLink = (e: React.MouseEvent) => {
@@ -315,7 +325,7 @@ export function PostResultAppHandoff({
// eslint-disable-next-line @next/next/no-img-element // eslint-disable-next-line @next/next/no-img-element
<img <img
src={qrDataUrl} src={qrDataUrl}
alt={`Scan QR code to install ${appName}`} alt={`Scan single QR code to install ${appName}`}
className="w-40 h-40 object-contain rounded-xl select-none" className="w-40 h-40 object-contain rounded-xl select-none"
/> />
) : ( ) : (
@@ -326,12 +336,12 @@ export function PostResultAppHandoff({
</div> </div>
<div className="space-y-1"> <div className="space-y-1">
<p className="text-[11px] text-slate-600 font-sans leading-tight"> <p className="text-[11.5px] text-slate-800 font-sans font-semibold leading-tight">
Instantly opens App Store or Google Play directly on your phone. ⚡ Automatic Store Detection
</p>
<p className="text-[11px] text-slate-500 font-sans leading-relaxed">
Automatically opens <strong>Google Play</strong> on Android or <strong>App Store</strong> on iPhone.
</p> </p>
<span className="inline-block text-[10px] text-slate-400 font-sans">
Works on iOS 15+ and Android 9+
</span>
</div> </div>
</div> </div>
+14 -29
View File
@@ -30,52 +30,37 @@ export function BrandLogo({
style={{ width: iconDimensions.w, height: iconDimensions.h }} style={{ width: iconDimensions.w, height: iconDimensions.h }}
> >
<svg <svg
viewBox="0 0 40 40" viewBox="0 0 71 71"
fill="none" fill="none"
className="w-full h-full" className="w-full h-full"
xmlns="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg"
aria-hidden="true" aria-hidden="true"
> >
{/* Outer Lens Ring */} {/* Purple Brand Emblem Circle matching management/icon_website.svg */}
<circle <circle cx="35.5" cy="35.5" r="35.5" fill="#9A70EE" />
cx="20" <path
cy="20" 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"
r="18" fill="white"
stroke="var(--color-ink)"
strokeWidth="1.5"
/> />
{/* Inner Ground Circle */} <path
<circle 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"
cx="20" fill="white"
cy="20"
r="12"
stroke="var(--color-rule)"
strokeWidth="1"
strokeDasharray="2 3"
/> />
{/* 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> </svg>
</div> </div>
{/* Typographic Wordmark */} {/* Typographic Wordmark matching Figma */}
{showWordmark && ( {showWordmark && (
<div className="flex flex-col text-left"> <div className="flex flex-col text-left">
<div className="flex items-baseline gap-1.5 leading-none"> <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 CRE
</span> </span>
<span className={`font-inter font-normal text-ink-2 ${iconDimensions.title}`}> <span className={`font-inter font-bold tracking-tight ${isDark ? 'text-white' : 'text-slate-900'} ${iconDimensions.title}`}>
Innovations INNOVATIONS
</span> </span>
</div> </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 Photographic tools
</span> </span>
</div> </div>
+113 -29
View File
@@ -11,77 +11,161 @@ interface FooterProps {
export function Footer({ config, currentLocale }: FooterProps) { export function Footer({ config, currentLocale }: FooterProps) {
return ( 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="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"> <div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-12 gap-10 lg:gap-8">
{/* Brand & Editorial Statement */}
<div className="md:col-span-2 space-y-4"> {/* Brand & Editorial Statement (4 cols on lg) matching Figma */}
<BrandLogo size="md" /> <div className="lg:col-span-4 space-y-4">
<p className="text-sm text-ink-2 max-w-md leading-relaxed font-body"> <BrandLogo size="md" isDark={true} />
{resolveLocalised(config.brand.tagline, currentLocale)}. Deep learning neural vision models for sub-pore portrait retouching, hair-strand matting, and archival restoration. <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> </p>
<div className="pt-2"> <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"> <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-accent" aria-hidden="true" /> <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> <span>Zero-storage policy: photos processed in volatile memory only</span>
</div> </div>
</div> </div>
</div> </div>
{/* Platform Suite */} {/* Column 2: AI Tools (2 cols on lg) matching Figma */}
<div className="space-y-3"> <div className="lg:col-span-2 space-y-3">
<h4 className="text-xs font-body font-semibold text-ink"> <h4 className="text-xs font-body font-semibold text-white tracking-wider">
Platform tools <Link href="/tools" className="hover:text-blue-400 transition-colors">
AI Tools
</Link>
</h4> </h4>
<ul className="space-y-2 text-sm font-body"> <ul className="space-y-2 text-sm font-body">
<li> <li>
<Link href="/tools" className="text-muted hover:text-ink transition-colors"> <Link href="/tools/photo-enhancer" className="text-zinc-400 hover:text-white transition-colors">
All neural photo tools Photo Enhancer
</Link> </Link>
</li> </li>
<li> <li>
<Link href="/apps" className="text-muted hover:text-ink transition-colors"> <Link href="/tools/background-remover" className="text-zinc-400 hover:text-white transition-colors">
Native mobile applications Background Remover
</Link> </Link>
</li> </li>
<li> <li>
<Link href="/catalog-manager" className="text-muted hover:text-ink transition-colors inline-flex items-center gap-1"> <Link href="/tools/studio-headshots" className="text-zinc-400 hover:text-white transition-colors">
<span>Catalogue inspector</span> Headshots
<ArrowUpRight className="w-3 h-3 text-accent" aria-hidden="true" /> </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> </Link>
</li> </li>
</ul> </ul>
</div> </div>
{/* Trust & Architecture */} {/* Column 3: Image Generation (2 cols on lg) matching Figma */}
<div className="space-y-3"> <div className="lg:col-span-2 space-y-3">
<h4 className="text-xs font-body font-semibold text-ink"> <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 Trust & safeguards
</h4> </h4>
<ul className="space-y-2 text-sm font-body"> <ul className="space-y-2 text-sm font-body">
<li> <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 Security safeguards
</Link> </Link>
</li> </li>
<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 Privacy policy
</Link> </Link>
</li> </li>
<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 Terms of service
</Link> </Link>
</li> </li>
</ul> </ul>
</div> </div>
</div> </div>
{/* Bottom Bar */} {/* Bottom Bar matching Figma */}
<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"> <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>{config.footer.copyright}</p> <p>© 2026 CRE Innovations. All rights reserved.</p>
<p>CRE Innovations · Precision photographic studio</p> <p>CRE Innovations · Precision photographic studio</p>
</div> </div>
</div> </div>
+317 -55
View File
@@ -7,44 +7,120 @@ import {
Menu, Menu,
X, X,
ArrowRight, ArrowRight,
ChevronDown,
ChevronRight,
Sparkles, Sparkles,
Smartphone, Smartphone,
Layers,
ShieldCheck, ShieldCheck,
Smile, Home,
Scissors, Camera,
Palette,
Wand2,
Home
} from 'lucide-react'; } from 'lucide-react';
import { SiteConfig, CategoryItem, resolveLocalised } from '@/types'; import { SiteConfig, CategoryItem, ToolItem, resolveLocalised } from '@/types';
import { BrandLogo } from './BrandLogo'; import { BrandLogo } from './BrandLogo';
import { RainbowButton } from '@/components/magicui/rainbow-button';
interface NavbarProps { interface NavbarProps {
config: SiteConfig; config: SiteConfig;
currentLocale: string; currentLocale: string;
categories?: CategoryItem[]; categories?: CategoryItem[];
tools?: ToolItem[];
totalToolsCount?: number; totalToolsCount?: number;
} }
const ICON_MAP: Record<string, React.ComponentType<{ className?: string }>> = { // AI Tools dropdown — 4 columns, text-only items matching Figma
Smile, const AI_TOOLS_DROPDOWN = {
Sparkles, columns: [
Scissors, {
Palette, heading: 'Portrait Retouch',
Wand2, items: [
Layers, { slug: 'blemish-remover', title: 'Blemish Remover' },
Smartphone, { slug: 'eye-bag-remover', title: 'Eye Bag Remover' },
ShieldCheck, { 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 [mobileMenuOpen, setMobileMenuOpen] = useState(false);
const [scrolled, setScrolled] = 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(() => { useEffect(() => {
const handleScroll = () => { const handleScroll = () => {
setScrolled(window.scrollY > 20); setScrolled(window.scrollY > 20);
@@ -54,15 +130,34 @@ export function Navbar({ config, currentLocale, categories = [], totalToolsCount
return () => window.removeEventListener('scroll', handleScroll); return () => window.removeEventListener('scroll', handleScroll);
}, []); }, []);
// Close mobile menu on Escape key // Close menus on Escape key
useEffect(() => { useEffect(() => {
if (!mobileMenuOpen) return; const handleKeyDown = (event: KeyboardEvent) => {
const closeOnEscape = (event: KeyboardEvent) => { if (event.key === 'Escape') {
if (event.key === 'Escape') setMobileMenuOpen(false); setMobileMenuOpen(false);
setOpenDropdown(null);
}
}; };
document.addEventListener('keydown', closeOnEscape); document.addEventListener('keydown', handleKeyDown);
return () => document.removeEventListener('keydown', closeOnEscape); return () => document.removeEventListener('keydown', handleKeyDown);
}, [mobileMenuOpen]); }, []);
// 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 // Lock body scroll on mobile drawer
useEffect(() => { useEffect(() => {
@@ -79,11 +174,28 @@ export function Navbar({ config, currentLocale, categories = [], totalToolsCount
}; };
}, [mobileMenuOpen]); }, [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) => ({ const navLinks = (config.nav?.header || []).map((item) => ({
href: item.href, href: item.href,
label: resolveLocalised(item.label, currentLocale), label: resolveLocalised(item.label, currentLocale),
badge: item.badge, badge: item.badge,
hasDropdown: item.hasDropdown,
hasChevronRight: item.hasChevronRight,
exact: item.href === '/', exact: item.href === '/',
})); }));
@@ -112,25 +224,112 @@ export function Navbar({ config, currentLocale, categories = [], totalToolsCount
<BrandLogo size="md" /> <BrandLogo size="md" />
</div> </div>
{/* Center Floating Docked Pill Menu (Desktop) */} {/* Center Floating Docked Pill Menu (Desktop) matching Figma */}
<nav <nav
ref={navRef}
aria-label="Main navigation" 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 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 ( return (
<div
key={`${link.href}-${idx}`}
className="relative"
onMouseEnter={() => handleDropdownEnter(dropdownType)}
onMouseLeave={handleDropdownLeave}
>
<Link <Link
key={link.href}
href={link.href} 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 ${ onClick={() => setOpenDropdown(null)}
active 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 ${
? 'bg-paper-hi text-ink font-medium shadow-xs border border-rule/80' active || isOpen
: '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> <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}-${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 ${
active
? '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 && ( {link.badge && (
<span <span
className={`text-[10px] px-1.5 py-0.2 rounded-full font-body ${ 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 */} {/* Right CTA Actions from JSON */}
<div className="hidden md:flex items-center gap-3 relative z-20 flex-shrink-0"> <div className="hidden md:flex items-center gap-3 relative z-20 flex-shrink-0">
<RainbowButton href={ctaHref}> <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> <span>{ctaLabel}</span>
<ArrowRight className="w-3.5 h-3.5 ml-1 inline" aria-hidden="true" /> <ArrowRight className="w-3.5 h-3.5 group-hover:translate-x-0.5 transition-transform" aria-hidden="true" />
</RainbowButton> </span>
</Link>
</div> </div>
{/* Mobile Hamburger Toggle Button */} {/* 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"> <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"> <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> <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 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 ( return (
<div key={link.href} className="space-y-1"> <div key={`${link.href}-${idx}`} className="space-y-1">
<Link <div
href={link.href}
onClick={() => setMobileMenuOpen(false)}
className={`flex items-center justify-between px-4 py-3 rounded-2xl text-base font-body motion-safe:transition-colors ${ className={`flex items-center justify-between px-4 py-3 rounded-2xl text-base font-body motion-safe:transition-colors ${
active active
? 'bg-paper-hi text-ink font-semibold border border-rule shadow-xs' ? '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' : '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 === '/' && <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 === '/apps' && <Smartphone className="w-4 h-4 text-accent" />}
{link.href === '/trust' && <ShieldCheck className="w-4 h-4 text-accent" />} {link.href === '/trust' && <ShieldCheck className="w-4 h-4 text-accent" />}
<span>{link.label}</span> <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> </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" />
)
)}
</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> </div>
); );
})} })}
</nav> </nav>
<div className="pt-6 border-t border-rule space-y-3"> <div className="pt-6 border-t border-rule space-y-3">
<RainbowButton <Link
href={ctaHref} href={ctaHref}
onClick={() => setMobileMenuOpen(false)} 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> <span>{ctaLabel}</span>
<ArrowRight className="w-4 h-4 ml-1 inline" aria-hidden="true" /> <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"> <div className="flex items-center justify-center gap-4 text-xs text-muted font-body">
<span>{dropdownTagline}</span> <span>{dropdownTagline}</span>
</div> </div>
+1
View File
@@ -49,6 +49,7 @@ export interface SiteConfig {
children?: string; children?: string;
badge?: string; badge?: string;
hasDropdown?: boolean; hasDropdown?: boolean;
hasChevronRight?: boolean;
}>; }>;
cta: { cta: {
label: Localised; label: Localised;
+72
View File
@@ -0,0 +1,72 @@
import { describe, it, expect } from 'vitest';
import { NextRequest } from 'next/server';
import { GET } from '@/app/go/[tool]/[app]/route';
describe('/go/[tool]/[app] dynamic redirect route', () => {
it('redirects Android user to Enhance Photo Quality on Google Play', async () => {
const req = new NextRequest('http://localhost:3000/go/photo-enhancer/photo-enhancer-pro', {
headers: {
'user-agent': 'Mozilla/5.0 (Linux; Android 14; Pixel 8) AppleWebKit/537.36 Chrome/120.0.0.0 Mobile Safari/537.36',
},
});
const res = await GET(req, {
params: { tool: 'photo-enhancer', app: 'photo-enhancer-pro' },
});
expect(res.status).toBe(307);
const location = res.headers.get('location');
expect(location).toContain('play.google.com/store/apps/details?id=com.smartworld.enhancephotoquality');
expect(location).toContain('pcampaignid=web_share');
expect(location).toContain('referrer=utm_source');
});
it('redirects iOS user to Enhance Photo Quality on Apple App Store', async () => {
const req = new NextRequest('http://localhost:3000/go/photo-enhancer/photo-enhancer-pro', {
headers: {
'user-agent': 'Mozilla/5.0 (iPhone; CPU iPhone OS 17_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.0 Mobile/15E148 Safari/604.1',
},
});
const res = await GET(req, {
params: { tool: 'photo-enhancer', app: 'photo-enhancer-pro' },
});
expect(res.status).toBe(307);
const location = res.headers.get('location');
expect(location).toContain('apps.apple.com/mm/app/enhance-photo-quality/id1587310121');
});
it('redirects Android user to BG Remove / Dress Changer on Google Play', async () => {
const req = new NextRequest('http://localhost:3000/go/background-remover/bg-cleaner-app', {
headers: {
'user-agent': 'Mozilla/5.0 (Linux; Android 14; Samsung Galaxy S24) AppleWebKit/537.36',
},
});
const res = await GET(req, {
params: { tool: 'background-remover', app: 'bg-cleaner-app' },
});
expect(res.status).toBe(307);
const location = res.headers.get('location');
expect(location).toContain('play.google.com/store/apps/details?id=com.me2creative.AiDressChanger');
expect(location).toContain('pcampaignid=web_share');
});
it('redirects iOS user to BG Remove: Background Editor on Apple App Store', async () => {
const req = new NextRequest('http://localhost:3000/go/background-remover/bg-cleaner-app', {
headers: {
'user-agent': 'Mozilla/5.0 (iPhone; CPU iPhone OS 17_2 like Mac OS X) AppleWebKit/605.1.15',
},
});
const res = await GET(req, {
params: { tool: 'background-remover', app: 'bg-cleaner-app' },
});
expect(res.status).toBe(307);
const location = res.headers.get('location');
expect(location).toContain('apps.apple.com/bn/app/bg-remove-background-editor/id1497878283');
});
});