feat: route 100% of homepage and tool page media through management folder
This commit is contained in:
@@ -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',
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user