From 0981f7f093df0419755cf81f820829a27b351a12 Mon Sep 17 00:00:00 2001 From: Borja Robert Date: Tue, 4 Oct 2022 00:57:39 +0200 Subject: [PATCH] configuro los archivos para que funcionen --- src/lib/templates/corazon.js | 6 +- src/lib/templates/corazon.png | 104 --------------------------------- src/lib/templates/templates.js | 2 + 3 files changed, 5 insertions(+), 107 deletions(-) delete mode 100644 src/lib/templates/corazon.png diff --git a/src/lib/templates/corazon.js b/src/lib/templates/corazon.js index 13539e9..91dc7ef 100644 --- a/src/lib/templates/corazon.js +++ b/src/lib/templates/corazon.js @@ -1,9 +1,9 @@ import '$lib/templates/templates' /** @type {import('$lib/templates/templates').Template} */ -export const azul = { - name: "azul", - image: "plantilla_azul.png", +export const corazon = { + name: "corazon", + image: "corazon.png", heading: { top: 400, height: 2, diff --git a/src/lib/templates/corazon.png b/src/lib/templates/corazon.png deleted file mode 100644 index 13539e9..0000000 --- a/src/lib/templates/corazon.png +++ /dev/null @@ -1,104 +0,0 @@ -import '$lib/templates/templates' - -/** @type {import('$lib/templates/templates').Template} */ -export const azul = { - name: "azul", - image: "plantilla_azul.png", - heading: { - top: 400, - height: 2, - left: 10, - right: 1, - fontSize: 2, - color: "white", - fontFamily: "sans-serif", - lineHeight: 2, - textAlign: "right", - fontWeight: 700 - }, - title: { - top: 445, - height: 7.5, - left: 1, - right: 1, - fontSize: 3, - color: "firebrick", - fontFamily: "sans-serif", - lineHeight: 2.4, - textAlign: "right", - fontWeight: 700 - - }, - subtitle: { - top: 575, - height: 1.4, - left: 1, - right: 2, - fontSize: 1.6, - color: "white", - fontFamily: "Gill Sans, 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: 700 - }, - date: { - top: 25, - height: 4, - left: 5, - right: 1, - fontSize: 1.1, - color: "#fff", - fontFamily: "sans-serif", - lineHeight: 1, - textAlign: "right", - fontWeight: 700 - }, - time: { - top: 55, - height: 2, - left: 18.5, - right: 1, - fontSize: 1.8, - color: "#fff", - fontFamily: "sans-serif", - lineHeight: 2, - textAlign: "right", - fontWeight: 700 - }, - weekday: { - top: 25, - height: 1.5, - left: 1, - right: 10, - fontSize: 1.3, - color: "#fff", - fontFamily: "sans-serif", - lineHeight: 1.8, - textAlign: "left", - fontWeight: 700 - }, - address: { - top: 620, - height: 5.5, - left: 2, - right: 2, - fontSize: 1.2, - color: "white", - fontFamily: "sans-serif", - lineHeight: 1.8, - textAlign: "center", - fontWeight: 400 - }, -} diff --git a/src/lib/templates/templates.js b/src/lib/templates/templates.js index 52d4954..886cb5e 100644 --- a/src/lib/templates/templates.js +++ b/src/lib/templates/templates.js @@ -1,5 +1,6 @@ import { verde } from '$lib/templates/verde'; import { azul } from '$lib/templates/azul'; +import { corazon } from '$lib/templates/corazon'; /** * @typedef {{ * top: number; @@ -34,3 +35,4 @@ import { azul } from '$lib/templates/azul'; export const templates = []; templates.push(verde); templates.push(azul); +templates.push(corazon);