Merge version_2 into main #4
2782
src/app/layout.tsx
2782
src/app/layout.tsx
File diff suppressed because it is too large
Load Diff
@@ -10,6 +10,13 @@ import ContactSplitForm from "@/components/sections/contact/ContactSplitForm";
|
||||
import FooterLogoReveal from "@/components/sections/footer/FooterLogoReveal";
|
||||
|
||||
export default function LandingPage() {
|
||||
const scrollToContact = () => {
|
||||
const contactElement = document.getElementById('contact');
|
||||
if (contactElement) {
|
||||
contactElement.scrollIntoView({ behavior: 'smooth' });
|
||||
}
|
||||
};
|
||||
|
||||
return (
|
||||
<ThemeProvider
|
||||
defaultButtonVariant="shift-hover"
|
||||
@@ -46,7 +53,7 @@ export default function LandingPage() {
|
||||
tag="Est. serving Fort Worth"
|
||||
tagAnimation="slide-up"
|
||||
buttons={[
|
||||
{ text: "Book Appointment", href: "contact" },
|
||||
{ text: "Schedule Now", onClick: scrollToContact },
|
||||
{ text: "Learn More", href: "about" },
|
||||
]}
|
||||
buttonAnimation="slide-up"
|
||||
@@ -173,4 +180,4 @@ export default function LandingPage() {
|
||||
</div>
|
||||
</ThemeProvider>
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user