From 8bd7ea5bbc9f62428033aab9b56b442d29b634d4 Mon Sep 17 00:00:00 2001 From: Kukks Date: Sat, 29 Dec 2018 20:21:23 +0100 Subject: [PATCH] start ux for perks --- .../AppsPublic/Crowdfund/VueCrowdfund.cshtml | 48 +++++++++++++++++-- .../crowdfund/components/contribute.js | 41 +++++++--------- 2 files changed, 61 insertions(+), 28 deletions(-) diff --git a/BTCPayServer/Views/AppsPublic/Crowdfund/VueCrowdfund.cshtml b/BTCPayServer/Views/AppsPublic/Crowdfund/VueCrowdfund.cshtml index ba3239e4f..4ca405edc 100644 --- a/BTCPayServer/Views/AppsPublic/Crowdfund/VueCrowdfund.cshtml +++ b/BTCPayServer/Views/AppsPublic/Crowdfund/VueCrowdfund.cshtml @@ -8,10 +8,10 @@ Starts {{startDateRelativeTime}} - + Ends {{endDateRelativeTime}} - + Currently Active! @@ -106,7 +106,12 @@
- + + +
@@ -116,7 +121,13 @@ - + + @@ -126,3 +137,32 @@ + + + + + diff --git a/BTCPayServer/wwwroot/crowdfund/components/contribute.js b/BTCPayServer/wwwroot/crowdfund/components/contribute.js index 507652d17..0f08828fb 100644 --- a/BTCPayServer/wwwroot/crowdfund/components/contribute.js +++ b/BTCPayServer/wwwroot/crowdfund/components/contribute.js @@ -1,5 +1,6 @@ Vue.component('contribute', { - props: ["targetCurrency", "active", "inModal"], + props: ["targetCurrency", "active", "perks", "inModal"], + template: "#contribute-template", data: function () { return { email: "", @@ -17,27 +18,19 @@ Vue.component('contribute', { } eventAggregator.$emit("contribute", {email: this.email, amount: this.amount, choiceKey: this.choiceKey}); } - }, - - template: "
" + - "

Contribute

" + - "" + - "
" + - "" + - "
" + - " " + - " " + - "
" + - "
" + - " " + - "
" + - " " + - "
" + - " {{targetCurrency}}" + - "
" + - "
" + - "
" + - " " + - "
" + - "
" + } }); + +Vue.component('perks-display', { + props: ["perks"], + template: "#perks-template", + data: function () { + return { + } + }, + methods: { + + } +}); + +