Merge version_14_1782875282258 into main #15

Merged
bender merged 1 commits from version_14_1782875282258 into main 2026-07-01 03:09:40 +00:00

View File

@@ -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 (
<div id="why-choose" data-section="why-choose">
<SectionErrorBoundary name="why-choose">
<MetricsMediaCards
tag="Why Choose Us"
title="Proven Success Metrics"
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"},
]}
textAnimation="slide-up"
description="We lead by example in delivering value."
/>
</SectionErrorBoundary>
type Metric = {
value: string;
title: string;
description: string;
} & ({ imageSrc: string; videoSrc?: never } | { videoSrc: string; imageSrc?: never });
const WhyChooseInline = () => (
<section aria-label="Metrics section" className="py-20">
<div className="flex flex-col gap-8 md:gap-10">
<div className="flex flex-col items-center gap-2 w-content-width mx-auto">
<div className="px-3 py-1 mb-1 text-sm card rounded w-fit">
<p>{"Why Choose Us"}</p>
</div>
<TextAnimation
text={"Proven Success Metrics"}
variant={"slide-up"}
gradientText={true}
tag="h2"
className="md:max-w-8/10 text-6xl 2xl:text-7xl leading-[1.15] font-semibold text-center text-balance"
/>
<TextAnimation
text={"We lead by example in delivering value."}
variant={"slide-up"}
gradientText={false}
tag="p"
className="md:max-w-7/10 text-lg md:text-xl leading-snug text-center text-balance"
/>
{(undefined || undefined) && (
<div className="flex flex-wrap justify-center gap-3 mt-2 md:mt-3">
{undefined && <Button text={undefined.text} href={undefined.href} variant="primary"/>}
{undefined && <Button text={undefined.text} href={undefined.href} variant="secondary"animationDelay={0.1} />}
</div>
)}
</div>
<div className="grid grid-cols-1 md:grid-cols-2 gap-5 w-content-width mx-auto">
{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 (
<ScrollReveal
variant="slide-up"
key={metric.value}
className={cls("grid grid-cols-2 gap-5", shouldSpanFull && "md:col-span-2")}
>
<div className={cls(
"flex flex-col justify-between gap-4 xl:gap-5 2xl:gap-6 p-6 xl:p-7 2xl:p-8 card rounded",
shouldSpanFull ? "aspect-square md:aspect-video" : "aspect-square",
isEven && "order-2 md:order-1"
)}>
<span className="text-5xl md:text-6xl font-semibold leading-snug text-accent">{metric.value}</span>
<div className="flex flex-col gap-2 min-w-0">
<span className="text-xl md:text-2xl font-semibold text-foreground">{metric.title}</span>
<div className="w-full h-px bg-accent/30" />
<p className="text-base leading-snug text-foreground/90">{metric.description}</p>
</div>
</div>
<div className={cls(
"rounded overflow-hidden",
shouldSpanFull ? "aspect-square md:aspect-video" : "aspect-square",
isEven && "order-1 md:order-2"
)}>
<ImageOrVideo imageSrc={metric.imageSrc} videoSrc={metric.videoSrc} />
</div>
</ScrollReveal>
);
})}
</div>
</div>
</section>
);
export default function WhyChooseSection() {
return (
<div data-webild-section="why-choose" id="why-choose">
<WhyChooseInline />
</div>
);
}