diff --git a/src/components/Payment/BraintreeDropInInterface.vue b/src/components/Payment/BraintreeDropInInterface.vue
index b91c07ee63..f1466f0b6a 100644
--- a/src/components/Payment/BraintreeDropInInterface.vue
+++ b/src/components/Payment/BraintreeDropInInterface.vue
@@ -546,4 +546,11 @@ $border-width: 1px;
@apply tw-text-base;
@apply tw-font-medium;
}
+
+ /* Show helper text */
+ #dropin-container .braintree-sheet__container > .braintree-sheet:not(.braintree-card)::before {
+ @apply tw-absolute tw-w-full tw-left-0 tw-top-3.5 tw-font-medium;
+
+ content: 'Click payment method again to continue';
+ }
diff --git a/src/components/Stats/StatsTable.vue b/src/components/Stats/StatsTable.vue
index f15858dc65..33fb323e77 100644
--- a/src/components/Stats/StatsTable.vue
+++ b/src/components/Stats/StatsTable.vue
@@ -60,9 +60,9 @@
+
+
diff --git a/src/components/Thanks/Badges/DiscoverSection.vue b/src/components/Thanks/Badges/DiscoverSection.vue
index b1d39f09bb..01705ddf37 100644
--- a/src/components/Thanks/Badges/DiscoverSection.vue
+++ b/src/components/Thanks/Badges/DiscoverSection.vue
@@ -19,7 +19,7 @@
"
>
selectBadge(idx)"
>
([])
+ }
},
components: {
KvButton,
@@ -83,48 +88,10 @@ export default {
return {
images,
mdiChevronLeft,
- defaultSortBadges: [
- {
- id: 1,
- name: this.selectedLoanRegion,
- img: 'region'
- },
- {
- id: 2,
- name: 'Climate',
- img: 'climate'
- },
- {
- id: 3,
- name: 'Women',
- img: 'women'
- },
- {
- id: 4,
- name: 'U.S. Entrepreneurs',
- img: 'entrepreneurs'
- },
- {
- id: 5,
- name: 'Refugees',
- img: 'refugees'
- },
- {
- id: 6,
- name: 'Most Vulnerable',
- img: 'most-vulnerable'
- }
- ],
};
},
- computed: {
- randomSortedBadges() {
- const badges = [...this.defaultSortBadges];
- return badges.sort(() => Math.random() - 0.5);
- },
- },
mounted() {
- const badgesNames = this.randomSortedBadges.map(badge => badge.name).join(', ');
+ const badgesNames = this.badges.map(badge => badge.name).join(', ');
this.$kvTrackEvent(
'thanks',
'view',
@@ -135,8 +102,11 @@ export default {
methods: {
backToEarnedBadge() {
this.$kvTrackEvent('thanks', 'click', 'back-to-earned-badge');
- this.$emit('back-to-earned-badge');
+ this.$emit('back');
},
+ selectBadge(idx) {
+ this.$emit('select-badge', idx);
+ }
}
};
diff --git a/src/components/Thanks/Badges/FirstScreen.vue b/src/components/Thanks/Badges/FirstScreen.vue
new file mode 100644
index 0000000000..78ec93b3dd
--- /dev/null
+++ b/src/components/Thanks/Badges/FirstScreen.vue
@@ -0,0 +1,505 @@
+
+
+
+
+ {{ headerTitle }}
+
+
+ {{ headerCopy }}
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ revealBtnCta }}
+
+
+
+
+
+
+
+
+ You are a hero! Thanks to your loan, we are one step closer to a more financially inclusive world.
+
+
+ Discover more badges
+
+
+
+ Go to my kiva
+
+
openCreateAccount = !openCreateAccount"
+ v-kv-track-event="[
+ 'thanks',
+ 'click',
+ 'open-account-creation-drawer',
+ ]"
+ >
+
+ Create your account
+
+
+
+
+
+
Before you go!
+
+
Finish setting up your account to track and relend your money as you are paid back.
+
+
+
+
+
+
+
+
+ You are now part of {{ borrowerName }}'s journey! Here's what's next:
+
+
+
+
+
+ Go to my kiva
+
+
+
openCreateAccount = !openCreateAccount"
+ v-kv-track-event="[
+ 'thanks',
+ 'click',
+ 'open-account-creation-drawer',
+ ]"
+ >
+
+ Create your account
+
+
+
+
+
+
Before you go!
+
+
Finish setting up your account to track and relend your money as you are paid back.
+
+
+
+
+
+
+
+
+
openOrderConfirmation = !openOrderConfirmation"
+ v-kv-track-event="[
+ 'thanks',
+ 'click',
+ 'open-order-confirmation-drawer',
+ ]"
+ >
+
+ Show previous loan details
+
+
+
+
+
+
+
+
+
+
+
openShareModule = !openShareModule"
+ v-kv-track-event="[
+ 'thanks',
+ 'click',
+ 'open-share-drawer',
+ ]"
+ >
+
+ Share
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/components/Thanks/Badges/RevealedBadge.vue b/src/components/Thanks/Badges/RevealedBadge.vue
new file mode 100644
index 0000000000..90fa5c52df
--- /dev/null
+++ b/src/components/Thanks/Badges/RevealedBadge.vue
@@ -0,0 +1,172 @@
+
+
+
+ Congrats!
+
+
+ You earned your first badge
+
+
+
+
+
+
+
+
+
+
+
+
+
+ You are a hero! Thanks to your loan, we are one step closer to a more financially inclusive world.
+
+
+ Discover more badges
+
+
+
+ Go to my kiva
+
+
openCreateAccount = !openCreateAccount"
+ v-kv-track-event="[
+ 'thanks',
+ 'click',
+ 'open-account-creation-drawer',
+ ]"
+ >
+
+ Create your account
+
+
+
+
+
+
Before you go!
+
+
Finish setting up your account to track and relend your money as you are paid back.
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/components/Thanks/BadgesCustomization.vue b/src/components/Thanks/BadgesCustomization.vue
index 6b304ae345..b9fd6123b9 100644
--- a/src/components/Thanks/BadgesCustomization.vue
+++ b/src/components/Thanks/BadgesCustomization.vue
@@ -1,332 +1,64 @@
-
-
-
-
-
-
- {{ headerTitle }}
-
-
- {{ headerCopy }}
-
-
-
-
-
-
-
-
-
-
-
-
- {{ revealBtnCta }}
-
-
-
-
-
-
-
-
- You are a hero! Thanks to your loan, we are one step closer to a more financially inclusive world.
-
-
- Discover more badges
-
-
-
- Go to my kiva
-
-
openCreateAccount = !openCreateAccount"
- v-kv-track-event="[
- 'thanks',
- 'click',
- 'open-account-creation-drawer',
- ]"
- >
-
- Create your account
-
-
-
-
-
-
Before you go!
-
-
Finish setting up your account to track and relend your money as you are paid back.
-
-
-
-
-
-
-
-
- You are now part of {{ borrowerName }}'s journey! Here's what's next:
-
-
-
-
-
- Go to my kiva
-
-
-
openCreateAccount = !openCreateAccount"
- v-kv-track-event="[
- 'thanks',
- 'click',
- 'open-account-creation-drawer',
- ]"
- >
-
- Create your account
-
-
-
-
-
-
Before you go!
-
-
Finish setting up your account to track and relend your money as you are paid back.
-
-
-
-
-
-
-
-
-
openOrderConfirmation = !openOrderConfirmation"
- v-kv-track-event="[
- 'thanks',
- 'click',
- 'open-order-confirmation-drawer',
- ]"
- >
-
- Show previous loan details
-
-
-
-
-
-
-
-
-
-
-
openShareModule = !openShareModule"
- v-kv-track-event="[
- 'thanks',
- 'click',
- 'open-share-drawer',
- ]"
- >
-
- Share
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
discoverBadges = false"
+ :badges="randomSortedBadges"
+ @back="() => newScreenSteps -= 1"
+ @select-badge="selectBadge"
+ />
+ newScreenSteps -= 1"
/>
-
+