Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 7f7a467f9e | |||
| 38d5ab7b2b | |||
| 2cbe435719 | |||
| 7062a9b1e9 |
@@ -12,6 +12,13 @@ import SplitAbout from '@/components/sections/about/SplitAbout';
|
|||||||
import TestimonialCardSix from '@/components/sections/testimonial/TestimonialCardSix';
|
import TestimonialCardSix from '@/components/sections/testimonial/TestimonialCardSix';
|
||||||
|
|
||||||
export default function LandingPage() {
|
export default function LandingPage() {
|
||||||
|
const scrollToSection = (id: string) => {
|
||||||
|
const element = document.getElementById(id);
|
||||||
|
if (element) {
|
||||||
|
element.scrollIntoView({ behavior: "smooth" });
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<ThemeProvider
|
<ThemeProvider
|
||||||
defaultButtonVariant="text-shift"
|
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/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" },
|
{ 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>
|
</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."
|
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"
|
imageSrc="http://img.b2bpic.net/free-photo/lights-night-city_23-2148139580.jpg"
|
||||||
mediaAnimation="blur-reveal"
|
mediaAnimation="blur-reveal"
|
||||||
|
onSubmit={(email) => console.log("Signed up with:", email)}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -147,7 +155,7 @@ export default function LandingPage() {
|
|||||||
<FooterBase
|
<FooterBase
|
||||||
columns={[
|
columns={[
|
||||||
{ title: "Menu", items: [{ label: "Se menukort", href: "#menu" }] },
|
{ 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: "#" }] },
|
{ title: "Social", items: [{ label: "Instagram", href: "#" }, { label: "Facebook", href: "#" }] },
|
||||||
]}
|
]}
|
||||||
logoText="Onkel A"
|
logoText="Onkel A"
|
||||||
|
|||||||
Reference in New Issue
Block a user