|
|
|
@ -1,9 +1,9 @@
|
|
|
|
|
<script>
|
|
|
|
|
import html2canvas from 'html2canvas';
|
|
|
|
|
import {
|
|
|
|
|
title,
|
|
|
|
|
subtitle,
|
|
|
|
|
date,
|
|
|
|
|
weekday,
|
|
|
|
|
address,
|
|
|
|
|
content,
|
|
|
|
|
heading,
|
|
|
|
@ -11,6 +11,7 @@
|
|
|
|
|
colabs,
|
|
|
|
|
canvas
|
|
|
|
|
} from '$lib/stores/store';
|
|
|
|
|
import { getMonthName } from '$lib/monthName';
|
|
|
|
|
|
|
|
|
|
/** @type {Object<string,string>} */ let newdate = {};
|
|
|
|
|
|
|
|
|
@ -22,11 +23,12 @@
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
const year = datetime.split('-')[0];
|
|
|
|
|
const month = datetime.split('-')[1];
|
|
|
|
|
const monthNumber = datetime.split('-')[1];
|
|
|
|
|
const day = datetime.split('-')[2].split('T')[0];
|
|
|
|
|
const time = datetime.split('T')[1];
|
|
|
|
|
const month = getMonthName(monthNumber);
|
|
|
|
|
return {
|
|
|
|
|
date: `${day}/${month}`,
|
|
|
|
|
date: `${day} de ${month}`,
|
|
|
|
|
time: time
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
@ -42,6 +44,7 @@
|
|
|
|
|
<div class="title">{$title}</div>
|
|
|
|
|
<div class="subtitle">{$subtitle}</div>
|
|
|
|
|
<div class="content">{@html $content}</div>
|
|
|
|
|
<div class="weekday">{$weekday}</div>
|
|
|
|
|
{#if newdate.date}<div class="date">{newdate.date}</div>{/if}
|
|
|
|
|
{#if newdate.time}<div class="time">{newdate.time}</div>{/if}
|
|
|
|
|
<div class="address">{$address}</div>
|
|
|
|
@ -141,7 +144,7 @@
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
align-items: center;
|
|
|
|
|
align-items: end;
|
|
|
|
|
text-align: center;
|
|
|
|
|
}
|
|
|
|
|
.subtitle {
|
|
|
|
@ -155,7 +158,7 @@
|
|
|
|
|
height: 2.6rem;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
text-align: center;
|
|
|
|
|
align-items: center;
|
|
|
|
|
align-items: start;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -169,29 +172,48 @@
|
|
|
|
|
line-height: 1.5rem;
|
|
|
|
|
height: 9rem;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
align-self: center;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.weekday {
|
|
|
|
|
position: absolute;
|
|
|
|
|
text-transform: uppercase;
|
|
|
|
|
top: 605px;
|
|
|
|
|
left: 22rem;
|
|
|
|
|
right: 5rem;
|
|
|
|
|
color: white;
|
|
|
|
|
max-height: 2rem;
|
|
|
|
|
font-size: 1.3rem;
|
|
|
|
|
font-weight: 700;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
text-align: center;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.date {
|
|
|
|
|
position: absolute;
|
|
|
|
|
top: 600px;
|
|
|
|
|
left: 23rem;
|
|
|
|
|
right: 6rem;
|
|
|
|
|
font-size: 2rem;
|
|
|
|
|
text-transform: uppercase;
|
|
|
|
|
top: 630px;
|
|
|
|
|
left: 22rem;
|
|
|
|
|
right: 4rem;
|
|
|
|
|
font-size: 1.1rem;
|
|
|
|
|
/* font-weight: 700; */
|
|
|
|
|
color: white;
|
|
|
|
|
max-height: 2rem;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
text-align: center;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.time {
|
|
|
|
|
position: absolute;
|
|
|
|
|
top: 640px;
|
|
|
|
|
left: 23rem;
|
|
|
|
|
right: 6rem;
|
|
|
|
|
top: 650px;
|
|
|
|
|
left: 22rem;
|
|
|
|
|
right: 5rem;
|
|
|
|
|
font-size: 1.8rem;
|
|
|
|
|
color: white;
|
|
|
|
|
text-shadow: 0 0 16px rgba(0, 0, 0, 0.4);
|
|
|
|
|
max-height: 2rem;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
text-align: center;
|
|
|
|
|
font-weight: 700;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.address {
|
|
|
|
|