From abbf485a8381494d1dde2e282934dad1809d95af Mon Sep 17 00:00:00 2001 From: Steven Nguyen Date: Tue, 12 Dec 2023 13:30:19 -0800 Subject: [PATCH] Update SMS preview to look like a mobile device --- .../messaging/bubble-tail-dark.svg | 3 + .../messaging/bubble-tail-light.svg | 3 + .../messaging/sms-preview-dark.svg | 46 +++++++ .../messaging/sms-preview-light.svg | 41 ++++++ .../messaging/smsPhone.svelte | 118 +++++++++++++++++- .../messaging/wizard/smsFormList.svelte | 7 +- 6 files changed, 212 insertions(+), 6 deletions(-) create mode 100644 src/routes/console/project-[project]/messaging/bubble-tail-dark.svg create mode 100644 src/routes/console/project-[project]/messaging/bubble-tail-light.svg create mode 100644 src/routes/console/project-[project]/messaging/sms-preview-dark.svg create mode 100644 src/routes/console/project-[project]/messaging/sms-preview-light.svg diff --git a/src/routes/console/project-[project]/messaging/bubble-tail-dark.svg b/src/routes/console/project-[project]/messaging/bubble-tail-dark.svg new file mode 100644 index 0000000000..b5e7c0ba72 --- /dev/null +++ b/src/routes/console/project-[project]/messaging/bubble-tail-dark.svg @@ -0,0 +1,3 @@ + + + diff --git a/src/routes/console/project-[project]/messaging/bubble-tail-light.svg b/src/routes/console/project-[project]/messaging/bubble-tail-light.svg new file mode 100644 index 0000000000..9dcbbe34f4 --- /dev/null +++ b/src/routes/console/project-[project]/messaging/bubble-tail-light.svg @@ -0,0 +1,3 @@ + + + diff --git a/src/routes/console/project-[project]/messaging/sms-preview-dark.svg b/src/routes/console/project-[project]/messaging/sms-preview-dark.svg new file mode 100644 index 0000000000..cafc7a33bc --- /dev/null +++ b/src/routes/console/project-[project]/messaging/sms-preview-dark.svg @@ -0,0 +1,46 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/routes/console/project-[project]/messaging/sms-preview-light.svg b/src/routes/console/project-[project]/messaging/sms-preview-light.svg new file mode 100644 index 0000000000..9e9099038a --- /dev/null +++ b/src/routes/console/project-[project]/messaging/sms-preview-light.svg @@ -0,0 +1,41 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/routes/console/project-[project]/messaging/smsPhone.svelte b/src/routes/console/project-[project]/messaging/smsPhone.svelte index c7db28c112..dfa2f82615 100644 --- a/src/routes/console/project-[project]/messaging/smsPhone.svelte +++ b/src/routes/console/project-[project]/messaging/smsPhone.svelte @@ -1,14 +1,124 @@ - -
- {content} +
+
+ {getIntials($project.name)} +
+
{$project.name}
+
+
+ Today {getTime()} +
+
+
+ {content || 'Enter your message in the input field on the left to see it here'} +
+
+
diff --git a/src/routes/console/project-[project]/messaging/wizard/smsFormList.svelte b/src/routes/console/project-[project]/messaging/wizard/smsFormList.svelte index ec0af9a11f..ea1d45f263 100644 --- a/src/routes/console/project-[project]/messaging/wizard/smsFormList.svelte +++ b/src/routes/console/project-[project]/messaging/wizard/smsFormList.svelte @@ -61,7 +61,7 @@
- +
{/if} - + +
+
+