-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6a77db6
commit 19b0e7b
Showing
2 changed files
with
122 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,59 @@ | ||
import React from 'react' | ||
import { motion } from "framer-motion"; | ||
import { styles } from "../Style"; | ||
import { SectionWrapper } from "../hoc"; | ||
import { fadeIn, textVariant } from "../utils/motion"; | ||
import { testimonials } from "../constants"; | ||
|
||
const FeedbackCard=({index, testimonial, name, designation, company, image})=>{ | ||
return( | ||
<motion.div | ||
variants={fadeIn("", "spring", index*0.5, 0.75)} | ||
className="bg-black-200 p-10 rounded-3xl xs:w-[320px] w-full " | ||
> | ||
<p className="text-white font-black text-[48px] ">"</p> | ||
<div className="mt-1"> | ||
<p className="text-white tracking-wider text-[18px]" >{testimonial}</p> | ||
|
||
<div className="mt-7 flex justify-between items-center gap-1"> | ||
<div className="flex-1 flex flex-col"> | ||
<p className="text-white font-medium text-[16px]"> | ||
<span className="blue-text-gradient">@ </span>{name} | ||
</p> | ||
<p className="mt-1 text-secondary text-[12px]" | ||
>{designation} of {company}</p> | ||
</div> | ||
<img src={image} alt={`feedback by ${name}`} | ||
className="w-10 h-10 rounded-full object-cover" /> | ||
</div> | ||
</div> | ||
</motion.div> | ||
) | ||
} | ||
|
||
const Feedbacks = () => { | ||
return ( | ||
<div>Feedbacks</div> | ||
<div className="mt-12 bg-black rounded-[20px]"> | ||
<div className={`${styles.padding} | ||
bg-tertiary rounded-2xl min-h-[300px] `}> | ||
<motion.div | ||
variants={textVariant()}> | ||
<p className={`${styles.sectionSubText}`} > | ||
What others say | ||
</p> | ||
<h2 className={`${styles.sectionHeadText}`}>Testimonials</h2> | ||
</motion.div> | ||
</div> | ||
<div className={`${styles.paddingX} mt-20 pb-14 flex flex-wrap gap-7 `}> | ||
{testimonials.map((testimonial, index)=>( | ||
<FeedbackCard | ||
key={testimonial.name} | ||
index={index} | ||
{...testimonial} | ||
/> | ||
))} | ||
</div> | ||
</div> | ||
) | ||
} | ||
|
||
export default Feedbacks | ||
export default SectionWrapper(Feedbacks,"feedbacks"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters