From 18c0d9c941109ce735bd71c1b5b44f879763366a Mon Sep 17 00:00:00 2001 From: tree Date: Wed, 6 Mar 2024 18:13:37 +0100 Subject: [PATCH] update gen --- src/components/ImageGenerator.svelte | 130 ++++++++++++++++++++------- 1 file changed, 98 insertions(+), 32 deletions(-) diff --git a/src/components/ImageGenerator.svelte b/src/components/ImageGenerator.svelte index 7f1a1e5..119d46b 100644 --- a/src/components/ImageGenerator.svelte +++ b/src/components/ImageGenerator.svelte @@ -16,15 +16,15 @@ const topics = [ 'privacy activism', ] -const img = 'meetup02'; + const images = { meetup01: {}, meetup02: {}, summit01: {} } -let imageSelected = Object.keys(images)[0] -let eventSelected = core.events[0].id +let imageSelected = Object.keys(images)[0]; +let eventSelected = core.events[0].id; $: image = `/gen-img/events/${imageSelected}.png`; $: event = core.events.find(e => e.id === eventSelected); @@ -53,6 +53,101 @@ $: event = core.events.find(e => e.id === eventSelected);
+ +
+
Square (1:1)
+ +
+
+ + +
+
+ + +
+
+
+ {dateFormat(event.date)} +
+
+ {event.city}, {event.country} +
+
+
+
+ Meetup +
+
+
+
+
+
+ +
+
Wide-square (4:3)
+ +
+
+ + + +
+ + +
+
+
+ {dateFormat(event.date)} +
+
+
+
+ {event.city}, {event.country} +
+
+
+
+ Meetup +
+
+
+
+
+
+ +
+
Wide (16:9)
+ +
+
+ + + +
+ + +
+
+
+ {dateFormat(event.date)} +
+
+
+
+ {event.city}, {event.country} +
+
+
+
+ Meetup +
+
+
+
+
+
+
Poster (3:2)
@@ -90,33 +185,4 @@ $: event = core.events.find(e => e.id === eventSelected);
-
-
Square (1:1)
- -
-
- - -
-
- - -
-
-
- {dateFormat(event.date)} -
-
- {event.city}, {event.country} -
-
-
-
- Meetup -
-
-
-
-
-
\ No newline at end of file