|
|
@ -13,11 +13,13 @@
|
|
|
|
import { convertDate } from '$lib/convertDate';
|
|
|
|
import { convertDate } from '$lib/convertDate';
|
|
|
|
|
|
|
|
|
|
|
|
/** @type {string} */ let textDate = '';
|
|
|
|
/** @type {string} */ let textDate = '';
|
|
|
|
/** @type {boolean} */ let checked = true;
|
|
|
|
/** @type {boolean} */ let checked = false;
|
|
|
|
|
|
|
|
|
|
|
|
$: if ($date !== '') {
|
|
|
|
$: if ($date !== '') {
|
|
|
|
textDate = convertDate($date);
|
|
|
|
textDate = convertDate($date);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$: city = $address.split('\n')[$address.split('\n').length - 1];
|
|
|
|
</script>
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|
|
<div class="text-container">
|
|
|
|
<div class="text-container">
|
|
|
@ -26,8 +28,10 @@
|
|
|
|
{#if checked}
|
|
|
|
{#if checked}
|
|
|
|
<div class="text" contenteditable="true">
|
|
|
|
<div class="text" contenteditable="true">
|
|
|
|
<p>Estimada/o amiga/o:</p>
|
|
|
|
<p>Estimada/o amiga/o:</p>
|
|
|
|
<p>El {$weekday.toLowerCase()}, {textDate}, celebramos el acto '{$title}'.</p>
|
|
|
|
<p>El {$weekday.toLowerCase()}, {textDate}, celebramos el acto '{$title}' en {city}.</p>
|
|
|
|
<p>Lo haremos en {$address.split('\n')[-1]}</p>
|
|
|
|
<p>Como siempre, la entrada es gratuita hasta completar aforo.</p>
|
|
|
|
|
|
|
|
<p>El acto comienza a las {$time}.</p>
|
|
|
|
|
|
|
|
<p>{@html $content}</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{/if}
|
|
|
|
{/if}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
@ -38,6 +42,9 @@
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.text {
|
|
|
|
.text {
|
|
|
|
margin: 1rem auto;
|
|
|
|
margin: 1rem auto;
|
|
|
|
|
|
|
|
padding: 1rem;
|
|
|
|
|
|
|
|
border: 1px solid lightgrey;
|
|
|
|
|
|
|
|
background-color: #fff;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
p {
|
|
|
|
p {
|
|
|
|
margin-bottom: 1rem;
|
|
|
|
margin-bottom: 1rem;
|
|
|
|