Merge version_6_1780935020593 into main #6

Merged
bender merged 1 commits from version_6_1780935020593 into main 2026-06-08 16:12:51 +00:00
2 changed files with 76 additions and 30 deletions

View File

@@ -66,11 +66,11 @@ const HeroInline = () => {
<ScrollReveal variant="fade" delay={0.2} className="w-full p-2 xl:p-3 2xl:p-4 card rounded overflow-hidden">
<ImageOrVideo imageSrc={"http://img.b2bpic.net/free-photo/full-length-portrait-muscular-adult-sportswoman_171337-8704.jpg"} className="aspect-4/5 md:aspect-video" />
</ScrollReveal>
<div className="absolute top-12 -left-4 md:-left-10 p-4 md:p-6 card rounded-xl shadow-xl z-10 border border-border/50 backdrop-blur-sm bg-card/90 animate-bounce" style={{ animationDuration: '3s' }}>
<div className="absolute top-12 -left-4 md:-left-10 p-4 md:p-6 card rounded shadow-xl z-10 animate-bounce" style={{ animationDuration: '3s' }}>
<p className="text-3xl md:text-4xl font-bold text-primary-cta">500+</p>
<p className="text-sm md:text-base text-muted-foreground font-medium mt-1">Active Members</p>
</div>
<div className="absolute bottom-12 -right-4 md:-right-10 p-4 md:p-6 card rounded-xl shadow-xl z-10 border border-border/50 backdrop-blur-sm bg-card/90 animate-bounce" style={{ animationDuration: '4s', animationDelay: '1s' }}>
<div className="absolute bottom-12 -right-4 md:-right-10 p-4 md:p-6 card rounded shadow-xl z-10 animate-bounce" style={{ animationDuration: '4s', animationDelay: '1s' }}>
<p className="text-3xl md:text-4xl font-bold text-primary-cta">98%</p>
<p className="text-sm md:text-base text-muted-foreground font-medium mt-1">Success Rate</p>
</div>

View File

@@ -1,34 +1,80 @@
// AUTO-GENERATED by per-section-migrate. Edit freely — Bob will treat this
// file as the canonical source for the "metrics" section.
/* eslint-disable */
// @ts-nocheck — generated by catalog-eject; runtime-correct but TS strict-mode false-positives on inlined catalog body
import Button from "@/components/ui/Button";
import TextAnimation from "@/components/ui/TextAnimation";
import GridOrCarousel from "@/components/ui/GridOrCarousel";
import ScrollReveal from "@/components/ui/ScrollReveal";
import React from 'react';
import MetricsSimpleCards from '@/components/sections/metrics/MetricsSimpleCards';
import SectionErrorBoundary from "@/components/ui/SectionErrorBoundary";
const metrics = [
{
value: "10+",
description: "Years of experience helping clients achieve peak fitness."
},
{
value: "500+",
description: "Satisfied members who have transformed their lives."
},
{
value: "95%",
description: "Client retention rate, reflecting our commitment to your success."
}
];
export default function MetricsSection(): React.JSX.Element {
return (
<div id="metrics" data-section="metrics">
<SectionErrorBoundary name="metrics">
<MetricsSimpleCards
tag="Our Impact"
title="Achieve Your Goals with Us"
description="Join a thriving community dedicated to health and progress. Our numbers speak for themselves."
metrics={[
{
value: "10+",
description: "Years of experience helping clients achieve peak fitness.",
},
{
value: "500+",
description: "Satisfied members who have transformed their lives.",
},
{
value: "95%",
description: "Client retention rate, reflecting our commitment to your success.",
},
]}
type Metric = {
value: string;
description: string;
};
const MetricsInline = () => (
<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>{"Our Impact"}</p>
</div>
<TextAnimation
text={"Achieve Your Goals with Us"}
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"
/>
</SectionErrorBoundary>
<TextAnimation
text={"Join a thriving community dedicated to health and progress. Our numbers speak for themselves."}
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>
<ScrollReveal variant="fade">
<GridOrCarousel>
{metrics.map((metric) => (
<div key={metric.value} className="flex flex-col justify-between gap-6 p-6 md:p-10 min-h-60 md:min-h-70 2xl:min-h-80 h-full card rounded">
<span className="text-9xl md:text-8xl font-semibold leading-none truncate">{metric.value}</span>
<p className="text-base leading-snug text-balance">{metric.description}</p>
</div>
))}
</GridOrCarousel>
</ScrollReveal>
</div>
</section>
);
export default function MetricsSection() {
return (
<div data-webild-section="metrics" id="metrics">
<MetricsInline />
</div>
);
}