From 17aa114978b4911d738d7052fb01361c27074163 Mon Sep 17 00:00:00 2001 From: Badri Sunderarajan Date: Fri, 14 May 2021 09:30:32 +0530 Subject: [PATCH] Implement Step One: drafting of email and [TK insert] detection --- package.json | 1 + public/global.css | 13 +++++ src/App.svelte | 135 +++++++++++++++++++++++++++++++++++++++++++--- src/main.js | 3 +- yarn.lock | 5 ++ 5 files changed, 149 insertions(+), 8 deletions(-) diff --git a/package.json b/package.json index 92bf769..219c9e8 100644 --- a/package.json +++ b/package.json @@ -21,6 +21,7 @@ "cors": "^2.8.5", "dotenv": "^8.2.0", "express": "^4.17.1", + "importabular": "^0.2.9", "sirv-cli": "^1.0.0" } } diff --git a/public/global.css b/public/global.css index 5eaff98..35ddc13 100644 --- a/public/global.css +++ b/public/global.css @@ -14,6 +14,15 @@ body { h1 { font-family: "Abhaya Libre ExtraBold", "Abhaya Libre", "Liberation Serif Bold", "Playfair Display SC Bold", serif; + text-transform: lowercase; + font-size: 4em; + font-weight: 100; +} + +h2 { + font-family: "Open Sans", sans-serif; + font-weight: normal; + font-variant: small-caps; } a { @@ -69,3 +78,7 @@ button:focus { .highlight { color: #800020; } + +.mt-3 { + margin-top: 3em; +} diff --git a/src/App.svelte b/src/App.svelte index 522f2b8..5a0eff5 100644 --- a/src/App.svelte +++ b/src/App.svelte @@ -1,11 +1,109 @@
- + Email Oven

Chip Choc

-

Visit the Svelte tutorial to learn how to build Svelte apps.

+

Cookie-cutter emails made easy.

+ + {#if step != 0} +

Step {step}

+ {/if} + + {#if step == 0} + + {/if} + + {#if step == 1} +
+

Compose your email below, leaving [TK stuff] to be replaced in the table. Make sure each TK is a single word: no spaces allowed!

+
+