File tree Expand file tree Collapse file tree 2 files changed +45
-0
lines changed
Expand file tree Collapse file tree 2 files changed +45
-0
lines changed Original file line number Diff line number Diff line change 1+ <template >
2+ <div class =" landing-page__section" >
3+ <div class =" width-limiter" >
4+ <div class =" t-align-sm-l t-align-c mb-50" >
5+ <div class =" heading-4 bold mb-10" >Frequently Asked Questions</div >
6+ <div class =" font-4 text-grey" >
7+ Find answers to the questions popping up in your head here.
8+ </div >
9+ </div >
10+ <div
11+ class =" faq-element-container"
12+ v-for =" (faq, index) in faqs"
13+ :key =" index"
14+ >
15+ <div
16+ class =" faq-question row no-gutters align-items-center justify-content-between p-20"
17+ >
18+ <div class =" font-4 bold flex-1" >{{ faq.question }}</div >
19+ <img
20+ src =" https://cb-thumbnails.s3.ap-south-1.amazonaws.com/plus.svg"
21+ />
22+ </div >
23+ <div class =" faq-answer p-20" >
24+ {{ faq.answer }}
25+ </div >
26+ </div >
27+ </div >
28+ </div >
29+ </template >
30+
31+ <script >
32+ export default {
33+ props: [' faqs' ],
34+ }
35+ </script >
36+
37+ <style scoped>
38+ .faq-element-container {
39+ border-bottom : 1px solid #e9e9e9 ;
40+ }
41+ </style >
Original file line number Diff line number Diff line change 7070 </div >
7171 </div >
7272 </div >
73+
74+ <FAQSection :faqs =" course.faqs" />
7375 </div >
7476</template >
7577
@@ -81,6 +83,7 @@ import CourseBatch from '@/components/courses/CourseBatch.vue'
8183import CourseHighlights from ' @/components/courses/CourseHighlights.vue'
8284import CoursePageMentorsSection from ' @/components/courses/CoursePageMentorsSection.vue'
8385import SuccessStoryCard from ' @/components/misc/SuccessStoryCard.vue'
86+ import FAQSection from ' @/components/courses/FAQSection.vue'
8487
8588export default {
8689 data () {
@@ -96,6 +99,7 @@ export default {
9699 CourseHighlights,
97100 CoursePageMentorsSection,
98101 SuccessStoryCard,
102+ FAQSection,
99103 },
100104 async asyncData ({ params, $repositories }) {
101105 const course = await $repositories .courses .fetchCourseBySlug (params .id )
You can’t perform that action at this time.
0 commit comments