From 26db45d3dc37d09d49a7270fbcd32a148a226b2a Mon Sep 17 00:00:00 2001 From: Steven Nguyen Date: Wed, 6 Dec 2023 16:21:14 +0100 Subject: [PATCH] Update push preview to look like a mobile device --- .../message-[message]/pushPreview.svelte | 4 +- .../push-notification-preview-dark.svg | 36 ++++++++++ .../push-notification-preview-light.svg | 35 ++++++++++ .../messaging/pushPhone.svelte | 67 +++++++++++++++++-- .../messaging/wizard/pushFormList.svelte | 11 ++- 5 files changed, 145 insertions(+), 8 deletions(-) create mode 100644 src/routes/console/project-[project]/messaging/push-notification-preview-dark.svg create mode 100644 src/routes/console/project-[project]/messaging/push-notification-preview-light.svg diff --git a/src/routes/console/project-[project]/messaging/message-[message]/pushPreview.svelte b/src/routes/console/project-[project]/messaging/message-[message]/pushPreview.svelte index e632394d5..b5695ed3f 100644 --- a/src/routes/console/project-[project]/messaging/message-[message]/pushPreview.svelte +++ b/src/routes/console/project-[project]/messaging/message-[message]/pushPreview.svelte @@ -8,7 +8,9 @@
Preview - +
+ +
diff --git a/src/routes/console/project-[project]/messaging/push-notification-preview-dark.svg b/src/routes/console/project-[project]/messaging/push-notification-preview-dark.svg new file mode 100644 index 000000000..777dec267 --- /dev/null +++ b/src/routes/console/project-[project]/messaging/push-notification-preview-dark.svg @@ -0,0 +1,36 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/routes/console/project-[project]/messaging/push-notification-preview-light.svg b/src/routes/console/project-[project]/messaging/push-notification-preview-light.svg new file mode 100644 index 000000000..7fd66545d --- /dev/null +++ b/src/routes/console/project-[project]/messaging/push-notification-preview-light.svg @@ -0,0 +1,35 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/routes/console/project-[project]/messaging/pushPhone.svelte b/src/routes/console/project-[project]/messaging/pushPhone.svelte index 2acfc19f8..a6fb893f7 100644 --- a/src/routes/console/project-[project]/messaging/pushPhone.svelte +++ b/src/routes/console/project-[project]/messaging/pushPhone.svelte @@ -1,16 +1,73 @@ - -
-

{title}

-

{body}

+
+
+
+
+ {$project.name} +
+
now
+
+
+

{title || 'Message Title'}

+

+ {body || 'Enter your message in the input field on the left to see it here'} +

+
+
diff --git a/src/routes/console/project-[project]/messaging/wizard/pushFormList.svelte b/src/routes/console/project-[project]/messaging/wizard/pushFormList.svelte index 49ec8bfca..9329272b4 100644 --- a/src/routes/console/project-[project]/messaging/wizard/pushFormList.svelte +++ b/src/routes/console/project-[project]/messaging/wizard/pushFormList.svelte @@ -97,7 +97,7 @@
- + + body={$messageParams[$providerType]['body']} + classes="is-only-desktop" /> +
+
+