Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 954bb0e434 | |||
| 7f146949d8 | |||
| f9efe97803 | |||
| fb45df69f6 | |||
| a503dc75b6 |
@@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
|
import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
|
||||||
import ReactLenis from "lenis/react";
|
import ReactLenis from "lenis/react";
|
||||||
|
import { useState } from "react";
|
||||||
import ContactText from '@/components/sections/contact/ContactText';
|
import ContactText from '@/components/sections/contact/ContactText';
|
||||||
import FaqSplitText from '@/components/sections/faq/FaqSplitText';
|
import FaqSplitText from '@/components/sections/faq/FaqSplitText';
|
||||||
import FooterLogoEmphasis from '@/components/sections/footer/FooterLogoEmphasis';
|
import FooterLogoEmphasis from '@/components/sections/footer/FooterLogoEmphasis';
|
||||||
@@ -14,6 +15,10 @@ import TestimonialCardTen from '@/components/sections/testimonial/TestimonialCar
|
|||||||
import TextAbout from '@/components/sections/about/TextAbout';
|
import TextAbout from '@/components/sections/about/TextAbout';
|
||||||
|
|
||||||
export default function LandingPage() {
|
export default function LandingPage() {
|
||||||
|
const [lang, setLang] = useState('PL');
|
||||||
|
|
||||||
|
const toggleLang = () => setLang(prev => prev === 'PL' ? 'EN' : 'PL');
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<ThemeProvider
|
<ThemeProvider
|
||||||
defaultButtonVariant="hover-magnetic"
|
defaultButtonVariant="hover-magnetic"
|
||||||
@@ -39,9 +44,16 @@ export default function LandingPage() {
|
|||||||
name: "Menu", id: "menu"},
|
name: "Menu", id: "menu"},
|
||||||
{
|
{
|
||||||
name: "Contact", id: "contact"},
|
name: "Contact", id: "contact"},
|
||||||
|
{
|
||||||
|
name: lang === 'PL' ? 'EN' : 'PL', id: "lang-toggle"},
|
||||||
]}
|
]}
|
||||||
brandName="Restauracja NOWA"
|
brandName="Restauracja NOWA"
|
||||||
/>
|
/>
|
||||||
|
<div className="fixed top-4 right-4 z-50">
|
||||||
|
<button onClick={toggleLang} className="px-3 py-1 rounded-full bg-white/10 backdrop-blur-md text-xs font-semibold uppercase">
|
||||||
|
{lang}
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="hero" data-section="hero">
|
<div id="hero" data-section="hero">
|
||||||
@@ -52,7 +64,7 @@ export default function LandingPage() {
|
|||||||
description="Experience authentic flavors and warm hospitality in our thoughtfully designed space. Reserve your table today for an unforgettable meal."
|
description="Experience authentic flavors and warm hospitality in our thoughtfully designed space. Reserve your table today for an unforgettable meal."
|
||||||
buttons={[
|
buttons={[
|
||||||
{
|
{
|
||||||
text: "Book Your Table", href: "https://booking-link.com"},
|
text: "Book Your Table", href: "https://surl.li/dervlr"},
|
||||||
]}
|
]}
|
||||||
imageSrc="https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3DcOlznS6pMH4TRQ6VSjZfpv3P6/uploaded-1778578355567-6sqz0ziz.jpg"
|
imageSrc="https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3DcOlznS6pMH4TRQ6VSjZfpv3P6/uploaded-1778578355567-6sqz0ziz.jpg"
|
||||||
/>
|
/>
|
||||||
@@ -167,7 +179,7 @@ export default function LandingPage() {
|
|||||||
text="Join us for an unforgettable dining experience at Restauracja NOWA. Book your table online and secure your spot today."
|
text="Join us for an unforgettable dining experience at Restauracja NOWA. Book your table online and secure your spot today."
|
||||||
buttons={[
|
buttons={[
|
||||||
{
|
{
|
||||||
text: "Book Your Table", href: "https://booking-link.com"},
|
text: "Book Your Table", href: "https://surl.li/dervlr"},
|
||||||
]}
|
]}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user