Skip to content

Commit 42df556

Browse files
committed
Add Workshops section
1 parent 82e52d6 commit 42df556

File tree

5 files changed

+70
-0
lines changed

5 files changed

+70
-0
lines changed
236 KB
Loading
23 KB
Loading

src/components/Navbar.astro

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@ import header from "../assets/images/header.png"
4141
<ul
4242
class="flex flex-col p-4 md:p-0 mt-4 font-medium border md:flex-row md:space-x-8 md:mt-0 md:border-0 bg-black md:bg-black border-gray text-white"
4343
>
44+
<li class="flex justify-center items-center">
45+
<a href="/#talleres" class="block py-1 px-4">Talleres previos</a>
46+
</li>
47+
4448
<li class="flex justify-center items-center">
4549
<a href="/#organizadores" class="block py-1 px-4">Equipo</a>
4650
</li>

src/components/Workshops.astro

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
---
2+
import angel from "../assets/images/workshops/Angel-Bulnes.jpg"
3+
import julio from "../assets/images/workshops/Julio-Colque.jpg"
4+
5+
const workshops = [
6+
{
7+
date: "Vie. 19 abril 2024",
8+
details: [
9+
{
10+
time: "20:00 (GMT-4)",
11+
title: "Inteligencia Artificial, ética y herramientas de apoyo",
12+
img: julio,
13+
speaker: "Julio Jhonathan Colque Alcón 🇧🇴",
14+
position: "Ingeniero de sistemas",
15+
},
16+
{
17+
time: "20:30 (GMT-4)",
18+
title: "Beyond Code: Qué hacer cuando no estás programando y construyes un producto",
19+
img: angel,
20+
speaker: "Angel Bulnes 🇭🇳",
21+
position: "Senior mobile developer",
22+
},
23+
],
24+
},
25+
]
26+
27+
import { Image } from "astro:assets"
28+
---
29+
30+
<div id="talleres" class="bg-black text-white">
31+
<div class="max-w-screen-xl mx-auto px-4 py-16 space-y-4">
32+
<h2 class="text-2xl sm:text-3xl font-bold mx-auto">Talleres previos</h2>
33+
34+
{
35+
workshops.map(({ date, details }) => (
36+
<div class="space-y-4">
37+
<div class="flex items-center space-x-4">
38+
<span class="w-60 md:w-fit text-nowrap font-bold md:text-xl md:text">{date}</span>
39+
<hr class="w-full border-blue-400" />
40+
</div>
41+
42+
{details?.map(({ time, title, img, speaker, position }) => (
43+
<div class="flex flex-col space-y-1 md:flex-row md:space-x-4">
44+
<div class="w-full md:w-28 bg-blue-500 flex items-center p-1">
45+
<p class="font-medium md:text-xl mx-auto text-center">{time}</p>
46+
</div>
47+
48+
<div class="space-y-2 pb-2">
49+
<h3 class="text-lg md:text-2xl font-bold leading-tight">{title}</h3>
50+
<div class="flex space-x-4 items-start">
51+
<Image src={img} alt={speaker} width="60" height="60" />
52+
<div class="leading-tight">
53+
<p class="font-medium md:text-lg">{speaker}</p>
54+
<p class="md:text-lg">{position}</p>
55+
</div>
56+
</div>
57+
</div>
58+
</div>
59+
))}
60+
</div>
61+
))
62+
}
63+
</div>
64+
</div>

src/pages/index.astro

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import Navbar from "components/Navbar.astro"
33
import Banner from "../components/Banner.astro"
44
import Layout from "../layouts/Layout.astro"
55
import AboutUs from "../components/AboutUs.astro"
6+
import Workshops from "components/Workshops.astro"
67
import Organizers from "../components/organizers/Organizers.astro"
78
---
89

@@ -11,6 +12,7 @@ import Organizers from "../components/organizers/Organizers.astro"
1112
<main>
1213
<Banner />
1314
<AboutUs />
15+
<Workshops />
1416
<Organizers />
1517
</main>
1618
</Layout>

0 commit comments

Comments
 (0)