Compare commits
10 Commits
version_1_
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 8e1caa8b27 | |||
|
|
f90e3c76e1 | ||
| 7ca38a2548 | |||
|
|
396fec70c5 | ||
| d197cc46fc | |||
|
|
76f79f0524 | ||
| fdf8b33682 | |||
|
|
61eb2ae58b | ||
| 346fb05b24 | |||
|
|
d98037459c |
@@ -1,196 +1,34 @@
|
||||
import AboutFeaturesSplit from '@/components/sections/about/AboutFeaturesSplit';
|
||||
import ContactCta from '@/components/sections/contact/ContactCta';
|
||||
import FaqTabbedAccordion from '@/components/sections/faq/FaqTabbedAccordion';
|
||||
import HeroCenteredLogos from '@/components/sections/hero/HeroCenteredLogos';
|
||||
import MetricsFeatureCards from '@/components/sections/metrics/MetricsFeatureCards';
|
||||
import TestimonialColumnMarqueeCards from '@/components/sections/testimonial/TestimonialColumnMarqueeCards';
|
||||
import { Wrench, Zap } from "lucide-react";
|
||||
import SectionErrorBoundary from "@/components/ui/SectionErrorBoundary";
|
||||
// AUTO-GENERATED shell by per-section-migrate.
|
||||
// Section bodies live in ./<PageBase>/sections/<X>.tsx. Edit the section
|
||||
// files directly. Non-block content (wrappers, non-inlinable sections) is
|
||||
// preserved inline; extracted section blocks become <XSection/> refs.
|
||||
|
||||
export default function HomePage() {
|
||||
import React from 'react';
|
||||
import HeroSection from './HomePage/sections/Hero';
|
||||
import ServicesSection from './HomePage/sections/Services';
|
||||
import MetricsSection from './HomePage/sections/Metrics';
|
||||
import TestimonialsSection from './HomePage/sections/Testimonials';
|
||||
import FaqSection from './HomePage/sections/Faq';
|
||||
import ContactSection from './HomePage/sections/Contact';
|
||||
|
||||
|
||||
import SplashSection from './HomePage/sections/Splash';
|
||||
import ReviewSubmissionSection from './HomePage/sections/ReviewSubmission';export default function HomePage(): React.JSX.Element {
|
||||
return (
|
||||
<>
|
||||
<div id="hero" data-section="hero">
|
||||
<SectionErrorBoundary name="hero">
|
||||
<HeroCenteredLogos
|
||||
avatarText="Trusted by hundreds of local customers"
|
||||
title="Professional Plumbing, Electrical, and Maintenance Services"
|
||||
description="One company for all your home and business repairs. Fast, reliable, and available 24/7 across Pretoria."
|
||||
primaryButton={{
|
||||
text: "Call 076 877 8848",
|
||||
href: "tel:0768778848",
|
||||
}}
|
||||
secondaryButton={{
|
||||
text: "Get a Quote",
|
||||
href: "#contact",
|
||||
}}
|
||||
names={[
|
||||
"4.7 Stars",
|
||||
"24 Google Reviews",
|
||||
"24/7 Service",
|
||||
]}
|
||||
imageSrc="http://img.b2bpic.net/free-photo/plumber-repair-experienced-attentive-middleaged-man-examining-bottom-kitchen-sink_259150-58266.jpg"
|
||||
avatarsSrc={[
|
||||
"http://img.b2bpic.net/free-photo/man-engaged-household-tasks-scenery_23-2151741196.jpg",
|
||||
"http://img.b2bpic.net/free-photo/male-jeweler-working-shop_23-2150914197.jpg",
|
||||
"http://img.b2bpic.net/free-photo/man-engaged-household-task_23-2151741241.jpg",
|
||||
"http://img.b2bpic.net/free-photo/sanitary-technician-gesturing-thumb-up_23-2147772204.jpg",
|
||||
]}
|
||||
/>
|
||||
</SectionErrorBoundary>
|
||||
</div>
|
||||
<>
|
||||
<HeroSection />
|
||||
|
||||
<div id="services" data-section="services">
|
||||
<SectionErrorBoundary name="services">
|
||||
<AboutFeaturesSplit
|
||||
tag="Our Services"
|
||||
title="One Company, Three Solutions"
|
||||
description="Stop juggling multiple contractors. We handle your plumbing, electrical, and maintenance needs under one roof with expert workmanship."
|
||||
items={[
|
||||
{
|
||||
icon: Wrench,
|
||||
title: "Plumbing Repairs",
|
||||
description: "Geysers, leak repairs, taps, and drain unblocking.",
|
||||
},
|
||||
{
|
||||
icon: Zap,
|
||||
title: "Electrical Work",
|
||||
description: "Reliable electrical troubleshooting and repairs.",
|
||||
},
|
||||
{
|
||||
icon: Wrench,
|
||||
title: "General Maintenance",
|
||||
description: "Expert handyman jobs for home and business premises.",
|
||||
},
|
||||
]}
|
||||
imageSrc="http://img.b2bpic.net/free-photo/male-plumber-working-fix-problems-client-s-house_23-2150990704.jpg"
|
||||
/>
|
||||
</SectionErrorBoundary>
|
||||
</div>
|
||||
<ServicesSection />
|
||||
|
||||
<div id="metrics" data-section="metrics">
|
||||
<SectionErrorBoundary name="metrics">
|
||||
<MetricsFeatureCards
|
||||
tag="Why Choose Us"
|
||||
title="Service Excellence Guaranteed"
|
||||
description="We prioritize transparency and quality in everything we do."
|
||||
metrics={[
|
||||
{
|
||||
value: "4.7/5",
|
||||
title: "Google Rating",
|
||||
features: [
|
||||
"Over 24 reviews",
|
||||
"Trusted local reputation",
|
||||
],
|
||||
},
|
||||
{
|
||||
value: "24/7",
|
||||
title: "Availability",
|
||||
features: [
|
||||
"Emergency call-outs",
|
||||
"Always on standby",
|
||||
],
|
||||
},
|
||||
{
|
||||
value: "All-in-One",
|
||||
title: "Convenience",
|
||||
features: [
|
||||
"Plumbing, electrical, handyman",
|
||||
"Zero hassle scheduling",
|
||||
],
|
||||
},
|
||||
]}
|
||||
/>
|
||||
</SectionErrorBoundary>
|
||||
</div>
|
||||
<MetricsSection />
|
||||
|
||||
<div id="testimonials" data-section="testimonials">
|
||||
<SectionErrorBoundary name="testimonials">
|
||||
<TestimonialColumnMarqueeCards
|
||||
tag="Reviews"
|
||||
title="What Our Customers Say"
|
||||
description="Don't take our word for it—read why your neighbors trust us with their homes."
|
||||
testimonials={[
|
||||
{
|
||||
name: "Sarah",
|
||||
role: "Homeowner",
|
||||
quote: "The team was professional, on time, and fixed the problem properly without cutting corners. Fair pricing with no hidden costs.",
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/stylish-woman-wearing-yellow-bandana_273609-13337.jpg",
|
||||
},
|
||||
{
|
||||
name: "Mark",
|
||||
role: "Business Owner",
|
||||
quote: "My drain was blocked and I couldn't find an affordable plumber—they were quick, effective, and got the job done.",
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/close-up-view-black-woman-smile-camera_197531-33139.jpg",
|
||||
},
|
||||
{
|
||||
name: "Emily",
|
||||
role: "Homeowner",
|
||||
quote: "Great low pricing and professional. The perfect all-in-one handyman service that saved me from paying three different companies.",
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/classic-studio-portrait-black-american-male-dressed-suit-grey-vignette-background_613910-9578.jpg",
|
||||
},
|
||||
{
|
||||
name: "David",
|
||||
role: "Customer",
|
||||
quote: "Andre knows his job. Friendly, professional service and worth every cent. Will use them again.",
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/portrait-caucasian-man_641386-12.jpg",
|
||||
},
|
||||
{
|
||||
name: "Jane",
|
||||
role: "Residential",
|
||||
quote: "Fast, reliable, and friendly. Best local service we've used in Pretoria.",
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/top-view-frowny-smiley-faces-with-copy-space_23-2148756225.jpg",
|
||||
},
|
||||
]}
|
||||
/>
|
||||
</SectionErrorBoundary>
|
||||
</div>
|
||||
<TestimonialsSection />
|
||||
<ReviewSubmissionSection />
|
||||
|
||||
<div id="faq" data-section="faq">
|
||||
<SectionErrorBoundary name="faq">
|
||||
<FaqTabbedAccordion
|
||||
tag="Support"
|
||||
title="Frequently Asked Questions"
|
||||
description="Everything you need to know about our services."
|
||||
categories={[
|
||||
{
|
||||
name: "General",
|
||||
items: [
|
||||
{
|
||||
question: "Where are you based?",
|
||||
answer: "We are based at 258 Honeysuckle Road, Magalieskruin, Pretoria.",
|
||||
},
|
||||
{
|
||||
question: "Do you offer emergency services?",
|
||||
answer: "Yes, we are available 24/7 for emergency call-outs.",
|
||||
},
|
||||
{
|
||||
question: "What areas do you serve?",
|
||||
answer: "We serve Magalieskruin and surrounding Pretoria areas.",
|
||||
},
|
||||
],
|
||||
},
|
||||
]}
|
||||
/>
|
||||
</SectionErrorBoundary>
|
||||
</div>
|
||||
<FaqSection />
|
||||
|
||||
<div id="contact" data-section="contact">
|
||||
<SectionErrorBoundary name="contact">
|
||||
<ContactCta
|
||||
tag="Contact Us"
|
||||
text="Need a reliable professional for plumbing, electrical, or repairs? Call Andre and the team today."
|
||||
primaryButton={{
|
||||
text: "Call 076 877 8848",
|
||||
href: "tel:0768778848",
|
||||
}}
|
||||
secondaryButton={{
|
||||
text: "Send a WhatsApp",
|
||||
href: "https://wa.me/27768778848",
|
||||
}}
|
||||
/>
|
||||
</SectionErrorBoundary>
|
||||
</div>
|
||||
<ContactSection />
|
||||
<SplashSection />
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
27
src/pages/HomePage/sections/Contact.tsx
Normal file
27
src/pages/HomePage/sections/Contact.tsx
Normal file
@@ -0,0 +1,27 @@
|
||||
// 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="Contact Us"
|
||||
text="Need a reliable professional for plumbing, electrical, or repairs? Call Andre and the team today."
|
||||
primaryButton={{
|
||||
text: "Call 076 877 8848",
|
||||
href: "tel:0768778848",
|
||||
}}
|
||||
secondaryButton={{
|
||||
text: "Send a WhatsApp",
|
||||
href: "https://wa.me/27768778848",
|
||||
}}
|
||||
/>
|
||||
</SectionErrorBoundary>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
39
src/pages/HomePage/sections/Faq.tsx
Normal file
39
src/pages/HomePage/sections/Faq.tsx
Normal file
@@ -0,0 +1,39 @@
|
||||
// AUTO-GENERATED by per-section-migrate. Edit freely — Bob will treat this
|
||||
// file as the canonical source for the "faq" section.
|
||||
|
||||
import React from 'react';
|
||||
import FaqTabbedAccordion from '@/components/sections/faq/FaqTabbedAccordion';
|
||||
import SectionErrorBoundary from "@/components/ui/SectionErrorBoundary";
|
||||
|
||||
export default function FaqSection(): React.JSX.Element {
|
||||
return (
|
||||
<div id="faq" data-section="faq">
|
||||
<SectionErrorBoundary name="faq">
|
||||
<FaqTabbedAccordion
|
||||
tag="Support"
|
||||
title="Frequently Asked Questions"
|
||||
description="Everything you need to know about our services."
|
||||
categories={[
|
||||
{
|
||||
name: "General",
|
||||
items: [
|
||||
{
|
||||
question: "Where are you based?",
|
||||
answer: "We are based at 258 Honeysuckle Road, Magalieskruin, Pretoria.",
|
||||
},
|
||||
{
|
||||
question: "Do you offer emergency services?",
|
||||
answer: "Yes, we are available 24/7 for emergency call-outs.",
|
||||
},
|
||||
{
|
||||
question: "What areas do you serve?",
|
||||
answer: "We serve Magalieskruin and surrounding Pretoria areas.",
|
||||
},
|
||||
],
|
||||
},
|
||||
]}
|
||||
/>
|
||||
</SectionErrorBoundary>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
97
src/pages/HomePage/sections/Hero.tsx
Normal file
97
src/pages/HomePage/sections/Hero.tsx
Normal file
@@ -0,0 +1,97 @@
|
||||
/* 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";
|
||||
import AvatarGroup from "@/components/ui/AvatarGroup";
|
||||
|
||||
const avatarsSrc = [
|
||||
"http://img.b2bpic.net/free-photo/man-engaged-household-tasks-scenery_23-2151741196.jpg",
|
||||
"http://img.b2bpic.net/free-photo/male-jeweler-working-shop_23-2150914197.jpg",
|
||||
"http://img.b2bpic.net/free-photo/man-engaged-household-task_23-2151741241.jpg",
|
||||
"http://img.b2bpic.net/free-photo/sanitary-technician-gesturing-thumb-up_23-2147772204.jpg"
|
||||
];
|
||||
const primaryButton = {
|
||||
text: "Call 076 877 8848",
|
||||
href: "tel:0768778848"
|
||||
};
|
||||
const secondaryButton = {
|
||||
text: "Get a Quote",
|
||||
href: "#contact"
|
||||
};
|
||||
const names = [
|
||||
"4.7 Stars",
|
||||
"24 Google Reviews",
|
||||
"24/7 Service"
|
||||
];
|
||||
|
||||
type HeroCenteredLogosProps = {
|
||||
avatarsSrc: string[];
|
||||
avatarText: string;
|
||||
title: string;
|
||||
description: string;
|
||||
primaryButton: { text: string; href: string };
|
||||
secondaryButton: { text: string; href: string };
|
||||
names: string[];
|
||||
hideMedia?: boolean;
|
||||
} & ({ imageSrc: string; videoSrc?: never } | { videoSrc: string; imageSrc?: never });
|
||||
|
||||
const HeroInline = () => {
|
||||
return (
|
||||
<section aria-label="Hero section" className="relative h-svh flex flex-col mb-20">
|
||||
<HeroBackgroundSlot />
|
||||
{!undefined && (
|
||||
<div className="absolute inset-0 z-0">
|
||||
<ImageOrVideo imageSrc={"http://img.b2bpic.net/free-photo/plumber-repair-experienced-attentive-middleaged-man-examining-bottom-kitchen-sink_259150-58266.jpg"} className="size-full object-cover" />
|
||||
<div className="absolute inset-0 bg-background/80" />
|
||||
</div>
|
||||
)}
|
||||
|
||||
<div className="relative z-10 flex-1 flex items-center justify-center">
|
||||
<div className="flex flex-col items-center gap-3 pt-8 w-content-width mx-auto text-center">
|
||||
<AvatarGroup avatarsSrc={avatarsSrc} label={"Trusted by hundreds of local customers"} size="lg" />
|
||||
|
||||
<TextAnimation
|
||||
text={"Professional Plumbing, Electrical, and Maintenance Services"}
|
||||
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={"One company for all your home and business repairs. Fast, reliable, and available 24/7 across Pretoria."}
|
||||
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>
|
||||
|
||||
<div className="relative z-10 w-content-width mx-auto pb-8 overflow-hidden mask-fade-x">
|
||||
<div className="flex w-max animate-marquee-horizontal" style={{ animationDuration: "30s" }}>
|
||||
{[...names, ...names, ...names, ...names].map((name, index) => (
|
||||
<div key={index} className="shrink-0 mx-3 px-4 py-2 card rounded">
|
||||
<span className="text-xl font-semibold whitespace-nowrap text-foreground/75">{name}</span>
|
||||
</div>
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
};
|
||||
|
||||
export default function HeroSection() {
|
||||
return (
|
||||
<div data-webild-section="hero" id="hero">
|
||||
<HeroInline />
|
||||
</div>
|
||||
);
|
||||
}
|
||||
46
src/pages/HomePage/sections/Metrics.tsx
Normal file
46
src/pages/HomePage/sections/Metrics.tsx
Normal file
@@ -0,0 +1,46 @@
|
||||
// AUTO-GENERATED by per-section-migrate. Edit freely — Bob will treat this
|
||||
// file as the canonical source for the "metrics" section.
|
||||
|
||||
import React from 'react';
|
||||
import MetricsFeatureCards from '@/components/sections/metrics/MetricsFeatureCards';
|
||||
import SectionErrorBoundary from "@/components/ui/SectionErrorBoundary";
|
||||
|
||||
export default function MetricsSection(): React.JSX.Element {
|
||||
return (
|
||||
<div id="metrics" data-section="metrics">
|
||||
<SectionErrorBoundary name="metrics">
|
||||
<MetricsFeatureCards
|
||||
tag="Why Choose Us"
|
||||
title="Service Excellence Guaranteed"
|
||||
description="We prioritize transparency and quality in everything we do."
|
||||
metrics={[
|
||||
{
|
||||
value: "4.7/5",
|
||||
title: "Google Rating",
|
||||
features: [
|
||||
"Over 24 reviews",
|
||||
"Trusted local reputation",
|
||||
],
|
||||
},
|
||||
{
|
||||
value: "24/7",
|
||||
title: "Availability",
|
||||
features: [
|
||||
"Emergency call-outs",
|
||||
"Always on standby",
|
||||
],
|
||||
},
|
||||
{
|
||||
value: "All-in-One",
|
||||
title: "Convenience",
|
||||
features: [
|
||||
"Plumbing, electrical, handyman",
|
||||
"Zero hassle scheduling",
|
||||
],
|
||||
},
|
||||
]}
|
||||
/>
|
||||
</SectionErrorBoundary>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
74
src/pages/HomePage/sections/ReviewSubmission.tsx
Normal file
74
src/pages/HomePage/sections/ReviewSubmission.tsx
Normal file
@@ -0,0 +1,74 @@
|
||||
import React, { useState } from 'react';
|
||||
import Button from '@/components/ui/Button';
|
||||
import Input from '@/components/ui/Input';
|
||||
import Label from '@/components/ui/Label';
|
||||
import Textarea from '@/components/ui/Textarea';
|
||||
import ScrollReveal from '@/components/ui/ScrollReveal';
|
||||
import TextAnimation from '@/components/ui/TextAnimation';
|
||||
import Tag from '@/components/ui/Tag';
|
||||
import ImageOrVideo from '@/components/ui/ImageOrVideo';
|
||||
|
||||
export default function ReviewSubmissionSection() {
|
||||
const [submitted, setSubmitted] = useState(false);
|
||||
|
||||
const handleSubmit = (e: React.FormEvent) => {
|
||||
e.preventDefault();
|
||||
setSubmitted(true);
|
||||
};
|
||||
|
||||
return (
|
||||
<section data-webild-section="review-submission" className="relative w-full py-24 bg-background">
|
||||
<div className="w-content-width mx-auto">
|
||||
<div className="grid grid-cols-1 lg:grid-cols-2 gap-12 items-center">
|
||||
<ScrollReveal variant="slide-up">
|
||||
<div className="space-y-6">
|
||||
<Tag text="Feedback" />
|
||||
<TextAnimation
|
||||
text="Leave a Review"
|
||||
variant="slide-up"
|
||||
gradientText={false}
|
||||
tag="h2"
|
||||
className="text-4xl md:text-5xl font-bold text-foreground"
|
||||
/>
|
||||
<p className="text-lg text-accent">
|
||||
We value your feedback! Let us know how we did on your recent plumbing, electrical, or maintenance service.
|
||||
</p>
|
||||
|
||||
{submitted ? (
|
||||
<div className="p-6 card rounded-lg border border-border bg-card text-center">
|
||||
<h3 className="text-2xl font-semibold text-foreground mb-2">Thank You!</h3>
|
||||
<p className="text-accent">Your review has been submitted successfully.</p>
|
||||
</div>
|
||||
) : (
|
||||
<form onSubmit={handleSubmit} className="space-y-4">
|
||||
<div className="space-y-2">
|
||||
<Label htmlFor="name">Your Name</Label>
|
||||
<Input id="name" required placeholder="John Doe" className="w-full" />
|
||||
</div>
|
||||
<div className="space-y-2">
|
||||
<Label htmlFor="rating">Rating (1-5)</Label>
|
||||
<Input id="rating" type="number" min="1" max="5" required placeholder="5" className="w-full" />
|
||||
</div>
|
||||
<div className="space-y-2">
|
||||
<Label htmlFor="review">Review</Label>
|
||||
<Textarea id="review" required rows={4} placeholder="Write your review here..." className="w-full" />
|
||||
</div>
|
||||
<Button text="Submit Review" variant="primary" className="w-full" />
|
||||
</form>
|
||||
)}
|
||||
</div>
|
||||
</ScrollReveal>
|
||||
|
||||
<ScrollReveal variant="fade-blur" delay={0.2}>
|
||||
<div className="relative aspect-square md:aspect-[4/3] lg:aspect-square rounded-lg overflow-hidden">
|
||||
<ImageOrVideo
|
||||
imageSrc="https://images.unsplash.com/photo-1581094288338-2314dddb7ece?auto=format&fit=crop&q=80"
|
||||
className="w-full h-full object-cover"
|
||||
/>
|
||||
</div>
|
||||
</ScrollReveal>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
}
|
||||
39
src/pages/HomePage/sections/Services.tsx
Normal file
39
src/pages/HomePage/sections/Services.tsx
Normal file
@@ -0,0 +1,39 @@
|
||||
// AUTO-GENERATED by per-section-migrate. Edit freely — Bob will treat this
|
||||
// file as the canonical source for the "services" section.
|
||||
|
||||
import React from 'react';
|
||||
import AboutFeaturesSplit from '@/components/sections/about/AboutFeaturesSplit';
|
||||
import { Wrench, Zap } from "lucide-react";
|
||||
import SectionErrorBoundary from "@/components/ui/SectionErrorBoundary";
|
||||
|
||||
export default function ServicesSection(): React.JSX.Element {
|
||||
return (
|
||||
<div id="services" data-section="services">
|
||||
<SectionErrorBoundary name="services">
|
||||
<AboutFeaturesSplit
|
||||
tag="Our Services"
|
||||
title="One Company, Three Solutions"
|
||||
description="Stop juggling multiple contractors. We handle your plumbing, electrical, and maintenance needs under one roof with expert workmanship."
|
||||
items={[
|
||||
{
|
||||
icon: Wrench,
|
||||
title: "Plumbing Repairs",
|
||||
description: "Geysers, leak repairs, taps, and drain unblocking.",
|
||||
},
|
||||
{
|
||||
icon: Zap,
|
||||
title: "Electrical Work",
|
||||
description: "Reliable electrical troubleshooting and repairs.",
|
||||
},
|
||||
{
|
||||
icon: Wrench,
|
||||
title: "General Maintenance",
|
||||
description: "Expert handyman jobs for home and business premises.",
|
||||
},
|
||||
]}
|
||||
imageSrc="http://img.b2bpic.net/free-photo/male-plumber-working-fix-problems-client-s-house_23-2150990704.jpg"
|
||||
/>
|
||||
</SectionErrorBoundary>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
103
src/pages/HomePage/sections/Splash.tsx
Normal file
103
src/pages/HomePage/sections/Splash.tsx
Normal file
@@ -0,0 +1,103 @@
|
||||
import React, { useState, useEffect } from 'react';
|
||||
import { motion } from 'motion/react';
|
||||
|
||||
export default function SplashSection() {
|
||||
const [isVisible, setIsVisible] = useState(true);
|
||||
const [isSplashing, setIsSplashing] = useState(false);
|
||||
|
||||
useEffect(() => {
|
||||
if (isVisible) {
|
||||
document.body.style.overflow = 'hidden';
|
||||
} else {
|
||||
document.body.style.overflow = 'unset';
|
||||
}
|
||||
return () => {
|
||||
document.body.style.overflow = 'unset';
|
||||
};
|
||||
}, [isVisible]);
|
||||
|
||||
if (!isVisible) return null;
|
||||
|
||||
const handleEnter = () => {
|
||||
setIsSplashing(true);
|
||||
setTimeout(() => {
|
||||
setIsVisible(false);
|
||||
}, 2000);
|
||||
};
|
||||
|
||||
return (
|
||||
<div
|
||||
data-webild-section="splash"
|
||||
className={`fixed inset-0 z-[100] flex flex-col items-center justify-center bg-background overflow-hidden transition-opacity duration-700 ${isSplashing ? 'opacity-0 delay-[1300ms]' : 'opacity-100'}`}
|
||||
>
|
||||
<div className="relative z-30 text-center px-4 w-full max-w-5xl mx-auto">
|
||||
<h1 className={`relative z-10 text-4xl md:text-6xl font-bold text-foreground mb-12 drop-shadow-sm transition-all duration-500 ${isSplashing ? 'opacity-0 -translate-y-8' : 'opacity-100 translate-y-0'}`}>
|
||||
AS Plumbing, Electrical & Maintenance
|
||||
</h1>
|
||||
|
||||
<div className="relative inline-block z-20">
|
||||
<button
|
||||
onClick={handleEnter}
|
||||
className={`relative z-10 group overflow-hidden rounded-full px-10 py-5 text-xl md:text-2xl font-bold text-foreground backdrop-blur-md bg-white/40 border border-white/60 shadow-[0_8px_32px_rgba(0,0,0,0.05)] transition-all duration-300 ${isSplashing ? 'opacity-0 scale-110' : 'opacity-100 scale-100 hover:scale-105 hover:bg-white/50 active:scale-95'}`}
|
||||
>
|
||||
<span className="relative z-10">Enter the New Era of Plumbing</span>
|
||||
<div className="absolute inset-0 bg-gradient-to-tr from-white/20 to-transparent pointer-events-none rounded-full" />
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{/* Rising Water Waves */}
|
||||
{isSplashing && (
|
||||
<div className="absolute inset-0 z-40 pointer-events-none overflow-hidden">
|
||||
{/* Layer 1: Foam / Lightest Blue */}
|
||||
<motion.div
|
||||
initial={{ y: '100vh', x: '-2%' }}
|
||||
animate={{ y: '-20vh', x: '2%' }}
|
||||
transition={{
|
||||
y: { duration: 0.9, ease: "easeInOut" },
|
||||
x: { duration: 1.5, repeat: Infinity, repeatType: "reverse", ease: "easeInOut" }
|
||||
}}
|
||||
className="absolute left-[-10%] right-[-10%] w-[120%] h-[150vh] text-blue-200"
|
||||
>
|
||||
<svg viewBox="0 0 1440 320" preserveAspectRatio="none" className="w-full h-[100px] md:h-[150px] block">
|
||||
<path fill="currentColor" d="M0,160L48,176C96,192,192,224,288,224C384,224,480,192,576,165.3C672,139,768,117,864,128C960,139,1056,181,1152,192C1248,203,1344,181,1392,170.7L1440,160L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path>
|
||||
</svg>
|
||||
<div className="w-full h-full bg-blue-200 -mt-[1px]" />
|
||||
</motion.div>
|
||||
|
||||
{/* Layer 2: Medium Blue */}
|
||||
<motion.div
|
||||
initial={{ y: '100vh', x: '2%' }}
|
||||
animate={{ y: '-10vh', x: '-2%' }}
|
||||
transition={{
|
||||
y: { duration: 1.0, ease: "easeInOut", delay: 0.1 },
|
||||
x: { duration: 1.8, repeat: Infinity, repeatType: "reverse", ease: "easeInOut" }
|
||||
}}
|
||||
className="absolute left-[-10%] right-[-10%] w-[120%] h-[150vh] text-blue-400"
|
||||
>
|
||||
<svg viewBox="0 0 1440 320" preserveAspectRatio="none" className="w-full h-[100px] md:h-[150px] block">
|
||||
<path fill="currentColor" d="M0,192L48,181.3C96,171,192,149,288,149.3C384,149,480,171,576,192C672,213,768,235,864,224C960,213,1056,171,1152,149.3C1248,128,1344,128,1392,128L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path>
|
||||
</svg>
|
||||
<div className="w-full h-full bg-blue-400 -mt-[1px]" />
|
||||
</motion.div>
|
||||
|
||||
{/* Layer 3: Deep Blue */}
|
||||
<motion.div
|
||||
initial={{ y: '100vh', x: '-1%' }}
|
||||
animate={{ y: '0vh', x: '1%' }}
|
||||
transition={{
|
||||
y: { duration: 1.1, ease: "easeInOut", delay: 0.2 },
|
||||
x: { duration: 2.0, repeat: Infinity, repeatType: "reverse", ease: "easeInOut" }
|
||||
}}
|
||||
className="absolute left-[-10%] right-[-10%] w-[120%] h-[150vh] text-blue-600"
|
||||
>
|
||||
<svg viewBox="0 0 1440 320" preserveAspectRatio="none" className="w-full h-[100px] md:h-[150px] block">
|
||||
<path fill="currentColor" d="M0,224L48,213.3C96,203,192,181,288,181.3C384,181,480,203,576,213.3C672,224,768,224,864,202.7C960,181,1056,139,1152,128C1248,117,1344,139,1392,149.3L1440,160L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path>
|
||||
</svg>
|
||||
<div className="w-full h-full bg-blue-600 -mt-[1px]" />
|
||||
</motion.div>
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
52
src/pages/HomePage/sections/Testimonials.tsx
Normal file
52
src/pages/HomePage/sections/Testimonials.tsx
Normal file
@@ -0,0 +1,52 @@
|
||||
// AUTO-GENERATED by per-section-migrate. Edit freely — Bob will treat this
|
||||
// file as the canonical source for the "testimonials" section.
|
||||
|
||||
import React from 'react';
|
||||
import TestimonialColumnMarqueeCards from '@/components/sections/testimonial/TestimonialColumnMarqueeCards';
|
||||
import SectionErrorBoundary from "@/components/ui/SectionErrorBoundary";
|
||||
|
||||
export default function TestimonialsSection(): React.JSX.Element {
|
||||
return (
|
||||
<div id="testimonials" data-section="testimonials">
|
||||
<SectionErrorBoundary name="testimonials">
|
||||
<TestimonialColumnMarqueeCards
|
||||
tag="Reviews"
|
||||
title="What Our Customers Say"
|
||||
description="Don't take our word for it—read why your neighbors trust us with their homes."
|
||||
testimonials={[
|
||||
{
|
||||
name: "Sarah",
|
||||
role: "Homeowner",
|
||||
quote: "The team was professional, on time, and fixed the problem properly without cutting corners. Fair pricing with no hidden costs.",
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/stylish-woman-wearing-yellow-bandana_273609-13337.jpg",
|
||||
},
|
||||
{
|
||||
name: "Mark",
|
||||
role: "Business Owner",
|
||||
quote: "My drain was blocked and I couldn't find an affordable plumber—they were quick, effective, and got the job done.",
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/close-up-view-black-woman-smile-camera_197531-33139.jpg",
|
||||
},
|
||||
{
|
||||
name: "Emily",
|
||||
role: "Homeowner",
|
||||
quote: "Great low pricing and professional. The perfect all-in-one handyman service that saved me from paying three different companies.",
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/classic-studio-portrait-black-american-male-dressed-suit-grey-vignette-background_613910-9578.jpg",
|
||||
},
|
||||
{
|
||||
name: "David",
|
||||
role: "Customer",
|
||||
quote: "Andre knows his job. Friendly, professional service and worth every cent. Will use them again.",
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/portrait-caucasian-man_641386-12.jpg",
|
||||
},
|
||||
{
|
||||
name: "Jane",
|
||||
role: "Residential",
|
||||
quote: "Fast, reliable, and friendly. Best local service we've used in Pretoria.",
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/top-view-frowny-smiley-faces-with-copy-space_23-2148756225.jpg",
|
||||
},
|
||||
]}
|
||||
/>
|
||||
</SectionErrorBoundary>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user