From df189ada9f347f90209d9bd78d1049137eebb3a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Bertrand?= Date: Sat, 24 Oct 2026 19:41:06 +0200 Subject: [PATCH] feat: add LinkedIn and GitHub icons to footer with updated styles --- src/components/Icons.astro | 3 +++ src/layouts/Base.astro | 11 +++++------ src/styles/global.css | 12 +++++++----- 3 files changed, 15 insertions(+), 11 deletions(-) diff --git a/src/components/Icons.astro b/src/components/Icons.astro index 66387b4..75e0d95 100644 --- a/src/components/Icons.astro +++ b/src/components/Icons.astro @@ -7,6 +7,9 @@ + + + diff --git a/src/layouts/Base.astro b/src/layouts/Base.astro index 6c33b7b..477cc35 100644 --- a/src/layouts/Base.astro +++ b/src/layouts/Base.astro @@ -24,7 +24,6 @@ const chemin = cheminSansLangue(Astro.url); const versions = (Object.keys(LANGUES) as Langue[]).map((code) => ({ code, ...LANGUES[code], href: url(chemin, code) })); // Thèmes d'habillage (src/data/themes.json, voir THEMES.md), choisis dans le navigateur d'après la date. const habillages = { forcer: themes.forcer, themes: themes.themes.map(({ nom, ...t }) => t) }; -const annee = new Date().getFullYear(); const accents = `--accent-light: ${site.couleurs.accentClair}; --accent-dark: ${site.couleurs.accentSombre};`; --- @@ -134,11 +133,11 @@ const accents = `--accent-light: ${site.couleurs.accentClair}; --accent-dark: ${ diff --git a/src/styles/global.css b/src/styles/global.css index 9ef8097..8d9fd8a 100644 --- a/src/styles/global.css +++ b/src/styles/global.css @@ -527,11 +527,13 @@ html:not(.js) .lang:is(:hover, :focus-within) .lang-tip, .notfound h1 { font-size: 1.75rem; letter-spacing: -0.03em; } .notfound p { color: var(--muted); } +/* Pied de page, posé sur le fond et aligné à droite : le logo, puis les liens en pastilles d'icônes. */ .footer { - display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.25rem 1.5rem; - padding-block: 1.5rem 2.5rem; border-top: 1px solid var(--rule); + display: flex; align-items: center; justify-content: flex-end; gap: 1rem; + padding: 0 0.25rem; margin-bottom: max(2rem, env(safe-area-inset-bottom)); font-size: 0.875rem; color: var(--faint); } -.footer nav { display: flex; flex-wrap: wrap; gap: 0 1.25rem; } -.footer a { display: inline-flex; align-items: center; min-height: 2.75rem; text-decoration: none; } -.footer a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 0.2em; } +.footer-links { display: flex; gap: 0.5rem; } +.footer-links .icon-btn { color: var(--muted); transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s var(--ease); } +.footer-links .icon-btn:hover { color: var(--ink); background: var(--glass-strong); transform: translateY(-2px); } +