Skip to content

Commit 0b2b78e

Browse files
authored
feat: Added footer with social media (#3)
* feat: Added footer with social medias * style: Formatted code
1 parent 0cf55ee commit 0b2b78e

File tree

7 files changed

+123
-0
lines changed

7 files changed

+123
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ Página web para el club de desarrollo de software Binary Brains.
1212
## Comandos
1313

1414
**Instlación de dependencias**
15+
1516
```bash
1617
deno install --allow-scripts
1718
```

src/components/Footer.astro

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
---
2+
import IconFacebookBrand from "./icons/IconFacebookBrand.astro";
3+
import IconInstagramBrand from "./icons/IconInstagramBrand.astro";
4+
import IconGithubBrand from "./icons/IconGithubBrand.astro";
5+
import IconXBrand from "./icons/IconXBrand.astro";
6+
---
7+
8+
<footer class="bg-gray-900 text-white py-6">
9+
<div class="container mx-auto flex justify-center">
10+
<a href="https://www.facebook.com/profile.php?id=100091984830340&_rdc=1&_rdr"
11+
class="text-gray-400 hover:text-white mr-4 rounded-full p-2 bg-transparent"
12+
target="_blank"
13+
aria-label="Facebook">
14+
<IconFacebookBrand class="size-6" />
15+
</a>
16+
<a href="https://x.com/DevsUpiics48486"
17+
class="text-gray-400 hover:text-white mr-4 rounded-full p-2 bg-transparent"
18+
target="_blank"
19+
aria-label="X (formerly Twitter)">
20+
<IconXBrand class="size-6" />
21+
</a>
22+
<a href="https://www.instagram.com/bbupiicsa/"
23+
class="text-gray-400 hover:text-white mr-4 rounded-full p-2 bg-transparent"
24+
target="_blank"
25+
aria-label="Instagram">
26+
<IconInstagramBrand class="size-6" />
27+
</a>
28+
<a href="https://github.com/binarybrains-upiicsa"
29+
class="text-gray-400 hover:text-white rounded-full p-2 bg-transparent"
30+
target="_blank"
31+
aria-label="GitHub">
32+
<IconGithubBrand class="size-6" />
33+
</a>
34+
</div>
35+
</footer>
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
interface Props {
3+
class?: string;
4+
}
5+
6+
const { class: className } = Astro.props;
7+
---
8+
<svg
9+
xmlns="http://www.w3.org/2000/svg"
10+
viewBox="0 0 24 24"
11+
fill="none"
12+
stroke="currentColor"
13+
stroke-width="2"
14+
stroke-linecap="round"
15+
stroke-linejoin="round"
16+
class={`icon icon-tabler icons-tabler-outline icon-tabler-brand-facebook ${className ?? "size-6"}`}
17+
><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path
18+
d="M7 10v4h3v7h4v-7h3l1 -4h-4v-2a1 1 0 0 1 1 -1h3v-4h-3a5 5 0 0 0 -5 5v2h-3"
19+
></path></svg
20+
>
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
3+
interface Props {
4+
class?: string;
5+
}
6+
7+
const { class: className } = Astro.props;
8+
---
9+
<svg
10+
xmlns="http://www.w3.org/2000/svg"
11+
viewBox="0 0 24 24"
12+
fill="none"
13+
stroke="currentColor"
14+
stroke-width="2"
15+
stroke-linecap="round"
16+
stroke-linejoin="round"
17+
class={`icon icon-tabler icons-tabler-outline icon-tabler-brand-github ${className ?? "size-6"}`}
18+
><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path
19+
d="M9 19c-4.3 1.4 -4.3 -2.5 -6 -3m12 5v-3.5c0 -1 .1 -1.4 -.5 -2c2.8 -.3 5.5 -1.4 5.5 -6a4.6 4.6 0 0 0 -1.3 -3.2a4.2 4.2 0 0 0 -.1 -3.2s-1.1 -.3 -3.5 1.3a12.3 12.3 0 0 0 -6.2 0c-2.4 -1.6 -3.5 -1.3 -3.5 -1.3a4.2 4.2 0 0 0 -.1 3.2a4.6 4.6 0 0 0 -1.3 3.2c0 4.6 2.7 5.7 5.5 6c-.6 .6 -.6 1.2 -.5 2v3.5"
20+
></path></svg
21+
>
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
---
2+
3+
interface Props {
4+
class?: string;
5+
}
6+
7+
const { class: className } = Astro.props;
8+
---
9+
10+
<svg
11+
xmlns="http://www.w3.org/2000/svg"
12+
viewBox="0 0 24 24"
13+
fill="none"
14+
stroke="currentColor"
15+
stroke-width="2"
16+
stroke-linecap="round"
17+
stroke-linejoin="round"
18+
class={`icon icon-tabler icons-tabler-outline icon-tabler-brand-instagram ${className ?? "size-6"}`}
19+
><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path
20+
d="M4 8a4 4 0 0 1 4 -4h8a4 4 0 0 1 4 4v8a4 4 0 0 1 -4 4h-8a4 4 0 0 1 -4 -4z"
21+
></path><path d="M9 12a3 3 0 1 0 6 0a3 3 0 0 0 -6 0"></path><path
22+
d="M16.5 7.5v.01"></path></svg
23+
>
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
3+
interface Props {
4+
class?: string;
5+
}
6+
7+
const { class: className } = Astro.props;
8+
---
9+
<svg
10+
xmlns="http://www.w3.org/2000/svg"
11+
viewBox="0 0 24 24"
12+
fill="none"
13+
stroke="currentColor"
14+
stroke-width="2"
15+
stroke-linecap="round"
16+
stroke-linejoin="round"
17+
class={`icon icon-tabler icons-tabler-outline icon-tabler-brand-x ${className ?? "size-6"}`}
18+
><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path
19+
d="M4 4l11.733 16h4.267l-11.733 -16z"></path><path
20+
d="M4 20l6.768 -6.768m2.46 -2.46l6.772 -6.772"></path></svg
21+
>

src/layouts/Layout.astro

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
---
2+
import Footer from "../components/Footer.astro";
23
import "../styles/global.css";
34
45
interface Props {
@@ -19,6 +20,7 @@ const { title } = Astro.props;
1920
<body>
2021
<div id="cursor" class="custom-cursor" />
2122
<slot />
23+
<Footer />
2224
</body>
2325
</html>
2426

0 commit comments

Comments
 (0)