aboutsummaryrefslogtreecommitdiff
path: root/src/partials/Footer.astro
blob: 4a5cb9992ef62c0b25efa33b9c72363410fc80b5 (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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
---
import { Icon } from "astro-icon/components";
import t from "../i18n/es.json";
---

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

  <section class="footer-badges">
    <article id="footer-badge-rss">
      <Icon name="tabler:rss" />
      <a href="/blog.xml" title="RSS Feed">RSS</a>
    </article>

    <article id="footer-badge-eupl">
      <Icon name="tabler:brand-open-source" />
      <a
        href="https://github.com/arielcostas/costasdev"
        >EUPL 1.2</a
      >
    </article>

    <article id="footer-badge-cc">
      <Icon name="tabler:creative-commons" />
      <a
        href="https://github.com/arielcostas/costasdev"
        >BY-SA 4.0</a
      >
    </article>

    <article id="footer-badge-mastodon">
      <Icon name="tabler:brand-mastodon" />
      <a href="https://mastodon.social/@arielcg" rel="me noopener noreferrer">@arielcg</a>
    </article>
  </section>
</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: 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;
      }
    }

    #footer-badge-rss {
      background: linear-gradient(to bottom, orangered, red);
      color: white;
    }

    #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;
    }

    #footer-badge-mastodon {
      background: linear-gradient(to bottom, #6364ff, #563acc);
      color: white;
    }
  }
</style>