Update src/app/page.tsx
This commit is contained in:
@@ -12,6 +12,13 @@ import SplitAbout from '@/components/sections/about/SplitAbout';
|
||||
import TestimonialCardSix from '@/components/sections/testimonial/TestimonialCardSix';
|
||||
|
||||
export default function LandingPage() {
|
||||
const scrollToSection = (id: string) => {
|
||||
const element = document.getElementById(id);
|
||||
if (element) {
|
||||
element.scrollIntoView({ behavior: "smooth" });
|
||||
}
|
||||
};
|
||||
|
||||
return (
|
||||
<ThemeProvider
|
||||
defaultButtonVariant="text-shift"
|
||||
@@ -59,7 +66,7 @@ export default function LandingPage() {
|
||||
{ imageSrc: "http://img.b2bpic.net/free-photo/red-haired-girl-smiles-because-sun-strokes-her-cheeks_8353-9131.jpg?_wi=4", imageAlt: "Hygge" },
|
||||
{ imageSrc: "http://img.b2bpic.net/free-photo/high-angle-plate-with-delicious-bruschettas-table_23-2148454840.jpg?_wi=4", imageAlt: "Kvalitet" },
|
||||
]}
|
||||
buttons={[{ text: "Se menuen", href: "#menu" }]}
|
||||
buttons={[{ text: "Se menuen", onClick: () => scrollToSection("menu") }]}
|
||||
/>
|
||||
</div>
|
||||
|
||||
@@ -140,6 +147,7 @@ export default function LandingPage() {
|
||||
description="Kom forbi og nyd en kop kaffe eller bestil bord direkte ved at ringe til os."
|
||||
imageSrc="http://img.b2bpic.net/free-photo/lights-night-city_23-2148139580.jpg"
|
||||
mediaAnimation="blur-reveal"
|
||||
onSubmit={(email) => console.log("Signed up with:", email)}
|
||||
/>
|
||||
</div>
|
||||
|
||||
@@ -147,7 +155,7 @@ export default function LandingPage() {
|
||||
<FooterBase
|
||||
columns={[
|
||||
{ title: "Menu", items: [{ label: "Se menukort", href: "#menu" }] },
|
||||
{ title: "Kontakt", items: [{ label: "Find vej", href: "#contact" }, { label: "Ring til os", href: "tel:+4575820000" }] },
|
||||
{ title: "Kontakt", items: [{ label: "Find vej", href: "#contact" }, { label: "Ring til os", onClick: () => window.location.href = "tel:+4575820000" }] },
|
||||
{ title: "Social", items: [{ label: "Instagram", href: "#" }, { label: "Facebook", href: "#" }] },
|
||||
]}
|
||||
logoText="Onkel A"
|
||||
|
||||
Reference in New Issue
Block a user