From 02c7497098c755b8bc1b7e0a45d56c261f4aaf8b Mon Sep 17 00:00:00 2001 From: Yashu Mittal Date: Sun, 2 Jun 2019 19:22:14 +0530 Subject: [PATCH 1/4] StripeCheckout component --- src/components/StripeCheckout.vue | 121 ++++++++++++++++++++++++++++++ 1 file changed, 121 insertions(+) create mode 100644 src/components/StripeCheckout.vue diff --git a/src/components/StripeCheckout.vue b/src/components/StripeCheckout.vue new file mode 100644 index 00000000..0c56709f --- /dev/null +++ b/src/components/StripeCheckout.vue @@ -0,0 +1,121 @@ + + + + + From b6ba98f64eebeda3afb88578bf3fb3ffa1d4e77f Mon Sep 17 00:00:00 2001 From: Yashu Mittal Date: Sun, 2 Jun 2019 19:22:55 +0530 Subject: [PATCH 2/4] Add US dollars currency to tiers --- src/data/sponsor-tiers.yml | 77 ++++++++++++++++++++++++-------------- 1 file changed, 49 insertions(+), 28 deletions(-) diff --git a/src/data/sponsor-tiers.yml b/src/data/sponsor-tiers.yml index 5062c225..48d307e0 100644 --- a/src/data/sponsor-tiers.yml +++ b/src/data/sponsor-tiers.yml @@ -1,41 +1,53 @@ - id: SPON-T1 title: 💻 Open source lover - price: 100 - currency: ₹ - cycle: month description: Just supporting as open source loving person. - plan_id: plan_F8hYEi75B2wZMy + cycle: month + country: + - currency: ₹ + price: 100 + plan_id: plan_F8hYEi75B2wZMy + - currency: $ + price: 5 perks: - discord - id: SPON-T2 title: ☕ Coffee lover - price: 200 - currency: ₹ - cycle: month description: ️Buy me a coffee every month. - plan_id: plan_F8eRgEf1NIJA72 + cycle: month + country: + - currency: ₹ + price: 100 + plan_id: plan_F8eRgEf1NIJA72 + - currency: $ + price: 10 perks: - discord - id: SPON-T3 title: 🤗 Backer - price: 500 - currency: ₹ - cycle: month description: No worries, you got my back. - plan_id: plan_F8pmrWMggAViOC + cycle: month + country: + - currency: ₹ + price: 500 + plan_id: plan_F8pmrWMggAViOC + - currency: $ + price: 50 perks: - discord - backers - id: SPON-T4 title: 🥉 Bronze - price: 3000 - currency: ₹ - cycle: month description: You rock!!! - plan_id: plan_F8xxa53rxGFbTq + cycle: month + country: + - currency: ₹ + price: 3000 + plan_id: plan_F8xxa53rxGFbTq + - currency: $ + price: 100 perks: - website - discord @@ -43,11 +55,14 @@ - id: SPON-T5 title: 🥈 Silver - price: 5000 - currency: ₹ - cycle: month description: Work on weekdays to add more features and fix bugs. - plan_id: plan_F8xzbwnFUjXfYL + cycle: month + country: + - currency: ₹ + price: 5000 + plan_id: plan_F8xzbwnFUjXfYL + - currency: $ + price: 200 perks: - website - discord @@ -55,11 +70,14 @@ - id: SPON-T6 title: 🥇 Gold - price: 10,000 - currency: ₹ - cycle: month description: No words 😭. Thank you so much 🙏🏻. - plan_id: plan_F8y0VUGruPD1ub + cycle: month + country: + - currency: ₹ + price: 10,000 + plan_id: plan_F8y0VUGruPD1ub + - currency: $ + price: 500 perks: - website - discord @@ -67,11 +85,14 @@ - id: SPON-T7 title: 🌟 Special - price: 20000 - currency: ₹ - cycle: month description: A 🌟 special tier for companies, your name will appear on thermal application, along with website, backers.md and discord badge. - plan_id: + cycle: month + country: + - currency: ₹ + price: 20,000 + plan_id: + - currency: $ + price: 1000 perks: - thermal - website From f451e9456915d856a8430d27c87a386eb53fba1e Mon Sep 17 00:00:00 2001 From: Yashu Mittal Date: Mon, 10 Jun 2019 13:44:08 +0530 Subject: [PATCH 3/4] Remove stripe checkout form --- src/components/StripeCheckout.vue | 121 ------------------------------ 1 file changed, 121 deletions(-) delete mode 100644 src/components/StripeCheckout.vue diff --git a/src/components/StripeCheckout.vue b/src/components/StripeCheckout.vue deleted file mode 100644 index 0c56709f..00000000 --- a/src/components/StripeCheckout.vue +++ /dev/null @@ -1,121 +0,0 @@ - - - - - From 008a4b7c680d141ec8d0fc13724507b5dcfc5252 Mon Sep 17 00:00:00 2001 From: Yashu Mittal Date: Mon, 10 Jun 2019 13:48:12 +0530 Subject: [PATCH 4/4] New layouts for showing tiers in INR & USD currency --- src/pages/Sponsor.vue | 191 ++++++++++++++++++++++++++++-------------- 1 file changed, 127 insertions(+), 64 deletions(-) diff --git a/src/pages/Sponsor.vue b/src/pages/Sponsor.vue index 83615548..055cc21e 100644 --- a/src/pages/Sponsor.vue +++ b/src/pages/Sponsor.vue @@ -2,36 +2,50 @@
-
+

Sponsor Thermal Development

+
-
- Select a tier -
-
-
-
- {{ item.title }} - {{ item.currency + item.price + "/" + item.cycle }} -
+
+
+ $ +
+
+ ₹ +
+
+
+
- Select +
+ {{ currency.currency + currency.price }} +
+
+ {{ "/" + item.cycle }} +
-
-
- {{ item.description }} -
-
-
- {{ perk }} +
+ {{ item.title }} +
+
+
+ {{ perk }} +
@@ -39,6 +53,11 @@
+
@@ -46,38 +65,39 @@