aboutsummaryrefslogtreecommitdiff
path: root/src/partials/Footer.astro
blob: 96e857ab8382f87572f4776d596ca3d46c06aa0f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
---
import t from "../i18n/es.json";
---

<footer>
  <div class="footer-content">
    <p>
      Copyright &copy; 2023-{new Date().getFullYear()} Ariel Costas Guerrero. {
        t.footer.copyright
      }
    </p>

    <p>
      {t.footer.contentLicencedUnder}
      <a href={`https://creativecommons.org/licenses/by-sa/4.0/deed.es`}
        >CC BY-SA 4.0</a
      >.

      {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
      >
    </p>
  </div>
</footer>

<style lang="scss">
  @use "../../styles/variables" as *;

  footer {
    background: #222;
    color: #ccc;
    font-size: 0.9rem;
    border-top: 1px solid #000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);

    vertical-align: middle;
    text-align: center;

    padding: 2rem 1rem;

    .footer-content {
      max-width: 900px;
      margin: 0 auto;
    }

    a {
      color: white;
      text-shadow: 0 1px 1px rgba(0,0,0,0.5);
    }

    p {
      margin-inline: auto;
      margin-bottom: 0.5rem;
    }
  }
</style>