Merge branch 'main' of https://git.mdnd-it.cc/Donat/SerpentRace into user-resetpass
This commit is contained in:
@@ -7,28 +7,10 @@ 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"
|
||||
import HandleNavigate from "../../utils/HandleNavigate/HandleNavigate.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");
|
||||
};
|
||||
const { goHome, goLogin, goContacts, goAuth, } = HandleNavigate()
|
||||
|
||||
return (
|
||||
<div className="w-full min-h-screen flex flex-col relative overflow-x-hidden">
|
||||
@@ -39,7 +21,7 @@ export default function LandingPageMain() {
|
||||
<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} />
|
||||
<LandingPage onNavigateToContacts={goContacts} onNavigateToPlay={goLogin} onNavigateToAuth={goAuth} onNavigateToGame={goHome} />
|
||||
</main>
|
||||
<Footer />
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user