diff --git a/SerpentRace_Docker/docker-compose.watch.yml b/SerpentRace_Docker/docker-compose.watch.yml
index 8d026a06..e7d79b8e 100644
--- a/SerpentRace_Docker/docker-compose.watch.yml
+++ b/SerpentRace_Docker/docker-compose.watch.yml
@@ -76,8 +76,7 @@ services:
- NODE_ENV=development
- VITE_API_URL=http://localhost:3000
volumes:
- - ../SerpentRace_Frontend:/app
- - /app/node_modules
+ []
develop:
watch:
- action: sync
diff --git a/SerpentRace_Frontend/src/pages/Contacts/Contacts.jsx b/SerpentRace_Frontend/src/pages/Contacts/Contacts.jsx
index bfa7a082..c6ef8dc7 100644
--- a/SerpentRace_Frontend/src/pages/Contacts/Contacts.jsx
+++ b/SerpentRace_Frontend/src/pages/Contacts/Contacts.jsx
@@ -56,7 +56,20 @@ const SectionContainer = ({ id, title, children }) => {
}
const CompanyHub = () => {
-
+
+ const [visible, setVisible] = useState(false)
+ const sectionRef = useRef(null)
+ useEffect(() => {
+ const observer = new IntersectionObserver(
+ ([entry]) => {
+ if (entry.isIntersecting) setVisible(true)
+ },
+ { threshold: 0.3 }
+ )
+ if (sectionRef.current) observer.observe(sectionRef.current)
+ return () => observer.disconnect()
+ }, [])
+
return (
{/* Background fixed behind everything */}
@@ -68,6 +81,12 @@ const CompanyHub = () => {
+
}
@@ -153,68 +172,69 @@ const CompanyHub = () => {
- {/* Contact + Join Section */}
-
- {/* Contact */}
-
-
- Kapcsolatfelvétel cégeknek
-
-
-
+ {/* Contact + Join Section */}
+
+ {/* Contact */}
+
+
+ Kapcsolatfelvétel cégeknek
+
+
+
- {/* Join */}
-
-
- Csatlakozz partnerként
-
-
- -
-
- Gamification a vállalati kultúrában
-
- -
-
- Teljesítménymérés játékosan
-
- -
-
- Személyre szabott riportok
-
- -
-
- Dedikált ügyfélszolgálat
-
-
-
+ {/* Join */}
+
+
+ Csatlakozz partnerként
+
+
+ -
+
+ Gamification a vállalati kultúrában
+
+ -
+
+ Teljesítménymérés játékosan
+
+ -
+
+ Személyre szabott riportok
+
+ -
+
+ Dedikált ügyfélszolgálat
+
+
+
+
diff --git a/SerpentRace_Frontend/src/pages/Landing/Landingpage.jsx b/SerpentRace_Frontend/src/pages/Landing/Landingpage.jsx
index 81fda937..3b1f8a8a 100644
--- a/SerpentRace_Frontend/src/pages/Landing/Landingpage.jsx
+++ b/SerpentRace_Frontend/src/pages/Landing/Landingpage.jsx
@@ -2,7 +2,7 @@
// Főoldal - Landing Page
-import { useNavigate } from "react-router-dom"
+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"
@@ -12,15 +12,18 @@ export default function LandingPageMain() {
const navigate = useNavigate();
const handleNavigateToPlay = () => {
- navigate("/login");
+ navigate("/login", { preventScrollReset: false });
+ window.scrollTo(0, 0);
};
const handleNavigateToAuth = () => {
- navigate("/register");
+ navigate("/companies", { preventScrollReset: false });
+ window.scrollTo(0, 0);
};
const handleNavigateToGame = () => {
- navigate("/home");
+ navigate("/home", { preventScrollReset: false });
+ window.scrollTo(0, 0);
};
const handleNavigateToContacts = () => {