Compare commits
14 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 21e7ac770d | |||
| 12b5f85954 | |||
| 21cb3e021e | |||
| 2b852cd5ff | |||
| 8fbfaeeda7 | |||
| cf60d127e1 | |||
| 0d14e4c131 | |||
| 04bb77d600 | |||
| 5b5b4aebf8 | |||
| 8195e95dd6 | |||
| 4dbc7f0f4c | |||
| 6322762348 | |||
| 5e60992f29 | |||
| c9b7720501 |
@@ -1419,4 +1419,4 @@ export default function RootLayout({
|
||||
</ServiceWrapper>
|
||||
</html>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -11,6 +11,13 @@ import FooterSimple from '@/components/sections/footer/FooterSimple';
|
||||
import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
|
||||
|
||||
export default function LandingPage() {
|
||||
const handleWhatsAppSubmit = (email: string) => {
|
||||
const phoneNumber = "5565999190657";
|
||||
const message = `Olá Dr. Alexandre, entrei em contato através do seu site com o email: ${email}`;
|
||||
const whatsappUrl = `https://wa.me/${phoneNumber}?text=${encodeURIComponent(message)}`;
|
||||
window.open(whatsappUrl, "_blank");
|
||||
};
|
||||
|
||||
return (
|
||||
<ThemeProvider
|
||||
defaultButtonVariant="shift-hover"
|
||||
@@ -132,9 +139,9 @@ export default function LandingPage() {
|
||||
description="Clique abaixo para falar diretamente via WhatsApp: (65) 99919-0657"
|
||||
background={{ variant: "rotated-rays-animated" }}
|
||||
useInvertedBackground={false}
|
||||
inputPlaceholder="(65) 99919-0657"
|
||||
buttonText="Enviar via WhatsApp"
|
||||
buttonText="Enviar Mensagem no WhatsApp"
|
||||
termsText="Clique para enviar mensagem via WhatsApp - Respeitamos sua privacidade."
|
||||
onSubmit={handleWhatsAppSubmit}
|
||||
/>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user