From ec36ad62ec6dc2cc14efd6156734b30dd1732eed Mon Sep 17 00:00:00 2001 From: Susmita-Dey Date: Sat, 2 Sep 2023 18:13:49 +0530 Subject: [PATCH] Add more testimonials button in course pages --- src/components/layout/Testimonials.jsx | 10 ++++++++++ src/content/courses/devops.js | 3 +++ src/content/courses/dsa.js | 2 ++ src/pages/OpenSourceCoursePage.jsx | 2 ++ src/pages/SingleCoursePage.jsx | 13 +++++++++++-- 5 files changed, 28 insertions(+), 2 deletions(-) diff --git a/src/components/layout/Testimonials.jsx b/src/components/layout/Testimonials.jsx index 87ff015c..29900ce8 100644 --- a/src/components/layout/Testimonials.jsx +++ b/src/components/layout/Testimonials.jsx @@ -4,6 +4,7 @@ import { AiFillLeftCircle, AiFillRightCircle } from 'react-icons/ai'; import clsxm from '@/lib/utils'; import TestimonialCard from '@/components/Cards/TestimonialCard'; +import { ArrowLink, ButtonLink } from '@/components/links'; import TweetCarousael from '@/components/TweetCarousael'; const Testimonials = ({ @@ -13,6 +14,8 @@ const Testimonials = ({ className, setTweetId, content, + btnText, + btnLink, }) => { const Compoonent = as || 'section'; return ( @@ -59,6 +62,13 @@ const Testimonials = ({ )} +
+ {btnLink && ( + + {btnText} + + )} +
); diff --git a/src/content/courses/devops.js b/src/content/courses/devops.js index be99a1cf..1e032b8a 100644 --- a/src/content/courses/devops.js +++ b/src/content/courses/devops.js @@ -127,6 +127,9 @@ const DevopsPageContent = { '1487399069383155716', '1544248976664567811', ], + btnText: 'See more testimonials #DevOpsWithKunal', + btnLink: + 'https://twitter.com/search?q=%23DevOpsWithKunal&src=hashtag_click', }, faq: [ diff --git a/src/content/courses/dsa.js b/src/content/courses/dsa.js index 4899e73f..a7b0447f 100644 --- a/src/content/courses/dsa.js +++ b/src/content/courses/dsa.js @@ -146,6 +146,8 @@ const DsaPageContent = { designation: '@manojkumarbonala', }, ], + btnText: 'See more testimonials #DSAWithKunal', + btnLink: 'https://twitter.com/search?q=%23DSAWithKunal&src=hashtag_click', }, faq: [ diff --git a/src/pages/OpenSourceCoursePage.jsx b/src/pages/OpenSourceCoursePage.jsx index cd824a2b..43c70fed 100644 --- a/src/pages/OpenSourceCoursePage.jsx +++ b/src/pages/OpenSourceCoursePage.jsx @@ -195,6 +195,8 @@ const OpenSourcePage = ({ content }) => { tweetId={tweetId} setTweetId={setTweetId} title='Testimonials' + btnText='See more testimonials #OpenSourceWithKunal' + btnLink='https://twitter.com/search?q=%23OpenSourceWithKunal' /> diff --git a/src/pages/SingleCoursePage.jsx b/src/pages/SingleCoursePage.jsx index 35f42133..f2d45b93 100644 --- a/src/pages/SingleCoursePage.jsx +++ b/src/pages/SingleCoursePage.jsx @@ -9,10 +9,19 @@ const CoursesPage = ({ content }) => { {tweetId ? ( - + ) : ( <> - + )} {content.content.syllabus.length > 0 && (