Compare commits
5 Commits
version_10
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 21e7ac770d | |||
| 12b5f85954 | |||
| 21cb3e021e | |||
| 2b852cd5ff | |||
| 8fbfaeeda7 |
@@ -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,8 +139,9 @@ export default function LandingPage() {
|
||||
description="Clique abaixo para falar diretamente via WhatsApp: (65) 99919-0657"
|
||||
background={{ variant: "rotated-rays-animated" }}
|
||||
useInvertedBackground={false}
|
||||
buttonText="Iniciar Conversa no WhatsApp"
|
||||
buttonText="Enviar Mensagem no WhatsApp"
|
||||
termsText="Clique para enviar mensagem via WhatsApp - Respeitamos sua privacidade."
|
||||
onSubmit={handleWhatsAppSubmit}
|
||||
/>
|
||||
</div>
|
||||
|
||||
@@ -168,4 +176,4 @@ export default function LandingPage() {
|
||||
</div>
|
||||
</ThemeProvider>
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user