From 41afe44c51fcdaa887940ca400fe4126814c2695 Mon Sep 17 00:00:00 2001 From: brobert Date: Mon, 26 Sep 2022 12:38:04 +0000 Subject: [PATCH] organizadores (#2) Ya permite incluir logos de organizadores e incluso darles un caption por si no tienen nombre y hay que ponerlo. Co-authored-by: Borja Robert Reviewed-on: https://git.server.brobert.net/brobert/carteles/pulls/2 --- src/lib/Counter.svelte | 107 --------------------------------- src/lib/form/Form.svelte | 29 ++++++++- src/lib/form/Organized.svelte | 104 ++++++++++++++++++++++++++++++++ src/lib/preview/Preview.svelte | 66 +++++++++++++++++++- src/lib/stores/store.js | 2 + 5 files changed, 198 insertions(+), 110 deletions(-) delete mode 100644 src/lib/Counter.svelte create mode 100644 src/lib/form/Organized.svelte diff --git a/src/lib/Counter.svelte b/src/lib/Counter.svelte deleted file mode 100644 index dd7aa09..0000000 --- a/src/lib/Counter.svelte +++ /dev/null @@ -1,107 +0,0 @@ - - -
- - -
-
- - {Math.floor($displayed_count)} -
-
- - -
- - diff --git a/src/lib/form/Form.svelte b/src/lib/form/Form.svelte index c87d111..e2d32ee 100644 --- a/src/lib/form/Form.svelte +++ b/src/lib/form/Form.svelte @@ -1,9 +1,21 @@ @@ -80,6 +92,10 @@ +
+ + +
@@ -118,4 +134,13 @@ font-size: 1.1rem; cursor: pointer; } + + .upload { + max-width: 48px; + cursor: pointer; + } + + .chan { + cursor: pointer; + } diff --git a/src/lib/form/Organized.svelte b/src/lib/form/Organized.svelte new file mode 100644 index 0000000..66c2412 --- /dev/null +++ b/src/lib/form/Organized.svelte @@ -0,0 +1,104 @@ + + +
+ {#if $organizedBy[0]} + {#each $organizedBy as organization, i} +
+
{ + removeOrganizer(i); + }} + > + x +
+ + +
+ {/each} + {/if} +
+ + + onFileSelected(e)} + bind:this={fileinput} +/> + + diff --git a/src/lib/preview/Preview.svelte b/src/lib/preview/Preview.svelte index 99072a3..211f654 100644 --- a/src/lib/preview/Preview.svelte +++ b/src/lib/preview/Preview.svelte @@ -1,6 +1,15 @@