Compare commits
16 Commits
version_1_
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| cabe880b4a | |||
|
|
7e27e08406 | ||
| f2c25bcd58 | |||
|
|
8a6cf572f3 | ||
| 109d52b101 | |||
|
|
4d77386f83 | ||
| 06735f3338 | |||
|
|
451b1b43cb | ||
| 926b0b3ccc | |||
|
|
2cbe919deb | ||
| 775d8b2112 | |||
|
|
6752dde2c8 | ||
| bcf54637d7 | |||
|
|
536f979b30 | ||
| ba9f89dabc | |||
|
|
6968bf4616 |
@@ -136,4 +136,148 @@ const NavbarCentered = ({ logo, navItems, ctaButton }: NavbarCenteredProps) => {
|
||||
);
|
||||
};
|
||||
|
||||
export default NavbarCentered;
|
||||
const CustomNavbar = ({ logo, navItems, ctaButton }: NavbarCenteredProps) => {
|
||||
const [isScrolled, setIsScrolled] = useState(false);
|
||||
const [menuOpen, setMenuOpen] = useState(false);
|
||||
|
||||
useEffect(() => {
|
||||
const handleScroll = () => {
|
||||
setIsScrolled(window.scrollY > 80);
|
||||
};
|
||||
window.addEventListener("scroll", handleScroll);
|
||||
return () => window.removeEventListener("scroll", handleScroll);
|
||||
}, []);
|
||||
|
||||
const handleNavClick = (e: React.MouseEvent<HTMLAnchorElement>, href: string, onClose?: () => void) => {
|
||||
if (href.startsWith("#")) {
|
||||
e.preventDefault();
|
||||
const element = document.getElementById(href.slice(1));
|
||||
element?.scrollIntoView({ behavior: "smooth", block: "start" });
|
||||
}
|
||||
onClose?.();
|
||||
};
|
||||
|
||||
return (
|
||||
<>
|
||||
<motion.nav
|
||||
initial={{ y: -100 }}
|
||||
animate={{ y: 0 }}
|
||||
transition={{ duration: 0.6, ease: [0.25, 0.46, 0.45, 0.94] }}
|
||||
className={cls(
|
||||
"fixed top-0 left-0 right-0 z-[1000] w-full transition-all duration-350 ease-[cubic-bezier(0.25,0.46,0.45,0.94)]",
|
||||
isScrolled
|
||||
? "bg-[rgba(10,10,10,0.92)] backdrop-blur-[14px] border-b border-[rgba(125,28,46,0.25)] h-[60px] md:h-[72px]"
|
||||
: "bg-transparent border-b-transparent h-[60px] md:h-[72px]"
|
||||
)}
|
||||
>
|
||||
<div className="w-content-width mx-auto h-full flex items-center justify-between px-4 md:px-0">
|
||||
{/* LEFT - Logo */}
|
||||
<motion.div
|
||||
initial={{ x: -20, opacity: 0 }}
|
||||
animate={{ x: 0, opacity: 1 }}
|
||||
transition={{ duration: 0.6, ease: "easeOut", delay: 0.2 }}
|
||||
className="flex items-center gap-3 cursor-pointer"
|
||||
onClick={(e: any) => handleNavClick(e, "#hero")}
|
||||
>
|
||||
<div className="w-[38px] h-[38px] bg-[#7D1C2E] rounded-[5px] flex items-center justify-center">
|
||||
<span className="font-tight font-black text-white text-[24px] leading-none">X</span>
|
||||
</div>
|
||||
<div className="flex flex-col justify-center">
|
||||
<div className="font-tight font-black text-[22px] leading-none text-white tracking-wide">
|
||||
APE<span className="text-[#7D1C2E]">X</span>
|
||||
</div>
|
||||
<div className="font-tight font-bold text-[10px] leading-none text-[rgba(255,255,255,0.28)] tracking-[5px] mt-1 uppercase">
|
||||
Web Group
|
||||
</div>
|
||||
</div>
|
||||
</motion.div>
|
||||
|
||||
{/* CENTER - Links */}
|
||||
<div className="hidden md:flex items-center gap-[48px]">
|
||||
{navItems.filter(item => ["Services", "Packages", "Guarantee", "Contact"].includes(item.name)).map((item) => (
|
||||
<a
|
||||
key={item.name}
|
||||
href={item.href}
|
||||
onClick={(e) => handleNavClick(e, item.href)}
|
||||
className="group relative font-sans font-bold text-[13px] tracking-[2px] uppercase text-[rgba(255,255,255,0.65)] hover:text-[#F5F5F5] transition-colors duration-250"
|
||||
>
|
||||
{item.name}
|
||||
<span className="absolute -bottom-1 left-0 w-full h-[1px] bg-[#7D1C2E] origin-left scale-x-0 group-hover:scale-x-100 transition-transform duration-250 ease-out" />
|
||||
</a>
|
||||
))}
|
||||
</div>
|
||||
|
||||
{/* RIGHT - CTA */}
|
||||
<motion.div
|
||||
initial={{ x: 20, opacity: 0 }}
|
||||
animate={{ x: 0, opacity: 1 }}
|
||||
transition={{ duration: 0.6, ease: "easeOut", delay: 0.4 }}
|
||||
className="hidden md:block"
|
||||
>
|
||||
<a
|
||||
href={ctaButton.href}
|
||||
onClick={(e) => handleNavClick(e, ctaButton.href)}
|
||||
className="inline-flex items-center justify-center rounded-full bg-[rgba(255,255,255,0.07)] border border-[rgba(255,255,255,0.18)] backdrop-blur-[10px] px-[24px] py-[10px] font-sans font-bold text-[12px] tracking-[2px] uppercase text-white hover:bg-[rgba(125,28,46,0.35)] hover:border-[rgba(125,28,46,0.6)] hover:scale-[1.03] transition-all duration-250 ease-out"
|
||||
>
|
||||
{ctaButton.text} <span className="ml-2">→</span>
|
||||
</a>
|
||||
</motion.div>
|
||||
|
||||
{/* Mobile Toggle */}
|
||||
<button
|
||||
className="md:hidden text-white p-2"
|
||||
onClick={() => setMenuOpen(!menuOpen)}
|
||||
>
|
||||
{menuOpen ? (
|
||||
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round"><line x1="18" y1="6" x2="6" y2="18"></line><line x1="6" y1="6" x2="18" y2="18"></line></svg>
|
||||
) : (
|
||||
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round"><line x1="3" y1="12" x2="21" y2="12"></line><line x1="3" y1="6" x2="21" y2="6"></line><line x1="3" y1="18" x2="21" y2="18"></line></svg>
|
||||
)}
|
||||
</button>
|
||||
</div>
|
||||
</motion.nav>
|
||||
|
||||
{/* Mobile Menu Overlay */}
|
||||
<AnimatePresence>
|
||||
{menuOpen && (
|
||||
<motion.div
|
||||
initial={{ opacity: 0 }}
|
||||
animate={{ opacity: 1 }}
|
||||
exit={{ opacity: 0 }}
|
||||
className="fixed inset-0 z-[999] bg-[rgba(10,10,10,0.98)] backdrop-blur-xl flex flex-col items-center justify-center"
|
||||
>
|
||||
<div className="flex flex-col items-center gap-8">
|
||||
{navItems.filter(item => ["Services", "Packages", "Guarantee", "Contact"].includes(item.name)).map((item, i) => (
|
||||
<motion.a
|
||||
key={item.name}
|
||||
href={item.href}
|
||||
initial={{ y: 20, opacity: 0 }}
|
||||
animate={{ y: 0, opacity: 1 }}
|
||||
exit={{ y: 20, opacity: 0 }}
|
||||
transition={{ delay: i * 0.1 }}
|
||||
onClick={(e: any) => handleNavClick(e, item.href, () => setMenuOpen(false))}
|
||||
className="font-sans font-bold text-[24px] tracking-[2px] uppercase text-white"
|
||||
>
|
||||
{item.name}
|
||||
</motion.a>
|
||||
))}
|
||||
<motion.a
|
||||
href={ctaButton.href}
|
||||
initial={{ y: 20, opacity: 0 }}
|
||||
animate={{ y: 0, opacity: 1 }}
|
||||
exit={{ y: 20, opacity: 0 }}
|
||||
transition={{ delay: 0.4 }}
|
||||
onClick={(e: any) => handleNavClick(e, ctaButton.href, () => setMenuOpen(false))}
|
||||
className="mt-8 inline-flex items-center justify-center rounded-full bg-[rgba(125,28,46,0.35)] border border-[rgba(125,28,46,0.6)] px-[32px] py-[14px] font-sans font-bold text-[14px] tracking-[2px] uppercase text-white"
|
||||
>
|
||||
{ctaButton.text} <span className="ml-2">→</span>
|
||||
</motion.a>
|
||||
</div>
|
||||
</motion.div>
|
||||
)}
|
||||
</AnimatePresence>
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
||||
export default CustomNavbar;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');
|
||||
@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@300;400;700;900&family=Barlow:wght@300;400;700;900&display=swap');
|
||||
@import "tailwindcss";
|
||||
@import "./styles/masks.css";
|
||||
@import "./styles/animations.css";
|
||||
@@ -10,8 +10,8 @@
|
||||
--foreground: #F5F5F5;
|
||||
--primary-cta: #7D1C2E;
|
||||
--primary-cta-text: #F5F5F5;
|
||||
--secondary-cta: #F5F5F5;
|
||||
--secondary-cta-text: #0F0F0F;
|
||||
--secondary-cta: rgba(245,245,245,0.06);
|
||||
--secondary-cta-text: #F5F5F5;
|
||||
--accent: #7D1C2E;
|
||||
--background-accent: #555555;
|
||||
|
||||
@@ -88,8 +88,8 @@
|
||||
--color-background-accent: var(--background-accent);
|
||||
|
||||
/* Fonts */
|
||||
--font-sans: 'Montserrat', sans-serif;
|
||||
--font-tight: "Inter Tight", sans-serif;
|
||||
--font-sans: 'Barlow', sans-serif;
|
||||
--font-tight: "Barlow Condensed", sans-serif;
|
||||
--font-mono: monospace;
|
||||
|
||||
/* Border Radius */
|
||||
|
||||
@@ -1,309 +1,37 @@
|
||||
import AboutFeaturesSplit from '@/components/sections/about/AboutFeaturesSplit';
|
||||
import ContactCta from '@/components/sections/contact/ContactCta';
|
||||
import FaqSimple from '@/components/sections/faq/FaqSimple';
|
||||
import FeaturesMediaCarousel from '@/components/sections/features/FeaturesMediaCarousel';
|
||||
import FeaturesRevealCardsBento from '@/components/sections/features/FeaturesRevealCardsBento';
|
||||
import HeroBillboardCarousel from '@/components/sections/hero/HeroBillboardCarousel';
|
||||
import MetricsMediaCards from '@/components/sections/metrics/MetricsMediaCards';
|
||||
import PricingMediaCards from '@/components/sections/pricing/PricingMediaCards';
|
||||
import { ShieldCheck, TrendingUp, Zap } from "lucide-react";
|
||||
import SectionErrorBoundary from "@/components/ui/SectionErrorBoundary";
|
||||
// AUTO-GENERATED shell by per-section-migrate.
|
||||
// Section bodies live in the sibling sections/ folder (one file per section).
|
||||
// Edit those section files directly. Non-block content (wrappers,
|
||||
// non-inlinable sections) is preserved inline; extracted section blocks
|
||||
// become component refs.
|
||||
|
||||
export default function HomePage() {
|
||||
import React from 'react';
|
||||
import HeroSection from './HomePage/sections/Hero';
|
||||
import GuaranteeSection from './HomePage/sections/Guarantee';
|
||||
import ServicesSection from './HomePage/sections/Services';
|
||||
import PackagesSection from './HomePage/sections/Packages';
|
||||
import ComparisonSection from './HomePage/sections/Comparison';
|
||||
import ProcessSection from './HomePage/sections/Process';
|
||||
import StatsSection from './HomePage/sections/Stats';
|
||||
import ContactSection from './HomePage/sections/Contact';
|
||||
|
||||
export default function HomePage(): React.JSX.Element {
|
||||
return (
|
||||
<>
|
||||
<div id="hero" data-section="hero">
|
||||
<SectionErrorBoundary name="hero">
|
||||
<HeroBillboardCarousel
|
||||
tag="PROFESSIONAL WEB DESIGN · MEXICO"
|
||||
title="YOUR BUSINESS NEEDS A WEB THAT [X] WORKS."
|
||||
description="Delivered in 7 days. No excuses."
|
||||
primaryButton={{
|
||||
text: "See packages",
|
||||
href: "#packages",
|
||||
}}
|
||||
secondaryButton={{
|
||||
text: "Talk to an expert",
|
||||
href: "#contact",
|
||||
}}
|
||||
items={[
|
||||
{
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/modern-geometrical-background-with-white-shapes_23-2148811532.jpg",
|
||||
},
|
||||
{
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/3d-abstract-creative-sphere_23-2150885414.jpg",
|
||||
},
|
||||
{
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/white-bokeh-effect-black-background_1017-2740.jpg",
|
||||
},
|
||||
{
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/3d-geometric-abstract-background_1048-10524.jpg",
|
||||
},
|
||||
{
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/3d-rendering-abstract-black-white_23-2150853563.jpg",
|
||||
},
|
||||
{
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/3d-geometric-abstract-background_1048-10385.jpg",
|
||||
},
|
||||
]}
|
||||
textAnimation="slide-up"
|
||||
/>
|
||||
</SectionErrorBoundary>
|
||||
</div>
|
||||
<>
|
||||
<HeroSection />
|
||||
|
||||
<div id="guarantee" data-section="guarantee">
|
||||
<SectionErrorBoundary name="guarantee">
|
||||
<AboutFeaturesSplit
|
||||
tag="OUR PROMISE"
|
||||
title="PROFESSIONAL WEB IN 7 DAYS"
|
||||
description="Or you don't pay. That simple."
|
||||
items={[
|
||||
{
|
||||
icon: Zap,
|
||||
title: "SPEED",
|
||||
description: "Guaranteed delivery in 7 business days.",
|
||||
},
|
||||
{
|
||||
icon: TrendingUp,
|
||||
title: "RESULTS",
|
||||
description: "Design that converts visitors into clients.",
|
||||
},
|
||||
{
|
||||
icon: ShieldCheck,
|
||||
title: "SUPPORT",
|
||||
description: "Real support — not a ticket queue.",
|
||||
},
|
||||
]}
|
||||
textAnimation="fade-blur"
|
||||
imageSrc="http://img.b2bpic.net/free-photo/white-water-drop-background_23-2147787465.jpg"
|
||||
/>
|
||||
</SectionErrorBoundary>
|
||||
</div>
|
||||
<GuaranteeSection />
|
||||
|
||||
<div id="services" data-section="services">
|
||||
<SectionErrorBoundary name="services">
|
||||
<FeaturesMediaCarousel
|
||||
tag="WHAT WE BUILD"
|
||||
title="WEBSITES THAT DO [X] THE WORK."
|
||||
description="From custom design to SEO and automation."
|
||||
items={[
|
||||
{
|
||||
title: "Custom Web Design",
|
||||
description: "Tailored, high-conversion visual design.",
|
||||
buttonIcon: "ArrowRight",
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/light-prisms-colorful-effect_23-2148898178.jpg",
|
||||
},
|
||||
{
|
||||
title: "On-page SEO",
|
||||
description: "Ready to rank from day one.",
|
||||
buttonIcon: "ArrowRight",
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/empty-concrete-room-with-neon-lights_1048-12984.jpg",
|
||||
},
|
||||
{
|
||||
title: "Integrations",
|
||||
description: "WhatsApp, Forms, and GMB setup.",
|
||||
buttonIcon: "ArrowRight",
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/colorful-light-prisms-effect_23-2148898152.jpg",
|
||||
},
|
||||
{
|
||||
title: "Analytics",
|
||||
description: "Google Analytics and traffic reporting.",
|
||||
buttonIcon: "ArrowRight",
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/front-view-blue-white-bottle-designed-round-beautiful-white-wall_140725-11601.jpg",
|
||||
},
|
||||
{
|
||||
title: "Speed Optimization",
|
||||
description: "Performance focused architecture.",
|
||||
buttonIcon: "ArrowRight",
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/abstract-metallic-cube-shape_23-2150979663.jpg",
|
||||
},
|
||||
{
|
||||
title: "Ongoing Support",
|
||||
description: "We ensure your site stays up.",
|
||||
buttonIcon: "ArrowRight",
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/spiky-black-ferromagnetic-liquid-metal-with-copy-space_23-2148253673.jpg",
|
||||
},
|
||||
]}
|
||||
textAnimation="slide-up"
|
||||
/>
|
||||
</SectionErrorBoundary>
|
||||
</div>
|
||||
<ServicesSection />
|
||||
|
||||
<div id="packages" data-section="packages">
|
||||
<SectionErrorBoundary name="packages">
|
||||
<PricingMediaCards
|
||||
tag="PACKAGES"
|
||||
title="CHOOSE YOUR [X] LEVEL"
|
||||
description="Transparent pricing for complete solutions."
|
||||
plans={[
|
||||
{
|
||||
tag: "WEB X PRO",
|
||||
price: "$14,900",
|
||||
period: "MXN",
|
||||
features: [
|
||||
"10 pages",
|
||||
"On-page SEO",
|
||||
"Forms & WhatsApp",
|
||||
"GMB Premium",
|
||||
"1 month support",
|
||||
],
|
||||
primaryButton: {
|
||||
text: "Get Pro",
|
||||
href: "#contact",
|
||||
},
|
||||
imageSrc: "http://img.b2bpic.net/free-psd/start-up-landing-page-template_23-2148819558.jpg",
|
||||
},
|
||||
{
|
||||
tag: "WEB X DOMINATOR",
|
||||
price: "$24,900",
|
||||
period: "MXN",
|
||||
features: [
|
||||
"Everything in Pro",
|
||||
"Campaign Landing Page",
|
||||
"Google Analytics",
|
||||
"Traffic Report",
|
||||
"3 months support",
|
||||
],
|
||||
primaryButton: {
|
||||
text: "Get Dominator",
|
||||
href: "#contact",
|
||||
},
|
||||
imageSrc: "http://img.b2bpic.net/free-psd/business-corporation-template_23-2151402198.jpg",
|
||||
},
|
||||
]}
|
||||
textAnimation="fade-blur"
|
||||
/>
|
||||
</SectionErrorBoundary>
|
||||
</div>
|
||||
<PackagesSection />
|
||||
|
||||
<div id="comparison" data-section="comparison">
|
||||
<SectionErrorBoundary name="comparison">
|
||||
<FaqSimple
|
||||
tag="DETAILS"
|
||||
title="DETAILED COMPARISON"
|
||||
description="Understand what is included in each package."
|
||||
items={[
|
||||
{
|
||||
question: "What's the difference between Pro and Dominator?",
|
||||
answer: "Dominator includes a custom campaign landing page, advanced analytics setup, monthly reporting, and 3 months of support versus 1.",
|
||||
},
|
||||
{
|
||||
question: "Is hosting included?",
|
||||
answer: "Hosting is included during your support period. We also manage domain setup and technical configuration.",
|
||||
},
|
||||
{
|
||||
question: "How does the 7-day guarantee work?",
|
||||
answer: "If we don't deliver a functional site in 7 business days, you don't pay. Simple.",
|
||||
},
|
||||
]}
|
||||
textAnimation="slide-up"
|
||||
/>
|
||||
</SectionErrorBoundary>
|
||||
</div>
|
||||
<ComparisonSection />
|
||||
|
||||
<div id="process" data-section="process">
|
||||
<SectionErrorBoundary name="process">
|
||||
<FeaturesRevealCardsBento
|
||||
tag="PROCESS"
|
||||
title="FROM ZERO TO LIVE IN 7 DAYS."
|
||||
description="A streamlined four-stage process for maximum efficiency."
|
||||
items={[
|
||||
{
|
||||
title: "Day 1-2: Brief",
|
||||
description: "Gather goals and objectives.",
|
||||
href: "#",
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/prism-dispersing-light-concept_23-2148599263.jpg",
|
||||
},
|
||||
{
|
||||
title: "Day 2-4: Design",
|
||||
description: "Structuring your brand identity.",
|
||||
href: "#",
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/3d-rendering-holographic-cube_23-2150979697.jpg",
|
||||
},
|
||||
{
|
||||
title: "Day 4-6: Development",
|
||||
description: "Coding and functionality.",
|
||||
href: "#",
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/lights-prisms-effect-close-up_23-2148917904.jpg",
|
||||
},
|
||||
{
|
||||
title: "Day 7: Delivery",
|
||||
description: "Live launch and final review.",
|
||||
href: "#",
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/abstract-metallic-cube-shape_23-2150979660.jpg",
|
||||
},
|
||||
{
|
||||
title: "Ongoing",
|
||||
description: "Post-launch maintenance.",
|
||||
href: "#",
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/flying-rings-geometric-shapes-background_23-2148772500.jpg",
|
||||
},
|
||||
{
|
||||
title: "Support",
|
||||
description: "3 months technical help.",
|
||||
href: "#",
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/colorful-light-prisms-reflection_23-2148898144.jpg",
|
||||
},
|
||||
{
|
||||
title: "Optimization",
|
||||
description: "SEO tuning and analytics.",
|
||||
href: "#",
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/flying-snake_488145-667.jpg",
|
||||
},
|
||||
]}
|
||||
textAnimation="fade-blur"
|
||||
/>
|
||||
</SectionErrorBoundary>
|
||||
</div>
|
||||
<ProcessSection />
|
||||
|
||||
<div id="stats" data-section="stats">
|
||||
<SectionErrorBoundary name="stats">
|
||||
<MetricsMediaCards
|
||||
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>
|
||||
<StatsSection />
|
||||
|
||||
<div id="contact" data-section="contact">
|
||||
<SectionErrorBoundary name="contact">
|
||||
<ContactCta
|
||||
tag="MAKE THE MOVE"
|
||||
text="READY TO GROW [X]?"
|
||||
primaryButton={{
|
||||
text: "I want my website",
|
||||
href: "#",
|
||||
}}
|
||||
secondaryButton={{
|
||||
text: "See packages",
|
||||
href: "#packages",
|
||||
}}
|
||||
textAnimation="fade-blur"
|
||||
/>
|
||||
</SectionErrorBoundary>
|
||||
</div>
|
||||
<ContactSection />
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
35
src/pages/HomePage/sections/Comparison.tsx
Normal file
35
src/pages/HomePage/sections/Comparison.tsx
Normal file
@@ -0,0 +1,35 @@
|
||||
// AUTO-GENERATED by per-section-migrate. Edit freely — Bob will treat this
|
||||
// file as the canonical source for the "comparison" section.
|
||||
|
||||
import React from 'react';
|
||||
import FaqSimple from '@/components/sections/faq/FaqSimple';
|
||||
import SectionErrorBoundary from "@/components/ui/SectionErrorBoundary";
|
||||
|
||||
export default function ComparisonSection(): React.JSX.Element {
|
||||
return (
|
||||
<div id="comparison" data-section="comparison">
|
||||
<SectionErrorBoundary name="comparison">
|
||||
<FaqSimple
|
||||
tag="DETAILS"
|
||||
title="DETAILED COMPARISON"
|
||||
description="Understand what is included in each package."
|
||||
items={[
|
||||
{
|
||||
question: "What's the difference between Pro and Dominator?",
|
||||
answer: "Dominator includes a custom campaign landing page, advanced analytics setup, monthly reporting, and 3 months of support versus 1.",
|
||||
},
|
||||
{
|
||||
question: "Is hosting included?",
|
||||
answer: "Hosting is included during your support period. We also manage domain setup and technical configuration.",
|
||||
},
|
||||
{
|
||||
question: "How does the 7-day guarantee work?",
|
||||
answer: "If we don't deliver a functional site in 7 business days, you don't pay. Simple.",
|
||||
},
|
||||
]}
|
||||
textAnimation="slide-up"
|
||||
/>
|
||||
</SectionErrorBoundary>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
28
src/pages/HomePage/sections/Contact.tsx
Normal file
28
src/pages/HomePage/sections/Contact.tsx
Normal file
@@ -0,0 +1,28 @@
|
||||
// AUTO-GENERATED by per-section-migrate. Edit freely — Bob will treat this
|
||||
// file as the canonical source for the "contact" section.
|
||||
|
||||
import React from 'react';
|
||||
import ContactCta from '@/components/sections/contact/ContactCta';
|
||||
import SectionErrorBoundary from "@/components/ui/SectionErrorBoundary";
|
||||
|
||||
export default function ContactSection(): React.JSX.Element {
|
||||
return (
|
||||
<div id="contact" data-section="contact">
|
||||
<SectionErrorBoundary name="contact">
|
||||
<ContactCta
|
||||
tag="MAKE THE MOVE"
|
||||
text="READY TO GROW [X]?"
|
||||
primaryButton={{
|
||||
text: "I want my website",
|
||||
href: "#",
|
||||
}}
|
||||
secondaryButton={{
|
||||
text: "See packages",
|
||||
href: "#packages",
|
||||
}}
|
||||
textAnimation="fade-blur"
|
||||
/>
|
||||
</SectionErrorBoundary>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
114
src/pages/HomePage/sections/Guarantee.tsx
Normal file
114
src/pages/HomePage/sections/Guarantee.tsx
Normal file
@@ -0,0 +1,114 @@
|
||||
/* eslint-disable */
|
||||
// @ts-nocheck — generated by catalog-eject; runtime-correct but TS strict-mode false-positives on inlined catalog body
|
||||
import { Zap, TrendingUp, ShieldCheck } from 'lucide-react';
|
||||
import type { LucideIcon } from "lucide-react";
|
||||
import Button from "@/components/ui/Button";
|
||||
import TextAnimation from "@/components/ui/TextAnimation";
|
||||
import ImageOrVideo from "@/components/ui/ImageOrVideo";
|
||||
import { resolveIcon } from "@/utils/resolve-icon";
|
||||
import { useEffect, useRef } from 'react';
|
||||
import { gsap } from 'gsap';
|
||||
import { ScrollTrigger } from 'gsap/ScrollTrigger';
|
||||
|
||||
gsap.registerPlugin(ScrollTrigger);
|
||||
|
||||
const items = [
|
||||
{
|
||||
icon: Zap,
|
||||
title: "SPEED",
|
||||
description: "Guaranteed delivery in 7 business days."
|
||||
},
|
||||
{
|
||||
icon: TrendingUp,
|
||||
title: "RESULTS",
|
||||
description: "Design that converts visitors into clients."
|
||||
},
|
||||
{
|
||||
icon: ShieldCheck,
|
||||
title: "SUPPORT",
|
||||
description: "Real support — not a ticket queue."
|
||||
}
|
||||
];
|
||||
|
||||
type AboutFeaturesSplitProps = {
|
||||
tag: string;
|
||||
title: string;
|
||||
description: string;
|
||||
primaryButton?: { text: string; href: string };
|
||||
secondaryButton?: { text: string; href: string };
|
||||
items: { icon: string | LucideIcon; title: string; description: string }[];
|
||||
textAnimation: "slide-up" | "fade-blur" | "fade";
|
||||
} & ({ imageSrc: string; videoSrc?: never } | { videoSrc: string; imageSrc?: never });
|
||||
|
||||
const GuaranteeInline = () => {
|
||||
return (
|
||||
<section aria-label="About section" className="py-20">
|
||||
<div className="flex flex-col gap-8 md:gap-10 mx-auto w-content-width">
|
||||
<div className="flex flex-col items-center gap-2">
|
||||
<div className="px-3 py-1 mb-1 text-sm card rounded w-fit">
|
||||
<p>{"OUR PROMISE"}</p>
|
||||
</div>
|
||||
|
||||
<TextAnimation
|
||||
text={"PROFESSIONAL WEB IN 7 DAYS"}
|
||||
variant={"fade-blur"}
|
||||
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={"Or you don't pay. That simple."}
|
||||
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 className="flex flex-col md:flex-row md:items-stretch gap-5">
|
||||
<div className="flex flex-col justify-center gap-4 xl:gap-5 2xl:gap-6 p-6 xl:p-7 2xl:p-8 w-full md:w-4/10 2xl:w-35/100 card rounded">
|
||||
{items.map((item, index) => {
|
||||
const ItemIcon = resolveIcon(item.icon);
|
||||
return (
|
||||
<div key={item.title}>
|
||||
<div className="flex flex-col gap-2">
|
||||
<div className="flex items-center justify-center shrink-0 mb-1 size-10 primary-button rounded">
|
||||
<ItemIcon className="h-2/5 w-2/5 text-primary-cta-text" strokeWidth={1.5} />
|
||||
</div>
|
||||
<h3 className="text-2xl font-semibold">{item.title}</h3>
|
||||
<p className="text-base leading-snug">{item.description}</p>
|
||||
</div>
|
||||
{index < items.length - 1 && (
|
||||
<div className="mt-4 xl:mt-5 2xl:mt-6 border-b border-accent/40" />
|
||||
)}
|
||||
</div>
|
||||
);
|
||||
})}
|
||||
</div>
|
||||
|
||||
<div className="p-px w-full md:w-6/10 2xl:w-7/10 h-80 md:h-auto card rounded overflow-hidden">
|
||||
<div className="relative size-full">
|
||||
<ImageOrVideo imageSrc={"http://img.b2bpic.net/free-photo/white-water-drop-background_23-2147787465.jpg"} className="absolute inset-0 object-cover rounded" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
};
|
||||
|
||||
export default function GuaranteeSection() {
|
||||
return (
|
||||
<div data-webild-section="guarantee" id="guarantee">
|
||||
<GuaranteeInline />
|
||||
</div>
|
||||
);
|
||||
}
|
||||
106
src/pages/HomePage/sections/Hero.tsx
Normal file
106
src/pages/HomePage/sections/Hero.tsx
Normal file
@@ -0,0 +1,106 @@
|
||||
/* 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 HeroBackgroundSlot from "@/components/ui/HeroBackgroundSlot";
|
||||
import TextAnimation from "@/components/ui/TextAnimation";
|
||||
import ImageOrVideo from "@/components/ui/ImageOrVideo";
|
||||
|
||||
const primaryButton = {
|
||||
text: "See packages",
|
||||
href: "#packages"
|
||||
};
|
||||
const secondaryButton = {
|
||||
text: "Talk to an expert",
|
||||
href: "#contact"
|
||||
};
|
||||
const items = [
|
||||
{
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/modern-geometrical-background-with-white-shapes_23-2148811532.jpg"
|
||||
},
|
||||
{
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/3d-abstract-creative-sphere_23-2150885414.jpg"
|
||||
},
|
||||
{
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/white-bokeh-effect-black-background_1017-2740.jpg"
|
||||
},
|
||||
{
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/3d-geometric-abstract-background_1048-10524.jpg"
|
||||
},
|
||||
{
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/3d-rendering-abstract-black-white_23-2150853563.jpg"
|
||||
},
|
||||
{
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/3d-geometric-abstract-background_1048-10385.jpg"
|
||||
}
|
||||
];
|
||||
|
||||
type HeroBillboardCarouselProps = {
|
||||
tag: string;
|
||||
title: string;
|
||||
description: string;
|
||||
primaryButton: { text: string; href: string };
|
||||
secondaryButton: { text: string; href: string };
|
||||
items: ({ imageSrc: string; videoSrc?: never } | { videoSrc: string; imageSrc?: never })[];
|
||||
textAnimation: "slide-up" | "fade-blur" | "fade";
|
||||
};
|
||||
|
||||
const HeroInline = () => {
|
||||
const duplicated = [...items, ...items, ...items, ...items];
|
||||
|
||||
return (
|
||||
<section
|
||||
aria-label="Hero section"
|
||||
className="relative flex flex-col items-center justify-center gap-8 md:gap-10 w-full min-h-svh pt-25 pb-20 md:pt-30"
|
||||
>
|
||||
<HeroBackgroundSlot />
|
||||
<div className="flex flex-col items-center gap-3 w-content-width mx-auto text-center">
|
||||
<div className="px-3 py-1 mb-1 text-sm card rounded w-fit">
|
||||
<p>{"PROFESSIONAL WEB DESIGN · MEXICO"}</p>
|
||||
</div>
|
||||
|
||||
<TextAnimation
|
||||
text={"YOUR BUSINESS NEEDS A WEB THAT [X] WORKS."}
|
||||
variant={"slide-up"}
|
||||
gradientText={true}
|
||||
tag="h1"
|
||||
className="md:max-w-8/10 text-7xl 2xl:text-8xl leading-[1.15] font-semibold text-center text-balance"
|
||||
/>
|
||||
|
||||
<TextAnimation
|
||||
text={"Delivered in 7 days. No excuses."}
|
||||
variant={"slide-up"}
|
||||
gradientText={false}
|
||||
tag="p"
|
||||
className="md:max-w-7/10 text-lg md:text-xl leading-snug text-balance"
|
||||
/>
|
||||
|
||||
<div className="flex flex-wrap justify-center gap-3 mt-2 md:mt-3">
|
||||
<Button text={primaryButton.text} href={primaryButton.href} variant="primary"/>
|
||||
<Button text={secondaryButton.text} href={secondaryButton.href} variant="secondary"animationDelay={0.1} />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div className="w-content-width mx-auto overflow-hidden mask-fade-x">
|
||||
<div className="flex w-max animate-marquee-horizontal" style={{ animationDuration: "60s" }}>
|
||||
{duplicated.map((item, i) => (
|
||||
<div key={i} className="shrink-0 w-60 md:w-75 2xl:w-80 aspect-4/5 mr-3 md:mr-5 p-2 xl:p-3 2xl:p-4 card rounded-lg overflow-hidden">
|
||||
<ImageOrVideo
|
||||
imageSrc={item.imageSrc}
|
||||
videoSrc={item.videoSrc}
|
||||
className="w-full h-full rounded-lg object-cover"
|
||||
/>
|
||||
</div>
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
};
|
||||
|
||||
export default function HeroSection() {
|
||||
return (
|
||||
<div data-webild-section="hero" id="hero">
|
||||
<HeroInline />
|
||||
</div>
|
||||
);
|
||||
}
|
||||
129
src/pages/HomePage/sections/Packages.tsx
Normal file
129
src/pages/HomePage/sections/Packages.tsx
Normal file
@@ -0,0 +1,129 @@
|
||||
/* eslint-disable */
|
||||
// @ts-nocheck — generated by catalog-eject; runtime-correct but TS strict-mode false-positives on inlined catalog body
|
||||
import { Check } from "lucide-react";
|
||||
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 { motion } from "motion/react";
|
||||
|
||||
const plans = [
|
||||
{
|
||||
tag: "WEB X PRO",
|
||||
price: "$14,900",
|
||||
period: "MXN",
|
||||
features: [
|
||||
"10 pages",
|
||||
"On-page SEO",
|
||||
"Forms & WhatsApp",
|
||||
"GMB Premium",
|
||||
"1 month support"
|
||||
],
|
||||
primaryButton: {
|
||||
text: "Get Pro",
|
||||
href: "#contact"
|
||||
},
|
||||
imageSrc: "http://img.b2bpic.net/free-psd/start-up-landing-page-template_23-2148819558.jpg"
|
||||
},
|
||||
{
|
||||
tag: "WEB X DOMINATOR",
|
||||
price: "$24,900",
|
||||
period: "MXN",
|
||||
features: [
|
||||
"Everything in Pro",
|
||||
"Campaign Landing Page",
|
||||
"Google Analytics",
|
||||
"Traffic Report",
|
||||
"3 months support"
|
||||
],
|
||||
primaryButton: {
|
||||
text: "Get Dominator",
|
||||
href: "#contact"
|
||||
},
|
||||
imageSrc: "http://img.b2bpic.net/free-psd/business-corporation-template_23-2151402198.jpg"
|
||||
}
|
||||
];
|
||||
|
||||
type PricingPlan = {
|
||||
tag: string;
|
||||
price: string;
|
||||
period: string;
|
||||
features: string[];
|
||||
primaryButton: { text: string; href: string };
|
||||
} & ({ imageSrc: string; videoSrc?: never } | { videoSrc: string; imageSrc?: never });
|
||||
|
||||
const PackagesInline = () => (
|
||||
<section aria-label="Pricing section" className="relative py-24 bg-[#000000] overflow-hidden">
|
||||
{/* Radial glow behind Dominator card (approx 65% 50%) */}
|
||||
<div
|
||||
className="absolute inset-0 pointer-events-none"
|
||||
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>
|
||||
|
||||
<motion.h2
|
||||
initial={{ y: 100, opacity: 0, scale: 0.8 }}
|
||||
whileInView={{ y: 0, opacity: 1, scale: 1 }}
|
||||
viewport={{ once: true, margin: "-100px" }}
|
||||
transition={{ type: "spring", stiffness: 300, damping: 12, mass: 2 }}
|
||||
className="font-tight font-black text-[80px] leading-[0.9] text-white uppercase text-center"
|
||||
>
|
||||
CHOOSE YOUR<br/>
|
||||
[<span className="text-[#7D1C2E]">X</span>] LEVEL
|
||||
</motion.h2>
|
||||
</div>
|
||||
|
||||
<div className="flex flex-col gap-5">
|
||||
{plans.map((plan) => (
|
||||
<ScrollReveal
|
||||
variant="slide-up"
|
||||
key={plan.tag}
|
||||
className="flex flex-col md:flex-row gap-6 md:gap-10 p-6 md:p-10 card rounded"
|
||||
>
|
||||
<div className="w-full md:w-1/2 aspect-square md:aspect-4/3 rounded overflow-hidden">
|
||||
<ImageOrVideo imageSrc={plan.imageSrc} videoSrc={plan.videoSrc} />
|
||||
</div>
|
||||
|
||||
<div className="flex flex-col justify-center gap-2 w-full md:w-1/2">
|
||||
<div className="px-3 py-1 mb-1 w-fit text-sm card rounded">
|
||||
<p>{plan.price}{plan.period}</p>
|
||||
</div>
|
||||
<h3 className="text-4xl md:text-5xl font-semibold leading-[1.15] text-balance">{plan.tag}</h3>
|
||||
|
||||
<div className="flex flex-col gap-3 mt-1">
|
||||
{plan.features.map((feature) => (
|
||||
<div key={feature} className="flex items-start gap-3">
|
||||
<div className="flex items-center justify-center shrink-0 size-6 primary-button rounded">
|
||||
<Check className="size-3 text-primary-cta-text" strokeWidth={2} />
|
||||
</div>
|
||||
<span className="text-base leading-snug">{feature}</span>
|
||||
</div>
|
||||
))}
|
||||
</div>
|
||||
|
||||
<Button text={plan.primaryButton.text} href={plan.primaryButton.href} variant="primary" className="w-fit mt-2 md:mt-3" />
|
||||
</div>
|
||||
</ScrollReveal>
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
|
||||
export default function PackagesSection() {
|
||||
return (
|
||||
<div data-webild-section="packages" id="packages">
|
||||
<PackagesInline />
|
||||
</div>
|
||||
);
|
||||
}
|
||||
65
src/pages/HomePage/sections/Process.tsx
Normal file
65
src/pages/HomePage/sections/Process.tsx
Normal file
@@ -0,0 +1,65 @@
|
||||
// AUTO-GENERATED by per-section-migrate. Edit freely — Bob will treat this
|
||||
// file as the canonical source for the "process" section.
|
||||
|
||||
import React from 'react';
|
||||
import FeaturesRevealCardsBento from '@/components/sections/features/FeaturesRevealCardsBento';
|
||||
import SectionErrorBoundary from "@/components/ui/SectionErrorBoundary";
|
||||
|
||||
export default function ProcessSection(): React.JSX.Element {
|
||||
return (
|
||||
<div id="process" data-section="process">
|
||||
<SectionErrorBoundary name="process">
|
||||
<FeaturesRevealCardsBento
|
||||
tag="PROCESS"
|
||||
title="FROM ZERO TO LIVE IN 7 DAYS."
|
||||
description="A streamlined four-stage process for maximum efficiency."
|
||||
items={[
|
||||
{
|
||||
title: "Day 1-2: Brief",
|
||||
description: "Gather goals and objectives.",
|
||||
href: "#",
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/prism-dispersing-light-concept_23-2148599263.jpg",
|
||||
},
|
||||
{
|
||||
title: "Day 2-4: Design",
|
||||
description: "Structuring your brand identity.",
|
||||
href: "#",
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/3d-rendering-holographic-cube_23-2150979697.jpg",
|
||||
},
|
||||
{
|
||||
title: "Day 4-6: Development",
|
||||
description: "Coding and functionality.",
|
||||
href: "#",
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/lights-prisms-effect-close-up_23-2148917904.jpg",
|
||||
},
|
||||
{
|
||||
title: "Day 7: Delivery",
|
||||
description: "Live launch and final review.",
|
||||
href: "#",
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/abstract-metallic-cube-shape_23-2150979660.jpg",
|
||||
},
|
||||
{
|
||||
title: "Ongoing",
|
||||
description: "Post-launch maintenance.",
|
||||
href: "#",
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/flying-rings-geometric-shapes-background_23-2148772500.jpg",
|
||||
},
|
||||
{
|
||||
title: "Support",
|
||||
description: "3 months technical help.",
|
||||
href: "#",
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/colorful-light-prisms-reflection_23-2148898144.jpg",
|
||||
},
|
||||
{
|
||||
title: "Optimization",
|
||||
description: "SEO tuning and analytics.",
|
||||
href: "#",
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/flying-snake_488145-667.jpg",
|
||||
},
|
||||
]}
|
||||
textAnimation="fade-blur"
|
||||
/>
|
||||
</SectionErrorBoundary>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
142
src/pages/HomePage/sections/Services.tsx
Normal file
142
src/pages/HomePage/sections/Services.tsx
Normal file
@@ -0,0 +1,142 @@
|
||||
/* eslint-disable */
|
||||
// @ts-nocheck — generated by catalog-eject; runtime-correct but TS strict-mode false-positives on inlined catalog body
|
||||
import type { LucideIcon } from "lucide-react";
|
||||
import TextAnimation from "@/components/ui/TextAnimation";
|
||||
import ImageOrVideo from "@/components/ui/ImageOrVideo";
|
||||
import LoopCarousel from "@/components/ui/LoopCarousel";
|
||||
import Button from "@/components/ui/Button";
|
||||
import { useButtonClick } from "@/hooks/useButtonClick";
|
||||
import { resolveIcon } from "@/utils/resolve-icon";
|
||||
|
||||
const items = [
|
||||
{
|
||||
title: "Custom Web Design",
|
||||
description: "Tailored, high-conversion visual design.",
|
||||
buttonIcon: "ArrowRight",
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/light-prisms-colorful-effect_23-2148898178.jpg"
|
||||
},
|
||||
{
|
||||
title: "On-page SEO",
|
||||
description: "Ready to rank from day one.",
|
||||
buttonIcon: "ArrowRight",
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/empty-concrete-room-with-neon-lights_1048-12984.jpg"
|
||||
},
|
||||
{
|
||||
title: "Integrations",
|
||||
description: "WhatsApp, Forms, and GMB setup.",
|
||||
buttonIcon: "ArrowRight",
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/colorful-light-prisms-effect_23-2148898152.jpg"
|
||||
},
|
||||
{
|
||||
title: "Analytics",
|
||||
description: "Google Analytics and traffic reporting.",
|
||||
buttonIcon: "ArrowRight",
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/front-view-blue-white-bottle-designed-round-beautiful-white-wall_140725-11601.jpg"
|
||||
},
|
||||
{
|
||||
title: "Speed Optimization",
|
||||
description: "Performance focused architecture.",
|
||||
buttonIcon: "ArrowRight",
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/abstract-metallic-cube-shape_23-2150979663.jpg"
|
||||
},
|
||||
{
|
||||
title: "Ongoing Support",
|
||||
description: "We ensure your site stays up.",
|
||||
buttonIcon: "ArrowRight",
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/spiky-black-ferromagnetic-liquid-metal-with-copy-space_23-2148253673.jpg"
|
||||
}
|
||||
];
|
||||
|
||||
type FeatureItem = {
|
||||
title: string;
|
||||
description: string;
|
||||
buttonIcon: string | LucideIcon;
|
||||
buttonHref?: string;
|
||||
buttonOnClick?: () => void;
|
||||
} & ({ imageSrc: string; videoSrc?: never } | { videoSrc: string; imageSrc?: never });
|
||||
|
||||
interface FeaturesMediaCarouselProps {
|
||||
tag: string;
|
||||
title: string;
|
||||
description: string;
|
||||
primaryButton?: { text: string; href: string };
|
||||
secondaryButton?: { text: string; href: string };
|
||||
items: FeatureItem[];
|
||||
textAnimation: "slide-up" | "fade-blur" | "fade";
|
||||
}
|
||||
|
||||
const FeatureMediaCarouselCard = ({ item }: { item: FeatureItem }) => {
|
||||
const handleClick = useButtonClick(item.buttonHref, item.buttonOnClick);
|
||||
const Icon = resolveIcon(item.buttonIcon);
|
||||
|
||||
return (
|
||||
<div className="relative overflow-hidden aspect-square md:aspect-3/2 rounded">
|
||||
<ImageOrVideo imageSrc={item.imageSrc} videoSrc={item.videoSrc} className="absolute inset-0" />
|
||||
<div className="absolute inset-x-4 bottom-4 xl:inset-x-5 xl:bottom-5 2xl:inset-x-6 2xl:bottom-6 flex items-center justify-between gap-5 p-4 xl:p-5 2xl:p-6 card rounded backdrop-blur-sm">
|
||||
<div className="flex flex-col gap-1 min-w-0">
|
||||
<h3 className="text-2xl font-semibold leading-snug truncate">{item.title}</h3>
|
||||
<p className="text-base leading-snug truncate">{item.description}</p>
|
||||
</div>
|
||||
<a
|
||||
href={item.buttonHref}
|
||||
onClick={handleClick}
|
||||
aria-label="View more"
|
||||
className="flex items-center justify-center shrink-0 size-9 cursor-pointer primary-button rounded-full"
|
||||
>
|
||||
<Icon className="size-4 text-primary-cta-text" strokeWidth={2} />
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
const ServicesInline = () => {
|
||||
return (
|
||||
<section aria-label="Features section" className="w-full py-20">
|
||||
<div className="flex flex-col w-full gap-8 md:gap-10">
|
||||
<div className="flex flex-col items-center w-content-width mx-auto gap-2">
|
||||
<div className="px-3 py-1 mb-1 text-sm card rounded w-fit">
|
||||
<p>{"WHAT WE BUILD"}</p>
|
||||
</div>
|
||||
|
||||
<TextAnimation
|
||||
text={"WEBSITES THAT DO [X] THE WORK."}
|
||||
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={"From custom design to SEO and automation."}
|
||||
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>
|
||||
|
||||
<LoopCarousel>
|
||||
{items.map((item) => (
|
||||
<FeatureMediaCarouselCard key={item.title} item={item} />
|
||||
))}
|
||||
</LoopCarousel>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
};
|
||||
|
||||
export default function ServicesSection() {
|
||||
return (
|
||||
<div data-webild-section="services" id="services">
|
||||
<ServicesInline />
|
||||
</div>
|
||||
);
|
||||
}
|
||||
134
src/pages/HomePage/sections/Stats.tsx
Normal file
134
src/pages/HomePage/sections/Stats.tsx
Normal file
@@ -0,0 +1,134 @@
|
||||
/* 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 { useEffect, useRef } from "react";
|
||||
import { motion, useInView, animate } from "motion/react";
|
||||
|
||||
const 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"
|
||||
}
|
||||
];
|
||||
|
||||
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]);
|
||||
|
||||
return (
|
||||
<div className="flex flex-col items-center text-center px-4">
|
||||
<div className="font-tight font-black text-[88px] leading-none text-white">
|
||||
<span ref={nodeRef}>{prefix}0{suffix}</span>
|
||||
</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