From 2cbf627ea933314e8de2f3626f690ceafc7ae008 Mon Sep 17 00:00:00 2001 From: taniya542 Date: Thu, 27 Jun 2024 12:24:56 +0530 Subject: [PATCH] Review Section(Testimonial)Added --- src/components/HomepageFeatures/index.js | 73 ++++++++++++++++--- .../HomepageFeatures/styles.module.css | 27 +++++++ 2 files changed, 91 insertions(+), 9 deletions(-) diff --git a/src/components/HomepageFeatures/index.js b/src/components/HomepageFeatures/index.js index faf32b581..3854da22c 100644 --- a/src/components/HomepageFeatures/index.js +++ b/src/components/HomepageFeatures/index.js @@ -1,3 +1,4 @@ +import React from 'react'; import clsx from 'clsx'; import Heading from '@theme/Heading'; import styles from './styles.module.css'; @@ -63,7 +64,35 @@ const FeatureList = [ }, ]; -function Feature({Svg, title, description}) { +const TestimonialList = [ + { + name: 'John Doe', + review: 'This curriculum is incredibly structured and easy to follow. It made learning C++ a breeze!', + }, + { + name: 'Jane Smith', + review: 'The documentation is top-notch. I could easily find explanations and code samples for all topics.', + }, + { + name: 'Alex Johnson', + review: 'Being an open-source project, it offers great opportunities to contribute and learn practically.', + }, + { + name: 'Chris Lee', + review: 'The free access to all resources is fantastic. It makes learning C++ accessible to everyone.', + }, + { + name: 'Pat Kim', + review: 'The community engagement is superb. It’s great to have support and collaboration from other learners.', + }, + { + name: 'Amayra', + review: 'The course was Incredible. It was Beginner Friendly and well organised.Loved it!!.', + }, + +]; + +function Feature({ Svg, title, description }) { return (
@@ -77,16 +106,42 @@ function Feature({Svg, title, description}) { ); } -export default function HomepageFeatures() { +function Testimonial({ name, review }) { return ( -
-
-
- {FeatureList.map((props, idx) => ( - - ))} +
+
+
+ {name} +

"{review}"

-
+
+ ); +} + +export default function HomepageFeatures() { + return ( + <> +
+
+
+ {FeatureList.map((props, idx) => ( + + ))} +
+
+
+ +
+
+ OUR TESTIMONIALS +
+ {TestimonialList.map((props, idx) => ( + + ))} +
+
+
+ ); } diff --git a/src/components/HomepageFeatures/styles.module.css b/src/components/HomepageFeatures/styles.module.css index b248eb2e5..dd1259a67 100644 --- a/src/components/HomepageFeatures/styles.module.css +++ b/src/components/HomepageFeatures/styles.module.css @@ -8,4 +8,31 @@ .featureSvg { height: 200px; width: 200px; + padding: 20px 20px 20px 20px; + margin: 10px 10px 10px 10px; + align-items: center; +} +.testimonialCard { + display: flex; + align-items: center; + padding: 2rem ; + padding-bottom: 2rem; + width: 100%; + height:300px; + width:100%; + background-color: #ecf6f0; + border-radius: 8px; + padding: 20px; + margin: 10px 10px 10px 10px; + transition: transform 0.25s ease-in-out; + box-shadow: 0 8px 16px rgba(6, 1, 1, 0.1); +} + +.testimonialCard:hover { + transform: translateY(-15px); + } + +.testimonialCard .card__body { + text-align: center; +} \ No newline at end of file