Bob AI: Add persistent mobile-friendly call-to-action bar
This commit is contained in:
@@ -17,7 +17,8 @@ import ContactSection from './HomePage/sections/Contact';
|
||||
|
||||
import FaqSection from './HomePage/sections/Faq';
|
||||
import CertificationsSection from './HomePage/sections/Certifications';
|
||||
import ClientLogosSection from './HomePage/sections/ClientLogos';export default function HomePage(): React.JSX.Element {
|
||||
import ClientLogosSection from './HomePage/sections/ClientLogos';
|
||||
import FloatingCtaSection from './HomePage/sections/FloatingCta';export default function HomePage(): React.JSX.Element {
|
||||
return (
|
||||
<>
|
||||
<HeroSection />
|
||||
@@ -38,6 +39,7 @@ import ClientLogosSection from './HomePage/sections/ClientLogos';export default
|
||||
<FaqSection />
|
||||
|
||||
<ContactSection />
|
||||
<FloatingCtaSection />
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
15
src/pages/HomePage/sections/FloatingCta.tsx
Normal file
15
src/pages/HomePage/sections/FloatingCta.tsx
Normal file
@@ -0,0 +1,15 @@
|
||||
import Button from "@/components/ui/Button";
|
||||
|
||||
export default function FloatingCta() {
|
||||
return (
|
||||
<div data-webild-section="floating-cta" className="fixed bottom-4 left-1/2 -translate-x-1/2 w-[calc(100%-2rem)] max-w-md z-50 pointer-events-none">
|
||||
<div className="card pointer-events-auto w-full p-4 flex items-center justify-between gap-4 shadow-2xl rounded-xl border border-black/5">
|
||||
<div className="flex flex-col">
|
||||
<span className="text-sm font-bold text-foreground">Ready to order?</span>
|
||||
<span className="text-xs text-accent">Get in touch today</span>
|
||||
</div>
|
||||
<Button text="Contact Us" variant="primary" href="#contact" />
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user