diff --git a/src/lib/components/Text.svelte b/src/lib/components/Text.svelte index 63b24d4..92daf9f 100644 --- a/src/lib/components/Text.svelte +++ b/src/lib/components/Text.svelte @@ -13,11 +13,13 @@ import { convertDate } from '$lib/convertDate'; /** @type {string} */ let textDate = ''; - /** @type {boolean} */ let checked = true; + /** @type {boolean} */ let checked = false; $: if ($date !== '') { textDate = convertDate($date); } + + $: city = $address.split('\n')[$address.split('\n').length - 1];
@@ -26,8 +28,10 @@ {#if checked}

Estimada/o amiga/o:

-

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

-

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

+

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

+

Como siempre, la entrada es gratuita hasta completar aforo.

+

El acto comienza a las {$time}.

+

{@html $content}

{/if}
@@ -38,6 +42,9 @@ } .text { margin: 1rem auto; + padding: 1rem; + border: 1px solid lightgrey; + background-color: #fff; } p { margin-bottom: 1rem;