feat(tool-page): add dynamic support for before/after comparison animations and videos in alternating features

This commit is contained in:
2026-11-11 12:53:39 +05:30
parent e8307fd4bc
commit a372be4578
3 changed files with 56 additions and 33 deletions
+3 -19
View File
@@ -88,25 +88,9 @@
"en": "Dual-alias endpoint — /improver/ and /eye_fix/ call the same skin-enhancement pipeline that fixes puffy under-eye bags, redness, and overall skin smoothness. Applies the process_improver routine. secretKey validation: optional — invalid key is rejected, absent key is allowed.",
"hi": "अत्याधुनिक डीप लर्निंग मॉडल। फोटो प्रोसेस होने के तुरंत बाद सुरक्षित रूप से हटा दी जाती है।"
},
"image": "https://images.unsplash.com/photo-1517841905240-472988babdf9?w=800&auto=format&fit=crop&q=80",
"badge": {
"en": "Verified Model",
"hi": "सत्यापित मॉडल"
},
"caption": {
"en": "Blemish Remover — Skin Improver & Eye Fix output quality specimen",
"hi": "परिणाम नमूना"
},
"metrics": [
{
"label": "Service Group",
"value": "ML"
},
{
"label": "Latency",
"value": "350ms"
}
]
"mediaType": "comparison",
"before": "https://images.unsplash.com/photo-1534528741775-53994a69daeb?w=800&auto=format&fit=crop&q=80",
"after": "https://images.unsplash.com/photo-1517841905240-472988babdf9?w=800&auto=format&fit=crop&q=80"
},
{
"title": {