feat: make tryIt presets, limits, badges and buttons completely dynamic from JSON configs

This commit is contained in:
2026-11-04 15:36:30 +05:30
parent de20dd4c7e
commit e5c318099d
21 changed files with 881 additions and 250 deletions
Binary file not shown.

After

Width:  |  Height:  |  Size: 206 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 102 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 71 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 65 KiB

+101 -21
View File
@@ -15,14 +15,48 @@
"props": {
"title": {
"en": "Transform Photos with Next-Gen Neural AI",
"hi": "\u0928\u0947\u0915\u094d\u0938\u094d\u091f-\u091c\u0947\u0928 \u0928\u094d\u092f\u0942\u0930\u0932 \u090f\u0906\u0908 \u0915\u0947 \u0938\u093e\u0925 \u092b\u094b\u091f\u094b \u092c\u0926\u0932\u0947\u0902"
"hi": "नेक्स्ट-जेन न्यूरल एआई के साथ फोटो बदलें"
},
"subtitle": {
"en": "Advanced neural vision tools with zero sign-up and zero data retention. Process high-resolution portraits, precision cutouts, and restorations directly in your browser.",
"hi": "\u092c\u093f\u0928\u093e \u0938\u093e\u0907\u0928-\u0905\u092a \u0915\u0947 \u0938\u094d\u091f\u0942\u0921\u093f\u092f\u094b-\u0917\u094d\u0930\u0947\u0921 \u092b\u094b\u091f\u094b \u091f\u0942\u0932\u094d\u0938 \u092e\u0941\u092b\u093c\u094d\u0924 \u092e\u0947\u0902 \u0906\u091c\u093c\u092e\u093e\u090f\u0902\u0964 \u0939\u092e\u093e\u0930\u0947 \u092e\u094b\u092c\u093e\u0907\u0932 \u0910\u092a\u094d\u0938 \u092e\u0947\u0902 4K \u090f\u0915\u094d\u0938\u092a\u094b\u0930\u094d\u091f \u092a\u094d\u0930\u093e\u092a\u094d\u0924 \u0915\u0930\u0947\u0902\u0964"
"hi": "बिना साइन-अप के स्टूडियो-ग्रेड फोटो टूल्स मुफ़्त में आज़माएं। हमारे मोबाइल ऐप्स में 4K एक्सपोर्ट प्राप्त करें।"
},
"tryIt": {
"toolRef": "face.blemish.remove"
"toolRef": "face.blemish.remove",
"ctaText": "Clean blemishes in 1-click",
"samplePresets": [
{
"label": "Sample Photo",
"url": "/management/pages/home/media/sample_portrait_1.jpg"
},
{
"label": "Natural Studio Model",
"url": "/management/pages/home/media/sample_portrait_2.jpg"
},
{
"label": "Vintage Archival Shot",
"url": "/management/pages/home/media/sample_portrait_3.jpg"
}
]
},
"trustBadges": [
{
"text": "No account needed"
},
{
"text": "Photos aren't stored"
},
{
"text": "Try with a sample"
}
],
"primaryCta": {
"label": "Explore the tools",
"href": "/tools"
},
"secondaryCta": {
"label": "Our apps",
"href": "/apps"
}
}
},
@@ -70,7 +104,8 @@
"tag": "Iris Sharpness"
}
]
}
},
"enabled": true
},
{
"id": "stats-section",
@@ -82,7 +117,7 @@
"label": "Photos Enhanced"
},
{
"value": "4.9 \u2605",
"value": "4.9 ★",
"label": "App Store & Play Rating"
},
{
@@ -106,7 +141,7 @@
"items": [
{
"id": "alpha-matting",
"index": "01 / 03",
"index": "01 / 05",
"tabLabel": "01 ALPHA",
"category": "FINE MATTING & CUTOUT",
"model": "P3M-Net Dual-Stream Alpha",
@@ -128,7 +163,7 @@
},
{
"id": "editorial-portrait-banner",
"index": "02 / 03",
"index": "02 / 05",
"tabLabel": "02 BANNER",
"category": "STUDIO PRO BANNER",
"model": "RetouchGAN v2.1 Prime",
@@ -138,7 +173,7 @@
"description": "Transform commercial model photography with authentic skin pore preservation. Retain real freckles, iris glints, and fine texture with zero plastic artificial blur.",
"variant": "banner",
"bannerImage": "/management/pages/home/media/showcase_02_portrait_before.jpg",
"bannerBadge": "PRO EDITION \u2022 LOSSLESS FP16",
"bannerBadge": "PRO EDITION • LOSSLESS FP16",
"toolSlug": "blemish-remover",
"appSlug": "portrait-app",
"appName": "Portrait Studio AI",
@@ -152,7 +187,7 @@
},
{
"id": "super-resolution",
"index": "03 / 03",
"index": "03 / 05",
"tabLabel": "03 4K",
"category": "4K SUPER-RESOLUTION",
"model": "GFPGAN + RealESRGAN Ultra",
@@ -171,8 +206,53 @@
"400% lossless super-resolution",
"Studio-grade crispness"
]
},
{
"id": "archival-restoration",
"index": "04 / 05",
"tabLabel": "04 RESTORE",
"category": "ARCHIVAL RESTORATION & REPAIR",
"model": "ScratchDeNet Pro + Deep Inpaint",
"latency": "< 490ms Stream",
"title": "Vintage Photo Restoration & Tear Repair",
"tagline": "Reconstruct cracked, creased, and faded archival prints in 4K.",
"description": "Generative neural inpainting detects scratches, stains, and physical emulsion degradation, reconstructing authentic skin texture and historical tonal depth without artificial blur.",
"variant": "comparison",
"beforeUrl": "/management/pages/home/media/showcase_04_restore_before.jpg",
"afterUrl": "/management/pages/home/media/showcase_04_restore_after.jpg",
"toolSlug": "old-photo-restorer",
"appSlug": "photo-enhancer-pro",
"appName": "Photo Restore Pro",
"specs": [
"Scratch & crease inpainting",
"Historical tone recovery",
"Studio 4K lossless export"
]
},
{
"id": "anime-cartoon-synthesis",
"index": "05 / 05",
"tabLabel": "05 ANIME",
"category": "GENERATIVE ANIME & ART",
"model": "AnimeGAN v3 Core + VectorFlow",
"latency": "< 350ms Stream",
"title": "Anime & Artistic Avatar Synthesizer",
"tagline": "Turn studio portraits into cinema-grade anime and vector line artwork.",
"description": "State-of-the-art dual-branch generative adversarial network extracts facial landmarks and renders clean Japanese anime cell shading, vibrant line art, and cinematic lighting.",
"variant": "comparison",
"beforeUrl": "/management/pages/home/media/showcase_05_cartoon_before.jpg",
"afterUrl": "/management/pages/home/media/showcase_05_cartoon_after.jpg",
"toolSlug": "cartoon-avatar",
"appSlug": "art-studio-app",
"appName": "Art Studio AI",
"specs": [
"Vector ink contour synthesis",
"Manga cel-shading palette",
"Lossless 4K illustration export"
]
}
]
],
"animationMode": "vertical"
}
},
{
@@ -181,7 +261,7 @@
"props": {
"title": {
"en": "The Creative Studio Suite",
"hi": "\u0915\u094d\u0930\u093f\u090f\u091f\u093f\u0935 \u0938\u094d\u091f\u0942\u0921\u093f\u092f\u094b \u0938\u0942\u091f"
"hi": "क्रिएटिव स्टूडियो सूट"
}
}
},
@@ -196,11 +276,11 @@
"props": {
"title": {
"en": "Specialized Mobile Apps for Every Creative Task",
"hi": "\u0939\u0930 \u0930\u091a\u0928\u093e\u0924\u094d\u092e\u0915 \u0915\u093e\u0930\u094d\u092f \u0915\u0947 \u0932\u093f\u090f \u0938\u092e\u0930\u094d\u092a\u093f\u0924 \u092e\u094b\u092c\u093e\u0907\u0932 \u0910\u092a\u094d\u0938"
"hi": "हर रचनात्मक कार्य के लिए समर्पित मोबाइल ऐप्स"
},
"subtitle": {
"en": "Ready for high volume batch editing and lossless 4K export? Download our dedicated mobile apps for iOS and Android.",
"hi": "\u092c\u0948\u091a \u0938\u0902\u092a\u093e\u0926\u0928 \u0914\u0930 4K \u0928\u093f\u0930\u094d\u092f\u093e\u0924 \u0915\u0947 \u0932\u093f\u090f \u0924\u0948\u092f\u093e\u0930 \u0939\u0948\u0902? \u0939\u092e\u093e\u0930\u0947 \u0938\u092e\u0930\u094d\u092a\u093f\u0924 \u092e\u094b\u092c\u093e\u0907\u0932 \u0910\u092a \u0921\u093e\u0909\u0928\u0932\u094b\u0921 \u0915\u0930\u0947\u0902\u0964"
"hi": "बैच संपादन और 4K निर्यात के लिए तैयार हैं? हमारे समर्पित मोबाइल ऐप डाउनलोड करें।"
},
"source": "all",
"showRating": true
@@ -212,11 +292,11 @@
"props": {
"title": {
"en": "Not Sure Which Tool You Need?",
"hi": "\u0928\u093f\u0936\u094d\u091a\u092f \u0928\u0939\u0940\u0902 \u0915\u093f \u0915\u094c\u0928 \u0938\u093e \u091f\u0942\u0932 \u091a\u093e\u0939\u093f\u090f?"
"hi": "निश्चय नहीं कि कौन सा टूल चाहिए?"
},
"subtitle": {
"en": "Select your creative goal to get an instant tailored recommendation.",
"hi": "\u0924\u094d\u0935\u0930\u093f\u0924 \u0905\u0928\u0941\u0936\u0902\u0938\u093e \u092a\u094d\u0930\u093e\u092a\u094d\u0924 \u0915\u0930\u0928\u0947 \u0915\u0947 \u0932\u093f\u090f \u0905\u092a\u0928\u093e \u0932\u0915\u094d\u0937\u094d\u092f \u091a\u0941\u0928\u0947\u0902\u0964"
"hi": "त्वरित अनुशंसा प्राप्त करने के लिए अपना लक्ष्य चुनें।"
}
}
},
@@ -226,7 +306,7 @@
"props": {
"title": {
"en": "Frequently Asked Questions",
"hi": "\u0905\u0915\u094d\u0938\u0930 \u092a\u0942\u091b\u0947 \u091c\u093e\u0928\u0947 \u0935\u093e\u0932\u0947 \u092a\u094d\u0930\u0936\u094d\u0928"
"hi": "अक्सर पूछे जाने वाले प्रश्न"
},
"items": [
{
@@ -254,27 +334,27 @@
"props": {
"title": {
"en": "Ready to Transform Your Visuals?",
"hi": "\u0915\u094d\u092f\u093e \u0906\u092a \u0905\u092a\u0928\u0940 \u0924\u0938\u094d\u0935\u0940\u0930\u094b\u0902 \u0915\u094b \u092c\u0926\u0932\u0928\u0947 \u0915\u0947 \u0932\u093f\u090f \u0924\u0948\u092f\u093e\u0930 \u0939\u0948\u0902?"
"hi": "क्या आप अपनी तस्वीरों को बदलने के लिए तैयार हैं?"
},
"subtitle": {
"en": "Launch any of our 8+ AI photo tools online or download the apps for Android & iOS with 50 bonus credits.",
"hi": "\u0911\u0928\u0932\u093e\u0907\u0928 8+ \u090f\u0906\u0908 \u092b\u094b\u091f\u094b \u091f\u0942\u0932\u094d\u0938 \u0906\u091c\u093c\u092e\u093e\u090f\u0902 \u092f\u093e 50 \u092c\u094b\u0928\u0938 \u0915\u094d\u0930\u0947\u0921\u093f\u091f \u0915\u0947 \u0938\u093e\u0925 \u0910\u092a \u0921\u093e\u0909\u0928\u0932\u094b\u0921 \u0915\u0930\u0947\u0902\u0964"
"hi": "ऑनलाइन 8+ एआई फोटो टूल्स आज़माएं या 50 बोनस क्रेडिट के साथ ऐप डाउनलोड करें।"
},
"primaryCta": {
"label": {
"en": "Explore All Free Tools",
"hi": "\u0938\u092d\u0940 \u091f\u0942\u0932\u094d\u0938 \u0926\u0947\u0916\u0947\u0902"
"hi": "सभी टूल्स देखें"
},
"href": "/tools"
},
"secondaryCta": {
"label": {
"en": "Get Mobile Apps",
"hi": "\u092e\u094b\u092c\u093e\u0907\u0932 \u0910\u092a \u092a\u094d\u0930\u093e\u092a\u094d\u0924 \u0915\u0930\u0947\u0902"
"hi": "मोबाइल ऐप प्राप्त करें"
},
"href": "/apps"
}
}
}
]
}
}