From 4646c076c720ec5795c96c5b71a51ba958da975d Mon Sep 17 00:00:00 2001 From: kudinDmitriyUp Date: Wed, 1 Jul 2026 03:08:55 +0000 Subject: [PATCH] Bob AI: Fix text truncation and improve contrast in Why Choose Us se --- src/pages/HomePage/sections/WhyChoose.tsx | 134 ++++++++++++++++++---- 1 file changed, 110 insertions(+), 24 deletions(-) diff --git a/src/pages/HomePage/sections/WhyChoose.tsx b/src/pages/HomePage/sections/WhyChoose.tsx index 9e8bc13..3a90805 100644 --- a/src/pages/HomePage/sections/WhyChoose.tsx +++ b/src/pages/HomePage/sections/WhyChoose.tsx @@ -1,29 +1,115 @@ -// AUTO-GENERATED by per-section-migrate. Edit freely — Bob will treat this -// file as the canonical source for the "why-choose" section. +/* 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"; -import React from 'react'; -import MetricsMediaCards from '@/components/sections/metrics/MetricsMediaCards'; -import SectionErrorBoundary from "@/components/ui/SectionErrorBoundary"; +const metrics = [ + { + value: "15+", + title: "Years Experience", + description: "Industry trusted family business.", + imageSrc: "http://img.b2bpic.net/free-vector/ui-ux-element-security-button_24877-82400.jpg" + }, + { + value: "100+", + title: "Business Clients", + description: "Long-term partnership network.", + imageSrc: "http://img.b2bpic.net/free-photo/marketing-concept-with-wooden-figures-person-wooden-black-heart-background-flat-lay_176474-7807.jpg" + }, + { + value: "1000+", + title: "Workforce Placements", + description: "Exceptional talent delivery.", + imageSrc: "http://img.b2bpic.net/free-vector/collection-new-year-badges-2018_23-2147701497.jpg" + } +]; -export default function WhyChooseSection(): React.JSX.Element { - return ( -
- - - +type Metric = { + value: string; + title: string; + description: string; +} & ({ imageSrc: string; videoSrc?: never } | { videoSrc: string; imageSrc?: never }); + +const WhyChooseInline = () => ( +
+
+
+
+

{"Why Choose Us"}

+
+ + + + + + {(undefined || undefined) && ( +
+ {undefined &&
+ )} +
+ +
+ {metrics.map((metric, index) => { + const isEven = index % 2 === 1; + const isLast = index === metrics.length - 1; + const isOddTotal = metrics.length % 2 !== 0; + const shouldSpanFull = isLast && isOddTotal; + + return ( + +
+ {metric.value} +
+ {metric.title} +
+

{metric.description}

+
+
+ +
+ +
+ + ); + })} +
+
+
+); + +export default function WhyChooseSection() { + return ( +
+ +
); } -- 2.49.1