master
parent
4951fa7d4c
commit
df0430b506
|
@ -10,7 +10,7 @@
|
||||||
<a href="/educators">Educators</a>
|
<a href="/educators">Educators</a>
|
||||||
<a href="/administrators">Administrators</a>
|
<a href="/administrators">Administrators</a>
|
||||||
<div class="dropdownDesktop">
|
<div class="dropdownDesktop">
|
||||||
<button class="dropbtnDesktop">Recources ▼
|
<button class="dropbtnDesktop">Recources <span class="text-md">∇</span>
|
||||||
<i class="fa fa-caret-downDesktop"></i>
|
<i class="fa fa-caret-downDesktop"></i>
|
||||||
</button>
|
</button>
|
||||||
<div class="dropdown-contentDesktop">
|
<div class="dropdown-contentDesktop">
|
||||||
|
@ -36,7 +36,7 @@
|
||||||
<a class="hover:bg-gray-200" href="/educators">Educators</a>
|
<a class="hover:bg-gray-200" href="/educators">Educators</a>
|
||||||
<a class="hover:bg-gray-200" href="/administrators">Administrators</a>
|
<a class="hover:bg-gray-200" href="/administrators">Administrators</a>
|
||||||
<div class="dropdown">
|
<div class="dropdown">
|
||||||
<button class="dropbtn">Recources ▼</button>
|
<button class="dropbtn">Recources <span class="text-xs">∇</span></button>
|
||||||
<div class="dropdown-content">
|
<div class="dropdown-content">
|
||||||
<a href="/worksheets" style="color: white;">Worksheets</a>
|
<a href="/worksheets" style="color: white;">Worksheets</a>
|
||||||
<a href="/videos" style="color: white;">Videos</a>
|
<a href="/videos" style="color: white;">Videos</a>
|
||||||
|
|
|
@ -1,25 +1,27 @@
|
||||||
<template>
|
<template>
|
||||||
<!-- Submit your Celebration Story here -->
|
<!-- Submit your Celebration Story here -->
|
||||||
<section class="container mx-auto px-4 xl:px-24">
|
<section class="container mx-auto px-4 xl:px-24 pt-16">
|
||||||
<h1 id="submitCelebration" class="h1-text text-blue-700 font-semibold">Submit your Celebration Story here</h1>
|
<h1 id="submitCelebration" class="h1-text text-blue-700 font-semibold">Submit your Celebration Story here</h1>
|
||||||
|
|
||||||
<div class=" bg-gray-300 rounded-tl-3xl rounded-br-3xl mt-4">
|
<div class=" bg-gray-300 rounded-tl-3xl rounded-br-3xl mt-4">
|
||||||
<div class="grid grid-cols-1 md:grid-cols-1 lg:grid-cols-2 place-items-center " v-if="celebrationstory">
|
<div class="grid grid-cols-1 md:grid-cols-1 lg:grid-cols-2 place-items-center " v-if="celebrationstory">
|
||||||
<div class="grid place-items-center py-20 rounded-tl-3xl rounded-br-3xl">
|
<div class="grid place-items-center py-16 rounded-tl-3xl rounded-br-3xl">
|
||||||
<div class="grid">
|
<div class="grid">
|
||||||
<div class=" w-full max-w-xs gap-4 drop-shadow-2xl">
|
<div class="w-full max-w-xs gap-4 drop-shadow-2xl">
|
||||||
<input v-model="scsname" type="text" placeholder="Your Name" class="input input-bordered w-full max-w-xs p-8"/>
|
<div>
|
||||||
<input v-model="scsnumber" type="text" placeholder="Your Phone Number" class="input input-bordered w-full max-w-xs" />
|
<input type="text" v-model="scsname" placeholder="Full Name..">
|
||||||
<input v-model="scsemail" type="text" placeholder="Your E-mail ID" class="input input-bordered w-full max-w-xs" />
|
<input type="text" v-model="scsnumber" placeholder="Mobile Number">
|
||||||
<input v-model="scsschoolname" type="text" placeholder="Your School Name" class="input input-bordered w-full max-w-xs" />
|
<input type="text" v-model="scsemail" name="lastname" placeholder="Email ID">
|
||||||
<input v-model="scsglink" type="text" placeholder="Place your Google Drive File Link" class="input input-bordered w-full max-w-xs" />
|
<input type="text" v-model="scsschoolname" placeholder="School Name">
|
||||||
|
<input type="text" v-model="scsglink" placeholder="Place your Google Drive File Link">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="grid place-items-end">
|
</div>
|
||||||
<div class="flex place-content-end">
|
<div class="grid place-items-center px-4 ">
|
||||||
<h1 class="justify-center pt-2 text-xl font-semibold py-8"> Occassion: </h1>
|
<div class="flex place-content-end ">
|
||||||
<select class="select max-w-xs border-2 border-gray-400 text-lg" v-model="scsOccetion">
|
<h1 class="justify-center pt-4 text-xl font-semibold "> Occassion: </h1>
|
||||||
|
<select class="select max-w-xs text-base" v-model="scsOccetion">
|
||||||
<option disabled value="">Select your Occassion</option>
|
<option disabled value="">Select your Occassion</option>
|
||||||
<option>Good Friday</option>
|
<option>Good Friday</option>
|
||||||
<option>Easter</option>
|
<option>Easter</option>
|
||||||
|
@ -28,11 +30,12 @@
|
||||||
<option>Good Friday</option>
|
<option>Good Friday</option>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-control">
|
<div class="form-control w-full">
|
||||||
<textarea v-model="scsdescription" class="textarea textarea-bordered h-48 w-96 text-lg shadow-2xl" placeholder="Write the description here....."></textarea>
|
<textarea class="w-full rounded-lg" v-model="scsdescription" rows="8" cols="50" placeholder="Write the description here....."></textarea>
|
||||||
|
<!-- <textarea v-model="scsdescription" class="textarea textarea-bordered text-lg shadow-2xl" style="width:300px; height: 270px;" placeholder="Write the description here....."></textarea> -->
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="py-8"><button @click="savecelebrationstory" class="text-lg bg-blue-700 text-white p-2 px-3 rounded-tl-lg rounded-br-lg">Publish Story</button></div>
|
<div class="py-4 lg:pt-0"><button @click="savecelebrationstory" class="text-lg bg-blue-700 text-white p-2 px-3 rounded-tl-lg rounded-br-lg">Publish Story</button></div>
|
||||||
</div>
|
</div>
|
||||||
<div v-else="savecelebrationstory"><h2 class="text-2xl text-center py-48"> Thank You <br>Published your Story Shortly.......</h2></div>
|
<div v-else="savecelebrationstory"><h2 class="text-2xl text-center py-48"> Thank You <br>Published your Story Shortly.......</h2></div>
|
||||||
|
|
||||||
|
@ -45,6 +48,16 @@
|
||||||
</section>
|
</section>
|
||||||
</template>
|
</template>
|
||||||
<style scoped>
|
<style scoped>
|
||||||
|
input[type=text], select {
|
||||||
|
width: 100%;
|
||||||
|
padding: 12px 20px;
|
||||||
|
margin: 8px 0;
|
||||||
|
display: inline-block;
|
||||||
|
border: 1px solid #ccc;
|
||||||
|
border-radius: 4px;
|
||||||
|
/* box-sizing: border-box; */
|
||||||
|
}
|
||||||
|
|
||||||
.text-color-1 {
|
.text-color-1 {
|
||||||
color: #7c4c23
|
color: #7c4c23
|
||||||
}
|
}
|
||||||
|
|
|
@ -107,6 +107,30 @@ import Footer from "../../components/Footer.vue";
|
||||||
<Footer client:visible/>
|
<Footer client:visible/>
|
||||||
</Layout>
|
</Layout>
|
||||||
<style scoped>
|
<style scoped>
|
||||||
|
details {
|
||||||
|
font-weight: lighter;
|
||||||
|
border-bottom: 1px solid #d4d4d4;
|
||||||
|
border-color: #d4d4d4;
|
||||||
|
padding: .75em .75em 0;
|
||||||
|
font-size: 18px;
|
||||||
|
/* margin-top: 10px; */
|
||||||
|
/* box-shadow:0 0 8px #d4d4d4; */
|
||||||
|
}
|
||||||
|
|
||||||
|
summary {
|
||||||
|
margin: -.75em -.75em 0;
|
||||||
|
padding: .80em;
|
||||||
|
}
|
||||||
|
|
||||||
|
details[open] {
|
||||||
|
padding: .75em;
|
||||||
|
border-bottom: 1px solid #d4d4d4;
|
||||||
|
}
|
||||||
|
|
||||||
|
details[open] summary {
|
||||||
|
border-bottom: 1px solid #d4d4d4;
|
||||||
|
margin-bottom: 10px;
|
||||||
|
}
|
||||||
.text-color-1 {
|
.text-color-1 {
|
||||||
color: #7C4C23;
|
color: #7C4C23;
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,328 @@
|
||||||
|
---
|
||||||
|
import Layout from "../../layouts/Layout.astro";
|
||||||
|
import Menu from "../../components/Menu.astro";
|
||||||
|
|
||||||
|
const response = await fetch('https://curriculum-app-api.beanstalkedu.com/items/occassion?filter[status][_eq]=published');
|
||||||
|
const data = await response.json();
|
||||||
|
const occassion = data.data;
|
||||||
|
|
||||||
|
const thisOccasionID = data.data[0].id;
|
||||||
|
|
||||||
|
const blogResp = await fetch('https://curriculum-app-api.beanstalkedu.com/items/blog?filter[category][_eq]=occassions&filter[property][_eq]=teenybeans_curriculum');
|
||||||
|
const blogRespJson = await blogResp.json();
|
||||||
|
const blogRespData = blogRespJson.data.reverse().slice(0, 3);
|
||||||
|
|
||||||
|
const csResp = await fetch('https://curriculum-app-api.beanstalkedu.com/items/occassion_celebration_stories?filter[occassion_key][_in]=' + thisOccasionID);
|
||||||
|
const csRespJson = await csResp.json();
|
||||||
|
const csRespData = csRespJson.data.reverse().slice(0, 4);
|
||||||
|
|
||||||
|
const wkstResp = await fetch('https://curriculum-app-api.beanstalkedu.com/items/occassion_worksheets?filter[occassion_key][_in]=' + thisOccasionID);
|
||||||
|
const wkstRespJson = await wkstResp.json();
|
||||||
|
const wkstRespData = wkstRespJson.data.reverse().slice(0, 3);
|
||||||
|
const wkstRespData2 = wkstRespJson.data[3];
|
||||||
|
|
||||||
|
import OccassionVideo from "../../components/OccassionVideo.vue";
|
||||||
|
import OccasionAudioBook from "../../components/OccasionAudioBook.vue";
|
||||||
|
|
||||||
|
const ytResp = await fetch('https://curriculum-app-api.beanstalkedu.com/items/occassion_youtube_videos?filter[occassion_key][_in]=' + thisOccasionID);
|
||||||
|
const ytRespJson = await ytResp.json();
|
||||||
|
const ytRespData = ytRespJson.data;
|
||||||
|
|
||||||
|
const faqResp = await fetch('https://curriculum-app-api.beanstalkedu.com/items/FAQ?filter[slug][_eq]=occassion');
|
||||||
|
const faqRespJson = await faqResp.json();
|
||||||
|
const faqRespData = faqRespJson.data;
|
||||||
|
|
||||||
|
import SubmitCelebration from "../../components/SubmitCelebration.vue";
|
||||||
|
import Footer from "../../components/Footer.vue";
|
||||||
|
---
|
||||||
|
<Layout title="TeenyBeans Occassion">
|
||||||
|
<Menu/>
|
||||||
|
<main>
|
||||||
|
<!-- hero section -->
|
||||||
|
<section class="bg-gradient-to-t bg3 shadow-2xl container-fluid">
|
||||||
|
<div class="flex flex-col xl:flex-row container mx-auto px-3 xl:px-24">
|
||||||
|
<div class="flex flex-col w-full justify-center">
|
||||||
|
<div >
|
||||||
|
<h1 class="text-blue-700 hero-text font-bold">Occasion Based Resources <br> <span class="text-color-1" >{occassion[0].occasson_title}</span></h1>
|
||||||
|
<div class="flex h2-text text-color-1 font-semibold pt-8">{occassion[0].occassion_text }</div>
|
||||||
|
<div class="flex text-justify font-20px text-color-2 pt-4">{occassion[0].occassion_details }</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="flex w-fit justify-center place-items-center">
|
||||||
|
<img class="w-fit h-fit" src={'https://curriculum-app-api.beanstalkedu.com/assets/'+data.data[0].occassion} alt={occassion[0].occassion_text }>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section> <!-- hero section Ends -->
|
||||||
|
<section class="container mx-auto px-2 xl:px-24 pt-24">
|
||||||
|
<h1 class=" text-blue-700 h1-text px-4 font-semibold">Check Out Our Occasion Blog</h1>
|
||||||
|
<p class="text-justify text-xl lg:text-3xl pt-2 text-color-2 px-4">Find relevant helpful articles for marketing preschool solutions below and get to know more about the same. </p>
|
||||||
|
<div class="grid grid-cols-1 md:grid-cols-2 xl:grid-cols-3 gap-8 mt-10 place-items-center">
|
||||||
|
{blogRespData.map((data) =>
|
||||||
|
<div class="grid w-fit" >
|
||||||
|
|
||||||
|
<img class="w-full rounded-tl-3xl rounded-br-3xl px-4" v-if="occassionblog.img" src={'https://curriculum-app-api.beanstalkedu.com/assets/'+data.img+'?width=420&height=280'} alt="" >
|
||||||
|
<div class="flex bg-yellow-200 absolute mt-56 lg:mt-40 ml-4 text-lg leading-tight w-14 h-14 font-semibold text-blue-700 rounded-full text-center p-1">{ data.date}</div>
|
||||||
|
<h2 class="text-color-1 text-3xl font-semibold pt-4 px-4 line-clamp-2">{ data.title}</h2>
|
||||||
|
<div class="text-justify line-clamp-3 font-20px text-color-2 px-4 line-clamp-4" set:html="data.meta_description"></div>
|
||||||
|
<a href={'/blog/' + data.slug} class="text-blue-600 font-20px px-4">Read More >></a>
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
|
</div>
|
||||||
|
<a href="/blog">
|
||||||
|
<div class="flex justify-center mt-8">
|
||||||
|
<button class="bg-blue-700 p-2 text-2xl text-white px-4 rounded-tl-lg rounded-br-lg">Read All Articles</button>
|
||||||
|
</div>
|
||||||
|
</a>
|
||||||
|
</section>
|
||||||
|
<!-- Worksheets Section -->
|
||||||
|
<section class="container mx-auto xl:px-24 p-4 py-14">
|
||||||
|
<div class="h1-text text-blue-700 font-semibold">Worksheets</div>
|
||||||
|
<h1 class="text-2xl text-justify text-color-2 py-4" v-if="page">{occassion[0].worksheets_text}</h1>
|
||||||
|
<div v-if="worksheets" class="grid place-items-center grid-cols-1 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 mt-0">
|
||||||
|
{wkstRespData.map((data) =>
|
||||||
|
<div class="flex relative p-4">
|
||||||
|
<img v-if="wkst.occassion_worksheets_img" src={'https://curriculum-app-api.beanstalkedu.com/assets/'+data.occassion_worksheets_img} alt="" class="w-80 shadow-2xl rounded-tl-lg rounded-br-lg" />
|
||||||
|
<div v-if="wkst.file" class="absolute bottom-10 left-28">
|
||||||
|
<a href={'https://curriculum-app-api.beanstalkedu.com/assets/'+ data.file+'?download'}>
|
||||||
|
<h3 class="text-center inline-block px-6 py-2.5 bg-blue-500 text-white font-medium text-xs leading-tight rounded shadow-md hover:bg-blue-400 hover:shadow-lg focus:bg-blue-600 focus:shadow-lg focus:outline-none focus:ring-0 active:bg-blue-800 active:shadow-lg transition duration-150 ease-in-out"> Download </h3>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
|
<a href="/plan">
|
||||||
|
<div class="p-4">
|
||||||
|
<div class="flex relative">
|
||||||
|
<img v-if="wkst.occassion_worksheets_img" src={'https://curriculum-app-api.beanstalkedu.com/assets/'+ wkstRespData2.occassion_worksheets_img} alt="" class="w-80 shadow-2xl rounded-tl-lg rounded-br-lg" />
|
||||||
|
<div class="absolute top-40 left-24">
|
||||||
|
<h3 class="text-center inline-block px-6 py-2.5 bg-amber-500 text-white font-medium text-xs leading-tight rounded shadow-md hover:bg-amber-400 hover:shadow-lg focus:bg-amber-600 focus:shadow-lg focus:outline-none focus:ring-0 active:bg-blue-800 active:shadow-lg transition duration-150 ease-in-out"> + Subscribe </h3>
|
||||||
|
<h3 class=""> To download <br> more resources</h3>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
<OccassionVideo client:visible/>
|
||||||
|
<OccasionAudioBook client:visible/>
|
||||||
|
|
||||||
|
<!-- Celebration Stories -->
|
||||||
|
<section class="container mx-auto pt-16 xl:px-24 px-4">
|
||||||
|
<h1 class="h1-text text-blue-700 font-semibold">Celebretion stories</h1>
|
||||||
|
<h1 class="text-2xl text-justify text-color-2 py-4" v-if="page">{occassion[0].celebretion_stories_text}</h1>
|
||||||
|
<div class="grid place-items-center grid-cols-1 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 py-10 px-4 gap-12">
|
||||||
|
{csRespData.map((data) =>
|
||||||
|
<div class="flex bg-gray-200 rotate-6 rounded-tl-lg rounded-br-lg">
|
||||||
|
<div class="flex -rotate-6 relative"><img src={'https://curriculum-app-api.beanstalkedu.com/assets/'+data.img} alt="" class="rounded-tl-lg rounded-br-lg" />
|
||||||
|
<div class="flex absolute bg-white p-2 rounded-md m-4 justify-center text-sm md:text-xl">{data.title}</div>
|
||||||
|
<p class="absolute inset-x-0 bottom-6 text-blue-100 text-justify p-3 font-semibold rounded-br-lg line-clamp-4">{data.text}</p>
|
||||||
|
<span class="absolute inset-x-0 bottom-0 bg-gradient-to-t from-white text-justify p-3 "><a href="" class="text-blue-700 hover:font-extrabold"> <br> Read Full Storry >> </a></span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
<SubmitCelebration client:visible/>
|
||||||
|
<section class="container mx-auto px-4 xl:px-24">
|
||||||
|
<div class="h1-text text-blue-700 font-semibold pt-16 ">YouTube Videos for your reference </div>
|
||||||
|
<h1 class="text-2xl text-justify text-color-2 py-4">{occassion[0].youtube_text}</h1>
|
||||||
|
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-5">
|
||||||
|
{ytRespData.map((data) =>
|
||||||
|
<div class="p-2">
|
||||||
|
<a href={'https://www.youtube.com/watch?v='+data.youtube_id}>
|
||||||
|
<div>
|
||||||
|
<img class="rounded-tl-xl rounded-br-xl" src={'https://curriculum-app-api.beanstalkedu.com/assets/'+ data.youtube_thumbnail} alt="">
|
||||||
|
<div class="text-center text-xl line-clamp-1 text-color-2 pt-4" >{data.about_the_video}</div>
|
||||||
|
</div>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
<section class="container mx-auto py-20 px-4 xl:px-24" style="font-family: quicksand;">
|
||||||
|
<div class="grid grid-cols-1 xl:grid-cols-2 xl:space-x-48">
|
||||||
|
<div class="grid h-fit ">
|
||||||
|
<h1 class="text-4xl py-6 text-blue-700 font-semibold">Frequently Asked <span class="text-color-1">Questions</span></h1>
|
||||||
|
{faqRespData.map((data) =>
|
||||||
|
<details>
|
||||||
|
<summary>
|
||||||
|
<div class="flex inline-flex cursor-pointer"> {data.title}</div>
|
||||||
|
</summary>
|
||||||
|
<div set:html="data.content"></div>
|
||||||
|
</details>
|
||||||
|
)}
|
||||||
|
</div>
|
||||||
|
<div class="grid place-items-center">
|
||||||
|
<img src="/img/frequently.png" alt="">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
</main>
|
||||||
|
<Footer/>
|
||||||
|
</Layout>
|
||||||
|
<style scopped>
|
||||||
|
.line-clamp-4 {
|
||||||
|
display: -webkit-box;
|
||||||
|
-webkit-line-clamp: 4;
|
||||||
|
-webkit-box-orient: vertical;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
.line-clamp-2 {
|
||||||
|
display: -webkit-box;
|
||||||
|
-webkit-line-clamp: 2;
|
||||||
|
-webkit-box-orient: vertical;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
details {
|
||||||
|
font-weight: lighter;
|
||||||
|
border-bottom: 1px solid #d4d4d4;
|
||||||
|
border-color: #d4d4d4;
|
||||||
|
padding: .75em .75em 0;
|
||||||
|
font-size: 17px;
|
||||||
|
/* margin-top: 10px; */
|
||||||
|
/* box-shadow:0 0 8px #d4d4d4; */
|
||||||
|
}
|
||||||
|
|
||||||
|
summary {
|
||||||
|
margin: -.75em -.75em 0;
|
||||||
|
padding: .75em;
|
||||||
|
}
|
||||||
|
|
||||||
|
details[open] {
|
||||||
|
padding: .75em;
|
||||||
|
border-bottom: 1px solid #d4d4d4;
|
||||||
|
}
|
||||||
|
|
||||||
|
details[open] summary {
|
||||||
|
border-bottom: 1px solid #d4d4d4;
|
||||||
|
margin-bottom: 10px;
|
||||||
|
}
|
||||||
|
.font-20px {
|
||||||
|
font-size: 20px;
|
||||||
|
}
|
||||||
|
@media screen and (min-width: 1500px) {
|
||||||
|
.hero-text {
|
||||||
|
font-size: 50px;
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media screen and (max-width: 1499px) {
|
||||||
|
.hero-text {
|
||||||
|
font-size: 40px;
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@media screen and (max-width: 1199px) {
|
||||||
|
.hero-text {
|
||||||
|
font-size: 30px;
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@media screen and (min-width: 801px) {
|
||||||
|
.h1-text {
|
||||||
|
font-size: 40px;
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media screen and (min-width: 1500px) {
|
||||||
|
.h2-text {
|
||||||
|
font-size: 30px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@media screen and (max-width: 1499px) {
|
||||||
|
.h2-text {
|
||||||
|
font-size: 24px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@media screen and (max-width: 1199px) {
|
||||||
|
.h2-text {
|
||||||
|
font-size: 20px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media screen and (max-width: 800px) {
|
||||||
|
.h1-text {
|
||||||
|
font-size: 30px;
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
.load-wraper{
|
||||||
|
position: relative;
|
||||||
|
height: 100%;
|
||||||
|
width: 100%;
|
||||||
|
background-color: rgb(211,211,211);
|
||||||
|
z-index: 44;
|
||||||
|
overflow: hidden;
|
||||||
|
border-radius: 5px;
|
||||||
|
}
|
||||||
|
.activity{
|
||||||
|
position: absolute;
|
||||||
|
left: -45%;
|
||||||
|
height: 100%;
|
||||||
|
width: 45%;
|
||||||
|
background-image: linear-gradient(to left, rgba(251,251,251, .05), rgba(251,251,251, .3), rgba(251,251,251, .6), rgba(251,251,251, .3), rgba(251,251,251, .05));
|
||||||
|
background-image: -moz-linear-gradient(to left, rgba(251,251,251, .05), rgba(251,251,251, .3), rgba(251,251,251, .6), rgba(251,251,251, .3), rgba(251,251,251, .05));
|
||||||
|
background-image: -webkit-linear-gradient(to left, rgba(251,251,251, .05), rgba(251,251,251, .3), rgba(251,251,251, .6), rgba(251,251,251, .3), rgba(251,251,251, .05));
|
||||||
|
animation: loading 1s infinite;
|
||||||
|
z-index: 45;
|
||||||
|
}
|
||||||
|
|
||||||
|
@keyframes loading {
|
||||||
|
0%{
|
||||||
|
left: -45%;
|
||||||
|
}
|
||||||
|
100%{
|
||||||
|
left: 100%;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.text-color-1 {
|
||||||
|
color: #7C4C23;
|
||||||
|
}
|
||||||
|
|
||||||
|
.text-color-2 {
|
||||||
|
color: #333333;
|
||||||
|
}
|
||||||
|
.box{
|
||||||
|
width: 380px;
|
||||||
|
height: 220px;
|
||||||
|
}
|
||||||
|
.box1 {
|
||||||
|
width: 500px;
|
||||||
|
height: 220px;
|
||||||
|
}
|
||||||
|
input[type="file"] {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
.custom-file-upload {
|
||||||
|
border: 1px solid #ccc;
|
||||||
|
display: inline-block;
|
||||||
|
padding: 6px 12px;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
.ytModal {
|
||||||
|
/* display: none; */
|
||||||
|
position: fixed;
|
||||||
|
width: 80%;
|
||||||
|
z-index: 999991;
|
||||||
|
padding-top: 100px;
|
||||||
|
left: 0;
|
||||||
|
top: 0;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
overflow: auto;
|
||||||
|
background-color: rgb(0,0,0);
|
||||||
|
background-color: rgba(0,0,0,0.4);
|
||||||
|
}
|
||||||
|
.bg3 {
|
||||||
|
background: linear-gradient(0deg, rgb(191, 219, 254, 1) 0%, rgba(255, 255, 255) 100%);}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</style>
|
|
@ -32,6 +32,7 @@ const faqResp = await fetch('https://curriculum-app-api.beanstalkedu.com/items/F
|
||||||
const faqRespJson = await faqResp.json();
|
const faqRespJson = await faqResp.json();
|
||||||
const faqRespData = faqRespJson.data;
|
const faqRespData = faqRespJson.data;
|
||||||
|
|
||||||
|
import SubmitCelebration from "../../components/SubmitCelebration.vue";
|
||||||
import Footer from "../../components/Footer.vue";
|
import Footer from "../../components/Footer.vue";
|
||||||
---
|
---
|
||||||
<Layout title="TeenyBeans Occassion">
|
<Layout title="TeenyBeans Occassion">
|
||||||
|
@ -122,6 +123,7 @@ import Footer from "../../components/Footer.vue";
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
<SubmitCelebration client:visible/>
|
||||||
<section class="container mx-auto px-4 xl:px-24">
|
<section class="container mx-auto px-4 xl:px-24">
|
||||||
<div class="h1-text text-blue-700 font-semibold pt-16 ">YouTube Videos for your reference </div>
|
<div class="h1-text text-blue-700 font-semibold pt-16 ">YouTube Videos for your reference </div>
|
||||||
<h1 class="text-2xl text-justify text-color-2 py-4">{occassion[0].youtube_text}</h1>
|
<h1 class="text-2xl text-justify text-color-2 py-4">{occassion[0].youtube_text}</h1>
|
||||||
|
|
|
@ -0,0 +1,353 @@
|
||||||
|
---
|
||||||
|
import Layout from "../../layouts/Layout.astro";
|
||||||
|
import Menu from "../../components/Menu.astro";
|
||||||
|
|
||||||
|
const response = await fetch('https://curriculum-app-api.beanstalkedu.com/items/themes?filter[status][_eq]=published');
|
||||||
|
const data = await response.json();
|
||||||
|
const themes = data.data;
|
||||||
|
|
||||||
|
const thisThemesID = data.data[0].id;
|
||||||
|
|
||||||
|
const tciResp = await fetch('https://curriculum-app-api.beanstalkedu.com/items/theme_celebration_ideas?filter[theme_key][_in]=' + thisThemesID );
|
||||||
|
const tciRespJson = await tciResp.json();
|
||||||
|
const tciRespData = tciRespJson.data.reverse().slice(0, 4);
|
||||||
|
|
||||||
|
const twsResp = await fetch('https://curriculum-app-api.beanstalkedu.com/items/theme_workshets?filter[theme_key][_in]=' + thisThemesID);
|
||||||
|
const twsRespJson = await twsResp.json();
|
||||||
|
const twsRespData = twsRespJson.data.reverse().slice(0, 3);
|
||||||
|
const twsRespData2 = twsRespJson.data[3];
|
||||||
|
|
||||||
|
import ThemesVideos from "../../components/ThemesVideos.vue";
|
||||||
|
import ThemesAudioBook from "../../components/ThemesAudioBook.vue";
|
||||||
|
|
||||||
|
const tcsResp = await fetch('https://curriculum-app-api.beanstalkedu.com/items/theme_celebration_stories?filter[theme_key][_in]=' + thisThemesID);
|
||||||
|
const tcsRespJson = await tcsResp.json();
|
||||||
|
const tcsRespData = tcsRespJson.data.reverse().slice(0, 4);
|
||||||
|
|
||||||
|
import SubmitCelebration from "../../components/SubmitCelebration.vue";
|
||||||
|
|
||||||
|
const ytvResp = await fetch('https://curriculum-app-api.beanstalkedu.com/items/theme_youtube_videos?filter[theme_key][_in]=' + thisThemesID);
|
||||||
|
const ytvRespJson = await ytvResp.json();
|
||||||
|
const ytvRespData = ytvRespJson.data.reverse();
|
||||||
|
|
||||||
|
const allthemesResp = await fetch('https://curriculum-app-api.beanstalkedu.com/items/themes?filter[status][_eq]=draft&limit=3');
|
||||||
|
const allthemesRespJson = await allthemesResp.json();
|
||||||
|
const allthemesRespData = allthemesRespJson.data;
|
||||||
|
|
||||||
|
const faqresponse = await fetch('https://management.beanstalkedu.com/items/FAQ?filter[property][_eq]=teenybeans_curriculum&filter[slug][_eq]=themes');
|
||||||
|
const faqdata = await faqresponse.json();
|
||||||
|
const faq = faqdata.data;
|
||||||
|
|
||||||
|
import Footer from "../../components/Footer.vue";
|
||||||
|
---
|
||||||
|
<Layout title="">
|
||||||
|
<Menu clint:visible/>
|
||||||
|
<main>
|
||||||
|
<div>
|
||||||
|
<section class="bg-gradient-to-t bg3 shadow-2xl container-fluid">
|
||||||
|
<div class="flex flex-col xl:flex-row container mx-auto xl:px-24">
|
||||||
|
<div class="flex flex-col w-fit justify-center px-4 ">
|
||||||
|
<div class="">
|
||||||
|
<h1 class="text-blue-700 hero-text font-bold">Theme of the Month- <span class="text-color-1" v-if="page">{themes[0].theme_title}</span></h1>
|
||||||
|
<div class="flex h2-text text-color-1 font-semibold pt-8">{themes[0].theme_text }</div>
|
||||||
|
<div class="flex text-justify font-18px text-color-2 pt-4">{themes[0].theme_details }</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="flex w-fit justify-center place-items-center">
|
||||||
|
<!-- <img class="w-full h-fit drop-shadow-2xl rounded-3xl py-4 cursor-none" src="/img/occassion1.png" alt=""> -->
|
||||||
|
<img class="w-fit h-fit" src={'https://curriculum-app-api.beanstalkedu.com/assets/'+themes[0].theme_hero_img} alt="">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
<!-- section Celebretion Ideas -->
|
||||||
|
<section class="container mx-auto xl:px-24 py-16 px-4">
|
||||||
|
<div class="h1-text text-blue-700 font-semibold">Celebration Ideas </div>
|
||||||
|
<div class="text-2xl text-justify text-color-2">{themes[0].celebration_ideas_text}</div>
|
||||||
|
<div v-if="ideas" class="grid place-items-center grid-cols-1 md:grid-cols-2 xl:grid-cols-3 2xl:grid-cols-4 ">
|
||||||
|
{tciRespData.map((data) =>
|
||||||
|
<div class="flex relative">
|
||||||
|
<img v-if="ida.celebration_ideas_img" src={'https://curriculum-app-api.beanstalkedu.com/assets/'+data.celebration_ideas_img} alt="" class="pt-4 rounded-tl-xl rounded-br-xl shadow-xl" />
|
||||||
|
<div class="absolute top-10 left-8 text-2xl text-color-1 font-semibold">{data.celebration_ideas_title}
|
||||||
|
</div>
|
||||||
|
<div class="absolute top-16 py-3 left-8 text-xl text-color-2">{data.celebration_ideas_body_text}
|
||||||
|
</div>
|
||||||
|
<div class="absolute bottom-10 left-32 md:left-28">
|
||||||
|
<a href={'https://curriculum-app-api.beanstalkedu.com/assets/'+data.celebration_ideas_img+'?download'}>
|
||||||
|
<h3 class="text-center inline-block px-5 py-2.5 bg-blue-500 text-white font-medium text-base leading-tight rounded shadow-md hover:bg-blue-400 hover:shadow-lg focus:bg-blue-600 focus:shadow-lg focus:outline-none focus:ring-0 active:bg-blue-800 active:shadow-lg transition duration-150 ease-in-out"> View Now </h3>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
<!-- section Worksheets -->
|
||||||
|
<section class="container mx-auto xl:px-24 py-10 px-4">
|
||||||
|
<div class="h1-text text-blue-700 font-semibold">Worksheets</div>
|
||||||
|
<div class="text-2xl text-justify text-color-2" >{themes[0].worksheets_text}</div>
|
||||||
|
<div class="grid place-items-center grid-cols-1 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 mt-6">
|
||||||
|
{twsRespData.map((data) =>
|
||||||
|
<div class="flex relative p-4">
|
||||||
|
<img src={'https://curriculum-app-api.beanstalkedu.com/assets/'+data.theme_worksheets_img} alt="" class="w-80 shadow-2xl rounded-tl-lg rounded-br-lg" />
|
||||||
|
<div class="absolute bottom-10 left-20">
|
||||||
|
<a href={'https://curriculum-app-api.beanstalkedu.com/assets/'+data.file+'?download'}>
|
||||||
|
<h3 class="text-center inline-block px-6 py-2.5 bg-blue-500 text-white font-medium text-base leading-tight rounded shadow-md hover:bg-blue-400 hover:shadow-lg focus:bg-blue-600 focus:shadow-lg focus:outline-none focus:ring-0 active:bg-blue-800 active:shadow-lg transition duration-150 ease-in-out"> Download </h3>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
|
|
||||||
|
<a href="/worksheets">
|
||||||
|
<div class="p-4">
|
||||||
|
<div class="flex relative">
|
||||||
|
<img v-if="wkst.theme_worksheets_img" src={'https://curriculum-app-api.beanstalkedu.com/assets/'+twsRespData2.theme_worksheets_img} alt="" class="w-80 shadow-2xl rounded-tl-lg rounded-br-lg" />
|
||||||
|
<div class="absolute top-40 left-20">
|
||||||
|
<h3 class="text-center inline-block px-6 py-2.5 bg-amber-500 text-white font-medium text-base leading-tight rounded shadow-md hover:bg-amber-400 hover:shadow-lg focus:bg-amber-600 focus:shadow-lg focus:outline-none focus:ring-0 active:bg-blue-800 active:shadow-lg transition duration-150 ease-in-out"> + Subscribe </h3>
|
||||||
|
<h3 class="-ml-2 absolute left-8 text-center"> To download <br> more resources</h3>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<!-- <div class=" text-center text-lg ">...</div> -->
|
||||||
|
</div>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
<ThemesVideos client:visible/>
|
||||||
|
<ThemesAudioBook client:visible/>
|
||||||
|
<section class="container mx-auto pt-16 xl:px-24 px-4">
|
||||||
|
<h1 class="h1-text text-blue-700 font-semibold">Celebretion stories</h1>
|
||||||
|
<h1 class="text-2xl text-justify text-color-2 py-4" v-if="page">{themes[0].celebration_stories_text}</h1>
|
||||||
|
<div class="grid place-items-center grid-cols-1 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 py-10 px-4 gap-12">
|
||||||
|
{tcsRespData.map((data) =>
|
||||||
|
<div class="flex bg-gray-200 rotate-6 rounded-tl-lg rounded-br-lg">
|
||||||
|
<div class="flex -rotate-6 relative"><img src={'https://curriculum-app-api.beanstalkedu.com/assets/'+data.img} alt="" class="rounded-tl-lg rounded-br-lg" />
|
||||||
|
<div class="flex absolute bg-white p-2 rounded-md m-4 justify-center text-sm md:text-xl">{data.title}</div>
|
||||||
|
<p class="absolute inset-x-0 bottom-6 text-blue-100 text-justify p-3 font-semibold rounded-br-lg line-clamp-4">{data.text}</p>
|
||||||
|
<span class="absolute inset-x-0 bottom-0 bg-gradient-to-t from-white text-justify p-3 "><a href="" class="text-blue-700 hover:font-extrabold"> <br> Read Full Storry >> </a></span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
<SubmitCelebration client:visible/>
|
||||||
|
<!-- section youtube -->
|
||||||
|
<section class="container mx-auto py-16 mt-20 px-4 xl:px-24" >
|
||||||
|
<div class="h1-text text-blue-700 font-semibold">YouTube Videos for your reference </div>
|
||||||
|
<div class="text-2xl text-justify text-color-2">{themes[0].youtube_text}</div>
|
||||||
|
<div class="grid place-items-center grid-cols-1 md:grid-cols-2 lg:grid-cols-5 pt-4">
|
||||||
|
{ytvRespData.map((data) =>
|
||||||
|
<div class="p-2">
|
||||||
|
<a href={'https://www.youtube.com/watch?v='+data.youtube_id}>
|
||||||
|
<div>
|
||||||
|
<img class="rounded-tl-xl rounded-br-xl" src={'https://curriculum-app-api.beanstalkedu.com/assets/'+data.youtube_thumbnail} alt="">
|
||||||
|
<div class="text-center text-lg ">{data.about_the_video}</div>
|
||||||
|
</div>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
<!-- section for theme slug page -->
|
||||||
|
<section class="container mx-auto px-4 xl:px-24 mb-16">
|
||||||
|
<h2 class="h1-text text-center text-color-1 py-16 font-semibold"> Other Themes </h2>
|
||||||
|
<div class="grid grid-cols-1 lg:grid-cols-2 xl:grid-cols-3 place-items-center gap-10">
|
||||||
|
{allthemesRespData.map((data) =>
|
||||||
|
<div class="grid">
|
||||||
|
<a href={'/themes/'+ data.theme_slug}>
|
||||||
|
<img class="rounded-lg shadow-2xl" src={'https://curriculum-app-api.beanstalkedu.com/assets/' + data.theme_icon} alt=""/>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
{faq.length >0 &&
|
||||||
|
<section class="container mx-auto py-20 px-4 xl:px-24" style="font-family: quicksand;">
|
||||||
|
<div class="grid grid-cols-1 xl:grid-cols-2 xl:space-x-48">
|
||||||
|
<!-- <div set:html={faq[0].title}></div> -->
|
||||||
|
<div class="grid h-fit ">
|
||||||
|
<h1 class="text-4xl py-6 text-blue-700 font-semibold">Frequently Asked <span class="text-color-1">Questions</span></h1>
|
||||||
|
{faq.map((data: { title: string | undefined; }) =>
|
||||||
|
<details>
|
||||||
|
<summary>
|
||||||
|
<div class="flex inline-flex cursor-pointer"> {data.title}</div>
|
||||||
|
</summary>
|
||||||
|
<div set:html="data.content"></div>
|
||||||
|
</details>
|
||||||
|
)}
|
||||||
|
</div>
|
||||||
|
<div class="grid place-items-center">
|
||||||
|
<img src="/img/frequently.png" alt="">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
}
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</main>
|
||||||
|
<Footer client:visible/>
|
||||||
|
</Layout>
|
||||||
|
<style>
|
||||||
|
details {
|
||||||
|
font-weight: lighter;
|
||||||
|
border-bottom: 1px solid #d4d4d4;
|
||||||
|
border-color: #d4d4d4;
|
||||||
|
padding: .75em .75em 0;
|
||||||
|
font-size: 18px;
|
||||||
|
/* margin-top: 10px; */
|
||||||
|
/* box-shadow:0 0 8px #d4d4d4; */
|
||||||
|
}
|
||||||
|
|
||||||
|
summary {
|
||||||
|
margin: -.75em -.75em 0;
|
||||||
|
padding: .80em;
|
||||||
|
}
|
||||||
|
|
||||||
|
details[open] {
|
||||||
|
padding: .75em;
|
||||||
|
border-bottom: 1px solid #d4d4d4;
|
||||||
|
}
|
||||||
|
|
||||||
|
details[open] summary {
|
||||||
|
border-bottom: 1px solid #d4d4d4;
|
||||||
|
margin-bottom: 10px;
|
||||||
|
}
|
||||||
|
.line-clamp-4 {
|
||||||
|
display: -webkit-box;
|
||||||
|
-webkit-line-clamp: 4;
|
||||||
|
-webkit-box-orient: vertical;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
.bg3 {
|
||||||
|
background: linear-gradient(0deg, rgb(191, 219, 254, 1) 0%, rgba(255, 255, 255) 100%);}
|
||||||
|
@media screen and (min-width: 1500px) {
|
||||||
|
.h2-text {
|
||||||
|
font-size: 30px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@media screen and (max-width: 1499px) {
|
||||||
|
.h2-text {
|
||||||
|
font-size: 24px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@media screen and (max-width: 1199px) {
|
||||||
|
.h2-text {
|
||||||
|
font-size: 20px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.font-18px {
|
||||||
|
font-size: 18px;
|
||||||
|
}
|
||||||
|
@media screen and (min-width: 1500px) {
|
||||||
|
.hero-text {
|
||||||
|
font-size: 50px;
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media screen and (max-width: 1499px) {
|
||||||
|
.hero-text {
|
||||||
|
font-size: 40px;
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@media screen and (max-width: 1199px) {
|
||||||
|
.hero-text {
|
||||||
|
font-size: 30px;
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@media screen and (min-width: 801px) {
|
||||||
|
.h1-text {
|
||||||
|
font-size: 40px;
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media screen and (max-width: 800px) {
|
||||||
|
.h1-text {
|
||||||
|
font-size: 25px;
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.load-wraper{
|
||||||
|
position: relative;
|
||||||
|
height: 100%;
|
||||||
|
width: 100%;
|
||||||
|
background-color: rgb(211,211,211);
|
||||||
|
z-index: 44;
|
||||||
|
overflow: hidden;
|
||||||
|
border-radius: 5px;
|
||||||
|
}
|
||||||
|
.activity{
|
||||||
|
position: absolute;
|
||||||
|
left: -45%;
|
||||||
|
height: 100%;
|
||||||
|
width: 45%;
|
||||||
|
background-image: linear-gradient(to left, rgba(251,251,251, .05), rgba(251,251,251, .3), rgba(251,251,251, .6), rgba(251,251,251, .3), rgba(251,251,251, .05));
|
||||||
|
background-image: -moz-linear-gradient(to left, rgba(251,251,251, .05), rgba(251,251,251, .3), rgba(251,251,251, .6), rgba(251,251,251, .3), rgba(251,251,251, .05));
|
||||||
|
background-image: -webkit-linear-gradient(to left, rgba(251,251,251, .05), rgba(251,251,251, .3), rgba(251,251,251, .6), rgba(251,251,251, .3), rgba(251,251,251, .05));
|
||||||
|
animation: loading 1s infinite;
|
||||||
|
z-index: 45;
|
||||||
|
}
|
||||||
|
|
||||||
|
@keyframes loading {
|
||||||
|
0%{
|
||||||
|
left: -45%;
|
||||||
|
}
|
||||||
|
100%{
|
||||||
|
left: 100%;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.text-color-1 {
|
||||||
|
color: #7C4C23;
|
||||||
|
}
|
||||||
|
|
||||||
|
.text-color-2 {
|
||||||
|
color: #333333;
|
||||||
|
}
|
||||||
|
.box{
|
||||||
|
width: 380px;
|
||||||
|
height: 220px;
|
||||||
|
}
|
||||||
|
.box1 {
|
||||||
|
width: 500px;
|
||||||
|
height: 220px;
|
||||||
|
}
|
||||||
|
input[type="file"] {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
.custom-file-upload {
|
||||||
|
border: 1px solid #ccc;
|
||||||
|
display: inline-block;
|
||||||
|
padding: 6px 12px;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
.ytModal {
|
||||||
|
/* display: none; */
|
||||||
|
position: fixed;
|
||||||
|
width: 80%;
|
||||||
|
z-index: 999991;
|
||||||
|
padding-top: 100px;
|
||||||
|
left: 0;
|
||||||
|
top: 0;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
overflow: auto;
|
||||||
|
background-color: rgb(0,0,0);
|
||||||
|
background-color: rgba(0,0,0,0.4);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Modal Content
|
||||||
|
.modal-content {
|
||||||
|
background-color: #fefefe;
|
||||||
|
margin: auto;
|
||||||
|
padding: 20px;
|
||||||
|
border: 1px solid #888;
|
||||||
|
width: 80%;
|
||||||
|
} */
|
||||||
|
|
||||||
|
|
||||||
|
</style>
|
|
@ -25,6 +25,20 @@ const tcsRespJson = await tcsResp.json();
|
||||||
const tcsRespData = tcsRespJson.data.reverse().slice(0, 4);
|
const tcsRespData = tcsRespJson.data.reverse().slice(0, 4);
|
||||||
|
|
||||||
import SubmitCelebration from "../../components/SubmitCelebration.vue";
|
import SubmitCelebration from "../../components/SubmitCelebration.vue";
|
||||||
|
|
||||||
|
const ytvResp = await fetch('https://curriculum-app-api.beanstalkedu.com/items/theme_youtube_videos?filter[theme_key][_in]=' + thisThemesID);
|
||||||
|
const ytvRespJson = await ytvResp.json();
|
||||||
|
const ytvRespData = ytvRespJson.data.reverse();
|
||||||
|
|
||||||
|
const allthemesResp = await fetch('https://curriculum-app-api.beanstalkedu.com/items/themes?filter[status][_eq]=draft&limit=3');
|
||||||
|
const allthemesRespJson = await allthemesResp.json();
|
||||||
|
const allthemesRespData = allthemesRespJson.data;
|
||||||
|
|
||||||
|
const faqresponse = await fetch('https://management.beanstalkedu.com/items/FAQ?filter[property][_eq]=teenybeans_curriculum&filter[slug][_eq]=themes');
|
||||||
|
const faqdata = await faqresponse.json();
|
||||||
|
const faq = faqdata.data;
|
||||||
|
|
||||||
|
import Footer from "../../components/Footer.vue";
|
||||||
---
|
---
|
||||||
<Layout title="">
|
<Layout title="">
|
||||||
<Menu clint:visible/>
|
<Menu clint:visible/>
|
||||||
|
@ -100,7 +114,7 @@ import SubmitCelebration from "../../components/SubmitCelebration.vue";
|
||||||
<ThemesAudioBook client:visible/>
|
<ThemesAudioBook client:visible/>
|
||||||
<section class="container mx-auto pt-16 xl:px-24 px-4">
|
<section class="container mx-auto pt-16 xl:px-24 px-4">
|
||||||
<h1 class="h1-text text-blue-700 font-semibold">Celebretion stories</h1>
|
<h1 class="h1-text text-blue-700 font-semibold">Celebretion stories</h1>
|
||||||
<h1 class="text-2xl text-justify text-color-2 py-4" v-if="page">{themes[0].celebretion_stories_text}</h1>
|
<h1 class="text-2xl text-justify text-color-2 py-4" v-if="page">{themes[0].celebration_stories_text}</h1>
|
||||||
<div class="grid place-items-center grid-cols-1 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 py-10 px-4 gap-12">
|
<div class="grid place-items-center grid-cols-1 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 py-10 px-4 gap-12">
|
||||||
{tcsRespData.map((data) =>
|
{tcsRespData.map((data) =>
|
||||||
<div class="flex bg-gray-200 rotate-6 rounded-tl-lg rounded-br-lg">
|
<div class="flex bg-gray-200 rotate-6 rounded-tl-lg rounded-br-lg">
|
||||||
|
@ -114,10 +128,93 @@ import SubmitCelebration from "../../components/SubmitCelebration.vue";
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
<SubmitCelebration client:visible/>
|
<SubmitCelebration client:visible/>
|
||||||
|
<!-- section youtube -->
|
||||||
|
<section class="container mx-auto py-16 mt-20 px-4 xl:px-24" >
|
||||||
|
<div class="h1-text text-blue-700 font-semibold">YouTube Videos for your reference </div>
|
||||||
|
<div class="text-2xl text-justify text-color-2">{themes[0].youtube_text}</div>
|
||||||
|
<div class="grid place-items-center grid-cols-1 md:grid-cols-2 lg:grid-cols-5 pt-4">
|
||||||
|
{ytvRespData.map((data) =>
|
||||||
|
<div class="p-2">
|
||||||
|
<a href={'https://www.youtube.com/watch?v='+data.youtube_id}>
|
||||||
|
<div>
|
||||||
|
<img class="rounded-tl-xl rounded-br-xl" src={'https://curriculum-app-api.beanstalkedu.com/assets/'+data.youtube_thumbnail} alt="">
|
||||||
|
<div class="text-center text-lg ">{data.about_the_video}</div>
|
||||||
|
</div>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
<!-- section for theme slug page -->
|
||||||
|
<section class="container mx-auto px-4 xl:px-24 mb-16">
|
||||||
|
<h2 class="h1-text text-center text-color-1 py-16 font-semibold"> Other Themes </h2>
|
||||||
|
<div class="grid grid-cols-1 lg:grid-cols-2 xl:grid-cols-3 place-items-center gap-10">
|
||||||
|
{allthemesRespData.map((data) =>
|
||||||
|
<div class="grid">
|
||||||
|
<a href={'/themes/'+ data.theme_slug}>
|
||||||
|
<img class="rounded-lg shadow-2xl" src={'https://curriculum-app-api.beanstalkedu.com/assets/' + data.theme_icon} alt=""/>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
{faq.length >0 &&
|
||||||
|
<section class="container mx-auto py-20 px-4 xl:px-24" style="font-family: quicksand;">
|
||||||
|
<div class="grid grid-cols-1 xl:grid-cols-2 xl:space-x-48">
|
||||||
|
<!-- <div set:html={faq[0].title}></div> -->
|
||||||
|
<div class="grid h-fit ">
|
||||||
|
<h1 class="text-4xl py-6 text-blue-700 font-semibold">Frequently Asked <span class="text-color-1">Questions</span></h1>
|
||||||
|
{faq.map((data: { title: string | undefined; }) =>
|
||||||
|
<details>
|
||||||
|
<summary>
|
||||||
|
<div class="flex inline-flex cursor-pointer"> {data.title}</div>
|
||||||
|
</summary>
|
||||||
|
<div set:html="data.content"></div>
|
||||||
|
</details>
|
||||||
|
)}
|
||||||
|
</div>
|
||||||
|
<div class="grid place-items-center">
|
||||||
|
<img src="/img/frequently.png" alt="">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
}
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</main>
|
</main>
|
||||||
|
<Footer client:visible/>
|
||||||
</Layout>
|
</Layout>
|
||||||
<style>
|
<style>
|
||||||
|
details {
|
||||||
|
font-weight: lighter;
|
||||||
|
border-bottom: 1px solid #d4d4d4;
|
||||||
|
border-color: #d4d4d4;
|
||||||
|
padding: .75em .75em 0;
|
||||||
|
font-size: 18px;
|
||||||
|
/* margin-top: 10px; */
|
||||||
|
/* box-shadow:0 0 8px #d4d4d4; */
|
||||||
|
}
|
||||||
|
|
||||||
|
summary {
|
||||||
|
margin: -.75em -.75em 0;
|
||||||
|
padding: .80em;
|
||||||
|
}
|
||||||
|
|
||||||
|
details[open] {
|
||||||
|
padding: .75em;
|
||||||
|
border-bottom: 1px solid #d4d4d4;
|
||||||
|
}
|
||||||
|
|
||||||
|
details[open] summary {
|
||||||
|
border-bottom: 1px solid #d4d4d4;
|
||||||
|
margin-bottom: 10px;
|
||||||
|
}
|
||||||
|
.line-clamp-4 {
|
||||||
|
display: -webkit-box;
|
||||||
|
-webkit-line-clamp: 4;
|
||||||
|
-webkit-box-orient: vertical;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
.bg3 {
|
.bg3 {
|
||||||
background: linear-gradient(0deg, rgb(191, 219, 254, 1) 0%, rgba(255, 255, 255) 100%);}
|
background: linear-gradient(0deg, rgb(191, 219, 254, 1) 0%, rgba(255, 255, 255) 100%);}
|
||||||
@media screen and (min-width: 1500px) {
|
@media screen and (min-width: 1500px) {
|
||||||
|
|
Loading…
Reference in New Issue