camibos pequeños

pull/16/head
Borja Robert 2 years ago
parent e2bc4b4245
commit e386963333

1
.gitignore vendored

@ -10,3 +10,4 @@ node_modules
.output .output
*.swp *.swp
*/*.swp */*.swp
src/lib/db/*.sqlite

@ -1,13 +1,13 @@
<script> <script>
import { templates } from '$lib/templates/templates'; import { templates } from '$lib/templates/templates';
import { date, multiplier } from '$lib/stores/store'; import { date, newdate, multiplier } from '$lib/stores/store';
import { convertDate } from '$lib/convertDate'; import { convertDate } from '$lib/convertDate';
/** @type number */ export let templateIndex; /** @type number */ export let templateIndex;
/** @type {string} */ let newdate; // /** @type {string} */ let newdate;
$: if ($date !== '') { $: if ($date !== '') {
newdate = convertDate($date); $newdate = convertDate($date);
} }
</script> </script>
@ -27,7 +27,7 @@
line-height: {templates[templateIndex].date.lineHeight}px; line-height: {templates[templateIndex].date.lineHeight}px;
" "
> >
{newdate} {$newdate}
</div> </div>
{/if} {/if}

@ -29,5 +29,6 @@
.heading { .heading {
position: absolute; position: absolute;
overflow: hidden; overflow: hidden;
text-transform: uppercase;
} }
</style> </style>

@ -33,5 +33,6 @@
display: flex; display: flex;
justify-content: center; justify-content: center;
align-items: start; align-items: start;
text-transform: uppercase;
} }
</style> </style>

@ -5,6 +5,7 @@
subtitle, subtitle,
content, content,
date, date,
newdate,
time, time,
weekday, weekday,
address, address,
@ -28,9 +29,20 @@
{#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}' en {$city}.</p> <p>
El {$weekday.toLowerCase()}, {textDate}, celebramos el acto <strong>'{$title}'</strong> en {$city}.
</p>
<p>Como siempre, la entrada es gratuita hasta completar aforo.</p> <p>Como siempre, la entrada es gratuita hasta completar aforo.</p>
<p>El acto comienza a las {$time}.</p> <ul>
<li>
<p style="white-space: pre-wrap;">
<strong>Lugar</strong>:<br />{$address}<br /><em>{$city}</em>
</p>
</li>
<li>
<p><strong>Fecha</strong>:<br />{$newdate}<br />{$time}</p>
</li>
</ul>
<p>{@html $content}</p> <p>{@html $content}</p>
</div> </div>
{/if} {/if}
@ -47,9 +59,12 @@
background-color: #fff; background-color: #fff;
} }
p { p {
margin-bottom: 1rem; margin: 1rem 0;
} }
label { label {
color: #333; color: #333;
} }
li {
margin: 1rem 0;
}
</style> </style>

@ -33,5 +33,6 @@
display: flex; display: flex;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
text-transform: uppercase;
} }
</style> </style>

@ -5,6 +5,7 @@ export const heading = writable("");
export const subtitle = writable(""); export const subtitle = writable("");
export const content = writable(""); export const content = writable("");
export const date = writable(""); export const date = writable("");
export const newdate = writable("");
export const time = writable(""); export const time = writable("");
export const weekday = writable(""); export const weekday = writable("");
export const address = writable(""); export const address = writable("");

@ -11,32 +11,32 @@ export const verde = {
right: 20, right: 20,
fontSize: 24, fontSize: 24,
color: "white", color: "white",
fontFamily: "'Alegreya Sans SC', sans-serif", fontFamily: "'Roboto', sans-serif",
lineHeight: 32, lineHeight: 32,
textAlign: "left", textAlign: "left",
fontWeight: 700 fontWeight: 400
}, },
title: { title: {
top: 150, top: 150,
height: 86, height: 86,
left: 132, left: 132,
right: 16, right: 16,
fontSize: 40, fontSize: 32,
color: "white", color: "white",
fontFamily: "'Alegreya Sans SC', sans-serif", fontFamily: "'Roboto', sans-serif",
lineHeight: 40, lineHeight: 40,
textAlign: "center", textAlign: "center",
fontWeight: 700 fontWeight: 700
}, },
subtitle: { subtitle: {
top: 300, top: 300,
height: 72, height: 60,
left: 132, left: 132,
right: 16, right: 16,
fontSize: 24, fontSize: 20,
color: "firebrick", color: "firebrick",
fontFamily: "'Alegreya Sans SC', sans-serif", fontFamily: "'Roboto', sans-serif",
lineHeight: 32, lineHeight: 28,
textAlign: "center", textAlign: "center",
fontWeight: 400 fontWeight: 400
}, },
@ -47,7 +47,7 @@ export const verde = {
right: 320, right: 320,
fontSize: 14, fontSize: 14,
color: "#222", color: "#222",
fontFamily: "'Helvetica', sans-serif", fontFamily: "'Roboto', sans-serif",
lineHeight: 18, lineHeight: 18,
textAlign: "left", textAlign: "left",
fontWeight: 400 fontWeight: 400
@ -59,7 +59,7 @@ export const verde = {
right: 32, right: 32,
fontSize: 18, fontSize: 18,
color: "#fff", color: "#fff",
fontFamily: "sans-serif", fontFamily: "'Roboto', sans-serif",
lineHeight: 32, lineHeight: 32,
textAlign: "center", textAlign: "center",
fontWeight: 700 fontWeight: 700
@ -71,7 +71,7 @@ export const verde = {
right: 32, right: 32,
fontSize: 32, fontSize: 32,
color: "#fff", color: "#fff",
fontFamily: "sans-serif", fontFamily: "'Roboto', sans-serif",
lineHeight: 32, lineHeight: 32,
textAlign: "center", textAlign: "center",
fontWeight: 700 fontWeight: 700
@ -83,7 +83,7 @@ export const verde = {
right: 32, right: 32,
fontSize: 24, fontSize: 24,
color: "#fff", color: "#fff",
fontFamily: "sans-serif", fontFamily: "'Roboto', sans-serif",
lineHeight: 32, lineHeight: 32,
textAlign: "center", textAlign: "center",
fontWeight: 700 fontWeight: 700
@ -95,20 +95,20 @@ export const verde = {
right: 300, right: 300,
fontSize: 18, fontSize: 18,
color: "#91b756", color: "#91b756",
fontFamily: "sans-serif", fontFamily: "'Roboto', sans-serif",
lineHeight: 22, lineHeight: 22,
textAlign: "center", textAlign: "center",
fontWeight: 700 fontWeight: 700
}, },
city: { city: {
top: 690, top: 690,
height: 24, height: 30,
left: 32, left: 32,
right: 300, right: 300,
fontSize: 24, fontSize: 24,
color: "#91b756", color: "#91b756",
fontFamily: "sans-serif", fontFamily: "'Roboto', sans-serif",
lineHeight: 24, lineHeight: 30,
textAlign: "center", textAlign: "center",
fontWeight: 700 fontWeight: 700
}, },

Loading…
Cancel
Save