Bob AI: Update splash screen button to have a wavy top edge on the r

This commit is contained in:
kudinDmitriyUp
2026-06-22 22:18:07 +00:00
parent 7ca38a2548
commit f90e3c76e1
2 changed files with 95 additions and 38 deletions

View File

@@ -1,40 +1,97 @@
// AUTO-GENERATED by per-section-migrate. Edit freely — Bob will treat this
// file as the canonical source for the "hero" 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 HeroBackgroundSlot from "@/components/ui/HeroBackgroundSlot";
import TextAnimation from "@/components/ui/TextAnimation";
import ImageOrVideo from "@/components/ui/ImageOrVideo";
import AvatarGroup from "@/components/ui/AvatarGroup";
import React from 'react';
import HeroCenteredLogos from '@/components/sections/hero/HeroCenteredLogos';
import SectionErrorBoundary from "@/components/ui/SectionErrorBoundary";
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"
];
export default function HeroSection(): React.JSX.Element {
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 (
<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>
<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>
);
}

View File

@@ -76,15 +76,15 @@ export default function SplashSection() {
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,224L48,213.3C96,203,192,181,288,181.3C384,181,480,203,576,208C672,213,768,203,864,176C960,149,1056,107,1152,106.7C1248,107,1344,149,1392,170.7L1440,192L1440,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>
<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: Dark Blue (Main) */}
{/* Layer 3: Deep Blue */}
<motion.div
initial={{ y: '100vh', x: '-1%' }}
animate={{ y: '-5vh', x: '3%' }}
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" }
@@ -92,7 +92,7 @@ export default function SplashSection() {
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" stroke="rgba(255,255,255,0.4)" strokeWidth="4" d="M0,128L48,144C96,160,192,192,288,197.3C384,203,480,181,576,160C672,139,768,117,864,122.7C960,128,1056,160,1152,165.3C1248,171,1344,149,1392,138.7L1440,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>
<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>