@designcrowd/fe-shared-lib 1.2.13 → 1.2.14-ast-upsell-2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +4 -0
- package/package.json +1 -1
- package/public/css/tailwind-brandCrowd.css +24 -0
- package/public/css/tailwind-brandPage.css +24 -0
- package/public/css/tailwind-crazyDomains.css +24 -0
- package/public/css/tailwind-designCom.css +24 -0
- package/public/css/tailwind-designCrowd.css +24 -0
- package/src/atoms/components/Modal/Modal.vue +6 -1
- package/src/atoms/components/Price/Price.vue +2 -2
- package/src/atoms/components/Upsell/DigitalBusinessCard.vue +61 -0
- package/src/atoms/components/Upsell/LinkInBio.vue +61 -0
- package/src/atoms/components/Upsell/UpgradeWebsite.vue +61 -0
- package/src/atoms/components/Upsell/Website.vue +61 -0
- package/src/bundles/bundled-translations.json +3 -1
- package/src/experiences/components/PublishBrandPageModal/PublishBrandPageModal.stories.js +44 -0
- package/src/experiences/components/PublishBrandPageModal/PublishBrandPageModal.vue +46 -24
- package/src/experiences/components/PublishBrandPageModal/i18n/publish-brand-page-modal.json +3 -1
- package/dist/css/tailwind-brandCrowd.css +0 -2493
- package/dist/css/tailwind-brandPage.css +0 -2177
- package/dist/css/tailwind-crazyDomains.css +0 -2493
- package/dist/css/tailwind-designCom.css +0 -2493
- package/dist/css/tailwind-designCrowd.css +0 -2493
|
@@ -1,26 +1,38 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="publish-bp--container">
|
|
3
3
|
<Modal
|
|
4
|
-
classes="publish-bp--modal
|
|
4
|
+
classes="publish-bp--modal "
|
|
5
5
|
close-on-esc
|
|
6
6
|
:visible="visible"
|
|
7
7
|
:hide-scrollbar="false"
|
|
8
8
|
:show-modal-background-image="showModalBackgroundImage"
|
|
9
9
|
:content-classes="isBusy ? ['tw-overflow-y-hidden'] : []"
|
|
10
|
+
:remove-horizontal-padding="showUpsellRotation && !isCustomDomainActive && !hasPurchasedDomains"
|
|
11
|
+
:class="{
|
|
12
|
+
'tw-px-2 md:tw-px-8': !showUpsellRotation && isCustomDomainActive && hasPurchasedDomains,
|
|
13
|
+
}"
|
|
10
14
|
@close-modal="onCloseModal"
|
|
11
15
|
>
|
|
12
16
|
<template #header>
|
|
13
17
|
<div v-if="isNotPublished || isSlugEditMode" class="tw-text-center tw-font-bold tw-mb-8 tw-mt-8 tw-text-4xl">
|
|
14
18
|
<span>{{ firstTimePublishHeaderLabel }}</span>
|
|
15
19
|
</div>
|
|
16
|
-
<div
|
|
20
|
+
<div
|
|
21
|
+
v-if="isPublished && !isSlugEditMode"
|
|
22
|
+
class="tw-text-center tw-font-bold tw-mt-8"
|
|
23
|
+
:class="{
|
|
24
|
+
'tw-mb-8 ': !showUpsellRotation,
|
|
25
|
+
}"
|
|
26
|
+
>
|
|
17
27
|
<p class="tw-font-bold tw-text-black tw-mb-2 tw-text-4xl">{{ sitePublishedLabel }}</p>
|
|
18
|
-
<
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
28
|
+
<div v-if="!showUpsellRotation">
|
|
29
|
+
<p v-if="hasPurchasedDomains || isCustomDomainActive" class="tw-text-grayscale-600 tw-mb-8">
|
|
30
|
+
{{ publishSuccessLabel }}
|
|
31
|
+
</p>
|
|
32
|
+
<p v-else class="tw-text-grayscale-600 tw-mb-8 tw-font-normal">
|
|
33
|
+
{{ publishedSuccessDescriptionLabel }}
|
|
34
|
+
</p>
|
|
35
|
+
</div>
|
|
24
36
|
</div>
|
|
25
37
|
</template>
|
|
26
38
|
<template #default>
|
|
@@ -188,24 +200,26 @@
|
|
|
188
200
|
</div>
|
|
189
201
|
<div v-else class="tw-font-sans">
|
|
190
202
|
<div v-if="!isCustomDomainActive && !hasPurchasedDomains" class="tw-mb-6 tw-text-left">
|
|
191
|
-
<div
|
|
192
|
-
<
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
203
|
+
<div v-if="!showUpsellRotation">
|
|
204
|
+
<div class="tw-mb-6">
|
|
205
|
+
<SellDomainNameSearchWithResults
|
|
206
|
+
:is-design-com="isDesignCom"
|
|
207
|
+
:initial-search-term="searchText"
|
|
208
|
+
:currency="userCurrency"
|
|
209
|
+
:display-result-limit="4"
|
|
210
|
+
:domain-search-location="sitePublishedModal"
|
|
211
|
+
@on-change-search="onSearchTextChanged"
|
|
212
|
+
@on-buy-now-click="onBuyNowClick"
|
|
213
|
+
/>
|
|
214
|
+
</div>
|
|
215
|
+
<Button
|
|
216
|
+
:label="viewMoreDomainLabel"
|
|
217
|
+
variant="no-border"
|
|
218
|
+
size="small-medium"
|
|
219
|
+
class="tw-text-center"
|
|
220
|
+
@on-click="onViewMore"
|
|
200
221
|
/>
|
|
201
222
|
</div>
|
|
202
|
-
<Button
|
|
203
|
-
:label="viewMoreDomainLabel"
|
|
204
|
-
variant="no-border"
|
|
205
|
-
size="small-medium"
|
|
206
|
-
class="tw-text-center"
|
|
207
|
-
@on-click="onViewMore"
|
|
208
|
-
/>
|
|
209
223
|
</div>
|
|
210
224
|
<div class="tw-px-4 tw-text-center" :class="{ 'lg:tw-px-20': hasPurchasedDomains }">
|
|
211
225
|
<TextCopyField
|
|
@@ -230,6 +244,9 @@
|
|
|
230
244
|
@on-click="onBrandPageUrlClick"
|
|
231
245
|
/>
|
|
232
246
|
</div>
|
|
247
|
+
<div v-if="showUpsellRotation" class="tw-border-t tw-border-solid tw-border-grayscale-500">
|
|
248
|
+
<slot name="upsellContainer" />
|
|
249
|
+
</div>
|
|
233
250
|
</div>
|
|
234
251
|
</template>
|
|
235
252
|
</Modal>
|
|
@@ -403,6 +420,11 @@ export default {
|
|
|
403
420
|
required: true,
|
|
404
421
|
default: '',
|
|
405
422
|
},
|
|
423
|
+
showUpsellRotation: {
|
|
424
|
+
type: Boolean,
|
|
425
|
+
required: true,
|
|
426
|
+
default: false,
|
|
427
|
+
},
|
|
406
428
|
},
|
|
407
429
|
emits: [
|
|
408
430
|
'close-modal',
|
|
@@ -17,6 +17,8 @@
|
|
|
17
17
|
"copySuccessLabel": "Copied!",
|
|
18
18
|
"publishedSuccessDescriptionLabel": "Buy matching domain name for your brand",
|
|
19
19
|
"hasAlreadyPurchasedDomainCloseButtonLabel": "No thanks, maybe later",
|
|
20
|
-
"selectDomainDropdownPlaceholder": "Select domain name"
|
|
20
|
+
"selectDomainDropdownPlaceholder": "Select domain name",
|
|
21
|
+
"upgradeNowLabel": "Upgrade Now",
|
|
22
|
+
"getStartedLabel": "Get Started"
|
|
21
23
|
}
|
|
22
24
|
}
|