Skip to content

Commit 3f7f752

Browse files
committed
Add "Continue Shopping" translation and refine UI elements
Added a new translation key "Continue Shopping" to the i18n files. Updated the Checkout modal with a navigational link and adjusted styling for better positioning. Simplified the Modal component markup for maintainability.
1 parent 2c4d574 commit 3f7f752

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

src/ui/components/Checkout/ModalCheckout.vue

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -140,11 +140,11 @@ onMounted(async () => {
140140

141141
<template>
142142
<div
143-
class="relative w-full max-w-screen-lg rounded-xl bg-white p-4 text-black shadow @container/clb_result_modal"
143+
class="@container/clb_result_modal relative w-full max-w-screen-lg rounded-xl bg-white p-4 text-black shadow"
144144
>
145145
<a
146146
:href="props.base ?? '/'"
147-
class="absolute -top-10 -right-10 w-8 h-8 flex items-center justify-center hover:bg-none"
147+
class="absolute -right-10 -top-10 flex h-8 w-8 items-center justify-center hover:bg-none"
148148
>
149149
<svg
150150
xmlns="http://www.w3.org/2000/svg"
@@ -163,23 +163,23 @@ onMounted(async () => {
163163
</a>
164164

165165
<div
166-
class="bg-color-navy relative mb-6 flex h-auto min-h-52 w-full flex-col items-center justify-center overflow-hidden rounded-md border border-black p-2 @xl/clb_result_modal:h-96 @xl/clb_result_modal:min-h-0 @xl/clb_result_modal:p-8"
166+
class="bg-color-navy @xl/clb_result_modal:h-96 @xl/clb_result_modal:min-h-0 @xl/clb_result_modal:p-8 relative mb-6 flex h-auto min-h-52 w-full flex-col items-center justify-center overflow-hidden rounded-md border border-black p-2"
167167
>
168168
<div
169169
class="w-h-screen bg-focus-lines origin-zero animate-spin-slow mask absolute inset-2/4 -translate-x-1/2 -translate-y-1/2 bg-center bg-no-repeat"
170170
></div>
171171
<h3 class="mb-1 text-white">
172172
<span
173173
v-if="name"
174-
class="text-xl italic @xl/clb_result_modal:text-3xl"
174+
class="@xl/clb_result_modal:text-3xl text-xl italic"
175175
>{{ name }}</span
176176
>
177177
</h3>
178178
<!-- image -->
179179
<img
180180
v-if="imageSrc"
181181
ref="imageRef"
182-
class="z-10 max-h-60 min-h-full max-w-60 object-contain @xl/clb_result_modal:max-h-none @xl/clb_result_modal:max-w-xl"
182+
class="@xl/clb_result_modal:max-h-none @xl/clb_result_modal:max-w-xl z-10 max-h-60 min-h-full max-w-60 object-contain"
183183
/>
184184
<!-- video -->
185185
<VideoFetch
@@ -191,7 +191,7 @@ onMounted(async () => {
191191
{{ i18n('PurchaseGreeting') }}
192192
</span>
193193
</div>
194-
<div class="flex flex-col gap-6 px-0 @4xl/clb_result_modal:px-52">
194+
<div class="@4xl/clb_result_modal:px-52 flex flex-col gap-6 px-0">
195195
<!-- description -->
196196
<aside
197197
v-if="description"
@@ -208,34 +208,34 @@ onMounted(async () => {
208208
<slot name="after:description" />
209209

210210
<div
211-
class="flex w-full flex-col gap-4 @4xl/clb_result_modal:flex-row @4xl/clb_result_modal:justify-between @4xl/clb_result_modal:gap-0"
211+
class="@4xl/clb_result_modal:flex-row @4xl/clb_result_modal:justify-between @4xl/clb_result_modal:gap-0 flex w-full flex-col gap-4"
212212
>
213213
<a
214214
v-if="cronFinished"
215215
:href="passportPageUrl"
216-
class="hs-button is-filled rounded-lg border px-0 py-4 text-base @4xl/clb_result_modal:px-12 @4xl/clb_result_modal:py-6"
216+
class="hs-button is-filled @4xl/clb_result_modal:px-12 @4xl/clb_result_modal:py-6 rounded-lg border px-0 py-4 text-base"
217217
>
218218
{{ i18n('Passport') }}
219219
</a>
220220
<button
221221
v-if="!cronFinished"
222222
@click="onClickPassport"
223223
:disabled="clicked"
224-
class="hs-button is-filled items-center justify-center gap-2 rounded-lg border px-0 py-4 text-base disabled:animate-pulse disabled:bg-blue-600 @4xl/clb_result_modal:px-12 @4xl/clb_result_modal:py-6"
224+
class="hs-button is-filled @4xl/clb_result_modal:px-12 @4xl/clb_result_modal:py-6 items-center justify-center gap-2 rounded-lg border px-0 py-4 text-base disabled:animate-pulse disabled:bg-blue-600"
225225
>
226226
{{ i18n('Passport') }}
227227
<Spinner v-if="clicked" />
228228
</button>
229229
<a
230230
:href="props.base ?? '/'"
231-
class="hs-button is-filled rounded-lg border px-12 py-4 text-base @4xl/clb_result_modal:py-6"
231+
class="hs-button is-filled @4xl/clb_result_modal:py-6 rounded-lg border px-12 py-4 text-base"
232232
>
233233
{{ i18n('ContinueShopping') }}
234234
</a>
235235
<button
236236
v-if="false /* HIDDEN FOR NOW */"
237237
@click="modalClose"
238-
class="hs-button is-filled rounded-lg border px-12 py-4 text-base @4xl/clb_result_modal:py-6"
238+
class="hs-button is-filled @4xl/clb_result_modal:py-6 rounded-lg border px-12 py-4 text-base"
239239
>
240240
{{ i18n('Close') }}
241241
</button>

src/ui/components/Checkout/i18n/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,5 +82,5 @@ export const Strings = {
8282
ContinueShopping: {
8383
en: 'Continue Shopping',
8484
ja: 'Continue Shopping',
85-
}
85+
},
8686
} satisfies ClubsI18nParts

0 commit comments

Comments
 (0)