+
+ {date.replaceAll("/", "-")}
+
{name}
-
-
diff --git a/src/lib/components/HomeEvent.svelte b/src/lib/components/HomeEvent.svelte
new file mode 100644
index 0000000..a2a0494
--- /dev/null
+++ b/src/lib/components/HomeEvent.svelte
@@ -0,0 +1,45 @@
+
+
+
+
+
+
+
+
+
+ {name}
+
+
+ {description}
+
+
+
+
+ {date}
+
+
{time}
+
{place}
+
+
+
+
+ Registrarse
+
+
+
+
diff --git a/src/lib/components/Title.svelte b/src/lib/components/Title.svelte
new file mode 100644
index 0000000..58d4905
--- /dev/null
+++ b/src/lib/components/Title.svelte
@@ -0,0 +1,11 @@
+
+
+
+ >{title}
+
diff --git a/src/lib/data/events.json b/src/lib/data/events.json
index 2f06dee..1e13584 100644
--- a/src/lib/data/events.json
+++ b/src/lib/data/events.json
@@ -5,21 +5,24 @@
"description": "Un taller de introducción al lenguaje de programación que te convertirá en un gei",
"date": "15/08/2024",
"time": "11:00 - 12:00",
- "place": "Lab Fiec 12A, ESPOL"
+ "place": "Lab Fiec 12A, ESPOL",
+ "category": "Taller"
},
{
"name": "Rust 101",
"description": "Un taller de introducción al lenguaje de programación que te convertirá en un gei",
"date": "15/08/2024",
"time": "11:00 - 12:00",
- "place": "Lab Fiec 12A, ESPOL"
+ "place": "Lab Fiec 12A, ESPOL",
+ "category": "Taller"
},
{
"name": "Rust 101",
"description": "Un taller de introducción al lenguaje de programación que te convertirá en un gei",
"date": "15/08/2024",
"time": "11:00 - 12:00",
- "place": "Lab Fiec 12A, ESPOL"
+ "place": "Lab Fiec 12A, ESPOL",
+ "category": "Taller"
}
]
}
diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte
index 6d41b99..8eb8420 100644
--- a/src/routes/+page.svelte
+++ b/src/routes/+page.svelte
@@ -1,5 +1,28 @@
-
+
+
+
+
+
+ {#each data.events as event}
+
+ {/each}
+
+ Ver más
+
+
+
+
diff --git a/src/routes/+page.ts b/src/routes/+page.ts
index 7a5d889..5c1184f 100644
--- a/src/routes/+page.ts
+++ b/src/routes/+page.ts
@@ -1,9 +1,11 @@
import type { PageLoad } from "./$types";
+import { events } from "$lib/data/events.json";
export const load = (async () => {
return {
title: "Inicio",
description:
"Kokoa es un club estudiantil de ESPOL, en el que entusiastas del código libre se reunen a promover ideologías comunistas.",
+ events,
};
}) satisfies PageLoad;
diff --git a/src/routes/events/+page.svelte b/src/routes/events/+page.svelte
index 8efd9c5..e51860d 100644
--- a/src/routes/events/+page.svelte
+++ b/src/routes/events/+page.svelte
@@ -4,14 +4,14 @@
let { data } = $props();
-
+
{#each data.events as event}
{/each}