Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| ee307b8a02 |
@@ -13,6 +13,15 @@ import FooterSimple from '@/components/sections/footer/FooterSimple';
|
|||||||
import { Shield, Award, Hammer, Users, CheckCircle, Star, MessageCircle, HelpCircle, Phone } from 'lucide-react';
|
import { Shield, Award, Hammer, Users, CheckCircle, Star, MessageCircle, HelpCircle, Phone } from 'lucide-react';
|
||||||
|
|
||||||
export default function LandingPage() {
|
export default function LandingPage() {
|
||||||
|
const handleScheduleInspection = () => {
|
||||||
|
const formData = new FormData();
|
||||||
|
formData.append('action', 'schedule_inspection');
|
||||||
|
fetch('/api/contact', {
|
||||||
|
method: 'POST',
|
||||||
|
body: formData,
|
||||||
|
}).catch(() => {});
|
||||||
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<ThemeProvider
|
<ThemeProvider
|
||||||
defaultButtonVariant="elastic-effect"
|
defaultButtonVariant="elastic-effect"
|
||||||
@@ -190,7 +199,7 @@ export default function LandingPage() {
|
|||||||
useInvertedBackground={false}
|
useInvertedBackground={false}
|
||||||
buttons={[
|
buttons={[
|
||||||
{ text: "Call Now", href: "tel:+15615551234" },
|
{ text: "Call Now", href: "tel:+15615551234" },
|
||||||
{ text: "Request Quote", href: "mailto:info@steadfastroofing.com" }
|
{ text: "Schedule Free Inspection", onClick: handleScheduleInspection }
|
||||||
]}
|
]}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user