From 8325c2b1cd0f5e51e0645d15924487b04b7f01d5 Mon Sep 17 00:00:00 2001 From: quentin Date: Mon, 3 Mar 2025 18:07:27 +0100 Subject: [PATCH] finished footer --- index.html | 44 ++++++++++---------- src/index.css | 112 +++++++++++++++++++++++++++++++++++--------------- 2 files changed, 99 insertions(+), 57 deletions(-) diff --git a/index.html b/index.html index d4d9331..9dd88bc 100644 --- a/index.html +++ b/index.html @@ -10,30 +10,28 @@
diff --git a/src/index.css b/src/index.css index b6876ef..9852f03 100644 --- a/src/index.css +++ b/src/index.css @@ -2,6 +2,7 @@ font-family: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif; line-height: 1.5; font-weight: 400; + font-size: 1rem; color-scheme: light dark; color: rgba(255, 255, 255, 0.87); @@ -12,15 +13,23 @@ -moz-osx-font-smoothing: grayscale; --color-lightgreen: lightgreen; --color-lightred: #FF7F7F; + padding: 0; + margin: 0; +} + +:before, :after { + padding: 0; + margin: 0; } body { + width: 100vw; + height: 100vh; margin: 0; padding: 0; display: flex; + flex-direction: column; place-items: center; - min-width: 320px; - min-height: 100vh; } h1 { @@ -45,45 +54,20 @@ button:focus-visible { } footer { - position: absolute; + flex-grow: 0; + flex-shrink: 0; bottom: 0; - display: flex; - flex-direction: row; width: 100%; -} - -.footer-grid { - display: grid; + display: flex; grid-template-columns: 1fr 2fr 1fr; } -.footer-grid .middle h2,p { - text-align: center; +footer .middle { + margin-left: 50px; } -.footer-grid .right { - display: grid; - grid-template-columns: repeat(7, 1fr); - grid-template-rows: 1fr 1fr; - justify-items: center; - justify-content: center; - align-items: center; -} - -.footer-grid .right .mail-to { - grid-column-end: span 7; - display: flex; - flex-direction: row; -} - -.mail-to p { - margin: 0; -} -.footer-grid .right .socials { - - width: 32px; - height: 32px; - align-self: start; +footer .middle h2,p { + text-align: left; } a { @@ -94,6 +78,35 @@ a:hover { text-decoration: underline; } +.mail-to p { + margin: 0; +} + +footer .right { + width: 100%; + display: grid; + margin-right: 50px; + grid-column-gap: 0; + grid-template-columns: repeat(7, 1fr); + grid-template-rows: 1fr 1fr; + justify-items: center; + justify-content: center; + align-items: center; +} + +footer .right .mail-to { + grid-column-end: span 7; + display: flex; + flex-direction: row; +} + +footer .right .socials { + width: 32px; + height: 32px; + align-self: start; +} + + @media (prefers-color-scheme: light) { :root { color: #213547; @@ -133,4 +146,35 @@ a:hover { } } +@media (max-width: 720px) { + :root { + font-size: clamp(0.75rem, -0.61rem + 0.86vw , 1rem); + } + + footer .right { + margin-left: 2%; + display: grid; + padding: 0; + overflow: scroll; + grid-column-gap: 0; + grid-template-columns: repeat(7, 1fr); + grid-template-rows: 1fr 1fr; + justify-items: center; + justify-content: center; + align-items: center; + } + + footer .right .socials { + width: clamp(16px, 0.6rem + 0.86vw, 32px); + height: clamp(16px, 0.6rem + 0.86vw, 32px); + align-self: start; + } +} + +@media (max-width: 256px) { + :root { + font-size: 0.75rem; + } +} +