From 4951fa7d4c45876af8f1f089208a7eea2eba9b23 Mon Sep 17 00:00:00 2001 From: Suvodip Ghosh Date: Mon, 20 Feb 2023 18:34:58 +0530 Subject: [PATCH] themes --- src/components/OccasionAudioBook.vue | 193 +++++++++++++++ src/components/OccassionVideo.vue | 248 +++++++++++++++++++ src/components/ShareSideSticky.astro | 16 ++ src/components/SubmitCelebration.vue | 120 +++++++++ src/components/ThemesAudioBook.vue | 193 +++++++++++++++ src/components/ThemesVideos.vue | 248 +++++++++++++++++++ src/layouts/Layout.astro | 1 + src/pages/blog/[id].astro | 69 ++++-- src/pages/occasion/index.astro | 15 +- src/pages/themes/index.astro | 256 ++++++++++++++++++++ src/pages/{themes.astro => themesold.astro} | 0 11 files changed, 1332 insertions(+), 27 deletions(-) create mode 100644 src/components/OccasionAudioBook.vue create mode 100644 src/components/OccassionVideo.vue create mode 100644 src/components/ShareSideSticky.astro create mode 100644 src/components/SubmitCelebration.vue create mode 100644 src/components/ThemesAudioBook.vue create mode 100644 src/components/ThemesVideos.vue create mode 100644 src/pages/themes/index.astro rename src/pages/{themes.astro => themesold.astro} (100%) diff --git a/src/components/OccasionAudioBook.vue b/src/components/OccasionAudioBook.vue new file mode 100644 index 0000000..623acbe --- /dev/null +++ b/src/components/OccasionAudioBook.vue @@ -0,0 +1,193 @@ + + + + diff --git a/src/components/OccassionVideo.vue b/src/components/OccassionVideo.vue new file mode 100644 index 0000000..72a1656 --- /dev/null +++ b/src/components/OccassionVideo.vue @@ -0,0 +1,248 @@ + + + \ No newline at end of file diff --git a/src/components/ShareSideSticky.astro b/src/components/ShareSideSticky.astro new file mode 100644 index 0000000..37ec6a0 --- /dev/null +++ b/src/components/ShareSideSticky.astro @@ -0,0 +1,16 @@ +
+
+ + + + + + + + + + + + +
+
\ No newline at end of file diff --git a/src/components/SubmitCelebration.vue b/src/components/SubmitCelebration.vue new file mode 100644 index 0000000..8ea4163 --- /dev/null +++ b/src/components/SubmitCelebration.vue @@ -0,0 +1,120 @@ + + + \ No newline at end of file diff --git a/src/components/ThemesAudioBook.vue b/src/components/ThemesAudioBook.vue new file mode 100644 index 0000000..c48aaac --- /dev/null +++ b/src/components/ThemesAudioBook.vue @@ -0,0 +1,193 @@ + + + + diff --git a/src/components/ThemesVideos.vue b/src/components/ThemesVideos.vue new file mode 100644 index 0000000..8dc2163 --- /dev/null +++ b/src/components/ThemesVideos.vue @@ -0,0 +1,248 @@ + + + \ No newline at end of file diff --git a/src/layouts/Layout.astro b/src/layouts/Layout.astro index 7ac7ce9..9dfba69 100644 --- a/src/layouts/Layout.astro +++ b/src/layouts/Layout.astro @@ -22,6 +22,7 @@ const { title } = Astro.props; + diff --git a/src/pages/blog/[id].astro b/src/pages/blog/[id].astro index e55c53e..d92ee86 100644 --- a/src/pages/blog/[id].astro +++ b/src/pages/blog/[id].astro @@ -1,26 +1,33 @@ --- import Layout from "../../layouts/Layout.astro"; + import Menu from "../../components/Menu.astro"; + import ShareSideSticky from "../../components/ShareSideSticky.astro"; + import BlogGetinTouch from "../../components/BlogGetinTouch.vue"; export async function getStaticPaths() { const response = await fetch('https://management.beanstalkedu.com/items/blog?filter[property][_eq]=teenybeans_curriculum'); const data = await response.json(); -// console.log(finalData) const finalData = data.data.map((n: { slug: string | undefined; })=>{ return {params: {id:n.slug}} }) -// console.log(finalData) return finalData; } - const response = await fetch('https://management.beanstalkedu.com/items/blog?filter[property][_eq]=teenybeans_curriculum'); - const data = await response.json(); +const response = await fetch('https://management.beanstalkedu.com/items/blog?filter[property][_eq]=teenybeans_curriculum'); +const data = await response.json(); const { id } = Astro.params; -console.log("id") const idx = data.data.findIndex((n: { slug: string | undefined; }) => n.slug ===id); + +const faqresponse = await fetch('https://management.beanstalkedu.com/items/FAQ?filter[property][_eq]=teenybeans_curriculum&filter[slug][_eq]=blog'); +const faqdata = await faqresponse.json(); +const faq = faqdata.data; + +import Footer from "../../components/Footer.vue"; --- +
@@ -48,26 +55,11 @@ const idx = data.data.findIndex((n: { slug: string | undefined; }) => n.slug ===
-
- -
+
- +
@@ -88,6 +80,37 @@ const idx = data.data.findIndex((n: { slug: string | undefined; }) => n.slug ===
--> + + {faq.length >0 && +
+
+ +
+

Frequently Asked Questions

+ {faq.map((data: { title: string | undefined; }) => +
+ +
{data.title}
+
+
+
+ )} +
+
+ +
+
+
+ }
- \ No newline at end of file +