From 69b9559dfe66a126273eb6fb6f763125d29e4a6f Mon Sep 17 00:00:00 2001 From: tree Date: Wed, 6 Mar 2024 18:51:29 +0100 Subject: [PATCH] speaker gen image --- src/components/ImageGenerator.svelte | 56 ++++++++++++++++++++++++++-- 1 file changed, 53 insertions(+), 3 deletions(-) diff --git a/src/components/ImageGenerator.svelte b/src/components/ImageGenerator.svelte index 119d46b..8f08942 100644 --- a/src/components/ImageGenerator.svelte +++ b/src/components/ImageGenerator.svelte @@ -2,6 +2,7 @@ import core from '../core.json'; import { dateFormat } from '../lib/events.js'; +import { marked, } from 'marked'; const topics = [ 'identity', @@ -25,9 +26,11 @@ const images = { let imageSelected = Object.keys(images)[0]; let eventSelected = core.events[0].id; +let speakerSelected = 'alona-shevchenko'; $: image = `/gen-img/events/${imageSelected}.png`; $: event = core.events.find(e => e.id === eventSelected); +$: speaker = core.people.find(p => p.id === speakerSelected); @@ -88,9 +91,9 @@ $: event = core.events.find(e => e.id === eventSelected);
Wide-square (4:3)
-
+
- +
@@ -120,7 +123,7 @@ $: event = core.events.find(e => e.id === eventSelected);
Wide (16:9)
-
+
@@ -148,6 +151,53 @@ $: event = core.events.find(e => e.id === eventSelected);
+
+
Square (speaker) (1:1)
+
+ Speaker: + +
+ +
+
+ + + + +
+ {dateFormat(event.date)}
+ {event.type} {event.city} +
+ +
+
+
+ +
+
+ @{speaker.refs?.twitter} +
+
+
+
+
+
+ {speaker.name} +
+
+
+ +
+ {@html marked.parseInline(speaker.caption)} +
+
+
+
+
Poster (3:2)