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 -

-
- - -