From b32b64f5afb1d9247d0523815ed2657aa4dcf5dc Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Fri, 13 Nov 2020 13:39:52 +0100 Subject: [PATCH] Rework onboarding Close #435 Signed-off-by: Thomas Citharel --- js/src/common.scss | 13 +++ .../components/Account/ProfileOnboarding.vue | 70 ++++++++++++ .../Settings/NotificationsOnboarding.vue | 37 +++--- .../Settings/SettingsOnboarding.vue | 107 +++++++++++++----- js/src/i18n/en_US.json | 19 ++-- js/src/i18n/fr_FR.json | 13 ++- js/src/mixins/onboarding.ts | 22 ++++ js/src/router/index.ts | 14 +++ js/src/router/name.ts | 1 + js/src/views/Account/Register.vue | 2 +- js/src/views/Event/Edit.vue | 2 +- js/src/views/Home.vue | 12 +- js/src/views/Settings/AccountSettings.vue | 14 --- js/src/views/User/SettingsOnboard.vue | 82 +++++++++++--- 14 files changed, 308 insertions(+), 100 deletions(-) create mode 100644 js/src/components/Account/ProfileOnboarding.vue create mode 100644 js/src/mixins/onboarding.ts diff --git a/js/src/common.scss b/js/src/common.scss index cf93afa73..2805f2cb8 100644 --- a/js/src/common.scss +++ b/js/src/common.scss @@ -126,3 +126,16 @@ a.list-item { background-color: $list-item-hover-background-color; cursor: pointer; } + +.setting-title { + margin-top: 2rem; + margin-bottom: 1rem; + + h2 { + display: inline; + background: $secondary; + padding: 2px 7.5px; + text-transform: uppercase; + font-size: 1.25rem; + } +} diff --git a/js/src/components/Account/ProfileOnboarding.vue b/js/src/components/Account/ProfileOnboarding.vue new file mode 100644 index 000000000..5f59e751d --- /dev/null +++ b/js/src/components/Account/ProfileOnboarding.vue @@ -0,0 +1,70 @@ + + + diff --git a/js/src/components/Settings/NotificationsOnboarding.vue b/js/src/components/Settings/NotificationsOnboarding.vue index f9052db29..065fd14a8 100644 --- a/js/src/components/Settings/NotificationsOnboarding.vue +++ b/js/src/components/Settings/NotificationsOnboarding.vue @@ -25,41 +25,30 @@

{{ $t("To activate more notifications, head over to the notification settings.") }}

-
- {{ $t("Manage my notifications") }} -