diff --git a/elements/footer.php b/elements/footer.php new file mode 100644 index 0000000..33a2cb3 --- /dev/null +++ b/elements/footer.php @@ -0,0 +1,20 @@ + + + + \ No newline at end of file diff --git a/elements/header.php b/elements/header.php index a20fe50..c7a7f17 100644 --- a/elements/header.php +++ b/elements/header.php @@ -56,4 +56,6 @@ session_start(); - \ No newline at end of file + + +
\ No newline at end of file diff --git a/pages/admin.php b/pages/admin.php index 1e3f9ab..1a05342 100644 --- a/pages/admin.php +++ b/pages/admin.php @@ -113,4 +113,6 @@ if (isset($_GET['edit_xp']) && is_numeric($_GET['edit_xp'])) {

Gérer les projets

Gérer les experiences

- \ No newline at end of file + \ No newline at end of file diff --git a/pages/cgu.php b/pages/cgu.php new file mode 100644 index 0000000..b7a5a39 --- /dev/null +++ b/pages/cgu.php @@ -0,0 +1,9 @@ + \ No newline at end of file diff --git a/pages/contact.php b/pages/contact.php index 2d2656a..75b5c57 100644 --- a/pages/contact.php +++ b/pages/contact.php @@ -5,3 +5,5 @@ // On ajoute ici le header require_once('./../elements/header.php'); +// Ajout du footer +require_once('../elements/footer.php'); ?> \ No newline at end of file diff --git a/pages/home.php b/pages/home.php index d4fe9a7..ca1046d 100644 --- a/pages/home.php +++ b/pages/home.php @@ -4,4 +4,7 @@ // Cette page servira de page d'accueil où nous pourrons y retrouver une redirection vers les différents projets, espace de connexion, form de contact, etc... // Insertion du header -require_once('./../elements/header.php'); \ No newline at end of file +require_once('./../elements/header.php'); + +// Ajout du footer +require_once('../elements/footer.php'); ?> \ No newline at end of file diff --git a/pages/login.php b/pages/login.php index a6aa4a4..6bbe72d 100644 --- a/pages/login.php +++ b/pages/login.php @@ -37,4 +37,9 @@ if (isset($_SESSION['user_id'])){ - \ No newline at end of file + + + \ No newline at end of file diff --git a/pages/projects.php b/pages/projects.php index 7e7314b..6c74ebb 100644 --- a/pages/projects.php +++ b/pages/projects.php @@ -8,7 +8,7 @@ require_once('../elements/header.php'); // Ajout d'un message indiquant si l'utilisateur est admin qu'il peut modifier ces projets if (isset($_SESSION['role']) && $_SESSION['role'] === 'admin') { - echo "

Vous êtes administrateur, vous pouvez modifier les projets ici.

"; + echo "

Vous êtes administrateur, vous pouvez modifier les projets ici.

"; } // Affichages des projets ?> @@ -22,4 +22,6 @@ require_once('../functions/listProject.php'); // Appel de ma fonction dans Functions/listProject.php afficherProjets(); -?> \ No newline at end of file + +// Ajout du footer +require_once('../elements/footer.php'); ?> \ No newline at end of file diff --git a/pages/xp.php b/pages/xp.php index c6f1703..ed3745d 100644 --- a/pages/xp.php +++ b/pages/xp.php @@ -7,19 +7,20 @@ require_once('../elements/header.php'); // Ajout d'un message indiquant si l'utilisateur est admin qu'il peut modifier ces expériences if (isset($_SESSION['role']) && $_SESSION['role'] === 'admin') { - echo "

Vous êtes administrateur, vous pouvez modifier les experiences ici.

"; + echo "

Vous êtes administrateur, vous pouvez modifier les experiences ici.

"; } -// Affichages des projets +// Affichages des xp pro ?>

Liste des expériences professionnelles

\ No newline at end of file + +// Ajout du footer +require_once('../elements/footer.php'); ?> \ No newline at end of file diff --git a/styles/primary_css.css b/styles/primary_css.css index 0853663..8fef10d 100644 --- a/styles/primary_css.css +++ b/styles/primary_css.css @@ -313,4 +313,78 @@ nav a:hover { .btn-delete:hover { background-color: #7e2023; +} + +/* ---- FORCER LE FOOTER EN BAS (STICKY FOOTER) ---- */ +html, body { + height: 100%; + margin: 0; + padding: 0; +} + +body { + display: flex; + flex-direction: column; + min-height: 100vh; +} + +main { + flex: 1; /* Pousse le footer vers le bas si le contenu est court */ +} + +/* ---- STYLES DU FOOTER ---- */ +.site-footer { + background-color: #111116; + border-top: 1px solid #2a2a3e; + margin-top: 0; + padding: 30px 40px 20px; + font-size: 14px; +} + +.footer-content { + display: flex; + justify-content: space-between; + align-items: center; + flex-wrap: wrap; + gap: 20px; + max-width: 1200px; + margin: 0 auto; +} + +.footer-copyright { + color: #aaaaaa; + margin: 0; +} + +.footer-links { + display: flex; + gap: 24px; + align-items: center; + flex-wrap: wrap; +} + +.footer-links a, +.footer-links .discord-handle { + color: #aaaaaa; + text-decoration: none; + transition: color 0.2s ease, background-color 0.2s ease; + padding: 6px 0; + cursor: pointer; +} + +.footer-links a:hover, +.footer-links .discord-handle:hover { + color: #6c63ff; + text-decoration: underline; +} + +/* Responsive : mobile */ +@media (max-width: 700px) { + .footer-content { + flex-direction: column; + text-align: center; + } + .footer-links { + justify-content: center; + } } \ No newline at end of file