From bf74361fc3ec5b1a4080111551a39710f56fb8a2 Mon Sep 17 00:00:00 2001 From: brobert Date: Wed, 5 Oct 2022 11:30:43 +0000 Subject: [PATCH] posits (#14) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Añade la cuarta plantilla Co-authored-by: Borja Robert Reviewed-on: https://git.server.brobert.net/brobert/carteles/pulls/14 --- README.md | 2 +- src/lib/templates/posits.js | 115 +++++++++++++++++++++++++++++++++ src/lib/templates/templates.js | 3 +- static/plantilla_posits.jpg | Bin 0 -> 266754 bytes 4 files changed, 118 insertions(+), 2 deletions(-) create mode 100644 src/lib/templates/posits.js create mode 100644 static/plantilla_posits.jpg diff --git a/README.md b/README.md index 0779a3f..5bf45ae 100644 --- a/README.md +++ b/README.md @@ -19,4 +19,4 @@ Aplicación para que los grupos creen sus propios carteles. * [ ] Confirmar con Esther ### Nueva plantilla -* [ ] Incluir +* [x] Incluir diff --git a/src/lib/templates/posits.js b/src/lib/templates/posits.js new file mode 100644 index 0000000..28676b5 --- /dev/null +++ b/src/lib/templates/posits.js @@ -0,0 +1,115 @@ +import '$lib/templates/templates' + +/** @type {import('$lib/templates/templates').Template} */ +export const posits = { + name: "posits", + image: "plantilla_posits.jpg", + heading: { + top: 100, + height: 1.2, + left: 8, + right: 1, + fontSize: 0, + color: "white", + fontFamily: "sans-serif", + lineHeight: 1.1, + textAlign: "left", + fontWeight: 400 + }, + title: { + top: 430, + height: 3, + left: 4, + right: 4, + fontSize: 2, + color: "#000", + fontFamily: "'Arial', sans-serif", + lineHeight: 2.1, + textAlign: "center", + fontWeight: 700 + }, + subtitle: { + top: 300, + height: 3, + left: 8, + right: 2, + fontSize: 0, + color: "firebrick", + fontFamily: "'Arial', sans-serif", + lineHeight: 1.5, + textAlign: "center", + fontWeight: 400 + }, + content: { + top: 480, + height: 8.5, + left: 1.5, + right: 17, + fontSize: 0, + color: "#222", + fontFamily: "sans-serif", + lineHeight: 1.1, + textAlign: "left", + fontWeight: 400 + }, + date: { + top: 600, + height: 4, + left: 26.5, + right: 2, + fontSize: 1.2, + color: "firebrick", + fontFamily: "sans-serif", + lineHeight: 1.5, + textAlign: "center", + fontWeight: 700 + }, + time: { + top: 655, + height: 2, + left: 26.5, + right: 2, + fontSize: 1.8, + color: "firebrick", + fontFamily: "sans-serif", + lineHeight: 2, + textAlign: "center", + fontWeight: 700 + }, + weekday: { + top: 600, + height: 1.5, + left: 18.5, + right: 5, + fontSize: 0, + color: "#fff", + fontFamily: "sans-serif", + lineHeight: 1.8, + textAlign: "center", + fontWeight: 700 + }, + address: { + top: 555, + height: 4.5, + left: 1.5, + right: 23, + fontSize: 1.2, + color: "#000", + fontFamily: "'Arial', sans-serif", + lineHeight: 1.5, + textAlign: "center", + fontWeight: 400 + }, + city: { + top: 655, + height: 1.5, + left: 2, + right: 23, + fontSize: 1.2, + color: "#000", + fontFamily: "'Arial', sans-serif", + lineHeight: 1.5, + textAlign: "center", + fontWeight: 700 + }, +} diff --git a/src/lib/templates/templates.js b/src/lib/templates/templates.js index 83b37d2..d548de4 100644 --- a/src/lib/templates/templates.js +++ b/src/lib/templates/templates.js @@ -1,6 +1,7 @@ import { verde } from '$lib/templates/verde'; import { azul } from '$lib/templates/azul'; import { corazon } from '$lib/templates/corazon'; +import { posits } from '$lib/templates/posits'; /** * @typedef {{ * top: number; @@ -33,4 +34,4 @@ import { corazon } from '$lib/templates/corazon'; */ /** @type Array