From 695a14a2a7edc933172a3734ceccdbe1c6f2c627 Mon Sep 17 00:00:00 2001 From: Borja Robert Date: Wed, 5 Oct 2022 10:33:37 +0200 Subject: [PATCH] =?UTF-8?q?ahora=20s=C3=AD=20que=20s=C3=AD,=20a=20producci?= =?UTF-8?q?=C3=B3n=20con=20lo=20que=20llevo=20aunque=20el=20nombre=20de=20?= =?UTF-8?q?la=20branch=20no=20tenga=20sentido?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/lib/components/Text.svelte | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) 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;