Merge version_4 into main #4
@@ -2,6 +2,7 @@
|
||||
|
||||
import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
|
||||
import ReactLenis from "lenis/react";
|
||||
import { useState } from "react";
|
||||
import ContactText from '@/components/sections/contact/ContactText';
|
||||
import FaqSplitText from '@/components/sections/faq/FaqSplitText';
|
||||
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';
|
||||
|
||||
export default function LandingPage() {
|
||||
const [lang, setLang] = useState('PL');
|
||||
|
||||
const toggleLang = () => setLang(prev => prev === 'PL' ? 'EN' : 'PL');
|
||||
|
||||
return (
|
||||
<ThemeProvider
|
||||
defaultButtonVariant="hover-magnetic"
|
||||
@@ -39,9 +44,16 @@ export default function LandingPage() {
|
||||
name: "Menu", id: "menu"},
|
||||
{
|
||||
name: "Contact", id: "contact"},
|
||||
{
|
||||
name: lang === 'PL' ? 'EN' : 'PL', id: "lang-toggle"},
|
||||
]}
|
||||
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 id="hero" data-section="hero">
|
||||
|
||||
Reference in New Issue
Block a user