diff --git a/src/components/EventImageGenerator.svelte b/src/components/EventImageGenerator.svelte new file mode 100644 index 0000000..af5cc2d --- /dev/null +++ b/src/components/EventImageGenerator.svelte @@ -0,0 +1,183 @@ + + + +
+
+
+ Event: + +
+ +
+
+ +{#if !$eventSelected} +
+ Please select event. + +
+ {#each Object.keys(events).map(eId => core.events.find(e => e.id === eId)) as event} +
+
+ +
+
+ {/each} +
+
+{:else} +
+ Back to overview +
+
+ +
+
Square (1:1)
+ +
+ +
+
+ +
+
Wide-square (4:3)
+ +
+ +
+
+ +
+
Wide (16:9)
+ + +
+ +
+
Square (speaker) (1:1)
+
+ Speaker: + +
+ +
+ +
+
+ +
+
Poster (3:2)
+ +
+ +
+
+ +
+
Poster (simple) (3:2)
+ +
+ +
+
+
+{/if} \ No newline at end of file diff --git a/src/components/ImageGenerator.svelte b/src/components/ImageGenerator.svelte deleted file mode 100644 index 5b033ff..0000000 --- a/src/components/ImageGenerator.svelte +++ /dev/null @@ -1,310 +0,0 @@ - - - -
-
-
- Event: - -
- -
-
- -{#if !$eventSelected} -
- Please select event. -
-{:else} -
- -
-
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 -
-
-
-
-
-
- -
-
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)
- -
-
- - -
- -
- -
-
-
- {dateFormat(event.date)} -
-
- {event.city}, {event.country} -
-
-
-
- {event.type} -
-
-
-
- {#each topics as topic} -
{topic}
- {/each} -
-
- summit2024.web3privacy.info -
-
-
-
- -
-
Poster (simple) (3:2)
- -
-
- - -
-
-
- -
-
-
- {dateFormat(event.date)} -
-
- {event.city}, {event.country} -
-
-
-
- {event.type} -
-
-
-
-
-
-
-{/if} \ No newline at end of file diff --git a/src/components/event-formats/poster-simple.svelte b/src/components/event-formats/poster-simple.svelte new file mode 100644 index 0000000..e1bfe71 --- /dev/null +++ b/src/components/event-formats/poster-simple.svelte @@ -0,0 +1,29 @@ + + +
+ + +
+
+
+ +
+
+
+ {tools.dateFormat(event.date)} +
+
+ {event.city}, {event.country} +
+
+
+
+ {event.type} +
+
+
+
\ No newline at end of file diff --git a/src/components/event-formats/poster.svelte b/src/components/event-formats/poster.svelte new file mode 100644 index 0000000..ad2c8c4 --- /dev/null +++ b/src/components/event-formats/poster.svelte @@ -0,0 +1,38 @@ + + +
+ + +
+ +
+ +
+
+
+ {tools.dateFormat(event.date)} +
+
+ {event.city}, {event.country} +
+
+
+
+ {event.type} +
+
+
+
+ {#each topics as topic} +
{topic}
+ {/each} +
+
+ summit2024.web3privacy.info +
+
\ No newline at end of file diff --git a/src/components/event-formats/square-speaker.svelte b/src/components/event-formats/square-speaker.svelte new file mode 100644 index 0000000..42d292d --- /dev/null +++ b/src/components/event-formats/square-speaker.svelte @@ -0,0 +1,42 @@ + + + +
+ + + + +
+ {tools.dateFormat(event.date)}
+ {event.type} {event.city} +
+ +
+
+
+ +
+
+ @{speaker.refs?.twitter} +
+
+
+
+
+
+ {speaker.name} +
+
+
+ +
+ {@html marked.parseInline(speaker.caption)} +
+
\ No newline at end of file diff --git a/src/components/event-formats/square.svelte b/src/components/event-formats/square.svelte new file mode 100644 index 0000000..cda3860 --- /dev/null +++ b/src/components/event-formats/square.svelte @@ -0,0 +1,30 @@ + + + +
+ + +
+
+ + +
+
+
+ {tools.dateFormat(event.date)} +
+
+ {event.city}, {event.country} +
+
+
+
+ {event.type} +
+
+
+
\ No newline at end of file diff --git a/src/components/event-formats/wide-square.svelte b/src/components/event-formats/wide-square.svelte new file mode 100644 index 0000000..d849b27 --- /dev/null +++ b/src/components/event-formats/wide-square.svelte @@ -0,0 +1,32 @@ + + + +
+ + + +
+ + +
+
+
+ {tools.dateFormat(event.date)} +
+
+
+
+ {event.city}, {event.country} +
+
+
+
+ Meetup +
+
+
+
\ No newline at end of file diff --git a/src/components/event-formats/wide.svelte b/src/components/event-formats/wide.svelte new file mode 100644 index 0000000..b46820f --- /dev/null +++ b/src/components/event-formats/wide.svelte @@ -0,0 +1,34 @@ + + + +
+
+ + + +
+ + +
+
+
+ {tools.dateFormat(event.date)} +
+
+
+
+ {event.city}, {event.country} +
+
+
+
+ Meetup +
+
+
+
+
\ No newline at end of file diff --git a/src/pages/gen/event.astro b/src/pages/gen/event.astro index 692f37b..81d28fa 100644 --- a/src/pages/gen/event.astro +++ b/src/pages/gen/event.astro @@ -1,6 +1,6 @@ --- -import ImageGenerator from '../../components/ImageGenerator.svelte'; +import ImageGenerator from '../../components/EventImageGenerator.svelte'; let url = Astro.url;