Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| a3b0dd7e89 | |||
| 280834901e | |||
| 73e714e139 | |||
| 1c5878e70d | |||
| 9c269258cc |
@@ -13,7 +13,13 @@ import TestimonialCardThirteen from '@/components/sections/testimonial/Testimoni
|
|||||||
|
|
||||||
export default function LandingPage() {
|
export default function LandingPage() {
|
||||||
const scrollToId = (id: string) => {
|
const scrollToId = (id: string) => {
|
||||||
const target = document.getElementById(id.replace(/^#+/, ''));
|
if (id.startsWith('http') || id.startsWith('tel:') || id.startsWith('mailto:')) {
|
||||||
|
window.open(id, '_blank');
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
const targetId = id.replace(/^#+/, '');
|
||||||
|
const target = document.getElementById(targetId);
|
||||||
if (target) {
|
if (target) {
|
||||||
target.scrollIntoView({ behavior: 'smooth' });
|
target.scrollIntoView({ behavior: 'smooth' });
|
||||||
}
|
}
|
||||||
@@ -59,7 +65,7 @@ export default function LandingPage() {
|
|||||||
]}
|
]}
|
||||||
buttons={[
|
buttons={[
|
||||||
{ text: "Get a Free Inspection", onClick: () => scrollToId("#contact") },
|
{ text: "Get a Free Inspection", onClick: () => scrollToId("#contact") },
|
||||||
{ text: "Call Now: (262) 546-9589", href: "tel:2625469589" },
|
{ text: "Call Now: (262) 546-9589", onClick: () => scrollToId("tel:2625469589") },
|
||||||
]}
|
]}
|
||||||
imageSrc="http://img.b2bpic.net/free-photo/low-angle-artistic-architectural-design_23-2148252774.jpg?_wi=2"
|
imageSrc="http://img.b2bpic.net/free-photo/low-angle-artistic-architectural-design_23-2148252774.jpg?_wi=2"
|
||||||
avatars={[
|
avatars={[
|
||||||
@@ -182,8 +188,8 @@ export default function LandingPage() {
|
|||||||
title="Ready for a Roof You Can Rely On?"
|
title="Ready for a Roof You Can Rely On?"
|
||||||
description="Don't wait for minor issues to cause major damage. Get your free, no-obligation inspection today."
|
description="Don't wait for minor issues to cause major damage. Get your free, no-obligation inspection today."
|
||||||
buttons={[
|
buttons={[
|
||||||
{ text: "Schedule Your Free Inspection", onClick: () => scrollToId("contact") },
|
{ text: "Schedule Your Free Inspection", onClick: () => scrollToId("#contact") },
|
||||||
{ text: "Call (262) 546-9589", href: "tel:2625469589" },
|
{ text: "Call (262) 546-9589", onClick: () => scrollToId("tel:2625469589") },
|
||||||
]}
|
]}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
@@ -206,7 +212,7 @@ export default function LandingPage() {
|
|||||||
{ label: "Terms of Use", href: "#" },
|
{ label: "Terms of Use", href: "#" },
|
||||||
] },
|
] },
|
||||||
]}
|
]}
|
||||||
copyrightText="© 2024 Modern Roofing. All rights reserved."
|
copyrightText="© 2024 Modern Roofing."
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</ReactLenis>
|
</ReactLenis>
|
||||||
|
|||||||
Reference in New Issue
Block a user