From 0a991082f51b2a3e9d62456cbe7a34853dcd4d85 Mon Sep 17 00:00:00 2001 From: Julio Ruiz Date: Sun, 31 May 2026 23:01:45 -0500 Subject: [PATCH] Tour and optimizations Added driver js for virual tours. Added conidtional homepage rendering. Added localization for homepage and nav buttons Added dynamic tour button to main navigation. Separated changelog into a separate ts file. Separated tour to ts file. --- app/assets/css/main.css | 3 + app/components/searchPanel/SearchPanel.vue | 10 +- app/layouts/default.vue | 69 +++++++++-- app/pages/changelog.vue | 121 ------------------- app/pages/index.vue | 77 +++++++++++- app/utils/changelog.ts | 131 +++++++++++++++++++++ app/utils/guidedTour.ts | 106 +++++++++++++++++ nuxt.config.ts | 2 +- package-lock.json | 93 +++++---------- package.json | 1 + public/logo_round.svg | 20 ++++ 11 files changed, 430 insertions(+), 203 deletions(-) create mode 100644 app/utils/changelog.ts create mode 100644 app/utils/guidedTour.ts create mode 100644 public/logo_round.svg diff --git a/app/assets/css/main.css b/app/assets/css/main.css index 8c5769f..3f9c6a1 100755 --- a/app/assets/css/main.css +++ b/app/assets/css/main.css @@ -19,6 +19,9 @@ --color-carpablue: #2C4EA2; --color-carpagreen: #6B8E23; --color-carpared: #ff0000; + + --color-primary: #6B8E23; + --color-secondary: #2C4EA2; } /* Colors for Typesense rich text */ diff --git a/app/components/searchPanel/SearchPanel.vue b/app/components/searchPanel/SearchPanel.vue index 86b7c7c..2428379 100644 --- a/app/components/searchPanel/SearchPanel.vue +++ b/app/components/searchPanel/SearchPanel.vue @@ -565,14 +565,18 @@ function metaLocation(meta: DocMeta | undefined): string { > -
+
{ - return [ + const links = [ { + id: 'bible-studies', label: t('nav.bible_studies'), - icon: 'ph:books', + icon: 'ph-books', to: '/estudios-biblicos', - onSelect: () => { open.value = false } + onSelect: () => { open.value = false }, }, { + id: 'conferences', label: t('nav.conferences'), - icon: 'ph:books', + icon: 'ph-books', to: '/conferencias', onSelect: () => { open.value = false } }, { + id: 'betweenthelines', label: t('nav.between_the_lines'), - icon: 'ph:list-magnifying-glass', + icon: 'ph-list-magnifying-glass', to: '/entrelineas', onSelect: () => { open.value = false } }, { + id: 'favorites', label: t('nav.my_list'), icon: 'i-lucide-bookmark', to: '/favoritos', @@ -47,6 +53,7 @@ const links = computed(() => { onSelect: () => { open.value = false } }, { + id: 'history', label: t('nav.history'), icon: 'i-lucide-history', to: '/historial', @@ -54,24 +61,47 @@ const links = computed(() => { onSelect: () => { open.value = false } }, { + id: 'changelog', label: t('nav.changelog'), icon: 'i-lucide-megaphone', to: '/changelog', onSelect: () => { open.value = false } }, { + id: 'settings', label: t('nav.settings'), icon: 'i-lucide-settings', to: '/configuracion', onSelect: () => { open.value = false } }, { + id: 'feedback', label: t('feedback.title'), icon: 'i-lucide-bug', to: '/feedback', onSelect: () => { open.value = false } + }, + { + id: 'wizard', + class: 'hidden sm:flex mt-4 border-t-2 border-gray-300 pt-4', + label: t('nav.tour'), + icon: 'ph-student', + onSelect: () => start( tourConfig ), + chip: { + color: 'error' + } } + ] satisfies NavigationMenuItem[] + + const homeLink = { + id: 'home', + label: t('nav.tour'), + icon: 'ph-house', + to: '/' + } + + return [ homeLink,...links] }) @@ -90,6 +120,7 @@ const links = computed(() => {
Buscador - La Gran Carpa Catedral
+ Buscador - La Gran Carpa Catedral diff --git a/app/pages/changelog.vue b/app/pages/changelog.vue index 871bdca..f29a19d 100644 --- a/app/pages/changelog.vue +++ b/app/pages/changelog.vue @@ -1,127 +1,6 @@