From ae61bf58b9abea6da3971a704d302d4269101063 Mon Sep 17 00:00:00 2001 From: Antonio De Lucreziis Date: Wed, 2 Oct 2024 01:09:11 +0200 Subject: [PATCH] new: added footer with phc logo --- public/logo-phc.svg | 87 ++++++++++++++++++++++++++++++++++++++++++ src/layouts/Base.astro | 8 ++++ src/style.css | 64 ++++++++++++++++++++++++++----- 3 files changed, 149 insertions(+), 10 deletions(-) create mode 100644 public/logo-phc.svg diff --git a/public/logo-phc.svg b/public/logo-phc.svg new file mode 100644 index 0000000..1e65c1c --- /dev/null +++ b/public/logo-phc.svg @@ -0,0 +1,87 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/layouts/Base.astro b/src/layouts/Base.astro index 72c9fdf..78f13e8 100644 --- a/src/layouts/Base.astro +++ b/src/layouts/Base.astro @@ -51,5 +51,13 @@ const { title, courses, selectedCourseLabel } = Astro.props
+ diff --git a/src/style.css b/src/style.css index a0f1194..28f7103 100644 --- a/src/style.css +++ b/src/style.css @@ -44,6 +44,10 @@ a, background-color: #a00; color: #fff; } + + @media screen and (max-width: 50rem) { + padding: 0.125rem 1px; + } } h1, @@ -76,6 +80,9 @@ table { width: 100%; max-width: auto; + font-size: 15px; + line-height: 1.25; + th, td { min-width: auto; @@ -83,6 +90,12 @@ table { } } +code { + font-family: monospace; + font-size: 0.9em; + border-radius: 4px; +} + /* Components */ /* Layout */ @@ -98,10 +111,10 @@ body { display: grid; grid-template-columns: 1fr; - grid-template-rows: auto 1fr; + grid-template-rows: auto 1fr auto; - gap: 8rem; - padding-bottom: 8rem; + gap: 6rem; + padding-bottom: 6rem; header { user-select: none; @@ -242,23 +255,54 @@ body { } } } + + footer { + place-self: center; + + a:has(img), + .link:has(img) { + display: inline-block; + background: none; + + padding: 0; + + border: 2px solid transparent; + + &:hover { + background: none; + border: 2px solid #a00; + } + } + + img { + display: inline-block; + max-height: 3rem; + vertical-align: middle; + } + + .logo { + transform: translate(0, -0.25rem); + } + } } /* Mobile */ @media screen and (max-width: 50rem) { - table { - font-size: 15px; - line-height: 1.25; - } - body { - gap: 3rem; + gap: 0; padding-bottom: 3rem; > main { - width: calc(100vw - 2rem); + width: 100%; padding: 1rem; + + border: none; + border-bottom: 4px solid #a00; + } + + > footer { + margin-top: 3rem; } } }