From ba3a9c2880e7f16898c75f55820a3ffcacd0267b Mon Sep 17 00:00:00 2001 From: Mukhtar SULAIMAN <84712917+MukhtarSulaiman@users.noreply.github.com> Date: Wed, 7 Jun 2023 13:01:27 +0200 Subject: [PATCH] Add the initial blogs page --- components/Header.vue | 14 ++++++++------ composables/onWatchRoute.ts | 11 +++++++++++ locales/ar.json | 21 +++++++++++---------- locales/en.json | 21 +++++++++++---------- locales/fr.json | 21 +++++++++++---------- pages/blogs/index.vue | 27 +++++++++++++++++++++++++++ pages/projects/[id].vue | 10 +++------- 7 files changed, 82 insertions(+), 43 deletions(-) create mode 100644 composables/onWatchRoute.ts create mode 100644 pages/blogs/index.vue diff --git a/components/Header.vue b/components/Header.vue index d516edc..2fa8281 100644 --- a/components/Header.vue +++ b/components/Header.vue @@ -6,7 +6,8 @@ const isHomePage = ref(true); watch(() => route.name, (newValue, oldValue) => { - if(newValue === 'projects-id' && oldValue !== 'projects-id') { + if(newValue === 'projects-id' && oldValue !== 'projects-id' || + newValue === 'blogs' && oldValue !== 'blogs') { isHomePage.value = false; } }, {immediate: true}); @@ -105,11 +106,12 @@