From ca1654ccdea8d4376529ec597cff329263f1da05 Mon Sep 17 00:00:00 2001 From: Hippo Date: Wed, 29 Dec 2021 22:36:40 +0530 Subject: [PATCH] Add "overseas" option Because they need to pay more for shipping --- server/index.js | 3 +++ src/index.htm | 9 ++++++++- src/style.css | 2 +- 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/server/index.js b/server/index.js index 185faf7..943a224 100644 --- a/server/index.js +++ b/server/index.js @@ -37,6 +37,7 @@ knex.schema.hasTable('pledges').then(function(exists) { t.boolean('was_robot').defaultTo(true) t.integer('amount').notNullable() + t.boolean('overseas') t.string('name', 128) t.boolean('anonymous') t.string('email', 128) @@ -144,6 +145,7 @@ router.post('/pledge', async (req, res) => { let phone = req.body.phone let newsletter = req.body.newsletter == 'yes' ? true : false + let overseas = req.body.overseas == 'yes' ? true : false let messages = req.body.messages if (!!errors.length) { @@ -155,6 +157,7 @@ router.post('/pledge', async (req, res) => { let pledge = new Pledge() pledge.set('was_robot', robo) pledge.set('amount', amount) + pledge.set('overseas', overseas) pledge.set('name', name) pledge.set('anonymous', anonymous) pledge.set('email', email) diff --git a/src/index.htm b/src/index.htm index 45e8b21..9965778 100644 --- a/src/index.htm +++ b/src/index.htm @@ -16,7 +16,7 @@
Snipette -

Analog for Everyone

+

Analog for Everyone

@@ -218,6 +218,13 @@

You get: all the perks from the next lowest level

+
diff --git a/src/style.css b/src/style.css index 94bddb5..01aad88 100644 --- a/src/style.css +++ b/src/style.css @@ -11,7 +11,7 @@ a { } .donate-option > li { - @apply row-auto text-center inline-block p-10 bg-white rounded-md text-black border-2 border-white hover:border-green-500 hover:cursor-pointer h-full w-full; + @apply text-center inline-block p-10 bg-white rounded-md text-black border-2 border-white hover:border-green-500 hover:cursor-pointer h-full w-full; } .donate-option > input:checked + li {