diff --git a/src/lib/components/Event.svelte b/src/lib/components/Event.svelte index da418d6..4d5e6f8 100644 --- a/src/lib/components/Event.svelte +++ b/src/lib/components/Event.svelte @@ -6,20 +6,22 @@ name: string; description: string; date: string; - time: string; - place: string; + time: string; + place: string; }; let { name, description, date, time, place }: Props = $props(); -
-
-
- rust +
+
+
+ rust
-

+

{name}

@@ -27,15 +29,17 @@

-

{date}

-

{time}

+

+ {date} +

+

{time}

{place}

-
+
-
\ No newline at end of file +
diff --git a/src/lib/data/events.json b/src/lib/data/events.json index fdf921d..2f06dee 100644 --- a/src/lib/data/events.json +++ b/src/lib/data/events.json @@ -1,25 +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 + "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" + } + ] +} diff --git a/src/routes/events/+page.svelte b/src/routes/events/+page.svelte index 3ed6d80..8efd9c5 100644 --- a/src/routes/events/+page.svelte +++ b/src/routes/events/+page.svelte @@ -1,17 +1,17 @@ -
+
{#each data.events as event} {/each} -
\ No newline at end of file +