From 0669775cefe2a59dafa5ec479312326bb81880c2 Mon Sep 17 00:00:00 2001 From: Borja Robert Date: Wed, 5 Oct 2022 01:05:01 +0200 Subject: [PATCH] cosillas y text ya funciona --- src/lib/convertDate.js | 2 +- src/lib/preview/Preview.svelte | 2 +- src/lib/templates/Text.svelte | 40 ++++++++++++++++++++-------------- 3 files changed, 26 insertions(+), 18 deletions(-) diff --git a/src/lib/convertDate.js b/src/lib/convertDate.js index 88ecb68..8744dc8 100644 --- a/src/lib/convertDate.js +++ b/src/lib/convertDate.js @@ -17,7 +17,7 @@ export const convertDate = (date) => { day = day.charAt(1); } - /** @type {string} */ const res = `${day} ${month}`; + /** @type {string} */ const res = `${day} de ${month}`; return res; }; diff --git a/src/lib/preview/Preview.svelte b/src/lib/preview/Preview.svelte index 5721334..9d938ff 100644 --- a/src/lib/preview/Preview.svelte +++ b/src/lib/preview/Preview.svelte @@ -76,7 +76,7 @@ {/if}
- +
diff --git a/src/lib/templates/Text.svelte b/src/lib/templates/Text.svelte index b63c11d..63b24d4 100644 --- a/src/lib/templates/Text.svelte +++ b/src/lib/templates/Text.svelte @@ -1,5 +1,4 @@ -
-

El {textWeekday}, {textDate}, te invitamos a participar en el {textHeading}

+
+ + + {#if checked} +
+

Estimada/o amiga/o:

+

El {$weekday.toLowerCase()}, {textDate}, celebramos el acto '{$title}'.

+

Lo haremos en {$address.split('\n')[-1]}

+
+ {/if}
+ +