From 19c5daa5c631d242807428883a4c18d1740bde4a Mon Sep 17 00:00:00 2001 From: Nikolaos Karaolidis Date: Wed, 6 Aug 2025 15:52:11 +0200 Subject: [PATCH] Add footer Signed-off-by: Nikolaos Karaolidis --- assets/sass/footer.scss | 68 ++++++++++++++++++++++++++++++++++++ assets/sass/header.scss | 30 ++++++---------- assets/sass/main.scss | 1 + layouts/partials/footer.html | 22 ++++++++++++ 4 files changed, 102 insertions(+), 19 deletions(-) create mode 100644 assets/sass/footer.scss diff --git a/assets/sass/footer.scss b/assets/sass/footer.scss new file mode 100644 index 0000000..cbca1fd --- /dev/null +++ b/assets/sass/footer.scss @@ -0,0 +1,68 @@ +.footer { + padding: 4rem 2rem; + + .footer-container { + max-width: $width-content; + + width: 100%; + margin: 0 auto; + + display: flex; + justify-content: space-between; + align-items: center; + + font-size: 0.85rem; + + color: color-mix(in srgb, var(--text) 30%, var(--background)); + + a { + text-decoration: none; + color: inherit; + } + + a:hover { + color: var(--text-900); + } + + .footer-nav { + .middot { + font-weight: 900; + } + + ul { + display: flex; + gap: 1rem; + margin: 0; + padding: 0; + list-style: none; + + li { + font-size: 0.85rem; + } + } + } + } +} + +@media (max-width: $width-mobile) { + .footer { + padding: 2rem 1rem; + + .footer-container { + flex-direction: column; + justify-content: center; + gap: 1rem; + + .footer-nav { + .middot { + display: none; + } + + ul { + flex-direction: column; + align-items: center; + } + } + } + } +} diff --git a/assets/sass/header.scss b/assets/sass/header.scss index 5f4648c..85efd3b 100644 --- a/assets/sass/header.scss +++ b/assets/sass/header.scss @@ -8,21 +8,20 @@ margin: 0 auto; display: flex; - flex-wrap: wrap; justify-content: space-between; align-items: center; + a { + text-decoration: none; + color: inherit; + } + + a:hover { + color: var(--text-900); + } + .site-title { font-size: 1.5rem; - - a { - text-decoration: none; - color: inherit; - } - - a:hover { - color: var(--text-900); - } } .nav { @@ -33,15 +32,8 @@ padding: 0; list-style: none; - li a { + li { font-size: 0.85rem; - text-decoration: none; - color: inherit; - display: block; - } - - li a:hover { - color: var(--text-900); } } } @@ -78,7 +70,7 @@ justify-content: center; opacity: 0; - background: var(--color-bg); + background: var(--background); transition: opacity 0.3s ease; pointer-events: none; diff --git a/assets/sass/main.scss b/assets/sass/main.scss index e456ce6..a1402bd 100644 --- a/assets/sass/main.scss +++ b/assets/sass/main.scss @@ -6,3 +6,4 @@ $width-max: 60rem; @import "fonts"; @import "header"; +@import "footer"; diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index e69de29..e01fae3 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -0,0 +1,22 @@ +