diff --git a/app/components/VideoCustomerStory.vue b/app/components/VideoCustomerStory.vue new file mode 100644 index 0000000..b5d0883 --- /dev/null +++ b/app/components/VideoCustomerStory.vue @@ -0,0 +1,131 @@ + + + + + \ No newline at end of file diff --git a/app/components/VideoTestimonial.vue b/app/components/VideoTestimonial.vue new file mode 100644 index 0000000..f037270 --- /dev/null +++ b/app/components/VideoTestimonial.vue @@ -0,0 +1,131 @@ + + + + + \ No newline at end of file diff --git a/app/composables/useVideoCustomerStory.js b/app/composables/useVideoCustomerStory.js new file mode 100644 index 0000000..5bd5855 --- /dev/null +++ b/app/composables/useVideoCustomerStory.js @@ -0,0 +1,14 @@ +export function useVideoCustomerStory(slug, locale) { + async function queryVideoCustomerStory() { + let res = await queryCollection('jsonPages') + .where('lang', '=', locale.value) + .where('pageType', '=', 'video_testimonials') + .all() + + res = res.filter(t => t.stem.split('/')[2] == slug.value) + + return res[0] + } + + return { queryVideoCustomerStory } +} diff --git a/app/composables/useVideoTestimonial.js b/app/composables/useVideoTestimonial.js new file mode 100644 index 0000000..68dd853 --- /dev/null +++ b/app/composables/useVideoTestimonial.js @@ -0,0 +1,14 @@ +export function useVideoTestimonial(slug, locale) { + async function queryVideoTestimonial() { + let res = await queryCollection('jsonPages') + .where('lang', '=', locale.value) + .where('pageType', '=', 'video_testimonials') + .all() + + res = res.filter(t => t.stem.split('/')[2] == slug.value) + + return res[0] + } + + return { queryVideoTestimonial } +} diff --git a/app/pages/index.vue b/app/pages/index.vue index 22f91dd..54e468b 100644 --- a/app/pages/index.vue +++ b/app/pages/index.vue @@ -32,6 +32,8 @@ + +