fix: modification visuel du frontend au niveau du formulaire de contact pour qu'il s'armonise avec le css global.
fix : update du backend avec ajout de la suppression d'un projet.
This commit is contained in:
parent
542e00482b
commit
fec74d9f83
1 changed files with 20 additions and 0 deletions
20
frontend/app/components/Footer.tsx
Normal file
20
frontend/app/components/Footer.tsx
Normal file
|
|
@ -0,0 +1,20 @@
|
||||||
|
"use client";
|
||||||
|
|
||||||
|
import { useEffect, useState } from "react";
|
||||||
|
|
||||||
|
export default function Footer() {
|
||||||
|
const [isTop, setIsTop] = useState(true);
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
|
const onScroll = () => setIsTop(window.scrollY <= 0);
|
||||||
|
onScroll();
|
||||||
|
window.addEventListener("scroll", onScroll, { passive: true });
|
||||||
|
return () => window.removeEventListener("scroll", onScroll);
|
||||||
|
}, []);
|
||||||
|
|
||||||
|
return (
|
||||||
|
<footer className={isTop ? "sticky-footer" : "sticky-footer is-visible"}>
|
||||||
|
<p>© 2025 - Toine</p>
|
||||||
|
</footer>
|
||||||
|
);
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue