@@ -140,26 +140,46 @@ onMounted(async () => {
140
140
141
141
<template >
142
142
<div
143
- class =" m-auto 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"
144
144
>
145
+ <a
146
+ :href =" props.base ?? '/'"
147
+ class =" absolute -right-10 -top-10 flex h-8 w-8 items-center justify-center hover:bg-none"
148
+ >
149
+ <svg
150
+ xmlns =" http://www.w3.org/2000/svg"
151
+ class =" h-6 w-6"
152
+ fill =" none"
153
+ viewBox =" 0 0 24 24"
154
+ stroke =" white"
155
+ >
156
+ <path
157
+ stroke-linecap =" round"
158
+ stroke-linejoin =" round"
159
+ stroke-width =" 2"
160
+ d =" M6 18L18 6M6 6l12 12"
161
+ />
162
+ </svg >
163
+ </a >
164
+
145
165
<div
146
- 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"
147
167
>
148
168
<div
149
169
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"
150
170
></div >
151
171
<h3 class =" mb-1 text-white" >
152
172
<span
153
173
v-if =" name"
154
- class =" text-xl italic @xl/clb_result_modal:text-3xl"
174
+ class =" @xl/clb_result_modal:text-3xl text-xl italic "
155
175
>{{ name }}</span
156
176
>
157
177
</h3 >
158
178
<!-- image -->
159
179
<img
160
180
v-if =" imageSrc"
161
181
ref =" imageRef"
162
- 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"
163
183
/>
164
184
<!-- video -->
165
185
<VideoFetch
@@ -171,7 +191,7 @@ onMounted(async () => {
171
191
{{ i18n('PurchaseGreeting') }}
172
192
</span >
173
193
</div >
174
- <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" >
175
195
<!-- description -->
176
196
<aside
177
197
v-if =" description"
@@ -188,34 +208,34 @@ onMounted(async () => {
188
208
<slot name =" after:description" />
189
209
190
210
<div
191
- 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 "
192
212
>
193
213
<a
194
214
v-if =" cronFinished"
195
215
:href =" passportPageUrl"
196
- 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 "
197
217
>
198
218
{{ i18n('Passport') }}
199
219
</a >
200
220
<button
201
221
v-if =" !cronFinished"
202
222
@click =" onClickPassport"
203
223
:disabled =" clicked"
204
- 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"
205
225
>
206
226
{{ i18n('Passport') }}
207
227
<Spinner v-if =" clicked" />
208
228
</button >
209
229
<a
210
230
:href =" props.base ?? '/'"
211
- 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"
212
232
>
213
- {{ i18n('Home ') }}
233
+ {{ i18n('ContinueShopping ') }}
214
234
</a >
215
235
<button
216
236
v-if =" false /* HIDDEN FOR NOW */"
217
237
@click =" modalClose"
218
- 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"
219
239
>
220
240
{{ i18n('Close') }}
221
241
</button >
0 commit comments