feat: route 100% of homepage and tool page media through management folder

This commit is contained in:
2026-11-04 12:38:30 +05:30
parent 3cb202399f
commit 8fa48c2d90
28 changed files with 176 additions and 151 deletions
+3 -2
View File
@@ -108,9 +108,10 @@ export function HeroSection({
if (variant === 'toolHero' && tool) {
const categoryName = tool.category?.replace('-', ' ').toUpperCase() || 'AI TOOL';
const appName = homeApp ? resolveLocalised(homeApp.name, locale) : 'Mobile App';
const toolMedia = (tool as any).media;
const primaryExample = tool.content?.examples?.[0] || {
before: 'https://images.unsplash.com/photo-1534528741775-53994a69daeb?w=800&auto=format&fit=crop&q=80',
after: 'https://images.unsplash.com/photo-1578632767115-351597cf2477?w=800&auto=format&fit=crop&q=80',
before: toolMedia?.before || `/management/pages/tools/${tool.slug}/media/before.jpg`,
after: toolMedia?.after || `/management/pages/tools/${tool.slug}/media/after.jpg`,
caption: 'Sub-pixel neural transformation details',
};