diff --git a/web/site/app/app.vue b/web/site/app/app.vue index 192a03b..b773097 100644 --- a/web/site/app/app.vue +++ b/web/site/app/app.vue @@ -1,5 +1,5 @@ + diff --git a/web/site/app/components/Sbc/Footer.vue b/web/site/app/components/Sbc/Footer.vue index 74a0030..3e73591 100644 --- a/web/site/app/components/Sbc/Footer.vue +++ b/web/site/app/components/Sbc/Footer.vue @@ -20,7 +20,7 @@ const links = [ target: '_blank' }, { - label: 'Hours of Availability', + label: 'SbcFooter.hours', to: 'https://www2.gov.bc.ca/gov/content?id=C41D8179671441B2BAA3BDDD3D89C9A9', target: '_blank' }, diff --git a/web/site/app/composables/sbcBreadcrumb.ts b/web/site/app/composables/sbcBreadcrumb.ts new file mode 100644 index 0000000..5be7e1d --- /dev/null +++ b/web/site/app/composables/sbcBreadcrumb.ts @@ -0,0 +1,25 @@ +import { computed } from 'vue' + +export function useBreadcrumbs () { + const { t } = useI18n() + const route = useRoute() + const localePath = useLocalePath() + + const breadcrumbs = computed(() => { + const bc = [ + { label: t('sbcBreadcrumb.default'), to: 'https://bcregistry.gov.bc.ca/' } + ] + bc.push({ label: t('sbcBreadcrumb.sbcHome'), to: '/' }) + // Check for /products + if (route.path.includes('/products') && !route.path.includes('/get-started')) { + bc.push({ label: t('sbcBreadcrumb.sbcProductslist'), to: localePath('/products') }) + } + // Check for /products/get-started and include sub-paths like /account-setup + if (route.path.includes('/products/get-started')) { + bc.push({ label: t('sbcBreadcrumb.sbcProducts'), to: localePath('/products/get-started') }) + } + + return bc + }) + return breadcrumbs +} diff --git a/web/site/app/locales/en-CA.ts b/web/site/app/locales/en-CA.ts index 75c307a..adc2bde 100644 --- a/web/site/app/locales/en-CA.ts +++ b/web/site/app/locales/en-CA.ts @@ -20,6 +20,14 @@ export default { openMainNav: 'Open Main Navigation Menu', closeMainNav: 'Close Main Navigation Menu' }, + sbcBreadcrumb: { + default: 'BC Registries and Digital Service', + backBtn: 'Go Back', + arialabel: 'Breadcrumb', + sbcHome: 'Service BC Connect', + sbcProductslist: 'Products List', + sbcProducts: 'Products' + }, page: { notFound: { h1: 'Page Not Found' diff --git a/web/site/app/pages/index.vue b/web/site/app/pages/index.vue index b0281fc..6817312 100644 --- a/web/site/app/pages/index.vue +++ b/web/site/app/pages/index.vue @@ -1,9 +1,19 @@