From 0ed75beb3fa7469a8ef80df86e023aa20261fa63 Mon Sep 17 00:00:00 2001 From: Barni03 Date: Fri, 24 Oct 2025 19:55:37 +0200 Subject: [PATCH] =?UTF-8?q?navbar=20meg=20fooldal=20navig=C3=A1ci=C3=B3k?= =?UTF-8?q?=20illetve=20companies=20->=20contacts?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SerpentRace_Frontend/src/App.jsx | 4 +- .../src/components/Footer/Footer.jsx | 2 +- .../components/Landingpage/LandingPage.jsx | 6 +- .../src/components/Navbar/Navbar.jsx | 110 +++++++++++------- .../Companies.jsx => Contacts/Contacts.jsx} | 7 +- .../src/pages/Landing/Landingpage.jsx | 6 +- .../src/pages/Testing/Test.jsx | 2 +- 7 files changed, 81 insertions(+), 56 deletions(-) rename SerpentRace_Frontend/src/pages/{Companies/Companies.jsx => Contacts/Contacts.jsx} (97%) diff --git a/SerpentRace_Frontend/src/App.jsx b/SerpentRace_Frontend/src/App.jsx index 7ed485e4..99e536d2 100644 --- a/SerpentRace_Frontend/src/App.jsx +++ b/SerpentRace_Frontend/src/App.jsx @@ -10,7 +10,7 @@ import Landingpage from "./pages/Landing/Landingpage" import Home from "./pages/Landing/Home" import DeckManagerPage from "./pages/Decks/DeckManagerPage" import DeckCreator from "./pages/DeckCreator/DeckCreator" -import CompanyHub from "./pages/Companies/Companies" +import CompanyHub from "./pages/Contacts/Contacts" import About from "./pages/About/About" import ScrollToTop from "./components/ScrollToTop" import GameScreen from "./pages/Game/GameScreen" @@ -64,7 +64,7 @@ function App() { } /> } /> } /> - } /> + } /> } /> diff --git a/SerpentRace_Frontend/src/components/Footer/Footer.jsx b/SerpentRace_Frontend/src/components/Footer/Footer.jsx index 45c3394c..1c2f277e 100644 --- a/SerpentRace_Frontend/src/components/Footer/Footer.jsx +++ b/SerpentRace_Frontend/src/components/Footer/Footer.jsx @@ -57,7 +57,7 @@ const Footer = () => { Rólunk - + Kapcsolat diff --git a/SerpentRace_Frontend/src/components/Landingpage/LandingPage.jsx b/SerpentRace_Frontend/src/components/Landingpage/LandingPage.jsx index 1f37c884..79391347 100644 --- a/SerpentRace_Frontend/src/components/Landingpage/LandingPage.jsx +++ b/SerpentRace_Frontend/src/components/Landingpage/LandingPage.jsx @@ -8,7 +8,7 @@ import { motion } from "framer-motion" import { isAuthenticated } from "../../hooks/useRequireAuth" // <-- added import import { useNavigate } from "react-router-dom" // <-- NEW -const LandingPage = ({ onNavigateToPlay, onNavigateToAuth, onNavigateToGame }) => { +const LandingPage = ({ onNavigateToPlay, onNavigateToAuth, onNavigateToGame, onNavigateToContacts }) => { const auth = isAuthenticated() // <-- check without redirect const navigate = useNavigate() // <-- NEW @@ -68,7 +68,7 @@ const LandingPage = ({ onNavigateToPlay, onNavigateToAuth, onNavigateToGame }) = ) : ( - navigate("/home")} width="w-60" /> + )} @@ -178,7 +178,7 @@ const LandingPage = ({ onNavigateToPlay, onNavigateToAuth, onNavigateToGame }) = diff --git a/SerpentRace_Frontend/src/components/Navbar/Navbar.jsx b/SerpentRace_Frontend/src/components/Navbar/Navbar.jsx index 979be9de..68d471aa 100644 --- a/SerpentRace_Frontend/src/components/Navbar/Navbar.jsx +++ b/SerpentRace_Frontend/src/components/Navbar/Navbar.jsx @@ -19,9 +19,9 @@ const Navbar = () => { return (