Compare commits
5 Commits
version_7_
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| cabe880b4a | |||
|
|
7e27e08406 | ||
| f2c25bcd58 | |||
|
|
8a6cf572f3 | ||
| 109d52b101 |
@@ -5,6 +5,7 @@ import Button from "@/components/ui/Button";
|
|||||||
import TextAnimation from "@/components/ui/TextAnimation";
|
import TextAnimation from "@/components/ui/TextAnimation";
|
||||||
import ImageOrVideo from "@/components/ui/ImageOrVideo";
|
import ImageOrVideo from "@/components/ui/ImageOrVideo";
|
||||||
import ScrollReveal from "@/components/ui/ScrollReveal";
|
import ScrollReveal from "@/components/ui/ScrollReveal";
|
||||||
|
import { motion } from "motion/react";
|
||||||
|
|
||||||
const plans = [
|
const plans = [
|
||||||
{
|
{
|
||||||
@@ -52,38 +53,37 @@ type PricingPlan = {
|
|||||||
} & ({ imageSrc: string; videoSrc?: never } | { videoSrc: string; imageSrc?: never });
|
} & ({ imageSrc: string; videoSrc?: never } | { videoSrc: string; imageSrc?: never });
|
||||||
|
|
||||||
const PackagesInline = () => (
|
const PackagesInline = () => (
|
||||||
<section aria-label="Pricing section" className="py-20">
|
<section aria-label="Pricing section" className="relative py-24 bg-[#000000] overflow-hidden">
|
||||||
<div className="flex flex-col gap-8 md:gap-10">
|
{/* Radial glow behind Dominator card (approx 65% 50%) */}
|
||||||
<div className="flex flex-col items-center gap-2 w-content-width mx-auto">
|
<div
|
||||||
<div className="px-3 py-1 mb-1 text-sm card rounded w-fit">
|
className="absolute inset-0 pointer-events-none"
|
||||||
<p>{"PACKAGES"}</p>
|
style={{ background: 'radial-gradient(circle at 65% 50%, rgba(125,28,46,0.18) 0%, transparent 60%)' }}
|
||||||
|
/>
|
||||||
|
|
||||||
|
{/* Decorative X watermark */}
|
||||||
|
<div className="absolute inset-0 flex items-center justify-center pointer-events-none opacity-4 overflow-hidden">
|
||||||
|
<span className="font-tight font-black text-[700px] leading-none text-white select-none">X</span>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div className="relative z-10 flex flex-col gap-16 w-content-width mx-auto">
|
||||||
|
<div className="flex flex-col items-center gap-4 text-center">
|
||||||
|
<div className="text-[#7D1C2E] font-tight font-bold tracking-widest text-lg uppercase">
|
||||||
|
— OUR PACKAGES
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<TextAnimation
|
<motion.h2
|
||||||
text={"CHOOSE YOUR [X] LEVEL"}
|
initial={{ y: 100, opacity: 0, scale: 0.8 }}
|
||||||
variant={"fade-blur"}
|
whileInView={{ y: 0, opacity: 1, scale: 1 }}
|
||||||
gradientText={true}
|
viewport={{ once: true, margin: "-100px" }}
|
||||||
tag="h2"
|
transition={{ type: "spring", stiffness: 300, damping: 12, mass: 2 }}
|
||||||
className="md:max-w-8/10 text-6xl 2xl:text-7xl leading-[1.15] font-semibold text-center text-balance"
|
className="font-tight font-black text-[80px] leading-[0.9] text-white uppercase text-center"
|
||||||
/>
|
>
|
||||||
|
CHOOSE YOUR<br/>
|
||||||
<TextAnimation
|
[<span className="text-[#7D1C2E]">X</span>] LEVEL
|
||||||
text={"Transparent pricing for complete solutions."}
|
</motion.h2>
|
||||||
variant={"fade-blur"}
|
|
||||||
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>
|
||||||
|
|
||||||
<div className="flex flex-col gap-5 w-content-width mx-auto">
|
<div className="flex flex-col gap-5">
|
||||||
{plans.map((plan) => (
|
{plans.map((plan) => (
|
||||||
<ScrollReveal
|
<ScrollReveal
|
||||||
variant="slide-up"
|
variant="slide-up"
|
||||||
|
|||||||
@@ -1,41 +1,134 @@
|
|||||||
// AUTO-GENERATED by per-section-migrate. Edit freely — Bob will treat this
|
/* eslint-disable */
|
||||||
// file as the canonical source for the "stats" section.
|
// @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 { useEffect, useRef } from "react";
|
||||||
|
import { motion, useInView, animate } from "motion/react";
|
||||||
|
|
||||||
import React from 'react';
|
const metrics = [
|
||||||
import MetricsMediaCards from '@/components/sections/metrics/MetricsMediaCards';
|
{
|
||||||
import SectionErrorBoundary from "@/components/ui/SectionErrorBoundary";
|
value: "+50",
|
||||||
|
title: "Businesses",
|
||||||
|
description: "Active digital presence.",
|
||||||
|
imageSrc: "http://img.b2bpic.net/free-photo/3d-geometric-abstract-background_1048-11112.jpg"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
value: "7",
|
||||||
|
title: "Days",
|
||||||
|
description: "Guaranteed delivery time.",
|
||||||
|
imageSrc: "http://img.b2bpic.net/free-vector/ring-glowing-points-black_1217-1373.jpg"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
value: "100%",
|
||||||
|
title: "Satisfaction",
|
||||||
|
description: "Or you don't pay.",
|
||||||
|
imageSrc: "http://img.b2bpic.net/free-photo/closeup-shot-glass-marbles_53876-47208.jpg"
|
||||||
|
}
|
||||||
|
];
|
||||||
|
|
||||||
|
type Metric = {
|
||||||
|
value: string;
|
||||||
|
title: string;
|
||||||
|
description: string;
|
||||||
|
} & ({ imageSrc: string; videoSrc?: never } | { videoSrc: string; imageSrc?: never });
|
||||||
|
|
||||||
|
function AnimatedStat({ value, prefix = "", suffix = "", label1, label2, delay = 0 }: { value: number, prefix?: string, suffix?: string, label1: string, label2: string, delay?: number }) {
|
||||||
|
const nodeRef = useRef(null as any);
|
||||||
|
const inView = useInView(nodeRef, { once: true, margin: "-50px" });
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
|
if (inView && nodeRef.current) {
|
||||||
|
const controls = animate(0, value, {
|
||||||
|
duration: 2,
|
||||||
|
delay: delay,
|
||||||
|
ease: "easeOut",
|
||||||
|
onUpdate(val) {
|
||||||
|
if (nodeRef.current) {
|
||||||
|
nodeRef.current.textContent = `${prefix}${Math.round(val)}${suffix}`;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
return () => controls.stop();
|
||||||
|
}
|
||||||
|
}, [inView, value, prefix, suffix, delay]);
|
||||||
|
|
||||||
export default function StatsSection(): React.JSX.Element {
|
|
||||||
return (
|
return (
|
||||||
<div id="stats" data-section="stats">
|
<div className="flex flex-col items-center text-center px-4">
|
||||||
<SectionErrorBoundary name="stats">
|
<div className="font-tight font-black text-[88px] leading-none text-white">
|
||||||
<MetricsMediaCards
|
<span ref={nodeRef}>{prefix}0{suffix}</span>
|
||||||
tag="TRUST"
|
|
||||||
title="PROVEN TRACK RECORD"
|
|
||||||
description="Results that drive business growth."
|
|
||||||
metrics={[
|
|
||||||
{
|
|
||||||
value: "+50",
|
|
||||||
title: "Businesses",
|
|
||||||
description: "Active digital presence.",
|
|
||||||
imageSrc: "http://img.b2bpic.net/free-photo/3d-geometric-abstract-background_1048-11112.jpg",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
value: "7",
|
|
||||||
title: "Days",
|
|
||||||
description: "Guaranteed delivery time.",
|
|
||||||
imageSrc: "http://img.b2bpic.net/free-vector/ring-glowing-points-black_1217-1373.jpg",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
value: "100%",
|
|
||||||
title: "Satisfaction",
|
|
||||||
description: "Or you don't pay.",
|
|
||||||
imageSrc: "http://img.b2bpic.net/free-photo/closeup-shot-glass-marbles_53876-47208.jpg",
|
|
||||||
},
|
|
||||||
]}
|
|
||||||
textAnimation="slide-up"
|
|
||||||
/>
|
|
||||||
</SectionErrorBoundary>
|
|
||||||
</div>
|
</div>
|
||||||
|
<div className="mt-2 flex flex-col gap-0">
|
||||||
|
<span className="font-tight font-bold text-[18px] text-[#7D1C2E]">{label1}</span>
|
||||||
|
<span className="font-sans font-normal text-[14px] text-[#555555]">{label2}</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
const StatsInline = () => (
|
||||||
|
<section aria-label="Metrics section" className="py-24 md:py-32 bg-[#1A1A1A] relative overflow-hidden">
|
||||||
|
<div className="w-content-width mx-auto">
|
||||||
|
|
||||||
|
{/* Stats Grid */}
|
||||||
|
<div className="grid grid-cols-1 md:grid-cols-3 gap-12 md:gap-0">
|
||||||
|
<div className="md:border-r-[0.5px] md:border-white/20 py-4">
|
||||||
|
<AnimatedStat
|
||||||
|
value={50}
|
||||||
|
prefix="+"
|
||||||
|
label1="Active"
|
||||||
|
label2="businesses"
|
||||||
|
delay={0}
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
<div className="md:border-r-[0.5px] md:border-white/20 py-4">
|
||||||
|
<AnimatedStat
|
||||||
|
value={7}
|
||||||
|
suffix=" DAYS"
|
||||||
|
label1="Guaranteed"
|
||||||
|
label2="delivery"
|
||||||
|
delay={0.2}
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
<div className="py-4">
|
||||||
|
<AnimatedStat
|
||||||
|
value={100}
|
||||||
|
suffix="%"
|
||||||
|
label1="Satisfaction"
|
||||||
|
label2="or you don't pay"
|
||||||
|
delay={0.4}
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{/* Guarantee Quote */}
|
||||||
|
<motion.div
|
||||||
|
initial={{ opacity: 0, y: 40 }}
|
||||||
|
whileInView={{ opacity: 1, y: 0 }}
|
||||||
|
viewport={{ once: true, margin: "-100px" }}
|
||||||
|
transition={{ duration: 0.8, ease: "easeOut", delay: 0.6 }}
|
||||||
|
className="mt-24 md:mt-32 flex justify-center"
|
||||||
|
>
|
||||||
|
<div className="border-l-[4px] border-[#7D1C2E] pl-6 py-2 max-w-3xl">
|
||||||
|
<p className="font-tight font-bold italic text-[36px] text-white/70 leading-[1.1]">
|
||||||
|
"If we don't deliver in 7 days,<br className="hidden md:block" /> you don't pay. Period."
|
||||||
|
</p>
|
||||||
|
<p className="mt-4 font-sans text-[14px] text-[#555555]">
|
||||||
|
— Apex Web Group
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
</motion.div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
);
|
||||||
|
|
||||||
|
export default function StatsSection() {
|
||||||
|
return (
|
||||||
|
<div data-webild-section="stats" id="stats">
|
||||||
|
<StatsInline />
|
||||||
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user