|
| 1 | +import { IoPersonSharp } from "react-icons/io5"; |
| 2 | +import { IoMdCloseCircle } from "react-icons/io"; |
| 3 | + |
| 4 | +const reviews = [ |
| 5 | + { |
| 6 | + Name: "Aarav Mehta", |
| 7 | + designation: "Frontend Engineer @ZyloTech", |
| 8 | + review: `“StreamUI has made it incredibly easy to build clean and responsive components. It’s like having a design system that just works.”`, |
| 9 | + colour : "bg-orange-500", |
| 10 | + }, |
| 11 | + { |
| 12 | + Name: "Sara Ali", |
| 13 | + designation: "UI/UX Designer @PixelForge", |
| 14 | + review: `“I love how StreamUI speeds up my workflow. The components are beautiful, minimal, and easy to adapt for any project.”`, |
| 15 | + colour : "bg-green-500", |
| 16 | + }, |
| 17 | + { |
| 18 | + Name: "Rohan Das", |
| 19 | + designation: "Full Stack Developer @DevSpark", |
| 20 | + review: `“I’ve tried many UI libraries, but StreamUI stands out for its simplicity and clean design. Highly recommended for developers who care about aesthetics.”`, |
| 21 | + colour : "bg-violet-500", |
| 22 | + }, |
| 23 | +]; |
| 24 | + |
| 25 | +export default function Hero() { |
| 26 | + return ( |
| 27 | + <section className="py-12 px-6"> |
| 28 | + <div className="max-w-6xl mx-auto text-center mb-12"> |
| 29 | + <span className="text-xs uppercase border border-black rounded-full bg-white px-6 py-2 tracking-widest text-black mb-4 inline-block"> |
| 30 | + <div className="flex gap-2 items-center"> |
| 31 | + <IoPersonSharp className="text-lg" /> |
| 32 | + Testimonials |
| 33 | + </div> |
| 34 | + </span> |
| 35 | + <h2 className="text-4xl md:text-4xl font-medium text-neutral-900"> |
| 36 | + Loved by Builders Worldwide |
| 37 | + </h2> |
| 38 | + <p className="mt-4 text-neutral-600 dark:text-neutral-400 max-w-xl mx-auto"> |
| 39 | + See how developers use StreamUI to build stunning products faster with clean, reusable components. |
| 40 | + </p> |
| 41 | + </div> |
| 42 | + <div className="flex overflow-x-auto snap-x snap-mandatory gap-6 px-4 scrollbar-hide justify-center"> |
| 43 | + {reviews.map((item, idx) => ( |
| 44 | + <div |
| 45 | + key={idx} |
| 46 | + className="flex-shrink-0 snap-center w-72 sm:w-80 md:w-96 bg-white rounded-2xl shadow-lg flex flex-col justify-between transition-all duration-300" |
| 47 | + > |
| 48 | + <div className="flex justify-between mx-2 my-2"> |
| 49 | + <IoMdCloseCircle className="text-lg text-black opacity-50"/> |
| 50 | + <IoMdCloseCircle className="text-lg text-black opacity-50"/> |
| 51 | + </div> |
| 52 | + <div className="px-10"> |
| 53 | + {/* Quote */} |
| 54 | + <p className="text-lg text-neutral-800 font-medium mb-4"> |
| 55 | + {item.review} |
| 56 | + </p> |
| 57 | + |
| 58 | + {/* Reviewer */} |
| 59 | + <div className="flex items-center gap-3 mt-8"> |
| 60 | + <div className={`w-10 h-10 rounded-full flex items-center ${item.colour} justify-center text-sm font-medium text-white`}> |
| 61 | + {item.Name.split(" ").map(n => n[0]).join("")} |
| 62 | + </div> |
| 63 | + <div className="flex flex-col"> |
| 64 | + <span className="text-sm font-semibold text-neutral-900"> |
| 65 | + {item.Name} |
| 66 | + </span> |
| 67 | + <span className="text-xs text-neutral-500"> |
| 68 | + {item.designation} |
| 69 | + </span> |
| 70 | + </div> |
| 71 | + </div> |
| 72 | + </div> |
| 73 | + <div className="flex justify-between mx-2 my-2"> |
| 74 | + <IoMdCloseCircle className="text-lg text-black opacity-50"/> |
| 75 | + <IoMdCloseCircle className="text-lg text-black opacity-50"/> |
| 76 | + </div> |
| 77 | + </div> |
| 78 | + ))} |
| 79 | + </div> |
| 80 | + </section> |
| 81 | + ); |
| 82 | +} |
0 commit comments