diff --git a/src/lib/assets/rust.webp b/src/lib/assets/rust.webp new file mode 100644 index 0000000..683e9f9 Binary files /dev/null and b/src/lib/assets/rust.webp differ diff --git a/src/lib/components/Event.svelte b/src/lib/components/Event.svelte new file mode 100644 index 0000000..da418d6 --- /dev/null +++ b/src/lib/components/Event.svelte @@ -0,0 +1,41 @@ + + +
+
+
+ rust +
+
+

+ {name} +

+

+ {description} +

+
+
+

{date}

+

{time}

+

{place}

+
+
+
+ +
+
\ No newline at end of file diff --git a/src/lib/data/events.json b/src/lib/data/events.json new file mode 100644 index 0000000..fdf921d --- /dev/null +++ b/src/lib/data/events.json @@ -0,0 +1,25 @@ +{ + "events": [ + { + "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" + }, + { + "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" + }, + { + "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" + } + ] +} \ No newline at end of file diff --git a/src/routes/events/+page.svelte b/src/routes/events/+page.svelte new file mode 100644 index 0000000..3ed6d80 --- /dev/null +++ b/src/routes/events/+page.svelte @@ -0,0 +1,17 @@ + + +
+ {#each data.events as event} + + {/each} +
\ No newline at end of file diff --git a/src/routes/events/+page.ts b/src/routes/events/+page.ts new file mode 100644 index 0000000..4453a46 --- /dev/null +++ b/src/routes/events/+page.ts @@ -0,0 +1,10 @@ +import type { PageLoad } from "./$types"; +import { events } from "$lib/data/events.json"; + +export const load = (async () => { + return { + title: "Chocoeventos", + // TODO: fetch from API + events, + }; +}) satisfies PageLoad;