Skip to content

Commit e7eaad6

Browse files
committed
add: shadow and mobile config.
1 parent 9de0afb commit e7eaad6

2 files changed

Lines changed: 16 additions & 3 deletions

File tree

src/lib/components/bottomModalAlert.svelte

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -490,6 +490,9 @@
490490
<style>
491491
.card {
492492
padding: 0.5rem;
493+
box-shadow:
494+
0 8px 16px 0 rgba(0, 0, 0, 0.02),
495+
0 20px 24px 0 rgba(0, 0, 0, 0.02);
493496
}
494497
495498
.main-alert-wrapper {

src/routes/(console)/bottomAlerts.ts

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
import { isCloud } from '$lib/system';
22
import { isSameDay } from '$lib/helpers/date';
33
import Imagine from '$lib/components/promos/imagine.svelte';
4-
import { type BottomModalAlertItem, showBottomModalAlert } from '$lib/stores/bottom-alerts';
4+
import {
5+
type BottomModalAlertItem,
6+
setMobileSingleAlertLayout,
7+
showBottomModalAlert
8+
} from '$lib/stores/bottom-alerts';
59

610
const listOfPromotions: BottomModalAlertItem[] = [];
711

@@ -32,15 +36,21 @@ if (isCloud) {
3236
external: true,
3337
hideOnClick: true
3438
},
35-
show: true,
36-
sameContentOnMobileLayout: true
39+
show: true
3740
};
3841

3942
listOfPromotions.push(imaginePromo);
4043
}
4144

4245
export function addBottomModalAlerts() {
4346
listOfPromotions.forEach((promotion) => showBottomModalAlert(promotion));
47+
48+
// only for imagine!
49+
if (listOfPromotions.length > 0) {
50+
const imaginePromo = listOfPromotions[0];
51+
const { cta, title, message } = imaginePromo;
52+
setMobileSingleAlertLayout({ enabled: true, cta, title, message });
53+
}
4454
}
4555

4656
// use this for time based promo handling

0 commit comments

Comments
 (0)