Compare commits
1 Commits
version_9
...
version_10
| Author | SHA1 | Date | |
|---|---|---|---|
| f30e94e936 |
@@ -14,6 +14,13 @@ import ContactSplit from '@/components/sections/contact/ContactSplit';
|
|||||||
import FooterBase from '@/components/sections/footer/FooterBase';
|
import FooterBase from '@/components/sections/footer/FooterBase';
|
||||||
|
|
||||||
export default function LandingPage() {
|
export default function LandingPage() {
|
||||||
|
const handleBookAppointment = () => {
|
||||||
|
const contactSection = document.getElementById('contact');
|
||||||
|
if (contactSection) {
|
||||||
|
contactSection.scrollIntoView({ behavior: 'smooth' });
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<ThemeProvider
|
<ThemeProvider
|
||||||
defaultButtonVariant="text-stagger"
|
defaultButtonVariant="text-stagger"
|
||||||
@@ -36,7 +43,7 @@ export default function LandingPage() {
|
|||||||
{ name: "Features", id: "features" },
|
{ name: "Features", id: "features" },
|
||||||
{ name: "Testimonials", id: "testimonials" }
|
{ name: "Testimonials", id: "testimonials" }
|
||||||
]}
|
]}
|
||||||
button={{ text: "Book Appointment", href: "#contact" }}
|
button={{ text: "Book Appointment", onClick: handleBookAppointment }}
|
||||||
animateOnLoad={true}
|
animateOnLoad={true}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
@@ -55,7 +62,7 @@ export default function LandingPage() {
|
|||||||
tag="Expert Dental Care"
|
tag="Expert Dental Care"
|
||||||
tagAnimation="slide-up"
|
tagAnimation="slide-up"
|
||||||
buttons={[
|
buttons={[
|
||||||
{ text: "Book Appointment", href: "#contact" },
|
{ text: "Book Appointment", onClick: handleBookAppointment },
|
||||||
{ text: "Learn More", href: "#features" }
|
{ text: "Learn More", href: "#features" }
|
||||||
]}
|
]}
|
||||||
buttonAnimation="slide-up"
|
buttonAnimation="slide-up"
|
||||||
@@ -113,7 +120,7 @@ export default function LandingPage() {
|
|||||||
]}
|
]}
|
||||||
useInvertedBackground={false}
|
useInvertedBackground={false}
|
||||||
buttons={[
|
buttons={[
|
||||||
{ text: "Book with Dr. Padmasri", href: "#contact" }
|
{ text: "Book with Dr. Padmasri", onClick: handleBookAppointment }
|
||||||
]}
|
]}
|
||||||
buttonAnimation="slide-up"
|
buttonAnimation="slide-up"
|
||||||
/>
|
/>
|
||||||
|
|||||||
Reference in New Issue
Block a user