To The Top

This commit is contained in:
magdo
2025-10-24 19:37:13 +02:00
parent 8960bd9dce
commit a5f38f791d
2 changed files with 8 additions and 6 deletions
+1 -2
View File
@@ -76,8 +76,7 @@ services:
- NODE_ENV=development - NODE_ENV=development
- VITE_API_URL=http://localhost:3000 - VITE_API_URL=http://localhost:3000
volumes: volumes:
- ../SerpentRace_Frontend:/app []
- /app/node_modules
develop: develop:
watch: watch:
- action: sync - action: sync
@@ -2,7 +2,7 @@
// Főoldal - Landing Page // Főoldal - Landing Page
import { useNavigate } from "react-router-dom" import { data, useNavigate } from "react-router-dom"
import Navbar from "../../components/Navbar/Navbar" import Navbar from "../../components/Navbar/Navbar"
import Footer from "../../components/Footer/Footer.jsx" import Footer from "../../components/Footer/Footer.jsx"
import Background from "../../assets/backgrounds/Background.jsx" import Background from "../../assets/backgrounds/Background.jsx"
@@ -12,15 +12,18 @@ export default function LandingPageMain() {
const navigate = useNavigate(); const navigate = useNavigate();
const handleNavigateToPlay = () => { const handleNavigateToPlay = () => {
navigate("/login"); navigate("/login", { preventScrollReset: false });
window.scrollTo(0, 0);
}; };
const handleNavigateToAuth = () => { const handleNavigateToAuth = () => {
navigate("/register"); navigate("/companies", { preventScrollReset: false });
window.scrollTo(0, 0);
}; };
const handleNavigateToGame = () => { const handleNavigateToGame = () => {
navigate("/home"); navigate("/home", { preventScrollReset: false });
window.scrollTo(0, 0);
}; };
return ( return (