Skip to content

Commit 806a519

Browse files
committed
fix: update exit intent popup title and dismiss text for clarity; adjust layout styles
1 parent f257dc9 commit 806a519

2 files changed

Lines changed: 15 additions & 10 deletions

File tree

src/assets/data/promotions.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -328,12 +328,12 @@ const promoData: Record<string, PromoData> = {
328328
link: "https://audio.com/",
329329
},
330330
popupOptions: {
331-
title: "Keep your audio safe in the cloud",
331+
title: "Leave before setting up cloud storage?",
332332
routeAllowlist: ["/download", "/post-download", "/cloud-saving"],
333333
displayMode: "modal",
334334
promoImageSrc: AUDIO_COM_EXIT_POPUP_IMAGE_SRC,
335335
promoImageAlt: "Audio.com promotion",
336-
dismissText: "Not now",
336+
dismissText: "Leave site",
337337
policy: {
338338
minDwellMs: 3000,
339339
},

src/components/banner/ExitIntentPopup.tsx

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -396,23 +396,28 @@ const ExitIntentPopup: React.FC<ExitIntentPopupProps> = ({ requestPath }) => {
396396
const body = popupBody ?? selectedPromo.message;
397397
const promoImageClassName =
398398
displayMode === "toast"
399-
? "mb-3 h-[5rem] w-full rounded-md object-cover object-center"
400-
: "mb-3 h-auto w-full rounded-md";
399+
? "h-[5rem] w-full rounded-md object-cover object-center"
400+
: "h-auto w-full rounded-md";
401401

402402
const content = (
403-
<div className="w-[calc(100%-2rem)] max-w-md rounded-lg border border-gray-300 bg-white p-4 shadow-lg">
403+
<div className="flex w-[calc(100%-2rem)] max-w-[30rem] flex-col gap-4 rounded-lg border border-gray-300 bg-white px-8 py-9 shadow-lg">
404404
{promoImageSrc && (
405405
<img
406406
src={promoImageSrc}
407407
alt={promoImageAlt ?? ""}
408408
className={promoImageClassName}
409409
/>
410410
)}
411-
<p id="exit-intent-title" className="text-lg font-semibold text-gray-900">
412-
{title}
413-
</p>
414-
<p className="mt-2 text-gray-700">{body}</p>
415-
<div className="mt-4 flex gap-2 justify-end">
411+
<div className="flex flex-col gap-2">
412+
<p
413+
id="exit-intent-title"
414+
className="text-lg font-semibold text-gray-900"
415+
>
416+
{title}
417+
</p>
418+
<p className="text-gray-700">{body}</p>
419+
</div>
420+
<div className="mt-5 flex justify-end gap-2">
416421
<button
417422
type="button"
418423
onClick={() => handleDismiss("button")}

0 commit comments

Comments
 (0)