From 1a7ab2ef33010b507ac5ce91bde249adf25b9974 Mon Sep 17 00:00:00 2001 From: Braulio Rivas Abad Date: Sun, 18 Aug 2024 16:08:29 -0500 Subject: [PATCH] chocoevents under /events route using json as data and hardcoded image --- src/lib/assets/rust.webp | Bin 0 -> 5986 bytes src/lib/components/Event.svelte | 41 ++++++++++++++++++++++++++++++++ src/lib/data/events.json | 25 +++++++++++++++++++ src/routes/events/+page.svelte | 17 +++++++++++++ src/routes/events/+page.ts | 10 ++++++++ 5 files changed, 93 insertions(+) create mode 100644 src/lib/assets/rust.webp create mode 100644 src/lib/components/Event.svelte create mode 100644 src/lib/data/events.json create mode 100644 src/routes/events/+page.svelte create mode 100644 src/routes/events/+page.ts diff --git a/src/lib/assets/rust.webp b/src/lib/assets/rust.webp new file mode 100644 index 0000000000000000000000000000000000000000..683e9f9e3141563bbb5bf8ef347d8fa2219f4f9a GIT binary patch literal 5986 zcmV-o7oF%*Nk&Fm7XScPMM6+kP&gn?7XSb-h5(%bDv$w?0X~sNok^vnBOxi533#v) z2~FRGzWm}v{c-Bt2YMvFTt3{JpYA{+{H=!2fNKClS!n~X*8NmCX-2|(rGlBO(v5`q|#|L!CNRN=!~9S zGpVo=1F|+xCmp01NNjVYVudC1Rb>R$jRp+c%-3-Pw>kjW13>M#8=&ZWB?mn)sUXjT z76<>aRq2q%Z%tpK1y}YgC?w5y5Irjr8@mlPCH^^)#zG62&Lm&k?`{CZ5keff-T;2@ zS!VqalgY-3rKDUhTA`0-SaZUb;T=jKv z7x((wd-t=}WHetGP4*Fy&{Q%;3laE)Kn0OO?yEPvC4D7U{zKMpTo5)s!*%#EWYbe` z6cZZrooh$`N+Qy!P%H1{Ffr}_XDt3`C%L4bHs+vK<31pE=q$_LD=nJSb7X>#CE8gn zp{gc=N@*yC7GHKcb2}L4E%<1>&}bXkEN7<{>NQ3sXU8DgLayKp8D4H?J9}qe#J85B z)Sk)yUq8g}D~e*Y%yVDR(Yfn;+HO5Z0381967x0u)@#G#w>_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W2OiYonF;C(Gku<&BftkEKM?#}{-Cg}=+9%I-9h_Wp%Bm_kZHeWZ_g=<)gH z`asch9vlgkkCf!9^l2c-|Iqb{Pyhf1X~v%GvqZ~`3DJzNPqXQXnsAzJUx_5RL%os@ z2O)RFY*^A*$6F7JOV?M7?@v!bhKCy7crsl?i`TqFH^l4!000r-DHwG9@$*fW)25Qt Q7F1~*hk`8-0000007)>6(EtDd literal 0 HcmV?d00001 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;