diff options
| author | Ariel Costas Guerrero <ariel@costas.dev> | 2026-01-22 01:06:18 +0100 |
|---|---|---|
| committer | Ariel Costas Guerrero <ariel@costas.dev> | 2026-01-22 01:06:18 +0100 |
| commit | 3f33d93e853095f36f9e31b21d897f6bae2d20e8 (patch) | |
| tree | 73580b406b06df596d23326e2929e3ef6250958d /src/partials | |
| parent | e98abc570c82eaba1719a8fe231d012289c5e462 (diff) | |
Estilo más retro
Diffstat (limited to 'src/partials')
| -rw-r--r-- | src/partials/Footer.astro | 92 |
1 files changed, 73 insertions, 19 deletions
diff --git a/src/partials/Footer.astro b/src/partials/Footer.astro index 96e857a..710006a 100644 --- a/src/partials/Footer.astro +++ b/src/partials/Footer.astro @@ -1,29 +1,38 @@ --- +import { Icon } from "astro-icon/components"; import t from "../i18n/es.json"; --- <footer> - <div class="footer-content"> + <section class="footer-content"> <p> Copyright © 2023-{new Date().getFullYear()} Ariel Costas Guerrero. { t.footer.copyright } </p> + </section> - <p> - {t.footer.contentLicencedUnder} - <a href={`https://creativecommons.org/licenses/by-sa/4.0/deed.es`} - >CC BY-SA 4.0</a - >. + <section class="footer-badges"> + <article id="footer-badge-rss"> + <Icon name="tabler:rss" /> + <a href="/blog.xml" title="RSS Feed">RSS</a> + </article> - {t.footer.sourceCodeAvailableOn} - <a href="https://github.com/arielcostas/costasdev">GitHub</a> - {t.footer.andIsLicencedUnder} - <a href="https://joinup.ec.europa.eu/collection/eupl/eupl-text-11-12" - >{t.footer.eupl} 1.2</a + <article id="footer-badge-eupl"> + <Icon name="tabler:brand-open-source" /> + <a + href="https://github.com/arielcostas/costasdev" + >EUPL 1.2</a > - </p> - </div> + </article> + + <article id="footer-badge-cc"> + <Icon name="tabler:creative-commons" /> + <a + href="https://github.com/arielcostas/costasdev" + >BY-SA 4.0</a + > + </section> </footer> <style lang="scss"> @@ -39,21 +48,66 @@ import t from "../i18n/es.json"; vertical-align: middle; text-align: center; - padding: 2rem 1rem; + padding: 1.5rem 1rem; .footer-content { max-width: 900px; margin: 0 auto; + + a { + color: $accentLight; + } + p { + margin-inline: auto; + margin-block: 0 0.5rem; + } + } + } + + .footer-badges { + margin-top: 1rem; + display: flex; + justify-content: center; + gap: 1rem; + + article { + display: flex; + justify-content: center; + align-items: center; + gap: 0.25rem; + min-width: 67px; + height: 33px; + border-radius: 3px; + padding: 0 0.5rem; + + a, span { + color: currentColor; + font-weight: 600; + text-decoration: none; + box-shadow: none !important; + } + + svg { + width: 1.2rem; + height: 1.2rem; + color: currentColor; + } } - a { + #footer-badge-rss { + background: linear-gradient(to bottom, orangered, red); color: white; - text-shadow: 0 1px 1px rgba(0,0,0,0.5); } - p { - margin-inline: auto; - margin-bottom: 0.5rem; + #footer-badge-eupl { + background: linear-gradient(to bottom, blue, navy); + color: gold; + } + + #footer-badge-cc { + background-color: black; + background: linear-gradient(to bottom, #333, #000); + color: white; } } </style> |
