48 lines
1.5 KiB
React
48 lines
1.5 KiB
React
// src/pages/Landing/Landingpage.jsx
|
|
// Főoldal - Landing Page
|
|
|
|
|
|
import { data, useNavigate } from "react-router-dom"
|
|
import Navbar from "../../components/Navbar/Navbar"
|
|
import Footer from "../../components/Footer/Footer.jsx"
|
|
import Background from "../../assets/backgrounds/Background.jsx"
|
|
import LandingPage from "../../components/Landingpage/LandingPage.jsx"
|
|
|
|
export default function LandingPageMain() {
|
|
const navigate = useNavigate();
|
|
|
|
const handleNavigateToPlay = () => {
|
|
navigate("/login", { preventScrollReset: false });
|
|
window.scrollTo(0, 0);
|
|
};
|
|
|
|
const handleNavigateToAuth = () => {
|
|
navigate("/companies", { preventScrollReset: false });
|
|
window.scrollTo(0, 0);
|
|
};
|
|
|
|
const handleNavigateToGame = () => {
|
|
navigate("/home", { preventScrollReset: false });
|
|
window.scrollTo(0, 0);
|
|
};
|
|
|
|
const handleNavigateToContacts = () => {
|
|
navigate("/contacts");
|
|
};
|
|
|
|
return (
|
|
<div className="w-full min-h-screen flex flex-col relative overflow-x-hidden">
|
|
<div className="fixed inset-0 -z-10 pointer-events-none">
|
|
<Background />
|
|
</div>
|
|
<div className="fixed top-0 left-0 right-0 z-30">
|
|
<Navbar />
|
|
</div>
|
|
<main className="flex-1 flex flex-col items-center justify-start py-15 min-h-0 mt-[64px]">
|
|
<LandingPage onNavigateToContacts={handleNavigateToContacts} onNavigateToPlay={handleNavigateToPlay} onNavigateToAuth={handleNavigateToAuth} onNavigateToGame={handleNavigateToGame} />
|
|
</main>
|
|
<Footer />
|
|
</div>
|
|
);
|
|
}
|