@designcrowd/fe-shared-lib 1.2.11-byo-modal-7 → 1.2.11-ml-currency
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/Dockerfile +1 -1
- package/dist/css/tailwind-brandCrowd.css +3 -37
- package/dist/css/tailwind-brandPage.css +3 -33
- package/dist/css/tailwind-crazyDomains.css +3 -37
- package/dist/css/tailwind-designCom.css +3 -37
- package/dist/css/tailwind-designCrowd.css +3 -37
- package/package.json +1 -1
- package/src/atoms/components/Price/Price.vue +39 -1
- package/src/bundles/bundled-translations.de-DE.json +0 -32
- package/src/bundles/bundled-translations.es-ES.json +0 -32
- package/src/bundles/bundled-translations.fr-FR.json +0 -32
- package/src/bundles/bundled-translations.json +0 -32
- package/src/bundles/bundled-translations.pt-PT.json +0 -32
- package/src/experiences/components/UploadYourLogoDropzone/UploadYourLogoDropzone.vue +8 -18
- package/src/experiences/components/UploadYourLogoOnBoarding/LogoBusinessBrandColours.vue +12 -22
- package/src/experiences/components/UploadYourLogoOnBoarding/LogoBusinessText.vue +5 -11
- package/src/experiences/components/UploadYourLogoOnBoarding/LogoCropper.vue +4 -10
- package/src/experiences/components/UploadYourLogoOnBoarding/LogoPreview.vue +5 -11
- package/src/experiences/components/UploadYourLogoOnBoarding/LogoUploadError.vue +4 -10
- package/src/experiences/components/UploadYourLogoOnBoarding/LogoUploadExitConfirmation.vue +5 -11
- package/src/experiences/components/UploadYourLogoOnBoarding/LogoUploader.vue +1 -7
- package/src/experiences/components/UploadYourLogoOnBoarding/UploadYourLogoOnBoarding.vue +7 -13
- package/src/useSharedLibTranslate.js +1 -3
- package/public/css/tailwind-brandCrowd.css +0 -2411
- package/public/css/tailwind-brandPage.css +0 -2095
- package/public/css/tailwind-crazyDomains.css +0 -2411
- package/public/css/tailwind-designCom.css +0 -2411
- package/public/css/tailwind-designCrowd.css +0 -2411
- package/src/experiences/components/UploadYourLogoOnBoarding/i18n/upload-your-logo.de-DE.json +0 -34
- package/src/experiences/components/UploadYourLogoOnBoarding/i18n/upload-your-logo.es-ES.json +0 -34
- package/src/experiences/components/UploadYourLogoOnBoarding/i18n/upload-your-logo.fr-FR.json +0 -34
- package/src/experiences/components/UploadYourLogoOnBoarding/i18n/upload-your-logo.json +0 -35
- package/src/experiences/components/UploadYourLogoOnBoarding/i18n/upload-your-logo.pt-PT.json +0 -34
|
@@ -48,37 +48,5 @@
|
|
|
48
48
|
"searchBarLabel": "Rechercher",
|
|
49
49
|
"searchBarPlaceholder": "Rechercher des noms de domaine",
|
|
50
50
|
"domainSearchOrConnectHeaderSubtitle": "Achetez un nom de domaine correspondant à votre marque ou connectez votre domaine existant"
|
|
51
|
-
},
|
|
52
|
-
"uploadYourLogo": {
|
|
53
|
-
"uploadYourLogoText": "Téléchargez votre logo",
|
|
54
|
-
"disclaimerText": "Veuillez vous assurer que vous avez le droit d'utiliser toute image que vous téléchargez.",
|
|
55
|
-
"generatingDesigns": "Génération de designs...",
|
|
56
|
-
"uploadingAndConverting": "Téléchargement et conversion de votre logo...",
|
|
57
|
-
"stepOf": "Étape {{CURRENT}} sur {{TOTAL}}",
|
|
58
|
-
"uploadError": "Erreur de téléchargement",
|
|
59
|
-
"cancel": "Annuler",
|
|
60
|
-
"continue": "Continuer",
|
|
61
|
-
"back": "Retour",
|
|
62
|
-
"no": "Non",
|
|
63
|
-
"yes": "Oui",
|
|
64
|
-
"businessName": "Nom de l’entreprise",
|
|
65
|
-
"businessNameDescription": "Saisissez le texte de votre logo ou le nom de votre entreprise",
|
|
66
|
-
"cropYourLogo": "Recadrez votre logo",
|
|
67
|
-
"cropDescription": "Recadrez votre logo pour qu'il s'adapte au canevas de notre outil de création de logos",
|
|
68
|
-
"logoPreview": "Aperçu du logo",
|
|
69
|
-
"logoPreviewDescription": "Votre logo est magnifique ! Aidez-nous à configurer votre logo en suivant les étapes suivantes.",
|
|
70
|
-
"primaryTextColor": "Couleur principale du texte",
|
|
71
|
-
"primaryTextColorDescription": "Aidez-nous à configurer votre logo en confirmant la couleur principale du texte. Choisissez parmi les couleurs disponibles ou cliquez sur l'icône plus pour en ajouter une autre.",
|
|
72
|
-
"backgroundColor": "Couleur d’arrière-plan",
|
|
73
|
-
"backgroundColorDescription": "Aidez-nous à configurer votre logo en confirmant la couleur d'arrière-plan. Choisissez parmi les couleurs disponibles ou cliquez sur l'icône plus pour en ajouter une autre.",
|
|
74
|
-
"colorsWarning": "Les couleurs de votre texte et de votre arrière-plan sont trop semblables. Veuillez choisir une combinaison plus distincte pour garantir un design de qualité.",
|
|
75
|
-
"exitConfirmationTitle": "Voulez-vous vraiment quitter ?",
|
|
76
|
-
"exitConfirmationDescription": "La progression du téléchargement de votre logo au cours de cette session sera perdue",
|
|
77
|
-
"maxByoFileErrorMessage": "Votre fichier dépasse la taille maximale de 25 Mo. Veuillez choisir un fichier plus petit.",
|
|
78
|
-
"genericByoErrorMessage": "Une erreur inattendue s'est produite. Veuillez réessayer.",
|
|
79
|
-
"dropYourFileHere": "Déposez votre fichier ici ou",
|
|
80
|
-
"clickToUpload": "cliquez pour télécharger",
|
|
81
|
-
"acceptedFiles": "Nous acceptons les fichiers PNG, JPG, SVG ou EPS jusqu'à 25 Mo",
|
|
82
|
-
"wrongUploadType": "Vous ne pouvez pas télécharger des fichiers de ce type."
|
|
83
51
|
}
|
|
84
52
|
}
|
|
@@ -48,37 +48,5 @@
|
|
|
48
48
|
"searchBarLabel": "Search",
|
|
49
49
|
"searchBarPlaceholder": "Search domain names",
|
|
50
50
|
"domainSearchOrConnectHeaderSubtitle": "Buy matching domain name for your brand or connect your existing domain"
|
|
51
|
-
},
|
|
52
|
-
"uploadYourLogo": {
|
|
53
|
-
"uploadYourLogoText": "Upload your logo",
|
|
54
|
-
"disclaimerText": "Please ensure you have the right to use any image you upload.",
|
|
55
|
-
"generatingDesigns": "Generating Designs...",
|
|
56
|
-
"uploadingAndConverting": "Uploading and converting your logo...",
|
|
57
|
-
"stepOf": "Step {{CURRENT}} of {{TOTAL}}",
|
|
58
|
-
"uploadError": "Upload Error",
|
|
59
|
-
"cancel": "Cancel",
|
|
60
|
-
"continue": "Continue",
|
|
61
|
-
"back": "Back",
|
|
62
|
-
"no": "No",
|
|
63
|
-
"yes": "Yes",
|
|
64
|
-
"businessName": "Business Name",
|
|
65
|
-
"businessNameDescription": "Enter your logo text or business name",
|
|
66
|
-
"cropYourLogo": "Crop your logo",
|
|
67
|
-
"cropDescription": "Crop your logo design to fit our logo maker canvas",
|
|
68
|
-
"logoPreview": "Logo preview",
|
|
69
|
-
"logoPreviewDescription": "Your logo looks great! Help us setup your logo by completing the next steps.",
|
|
70
|
-
"primaryTextColor": "Primary text color",
|
|
71
|
-
"primaryTextColorDescription": "Help us setup your logo by confirming the primary text color. Choose from the available colors or click the plus icon to add another.",
|
|
72
|
-
"backgroundColor": "Background color",
|
|
73
|
-
"backgroundColorDescription": "Help us setup your logo by confirming the background color. Choose from the available colors or click the plus icon to add another.",
|
|
74
|
-
"colorsWarning": "Your text and background colors are too similar. Please choose a more distinct pairing to ensure they create quality designs.",
|
|
75
|
-
"exitConfirmationTitle": "Are you sure you want to exit?",
|
|
76
|
-
"exitConfirmationDescription": "Your logo upload progress in this session will be lost",
|
|
77
|
-
"maxByoFileErrorMessage": "Your file exceeds the maximum size of 25MB. Please choose a smaller file.",
|
|
78
|
-
"genericByoErrorMessage": "An unexpected error occured. Please try again.",
|
|
79
|
-
"dropYourFileHere": "Drop your file here or",
|
|
80
|
-
"clickToUpload": "click to upload",
|
|
81
|
-
"acceptedFiles": "We accept PNG, JPG, SVG or EPS files up to 25MB",
|
|
82
|
-
"wrongUploadType": "You can't upload files of this type."
|
|
83
51
|
}
|
|
84
52
|
}
|
|
@@ -48,37 +48,5 @@
|
|
|
48
48
|
"searchBarLabel": "Pesquisar",
|
|
49
49
|
"searchBarPlaceholder": "Pesquisar nomes de domínio",
|
|
50
50
|
"domainSearchOrConnectHeaderSubtitle": "Compre um nome de domínio que corresponda à sua marca ou associe ao domínio que já tem"
|
|
51
|
-
},
|
|
52
|
-
"uploadYourLogo": {
|
|
53
|
-
"uploadYourLogoText": "Carregue o seu logótipo",
|
|
54
|
-
"disclaimerText": "Certifique-se de que tem os direitos de utilização de todas as imagens que carregar.",
|
|
55
|
-
"generatingDesigns": "A gerar designs…",
|
|
56
|
-
"uploadingAndConverting": "A carregar e a converter o seu logótipo…",
|
|
57
|
-
"stepOf": "Passo {{CURRENT}} de {{TOTAL}}",
|
|
58
|
-
"uploadError": "Erro ao carregar",
|
|
59
|
-
"cancel": "Cancelar",
|
|
60
|
-
"continue": "Continuar",
|
|
61
|
-
"back": "Voltar",
|
|
62
|
-
"no": "Não",
|
|
63
|
-
"yes": "Sim",
|
|
64
|
-
"businessName": "Nome da empresa",
|
|
65
|
-
"businessNameDescription": "Introduza o texto do seu logótipo ou o nome da sua empresa",
|
|
66
|
-
"cropYourLogo": "Recorte o seu logótipo",
|
|
67
|
-
"cropDescription": "Recorte o design de logótipo para caber no ecrã do criador de logótipos",
|
|
68
|
-
"logoPreview": "Pré-visualização do logótipo",
|
|
69
|
-
"logoPreviewDescription": "O seu logótipo está com um ótimo aspeto! Ajude-nos a configurar o seu logótipo concluindo os próximos passos.",
|
|
70
|
-
"primaryTextColor": "Cor principal do texto",
|
|
71
|
-
"primaryTextColorDescription": "Ajude-nos a configurar o seu logótipo confirmando a cor principal do texto. Escolha entre as cores disponíveis ou clique no ícone de mais para adicionar outra.",
|
|
72
|
-
"backgroundColor": "Cor de fundo",
|
|
73
|
-
"backgroundColorDescription": "Ajude-nos a configurar o seu logótipo confirmando a cor do fundo. Escolha entre as cores disponíveis ou clique no ícone de mais para adicionar outra.",
|
|
74
|
-
"colorsWarning": "As suas cores de texto e de fundo são demasiado semelhantes. Escolha uma combinação mais distinta para garantir que criamos designs de qualidade.",
|
|
75
|
-
"exitConfirmationTitle": "Tem a certeza de que pretende sair?",
|
|
76
|
-
"exitConfirmationDescription": "O progresso do carregamento do seu logótipo nesta sessão será perdido",
|
|
77
|
-
"maxByoFileErrorMessage": "O seu ficheiro excede o tamanho máximo de 25 MB. Escolha um ficheiro mais pequeno.",
|
|
78
|
-
"genericByoErrorMessage": "Ocorreu um erro inesperado. Tente novamente.",
|
|
79
|
-
"dropYourFileHere": "Arraste o seu ficheiro aqui ou",
|
|
80
|
-
"clickToUpload": "clique para carregar",
|
|
81
|
-
"acceptedFiles": "Aceitamos ficheiros PNG, JPG, SVG ou EPS até 25 MB",
|
|
82
|
-
"wrongUploadType": "Não pode carregar ficheiros deste tipo."
|
|
83
51
|
}
|
|
84
52
|
}
|
|
@@ -56,13 +56,9 @@
|
|
|
56
56
|
<p
|
|
57
57
|
v-if="!isModal"
|
|
58
58
|
class="tw-font-bold tw-text-black tw-text-lg"
|
|
59
|
-
:class="{
|
|
60
|
-
'tw-mb-2': !shouldUseCompactLayout,
|
|
61
|
-
'md:tw-text-sm md:tw-mb-0': smallLayout,
|
|
62
|
-
'tw-text-sm tw-mb-0': shouldUseCompactLayout,
|
|
63
|
-
}"
|
|
59
|
+
:class="{ 'tw-mb-2': !shouldUseCompactLayout, 'md:tw-text-sm md:tw-mb-0': smallLayout, 'tw-text-sm tw-mb-0': shouldUseCompactLayout }"
|
|
64
60
|
>
|
|
65
|
-
|
|
61
|
+
Upload your logo
|
|
66
62
|
</p>
|
|
67
63
|
|
|
68
64
|
<p
|
|
@@ -70,11 +66,11 @@
|
|
|
70
66
|
:class="{
|
|
71
67
|
'tw-mb-0': !isDesignCom,
|
|
72
68
|
'tw-mb-3': isDesignCom,
|
|
73
|
-
'md:tw-hidden': shouldUseCompactLayout
|
|
69
|
+
'md:tw-hidden': shouldUseCompactLayout
|
|
74
70
|
}"
|
|
75
71
|
>
|
|
76
|
-
|
|
77
|
-
<span class="tw-text-info-500">
|
|
72
|
+
Drop your file here or
|
|
73
|
+
<span class="tw-text-info-500">click to upload</span>
|
|
78
74
|
</p>
|
|
79
75
|
|
|
80
76
|
<p
|
|
@@ -85,7 +81,7 @@
|
|
|
85
81
|
'tw-text-secondary-400': isDesignCom,
|
|
86
82
|
}"
|
|
87
83
|
>
|
|
88
|
-
|
|
84
|
+
We accept PNG, JPG, SVG or EPS files up to 25MB
|
|
89
85
|
</p>
|
|
90
86
|
</div>
|
|
91
87
|
</div>
|
|
@@ -96,12 +92,11 @@
|
|
|
96
92
|
import Dropzone from 'dropzone-vue3';
|
|
97
93
|
import Events, { TRIGGER_TYPE } from '../../constants/event-constants';
|
|
98
94
|
import RegoSource from '../../constants/rego-source-constants';
|
|
99
|
-
import { uploadYourLogoTr } from '../../../useSharedLibTranslate';
|
|
100
95
|
|
|
101
96
|
const ACCEPTED_MIME_TYPES = ['image/jpeg', 'image/png', 'image/svg+xml', 'application/postscript'];
|
|
102
97
|
|
|
103
98
|
const ACCEPTED_FILE_EXTENSIONS = ['jpg', 'jpeg', 'png', 'svg', 'eps'];
|
|
104
|
-
const UNSUPPORTED_FILE_ERROR_MSG =
|
|
99
|
+
const UNSUPPORTED_FILE_ERROR_MSG = "You can't upload files of this type.";
|
|
105
100
|
|
|
106
101
|
export default {
|
|
107
102
|
components: {
|
|
@@ -156,11 +151,6 @@ export default {
|
|
|
156
151
|
default: null,
|
|
157
152
|
},
|
|
158
153
|
},
|
|
159
|
-
setup() {
|
|
160
|
-
return {
|
|
161
|
-
uploadYourLogoTr,
|
|
162
|
-
};
|
|
163
|
-
},
|
|
164
154
|
data() {
|
|
165
155
|
const self = this;
|
|
166
156
|
|
|
@@ -175,7 +165,7 @@ export default {
|
|
|
175
165
|
const extension = file.name.split('.').pop().toLowerCase();
|
|
176
166
|
|
|
177
167
|
if (ACCEPTED_FILE_EXTENSIONS.indexOf(extension) < 0) {
|
|
178
|
-
self.displayError(UNSUPPORTED_FILE_ERROR_MSG
|
|
168
|
+
self.displayError(UNSUPPORTED_FILE_ERROR_MSG);
|
|
179
169
|
return;
|
|
180
170
|
}
|
|
181
171
|
|
|
@@ -4,13 +4,13 @@
|
|
|
4
4
|
<HelloBar
|
|
5
5
|
v-if="areColorsTooClose"
|
|
6
6
|
label=""
|
|
7
|
-
|
|
7
|
+
description="Your text and background colors are too similar. Please choose a more distinct pairing to ensure they create quality designs."
|
|
8
8
|
variant="warning"
|
|
9
9
|
class="tw-m-5 tw-mt-3"
|
|
10
10
|
/>
|
|
11
11
|
<div class="tw-pb-8 tw-px-8 tw-text-center">
|
|
12
12
|
<p class="tw-text-grayscale-600 tw-font-bold tw-text-xs tw-mb-2 tw-uppercase">
|
|
13
|
-
{{
|
|
13
|
+
Step {{ activeStep.number }} of {{ totalNumSteps }}
|
|
14
14
|
</p>
|
|
15
15
|
<h2 class="tw-mb-4 tw-text-4xl tw-text-black tw-font-bold">
|
|
16
16
|
{{ activeStep.title }}
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
>
|
|
81
81
|
<Button
|
|
82
82
|
v-if="activeStep.index === 1"
|
|
83
|
-
|
|
83
|
+
label="Back"
|
|
84
84
|
size="large"
|
|
85
85
|
variant="outline"
|
|
86
86
|
container-classes="tw-mx-2"
|
|
@@ -89,7 +89,7 @@
|
|
|
89
89
|
/>
|
|
90
90
|
<Button
|
|
91
91
|
v-if="activeStep.index === 2"
|
|
92
|
-
|
|
92
|
+
label="Back"
|
|
93
93
|
size="large"
|
|
94
94
|
variant="outline"
|
|
95
95
|
container-classes="tw-mx-2"
|
|
@@ -98,7 +98,7 @@
|
|
|
98
98
|
/>
|
|
99
99
|
<Button
|
|
100
100
|
v-if="activeStep.index === 1"
|
|
101
|
-
|
|
101
|
+
label="Continue"
|
|
102
102
|
size="large"
|
|
103
103
|
variant="primary-with-icon"
|
|
104
104
|
icon="chevron-right-wide"
|
|
@@ -108,7 +108,7 @@
|
|
|
108
108
|
/>
|
|
109
109
|
<Button
|
|
110
110
|
v-if="activeStep.index === 2"
|
|
111
|
-
|
|
111
|
+
label="Continue"
|
|
112
112
|
size="large"
|
|
113
113
|
variant="primary-with-icon"
|
|
114
114
|
icon="chevron-right-wide"
|
|
@@ -126,7 +126,6 @@ import Icon from '../../../../src/atoms/components/Icon/Icon.vue';
|
|
|
126
126
|
import HelloBar from '../../../../src/atoms/components/HelloBar/HelloBar.vue';
|
|
127
127
|
import trackEvent from '../../helpers/tracking';
|
|
128
128
|
import hexDiff from '../../helpers/hex-diff';
|
|
129
|
-
import { uploadYourLogoTr } from '../../../useSharedLibTranslate';
|
|
130
129
|
|
|
131
130
|
export default {
|
|
132
131
|
components: {
|
|
@@ -154,11 +153,6 @@ export default {
|
|
|
154
153
|
required: true,
|
|
155
154
|
},
|
|
156
155
|
},
|
|
157
|
-
setup() {
|
|
158
|
-
return {
|
|
159
|
-
uploadYourLogoTr,
|
|
160
|
-
};
|
|
161
|
-
},
|
|
162
156
|
data() {
|
|
163
157
|
return {
|
|
164
158
|
currentStep: null,
|
|
@@ -177,8 +171,9 @@ export default {
|
|
|
177
171
|
index: 1,
|
|
178
172
|
number: this.totalNumSteps - 1,
|
|
179
173
|
active: false,
|
|
180
|
-
title:
|
|
181
|
-
description:
|
|
174
|
+
title: 'Primary text color',
|
|
175
|
+
description:
|
|
176
|
+
'Help us setup your logo by confirming the primary text color. Choose from the available colors or click the plus icon to add another.',
|
|
182
177
|
colourData: this.logoData.logoImageDetails.textColors,
|
|
183
178
|
colours: [],
|
|
184
179
|
},
|
|
@@ -186,8 +181,9 @@ export default {
|
|
|
186
181
|
index: 2,
|
|
187
182
|
number: this.totalNumSteps,
|
|
188
183
|
active: false,
|
|
189
|
-
title:
|
|
190
|
-
description:
|
|
184
|
+
title: 'Background color',
|
|
185
|
+
description:
|
|
186
|
+
'Help us setup your logo by confirming the background color. Choose from the available colors or click the plus icon to add another.',
|
|
191
187
|
colourData: this.logoData.logoImageDetails.backgroundColors,
|
|
192
188
|
colours: [],
|
|
193
189
|
},
|
|
@@ -206,12 +202,6 @@ export default {
|
|
|
206
202
|
this.activeStep.index === 2 && hexDiff(selectedTextColour.hex, selectedBackgroundColour.hex) !== 'Different'
|
|
207
203
|
);
|
|
208
204
|
},
|
|
209
|
-
stepCounter() {
|
|
210
|
-
return this.uploadYourLogoTr('stepOf', {
|
|
211
|
-
CURRENT: this.activeStep.number,
|
|
212
|
-
TOTAL: this.totalNumSteps,
|
|
213
|
-
});
|
|
214
|
-
},
|
|
215
205
|
},
|
|
216
206
|
mounted() {
|
|
217
207
|
const keys = Object.keys(this.steps);
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
<p class="tw-text-grayscale-600 tw-font-bold tw-text-xs tw-mb-2 tw-uppercase">
|
|
6
6
|
{{ progressLabel }}
|
|
7
7
|
</p>
|
|
8
|
-
<h2 class="tw-mb-4 tw-text-4xl tw-text-black tw-font-bold">
|
|
9
|
-
<p class="tw-mt-0">
|
|
8
|
+
<h2 class="tw-mb-4 tw-text-4xl tw-text-black tw-font-bold">Business Name</h2>
|
|
9
|
+
<p class="tw-mt-0">Enter your logo text or business name</p>
|
|
10
10
|
</div>
|
|
11
11
|
|
|
12
12
|
<div class="tw-pb-8 tw-px-8">
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
class="tw-fixed tw-rounded-b tw-bottom-0 tw-left-0 tw-z-10 tw-bg-grayscale-200 lg:tw-static tw-flex tw-w-full tw-items-center tw-justify-center tw-border-0 tw-border-t tw-border-black/10 tw-border-solid tw-py-4 tw-px-8 tw-box-border"
|
|
38
38
|
>
|
|
39
39
|
<Button
|
|
40
|
-
|
|
40
|
+
label="Back"
|
|
41
41
|
size="large"
|
|
42
42
|
variant="outline"
|
|
43
43
|
container-classes="tw-mx-2"
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
@on-click="back"
|
|
46
46
|
/>
|
|
47
47
|
<Button
|
|
48
|
-
|
|
48
|
+
label="Continue"
|
|
49
49
|
size="large"
|
|
50
50
|
variant="primary-with-icon"
|
|
51
51
|
icon="chevron-right-wide"
|
|
@@ -57,9 +57,8 @@
|
|
|
57
57
|
</div>
|
|
58
58
|
</template>
|
|
59
59
|
<script>
|
|
60
|
-
import Button from '
|
|
60
|
+
import Button from '../../../../src/atoms/components/Button/Button.vue';
|
|
61
61
|
import trackEvent from '../../helpers/tracking';
|
|
62
|
-
import { uploadYourLogoTr } from '../../../useSharedLibTranslate';
|
|
63
62
|
|
|
64
63
|
export default {
|
|
65
64
|
components: {
|
|
@@ -85,11 +84,6 @@ export default {
|
|
|
85
84
|
required: true,
|
|
86
85
|
},
|
|
87
86
|
},
|
|
88
|
-
setup() {
|
|
89
|
-
return {
|
|
90
|
-
uploadYourLogoTr,
|
|
91
|
-
};
|
|
92
|
-
},
|
|
93
87
|
data() {
|
|
94
88
|
return {
|
|
95
89
|
businessText: null,
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
<p class="tw-text-grayscale-600 tw-font-bold tw-text-xs tw-mb-2 tw-uppercase">
|
|
6
6
|
{{ progressLabel }}
|
|
7
7
|
</p>
|
|
8
|
-
<h2 class="tw-mb-4 tw-text-4xl tw-text-black tw-font-bold">
|
|
9
|
-
<p class="tw-mt-0">
|
|
8
|
+
<h2 class="tw-mb-4 tw-text-4xl tw-text-black tw-font-bold">Crop your logo</h2>
|
|
9
|
+
<p class="tw-mt-0">Crop your logo design to fit our logo maker canvas</p>
|
|
10
10
|
</div>
|
|
11
11
|
|
|
12
12
|
<div class="c-byo-cropper__container lg:tw-pb-8 tw-mx-auto" :class="{ 'tw-opacity-0': !cropperToolReady }">
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
class="tw-fixed tw-rounded-b tw-bottom-0 tw-left-0 tw-z-10 tw-bg-grayscale-200 lg:tw-static tw-flex tw-w-full tw-items-center tw-justify-center tw-border-0 tw-border-t tw-border-black/10 tw-border-solid tw-py-4 tw-px-8 tw-box-border"
|
|
28
28
|
>
|
|
29
29
|
<Button
|
|
30
|
-
|
|
30
|
+
label="Cancel"
|
|
31
31
|
size="large"
|
|
32
32
|
variant="outline"
|
|
33
33
|
container-classes="tw-mx-2"
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
@on-click="cancel"
|
|
36
36
|
/>
|
|
37
37
|
<Button
|
|
38
|
-
|
|
38
|
+
label="Continue"
|
|
39
39
|
size="large"
|
|
40
40
|
variant="primary-with-icon"
|
|
41
41
|
icon="chevron-right-wide"
|
|
@@ -51,7 +51,6 @@ import Button from '../../../../src/atoms/components/Button/Button.vue';
|
|
|
51
51
|
import VueCropper from 'vue-cropperjs';
|
|
52
52
|
|
|
53
53
|
import trackEvent from '../../helpers/tracking';
|
|
54
|
-
import { uploadYourLogoTr } from '../../../useSharedLibTranslate';
|
|
55
54
|
|
|
56
55
|
export default {
|
|
57
56
|
components: {
|
|
@@ -73,11 +72,6 @@ export default {
|
|
|
73
72
|
required: true,
|
|
74
73
|
},
|
|
75
74
|
},
|
|
76
|
-
setup() {
|
|
77
|
-
return {
|
|
78
|
-
uploadYourLogoTr,
|
|
79
|
-
};
|
|
80
|
-
},
|
|
81
75
|
data() {
|
|
82
76
|
return {
|
|
83
77
|
cropperToolReady: false,
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
<p class="tw-text-grayscale-600 tw-font-bold tw-text-xs tw-mb-2 tw-uppercase">
|
|
6
6
|
{{ progressLabel }}
|
|
7
7
|
</p>
|
|
8
|
-
<h2 class="tw-mb-4 tw-text-4xl tw-text-black tw-font-bold">
|
|
9
|
-
<p class="tw-mt-0">
|
|
8
|
+
<h2 class="tw-mb-4 tw-text-4xl tw-text-black tw-font-bold">Logo preview</h2>
|
|
9
|
+
<p class="tw-mt-0">Your logo looks great! Help us setup your logo by completing the next steps.</p>
|
|
10
10
|
</div>
|
|
11
11
|
|
|
12
12
|
<div class="lg:tw-pb-8 lg:tw-px-8">
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
class="tw-fixed tw-rounded-b tw-bottom-0 tw-left-0 tw-z-10 tw-bg-grayscale-200 lg:tw-static tw-flex tw-w-full tw-items-center tw-justify-center tw-border-0 tw-border-t tw-border-black/10 tw-border-solid tw-py-4 tw-px-8 tw-box-border"
|
|
25
25
|
>
|
|
26
26
|
<Button
|
|
27
|
-
|
|
27
|
+
label="Cancel"
|
|
28
28
|
size="large"
|
|
29
29
|
variant="outline"
|
|
30
30
|
container-classes="tw-mx-2"
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
@on-click="cancel"
|
|
33
33
|
/>
|
|
34
34
|
<Button
|
|
35
|
-
|
|
35
|
+
label="Continue"
|
|
36
36
|
size="large"
|
|
37
37
|
variant="primary-with-icon"
|
|
38
38
|
icon="chevron-right-wide"
|
|
@@ -44,9 +44,8 @@
|
|
|
44
44
|
</div>
|
|
45
45
|
</template>
|
|
46
46
|
<script>
|
|
47
|
-
import Button from '
|
|
47
|
+
import Button from '../../../../src/atoms/components/Button/Button.vue';
|
|
48
48
|
import trackEvent from '../../helpers/tracking';
|
|
49
|
-
import { uploadYourLogoTr } from '../../../useSharedLibTranslate';
|
|
50
49
|
|
|
51
50
|
export default {
|
|
52
51
|
components: {
|
|
@@ -67,11 +66,6 @@ export default {
|
|
|
67
66
|
required: true,
|
|
68
67
|
},
|
|
69
68
|
},
|
|
70
|
-
setup() {
|
|
71
|
-
return {
|
|
72
|
-
uploadYourLogoTr,
|
|
73
|
-
};
|
|
74
|
-
},
|
|
75
69
|
methods: {
|
|
76
70
|
cropImage() {
|
|
77
71
|
if (!this.$refs.preview.complete) return;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="tw-w-full">
|
|
3
3
|
<div class="tw-px-8 tw-pb-8">
|
|
4
|
-
<h2 class="tw-mb-8 tw-text-4xl tw-font-bold">
|
|
4
|
+
<h2 class="tw-mb-8 tw-text-4xl tw-font-bold">Upload Error</h2>
|
|
5
5
|
<p class="tw-mt-0 tw-text-grayscale-600 tw-text-base tw-text-center">
|
|
6
6
|
{{ errorMessage }}
|
|
7
7
|
</p>
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
class="tw-flex tw-w-full tw-items-center tw-justify-center tw-border-0 tw-border-t tw-border-black/10 tw-border-solid tw-py-4 tw-px-8"
|
|
12
12
|
>
|
|
13
13
|
<Button
|
|
14
|
-
|
|
14
|
+
label="Cancel"
|
|
15
15
|
size="large"
|
|
16
16
|
variant="outline"
|
|
17
17
|
container-classes="tw-mx-2"
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
/>
|
|
29
29
|
|
|
30
30
|
<Button
|
|
31
|
-
|
|
31
|
+
label="Upload your logo"
|
|
32
32
|
size="large"
|
|
33
33
|
variant="primary-with-icon"
|
|
34
34
|
icon="chevron-right-wide"
|
|
@@ -39,8 +39,7 @@
|
|
|
39
39
|
</div>
|
|
40
40
|
</template>
|
|
41
41
|
<script>
|
|
42
|
-
import Button from '
|
|
43
|
-
import { uploadYourLogoTr } from '../../../useSharedLibTranslate';
|
|
42
|
+
import Button from '../../../../src/atoms/components/Button/Button.vue';
|
|
44
43
|
|
|
45
44
|
export default {
|
|
46
45
|
components: {
|
|
@@ -53,11 +52,6 @@ export default {
|
|
|
53
52
|
default: null,
|
|
54
53
|
},
|
|
55
54
|
},
|
|
56
|
-
setup() {
|
|
57
|
-
return {
|
|
58
|
-
uploadYourLogoTr,
|
|
59
|
-
};
|
|
60
|
-
},
|
|
61
55
|
methods: {
|
|
62
56
|
cancel() {
|
|
63
57
|
this.$emit('on-cancel');
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="tw-w-full">
|
|
3
3
|
<div class="tw-px-8 tw-pb-8">
|
|
4
|
-
<h2 class="tw-mb-4 tw-text-4xl tw-text-black tw-font-bold">
|
|
4
|
+
<h2 class="tw-mb-4 tw-text-4xl tw-text-black tw-font-bold">Are you sure you want to exit?</h2>
|
|
5
5
|
<p class="tw-mt-0 tw-text-grayscale-600 tw-text-base tw-text-center">
|
|
6
|
-
|
|
6
|
+
Your logo upload progress in this session will be lost
|
|
7
7
|
</p>
|
|
8
8
|
</div>
|
|
9
9
|
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
class="tw-flex tw-w-full tw-items-center tw-justify-center tw-border-0 tw-border-t tw-border-black/10 tw-border-solid tw-py-4 tw-px-8"
|
|
12
12
|
>
|
|
13
13
|
<Button
|
|
14
|
-
|
|
14
|
+
label="No"
|
|
15
15
|
size="large"
|
|
16
16
|
variant="outline"
|
|
17
17
|
container-classes="tw-mx-2"
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
@on-click="goBack"
|
|
20
20
|
/>
|
|
21
21
|
<Button
|
|
22
|
-
|
|
22
|
+
label="Yes"
|
|
23
23
|
size="large"
|
|
24
24
|
variant="primary-with-icon"
|
|
25
25
|
icon="chevron-right-wide"
|
|
@@ -31,18 +31,12 @@
|
|
|
31
31
|
</div>
|
|
32
32
|
</template>
|
|
33
33
|
<script>
|
|
34
|
-
import Button from '
|
|
35
|
-
import { uploadYourLogoTr } from '../../../useSharedLibTranslate';
|
|
34
|
+
import Button from '../../../../src/atoms/components/Button/Button.vue';
|
|
36
35
|
|
|
37
36
|
export default {
|
|
38
37
|
components: {
|
|
39
38
|
Button,
|
|
40
39
|
},
|
|
41
|
-
setup() {
|
|
42
|
-
return {
|
|
43
|
-
uploadYourLogoTr,
|
|
44
|
-
};
|
|
45
|
-
},
|
|
46
40
|
methods: {
|
|
47
41
|
goBack() {
|
|
48
42
|
this.$emit('on-go-back');
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<LogoUploadingLoader
|
|
2
|
+
<LogoUploadingLoader loading-text="Uploading and converting your logo..." />
|
|
3
3
|
</template>
|
|
4
4
|
<script>
|
|
5
5
|
import brandCrowdClient from '../../clients/brand-crowd-api.client';
|
|
@@ -7,7 +7,6 @@ import LogoUploadingLoader from './LogoUploadingLoader.vue';
|
|
|
7
7
|
|
|
8
8
|
import trackEvent from '../../helpers/tracking';
|
|
9
9
|
import hexDiff from '../../helpers/hex-diff';
|
|
10
|
-
import { uploadYourLogoTr } from '../../../useSharedLibTranslate';
|
|
11
10
|
|
|
12
11
|
export default {
|
|
13
12
|
components: {
|
|
@@ -24,11 +23,6 @@ export default {
|
|
|
24
23
|
required: true,
|
|
25
24
|
},
|
|
26
25
|
},
|
|
27
|
-
setup() {
|
|
28
|
-
return {
|
|
29
|
-
uploadYourLogoTr,
|
|
30
|
-
};
|
|
31
|
-
},
|
|
32
26
|
data() {
|
|
33
27
|
return {
|
|
34
28
|
isRunning: false,
|
|
@@ -12,8 +12,8 @@
|
|
|
12
12
|
<p class="tw-text-grayscale-600 tw-font-bold tw-text-xs tw-mb-2 tw-uppercase">
|
|
13
13
|
{{ currentStepProgressLabel }}
|
|
14
14
|
</p>
|
|
15
|
-
<h2 class="tw-mb-4 tw-text-4xl tw-text-black tw-font-bold">
|
|
16
|
-
<p class="tw-mt-0 tw-pb-8">
|
|
15
|
+
<h2 class="tw-mb-4 tw-text-4xl tw-text-black tw-font-bold">Upload your logo</h2>
|
|
16
|
+
<p class="tw-mt-0 tw-pb-8">Please ensure you have the right to use any image you upload.</p>
|
|
17
17
|
<UploadYourLogoDropzone :is-modal="true" @on-upload-success="onLogoFileChange"> </UploadYourLogoDropzone>
|
|
18
18
|
</div>
|
|
19
19
|
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
@on-logo-file-change="onLogoFileChange"
|
|
71
71
|
/>
|
|
72
72
|
|
|
73
|
-
<LogoUploadingLoader v-if="isCurrentlySaving"
|
|
73
|
+
<LogoUploadingLoader v-if="isCurrentlySaving" loading-text="Generating Designs..." />
|
|
74
74
|
|
|
75
75
|
<LogoUploadExitConfirmation
|
|
76
76
|
v-if="isAttemptingToExit && currentStep > 1"
|
|
@@ -85,7 +85,6 @@
|
|
|
85
85
|
import brandCrowdClient from '../../clients/brand-crowd-api.client';
|
|
86
86
|
import Errors from '../../constants/error-constants';
|
|
87
87
|
import trackEvent from '../../helpers/tracking';
|
|
88
|
-
import { uploadYourLogoTr } from '../../../useSharedLibTranslate';
|
|
89
88
|
|
|
90
89
|
import LogoUploadModal from './LogoUploadModal.vue';
|
|
91
90
|
import UploadYourLogoDropzone from '../UploadYourLogoDropzone/UploadYourLogoDropzone.vue';
|
|
@@ -128,11 +127,6 @@ export default {
|
|
|
128
127
|
default: false,
|
|
129
128
|
},
|
|
130
129
|
},
|
|
131
|
-
setup() {
|
|
132
|
-
return {
|
|
133
|
-
uploadYourLogoTr,
|
|
134
|
-
};
|
|
135
|
-
},
|
|
136
130
|
data() {
|
|
137
131
|
return {
|
|
138
132
|
currentStep: this.useDropzone ? 0 : 1,
|
|
@@ -151,9 +145,9 @@ export default {
|
|
|
151
145
|
currentStepProgressLabel() {
|
|
152
146
|
if (this.includeDropzoneInModal) {
|
|
153
147
|
const currentStepDisplay = this.currentStep === 0 ? 1 : this.currentStep;
|
|
154
|
-
return
|
|
148
|
+
return `Step ${currentStepDisplay} of 5`;
|
|
155
149
|
}
|
|
156
|
-
return
|
|
150
|
+
return `Step ${this.currentStep - 1} of 4`;
|
|
157
151
|
},
|
|
158
152
|
hasError() {
|
|
159
153
|
return !!this.errorMessage;
|
|
@@ -181,7 +175,7 @@ export default {
|
|
|
181
175
|
handler() {
|
|
182
176
|
if (this.logoFile) {
|
|
183
177
|
this.errorMessage =
|
|
184
|
-
this.logoFile.file.size > Errors.MAX_BYO_FILE_SIZE ?
|
|
178
|
+
this.logoFile.file.size > Errors.MAX_BYO_FILE_SIZE ? Errors.MAX_BYO_FILE_SIZE_EXCEEDED_MSG : null;
|
|
185
179
|
}
|
|
186
180
|
},
|
|
187
181
|
},
|
|
@@ -197,7 +191,7 @@ export default {
|
|
|
197
191
|
if (typeof err.response?.data?.errorMessage === 'string' && err.response?.data?.errorMessage !== '') {
|
|
198
192
|
this.errorMessage = err.response.data.errorMessage;
|
|
199
193
|
} else {
|
|
200
|
-
this.errorMessage =
|
|
194
|
+
this.errorMessage = Errors.GENERIC_BYO_ERROR;
|
|
201
195
|
}
|
|
202
196
|
this.currentStep = null;
|
|
203
197
|
},
|
|
@@ -35,8 +35,6 @@ const tr = (key, valuesToInterpolate = {}) => {
|
|
|
35
35
|
return translated;
|
|
36
36
|
};
|
|
37
37
|
|
|
38
|
-
const uploadYourLogoTr = (key, valuesToInterpolate = {}) => tr(`uploadYourLogo.${key}`, valuesToInterpolate);
|
|
39
|
-
|
|
40
38
|
const publishBrandPageModalTr = (key, valuesToInterpolate = {}) =>
|
|
41
39
|
tr(`publishBrandPageModal.${key}`, valuesToInterpolate);
|
|
42
40
|
|
|
@@ -72,5 +70,5 @@ export {
|
|
|
72
70
|
sellDomainNameModalApplicationTr,
|
|
73
71
|
sellDomainNameListModalTr,
|
|
74
72
|
sellDomainNameListTr,
|
|
75
|
-
uploadYourLogoTr,
|
|
76
73
|
};
|
|
74
|
+
|