From fff1536fd6cbc0803ac72eaa1659c56efbd6ab6d Mon Sep 17 00:00:00 2001 From: bender Date: Thu, 18 Jun 2026 16:43:03 +0000 Subject: [PATCH] Switch to version 36: modified src/pages/HomePage/sections/Metrics.tsx --- src/pages/HomePage/sections/Metrics.tsx | 128 +++++++----------------- 1 file changed, 35 insertions(+), 93 deletions(-) diff --git a/src/pages/HomePage/sections/Metrics.tsx b/src/pages/HomePage/sections/Metrics.tsx index 078a6c7..9bdf2ad 100644 --- a/src/pages/HomePage/sections/Metrics.tsx +++ b/src/pages/HomePage/sections/Metrics.tsx @@ -1,98 +1,40 @@ -/* eslint-disable */ -// @ts-nocheck — generated by catalog-eject; runtime-correct but TS strict-mode false-positives on inlined catalog body -import { cls } from "@/lib/utils"; -import Button from "@/components/ui/Button"; -import TextAnimation from "@/components/ui/TextAnimation"; -import ImageOrVideo from "@/components/ui/ImageOrVideo"; -import ScrollReveal from "@/components/ui/ScrollReveal"; +// AUTO-GENERATED by per-section-migrate. Edit freely — Bob will treat this +// file as the canonical source for the "metrics" section. -const metrics = [ - { - value: "1", - title: "Projects Completed", - description: "Diverse design initiatives across Central Asia.", - imageSrc: "https://picsum.photos/seed/1742342995/1200/800" - }, - { - value: "50+", - title: "Global Partners", - description: "Trusted brands within our portfolio.", - imageSrc: "https://picsum.photos/seed/631509190/1200/800" - }, - { - value: "4+ ", - title: "Years of Excellence", - description: "Leading the regional creative sector.", - imageSrc: "https://picsum.photos/seed/526078552/1200/800" - } -]; +import React from 'react'; +import MetricsMediaCards from '@/components/sections/metrics/MetricsMediaCards'; +import SectionErrorBoundary from "@/components/ui/SectionErrorBoundary"; -type Metric = { - value: string; - title: string; - description: string; -} & ({ imageSrc: string; videoSrc?: never } | { videoSrc: string; imageSrc?: never }); - -const MetricsInline = () => ( -
-
-
-
-

{"Impact"}

-
- - - - - - {(undefined || undefined) && ( -
- {undefined &&
- )} -
- -
- {metrics.map((metric, index) => { - return ( - -
- {metric.value} -
- {metric.title} -
-

{metric.description}

-
-
- - ); - })} -
-
-
-); - -export default function MetricsSection() { +export default function MetricsSection(): React.JSX.Element { return ( -
- -
+
+ + + +
); }