-
- {#each templates as template}
-
-
-
- {#if template.description} -
{@html template.description}- {:else} -{template.name}- {/if} - -
- {/each}
-
diff --git a/src/lib/form/Form.svelte b/src/lib/form/Form.svelte index 7d3a374..10e422b 100644 --- a/src/lib/form/Form.svelte +++ b/src/lib/form/Form.svelte @@ -1,220 +1,229 @@
diff --git a/src/lib/templates/acuarela.js b/src/lib/templates/acuarela.js new file mode 100644 index 0000000..89fc25d --- /dev/null +++ b/src/lib/templates/acuarela.js @@ -0,0 +1,117 @@ +import '$lib/templates/templates' + +/** @type {import('$lib/templates/templates').Template} */ +export const acuarela = { + name: "acuarela", + description: "Acuarela", + image: "acuarela.png", + heading: { + top: 20, + height: 32, + left: 20, + right: 350, + fontSize: 18, + color: "white", + fontFamily: "'Alegreya Sans SC', sans-serif", + lineHeight: 36, + textAlign: "left", + fontWeight: 400 + }, + title: { + top: 58, + height: 120, + left: 8, + right: 8, + fontSize: 35, + color: "white", + fontFamily: "'Alegreya Sans SC', sans-serif", + lineHeight: 28, + textAlign: "center", + fontWeight: 500 + + }, + subtitle: { + top: 160, + height: 48, + left: 8, + right: 8, + fontSize: 25, + color: "white", + fontFamily: "'Alegreya Sans SC', sans-serif", + lineHeight: 48, + textAlign: "center", + fontWeight: 300 + }, + content: { + top: 480, + height: 8.5, + left: 1.5, + right: 17, + fontSize: 0, + color: "#222", + fontFamily: "sans-serif", + lineHeight: 1.1, + textAlign: "left", + fontWeight: 700 + }, + date: { + top: 540, + height: 32, + left: 128, + right: 8, + fontSize: 32, + color: "#fff", + fontFamily: "'Arial', sans-serif", + lineHeight: 32, + textAlign: "left", + fontWeight: 700 + }, + time: { + top: 600, + height: 32, + left: 128, + right: 8, + fontSize: 32, + color: "#fff", + fontFamily: "'Arial', sans-serif", + lineHeight: 32, + textAlign: "left", + fontWeight: 700 + }, + weekday: { + top: 8, + height: 32, + left: 8, + right: 80, + fontSize: 0, + color: "#fff", + fontFamily: "sans-serif", + lineHeight: 1.8, + textAlign: "left", + fontWeight: 700 + }, + address: { + top: 650, + height: 48, + left: 128, + right: 8, + fontSize: 18, + color: "white", + fontFamily: "'Alegreya Sans SC', sans-serif", + lineHeight: 20, + textAlign: "left", + fontWeight: 400 + }, + city: { + top: 20, + height: 32, + left: 240, + right: 20, + fontSize: 18, + color: "white", + fontFamily: "'Alegreya Sans SC', sans-serif", + lineHeight: 36, + textAlign: "right", + fontWeight: 500 + }, +} diff --git a/src/lib/templates/amarillo.js b/src/lib/templates/amarillo.js new file mode 100644 index 0000000..c841372 --- /dev/null +++ b/src/lib/templates/amarillo.js @@ -0,0 +1,117 @@ +import '$lib/templates/templates' + +/** @type {import('$lib/templates/templates').Template} */ +export const amarillo = { + name: "amarillo", + description: "amarillo", + image: "amarillo.png", + heading: { + top: 20, + height: 32, + left: 20, + right: 350, + fontSize: 18, + color: "white", + fontFamily: "'Alegreya Sans SC', sans-serif", + lineHeight: 36, + textAlign: "left", + fontWeight: 400 + }, + title: { + top: 58, + height: 120, + left: 8, + right: 8, + fontSize: 35, + color: "white", + fontFamily: "'Alegreya Sans SC', sans-serif", + lineHeight: 28, + textAlign: "center", + fontWeight: 500 + + }, + subtitle: { + top: 160, + height: 48, + left: 8, + right: 8, + fontSize: 25, + color: "white", + fontFamily: "'Alegreya Sans SC', sans-serif", + lineHeight: 48, + textAlign: "center", + fontWeight: 300 + }, + content: { + top: 480, + height: 8.5, + left: 1.5, + right: 17, + fontSize: 0, + color: "#222", + fontFamily: "sans-serif", + lineHeight: 1.1, + textAlign: "left", + fontWeight: 700 + }, + date: { + top: 540, + height: 32, + left: 128, + right: 8, + fontSize: 32, + color: "#fff", + fontFamily: "'Arial', sans-serif", + lineHeight: 32, + textAlign: "left", + fontWeight: 700 + }, + time: { + top: 600, + height: 32, + left: 128, + right: 8, + fontSize: 32, + color: "#fff", + fontFamily: "'Arial', sans-serif", + lineHeight: 32, + textAlign: "left", + fontWeight: 700 + }, + weekday: { + top: 8, + height: 32, + left: 8, + right: 80, + fontSize: 0, + color: "#fff", + fontFamily: "sans-serif", + lineHeight: 1.8, + textAlign: "left", + fontWeight: 700 + }, + address: { + top: 650, + height: 48, + left: 128, + right: 8, + fontSize: 18, + color: "white", + fontFamily: "'Alegreya Sans SC', sans-serif", + lineHeight: 20, + textAlign: "left", + fontWeight: 400 + }, + city: { + top: 20, + height: 32, + left: 240, + right: 20, + fontSize: 18, + color: "white", + fontFamily: "'Alegreya Sans SC', sans-serif", + lineHeight: 36, + textAlign: "right", + fontWeight: 500 + }, +} diff --git a/src/lib/templates/corazon.js b/src/lib/templates/corazon.js index 076c9bd..7ff6bfd 100644 --- a/src/lib/templates/corazon.js +++ b/src/lib/templates/corazon.js @@ -9,11 +9,11 @@ export const corazon = { top: 20, height: 32, left: 20, - right: 50, + right: 350, fontSize: 18, color: "white", fontFamily: "'Alegreya Sans SC', sans-serif", - lineHeight: 32, + lineHeight: 36, textAlign: "left", fontWeight: 400 }, @@ -105,7 +105,7 @@ export const corazon = { city: { top: 20, height: 32, - left: 200, + left: 240, right: 20, fontSize: 18, color: "white", diff --git a/src/lib/templates/curvas_azul.js b/src/lib/templates/curvas_azul.js new file mode 100644 index 0000000..174f8c5 --- /dev/null +++ b/src/lib/templates/curvas_azul.js @@ -0,0 +1,117 @@ +import '$lib/templates/templates' + +/** @type {import('$lib/templates/templates').Template} */ +export const curvas_azul = { + name: "Curvas azul", + description: "Curvas azul", + image: "curvas_azul.png", + heading: { + top: 20, + height: 32, + left: 20, + right: 350, + fontSize: 18, + color: "white", + fontFamily: "'Alegreya Sans SC', sans-serif", + lineHeight: 36, + textAlign: "left", + fontWeight: 400 + }, + title: { + top: 58, + height: 120, + left: 8, + right: 8, + fontSize: 35, + color: "white", + fontFamily: "'Alegreya Sans SC', sans-serif", + lineHeight: 28, + textAlign: "center", + fontWeight: 500 + + }, + subtitle: { + top: 160, + height: 48, + left: 8, + right: 8, + fontSize: 25, + color: "white", + fontFamily: "'Alegreya Sans SC', sans-serif", + lineHeight: 48, + textAlign: "center", + fontWeight: 300 + }, + content: { + top: 480, + height: 8.5, + left: 1.5, + right: 17, + fontSize: 0, + color: "#222", + fontFamily: "sans-serif", + lineHeight: 1.1, + textAlign: "left", + fontWeight: 700 + }, + date: { + top: 540, + height: 32, + left: 128, + right: 8, + fontSize: 32, + color: "#fff", + fontFamily: "'Arial', sans-serif", + lineHeight: 32, + textAlign: "left", + fontWeight: 700 + }, + time: { + top: 600, + height: 32, + left: 128, + right: 8, + fontSize: 32, + color: "#fff", + fontFamily: "'Arial', sans-serif", + lineHeight: 32, + textAlign: "left", + fontWeight: 700 + }, + weekday: { + top: 8, + height: 32, + left: 8, + right: 80, + fontSize: 0, + color: "#fff", + fontFamily: "sans-serif", + lineHeight: 1.8, + textAlign: "left", + fontWeight: 700 + }, + address: { + top: 650, + height: 48, + left: 128, + right: 8, + fontSize: 18, + color: "white", + fontFamily: "'Alegreya Sans SC', sans-serif", + lineHeight: 20, + textAlign: "left", + fontWeight: 400 + }, + city: { + top: 20, + height: 32, + left: 240, + right: 20, + fontSize: 18, + color: "white", + fontFamily: "'Alegreya Sans SC', sans-serif", + lineHeight: 36, + textAlign: "right", + fontWeight: 500 + }, +} diff --git a/src/lib/templates/diente_de_leon.js b/src/lib/templates/diente_de_leon.js new file mode 100644 index 0000000..0ccb89b --- /dev/null +++ b/src/lib/templates/diente_de_leon.js @@ -0,0 +1,119 @@ +import '$lib/templates/templates' + +/** @type {import('$lib/templates/templates').Template} */ +export const diente_de_leon = { + name: "diente_de_leon", + description: "diente_de_leon", + image: "diente_de_leon.png", + heading: { + top: 20, + height: 32, + left: 20, + right: 350, + fontSize: 18, + color: "white", + fontFamily: "'Alegreya Sans SC', sans-serif", + lineHeight: 36, + textAlign: "left", + fontWeight: 400 + }, + title: { + top: 58, + height: 120, + left: 8, + right: 8, + fontSize: 35, + color: "white", + fontFamily: "'Alegreya Sans SC', sans-serif", + lineHeight: 28, + textAlign: "center", + fontWeight: 500 + + }, + subtitle: { + top: 160, + height: 48, + left: 8, + right: 8, + fontSize: 25, + color: "white", + fontFamily: "'Alegreya Sans SC', sans-serif", + lineHeight: 48, + textAlign: "center", + fontWeight: 300 + }, + content: { + top: 480, + height: 8.5, + left: 1.5, + right: 17, + fontSize: 0, + color: "#222", + fontFamily: "sans-serif", + lineHeight: 1.1, + textAlign: "left", + fontWeight: 700 + }, + date: { + top: 540, + height: 32, + left: 128, + right: 8, + fontSize: 32, + color: "#fff", + fontFamily: "'Arial', sans-serif", + lineHeight: 32, + textAlign: "left", + fontWeight: 700 + }, + time: { + top: 600, + height: 32, + left: 128, + right: 8, + fontSize: 32, + color: "#fff", + fontFamily: "'Arial', sans-serif", + lineHeight: 32, + textAlign: "left", + fontWeight: 700 + }, + weekday: { + top: 8, + height: 32, + left: 8, + right: 80, + fontSize: 0, + color: "#fff", + fontFamily: "sans-serif", + lineHeight: 1.8, + textAlign: "left", + fontWeight: 700 + }, + address: { + top: 650, + height: 48, + left: 128, + right: 8, + fontSize: 18, + color: "white", + fontFamily: "'Alegreya Sans SC', sans-serif", + lineHeight: 20, + textAlign: "left", + fontWeight: 400 + }, + city: { + top: 20, + height: 32, + left: 240, + right: 20, + fontSize: 18, + color: "white", + fontFamily: "'Alegreya Sans SC', sans-serif", + lineHeight: 36, + textAlign: "right", + fontWeight: 500 + }, +} + + diff --git a/src/lib/templates/marroncito.js b/src/lib/templates/marroncito.js new file mode 100644 index 0000000..6292c03 --- /dev/null +++ b/src/lib/templates/marroncito.js @@ -0,0 +1,118 @@ +import '$lib/templates/templates' + +/** @type {import('$lib/templates/templates').Template} */ +export const marroncito = { + name: "marroncito", + description: "marroncito", + image: "marroncito.png", + heading: { + top: 20, + height: 32, + left: 20, + right: 350, + fontSize: 18, + color: "white", + fontFamily: "'Alegreya Sans SC', sans-serif", + lineHeight: 36, + textAlign: "left", + fontWeight: 400 + }, + title: { + top: 58, + height: 120, + left: 8, + right: 8, + fontSize: 35, + color: "white", + fontFamily: "'Alegreya Sans SC', sans-serif", + lineHeight: 28, + textAlign: "center", + fontWeight: 500 + + }, + subtitle: { + top: 160, + height: 48, + left: 8, + right: 8, + fontSize: 25, + color: "white", + fontFamily: "'Alegreya Sans SC', sans-serif", + lineHeight: 48, + textAlign: "center", + fontWeight: 300 + }, + content: { + top: 480, + height: 8.5, + left: 1.5, + right: 17, + fontSize: 0, + color: "#222", + fontFamily: "sans-serif", + lineHeight: 1.1, + textAlign: "left", + fontWeight: 700 + }, + date: { + top: 540, + height: 32, + left: 128, + right: 8, + fontSize: 32, + color: "#fff", + fontFamily: "'Arial', sans-serif", + lineHeight: 32, + textAlign: "left", + fontWeight: 700 + }, + time: { + top: 600, + height: 32, + left: 128, + right: 8, + fontSize: 32, + color: "#fff", + fontFamily: "'Arial', sans-serif", + lineHeight: 32, + textAlign: "left", + fontWeight: 700 + }, + weekday: { + top: 8, + height: 32, + left: 8, + right: 80, + fontSize: 0, + color: "#fff", + fontFamily: "sans-serif", + lineHeight: 1.8, + textAlign: "left", + fontWeight: 700 + }, + address: { + top: 650, + height: 48, + left: 128, + right: 8, + fontSize: 18, + color: "white", + fontFamily: "'Alegreya Sans SC', sans-serif", + lineHeight: 20, + textAlign: "left", + fontWeight: 400 + }, + city: { + top: 20, + height: 32, + left: 240, + right: 20, + fontSize: 18, + color: "white", + fontFamily: "'Alegreya Sans SC', sans-serif", + lineHeight: 36, + textAlign: "right", + fontWeight: 500 + }, +} + diff --git a/src/lib/templates/pajaros_papel.js b/src/lib/templates/pajaros_papel.js new file mode 100644 index 0000000..d278636 --- /dev/null +++ b/src/lib/templates/pajaros_papel.js @@ -0,0 +1,118 @@ +import '$lib/templates/templates' + +/** @type {import('$lib/templates/templates').Template} */ +export const pajaros_papel = { + name: "pajaros_papel", + description: "pajaros_papel", + image: "pajaros_papel.png", + heading: { + top: 20, + height: 32, + left: 20, + right: 350, + fontSize: 18, + color: "white", + fontFamily: "'Alegreya Sans SC', sans-serif", + lineHeight: 36, + textAlign: "left", + fontWeight: 400 + }, + title: { + top: 58, + height: 120, + left: 8, + right: 8, + fontSize: 35, + color: "white", + fontFamily: "'Alegreya Sans SC', sans-serif", + lineHeight: 28, + textAlign: "center", + fontWeight: 500 + + }, + subtitle: { + top: 160, + height: 48, + left: 8, + right: 8, + fontSize: 25, + color: "white", + fontFamily: "'Alegreya Sans SC', sans-serif", + lineHeight: 48, + textAlign: "center", + fontWeight: 300 + }, + content: { + top: 480, + height: 8.5, + left: 1.5, + right: 17, + fontSize: 0, + color: "#222", + fontFamily: "sans-serif", + lineHeight: 1.1, + textAlign: "left", + fontWeight: 700 + }, + date: { + top: 540, + height: 32, + left: 128, + right: 8, + fontSize: 32, + color: "#fff", + fontFamily: "'Arial', sans-serif", + lineHeight: 32, + textAlign: "left", + fontWeight: 700 + }, + time: { + top: 600, + height: 32, + left: 128, + right: 8, + fontSize: 32, + color: "#fff", + fontFamily: "'Arial', sans-serif", + lineHeight: 32, + textAlign: "left", + fontWeight: 700 + }, + weekday: { + top: 8, + height: 32, + left: 8, + right: 80, + fontSize: 0, + color: "#fff", + fontFamily: "sans-serif", + lineHeight: 1.8, + textAlign: "left", + fontWeight: 700 + }, + address: { + top: 650, + height: 48, + left: 128, + right: 8, + fontSize: 18, + color: "white", + fontFamily: "'Alegreya Sans SC', sans-serif", + lineHeight: 20, + textAlign: "left", + fontWeight: 400 + }, + city: { + top: 20, + height: 32, + left: 240, + right: 20, + fontSize: 18, + color: "white", + fontFamily: "'Alegreya Sans SC', sans-serif", + lineHeight: 36, + textAlign: "right", + fontWeight: 500 + }, +} + diff --git a/src/lib/templates/posits.js b/src/lib/templates/posits.js index b5fdb00..86be85b 100644 --- a/src/lib/templates/posits.js +++ b/src/lib/templates/posits.js @@ -4,7 +4,7 @@ import '$lib/templates/templates' export const posits = { name: "posits", image: "plantilla_posits.jpg", - description: "Corazón", + description: "Postits", heading: { top: 100, height: 1.2, diff --git a/src/lib/templates/sanitarios.js b/src/lib/templates/sanitarios.js new file mode 100644 index 0000000..40d1729 --- /dev/null +++ b/src/lib/templates/sanitarios.js @@ -0,0 +1,118 @@ +import '$lib/templates/templates' + +/** @type {import('$lib/templates/templates').Template} */ +export const sanitarios = { + name: "sanitarios", + description: "sanitarios", + image: "sanitarios.png", + heading: { + top: 20, + height: 32, + left: 20, + right: 350, + fontSize: 18, + color: "white", + fontFamily: "'Alegreya Sans SC', sans-serif", + lineHeight: 36, + textAlign: "left", + fontWeight: 400 + }, + title: { + top: 58, + height: 120, + left: 8, + right: 8, + fontSize: 35, + color: "white", + fontFamily: "'Alegreya Sans SC', sans-serif", + lineHeight: 28, + textAlign: "center", + fontWeight: 500 + + }, + subtitle: { + top: 160, + height: 48, + left: 8, + right: 8, + fontSize: 25, + color: "white", + fontFamily: "'Alegreya Sans SC', sans-serif", + lineHeight: 48, + textAlign: "center", + fontWeight: 300 + }, + content: { + top: 480, + height: 8.5, + left: 1.5, + right: 17, + fontSize: 0, + color: "#222", + fontFamily: "sans-serif", + lineHeight: 1.1, + textAlign: "left", + fontWeight: 700 + }, + date: { + top: 540, + height: 32, + left: 128, + right: 8, + fontSize: 32, + color: "#fff", + fontFamily: "'Arial', sans-serif", + lineHeight: 32, + textAlign: "left", + fontWeight: 700 + }, + time: { + top: 600, + height: 32, + left: 128, + right: 8, + fontSize: 32, + color: "#fff", + fontFamily: "'Arial', sans-serif", + lineHeight: 32, + textAlign: "left", + fontWeight: 700 + }, + weekday: { + top: 8, + height: 32, + left: 8, + right: 80, + fontSize: 0, + color: "#fff", + fontFamily: "sans-serif", + lineHeight: 1.8, + textAlign: "left", + fontWeight: 700 + }, + address: { + top: 650, + height: 48, + left: 128, + right: 8, + fontSize: 18, + color: "white", + fontFamily: "'Alegreya Sans SC', sans-serif", + lineHeight: 20, + textAlign: "left", + fontWeight: 400 + }, + city: { + top: 20, + height: 32, + left: 240, + right: 20, + fontSize: 18, + color: "white", + fontFamily: "'Alegreya Sans SC', sans-serif", + lineHeight: 36, + textAlign: "right", + fontWeight: 500 + }, +} + diff --git a/src/lib/templates/templates.js b/src/lib/templates/templates.js index ed9ab57..f86a476 100644 --- a/src/lib/templates/templates.js +++ b/src/lib/templates/templates.js @@ -2,6 +2,13 @@ import { verde } from '$lib/templates/verde'; import { azul } from '$lib/templates/azul'; import { corazon } from '$lib/templates/corazon'; import { posits } from '$lib/templates/posits'; +import { acuarela } from '$lib/templates/acuarela'; +import { amarillo } from '$lib/templates/amarillo'; +import { curvas_azul } from '$lib/templates/curvas_azul'; +import { diente_de_leon } from '$lib/templates/diente_de_leon'; +import { marroncito } from '$lib/templates/marroncito'; +import { pajaros_papel } from '$lib/templates/pajaros_papel'; +import { sanitarios } from '$lib/templates/sanitarios'; /** * @typedef {{ * top: number; @@ -35,4 +42,4 @@ import { posits } from '$lib/templates/posits'; */ /** @type Array */ -export const templates = [verde, azul, corazon, posits]; +export const templates = [verde, azul, corazon, posits, acuarela, amarillo, curvas_azul, diente_de_leon, marroncito, pajaros_papel, sanitarios]; diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index 3c19828..ae698ba 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -12,23 +12,21 @@Elige plantilla