|
| 1 | +import { Avatar } from '@progress/kendo-react-layout'; |
| 2 | +import { Rating } from '@progress/kendo-react-inputs'; |
| 3 | +import { TestemonialsDataDescriptor } from '../data/types'; |
| 4 | +import testemonials1 from "../assets/testemonials1.jpg" |
| 5 | +import testemonials2 from "../assets/testemonials2.jpg" |
| 6 | +import testemonials3 from "../assets/testemonials3.jpg" |
| 7 | + |
| 8 | + |
| 9 | +const testemonialsData: TestemonialsDataDescriptor[] = [ |
| 10 | + { |
| 11 | + image: testemonials1, |
| 12 | + name: "Erica Moore", |
| 13 | + rating: 5, |
| 14 | + description: "Vilora exceeded all my expectations! The craftsmanship of my diamond necklace is absolutely stunning, and the attention to detail is unparalleled. From the moment I placed my order to the day it arrived, the entire experience was flawless." |
| 15 | + }, |
| 16 | + { |
| 17 | + image: testemonials2, |
| 18 | + name: "Kelvin Hettinger", |
| 19 | + rating: 4.5, |
| 20 | + description: "I couldn't be happier with my custom engagement ring from Vilora. The team helped me design the perfect piece, and the final result was even more beautiful than I imagined. Their service, quality, and dedication to excellence make Vilora my go-to for all fine jewelry." |
| 21 | + }, |
| 22 | + { |
| 23 | + image: testemonials3, |
| 24 | + name: "Karen Brooks", |
| 25 | + rating: 5, |
| 26 | + description: "Vilora’s collection is nothing short of breathtaking. I recently purchased a white sapphire ring, and it’s become my favorite piece. The elegance and brilliance of the jewelry reflect their impeccable taste and high standards. Highly recommend!" |
| 27 | + } |
| 28 | +]; |
| 29 | + |
| 30 | +export const Testemonials = () => { |
| 31 | + return ( |
| 32 | + <div className="k-d-flex k-flex-col k-align-items-center k-py-12 k-px-10 k-mx-auto k-bg-surface"> |
| 33 | + <div className="k-d-flex k-flex-col k-align-items-center k-gap-4 k-mb-10"> |
| 34 | + <h2 className="k-h2">Customers words</h2> |
| 35 | + <p className="k-font-size-xl k-color-subtle"> |
| 36 | + What do they say about us? |
| 37 | + </p> |
| 38 | + </div> |
| 39 | + <div className="k-d-grid k-grid-cols-3 k-gap-5 k-mb-6"> |
| 40 | + {testemonialsData.map((item) => ( |
| 41 | + <div className="k-d-flex k-flex-col k-border-solid k-border k-bg-app-surface k-rounded-lg k-border-border"> |
| 42 | + <div className="k-d-grid k-grid-cols-3 k-justify-items-center k-px-4 k-py-3 k-gap-y-3"> |
| 43 | + <div className="k-col-start-1 k-col-end-4 k-d-grid k-grid-cols-3 k-justify-items-center k-w-full"> |
| 44 | + <Avatar |
| 45 | + themeColor="primary" |
| 46 | + size="large" |
| 47 | + className="k-col-start-2 k-col-end-3" |
| 48 | + type='image' |
| 49 | + > |
| 50 | + <img src={item.image} className='k-bg-cover' /> |
| 51 | + </Avatar> |
| 52 | + </div> |
| 53 | + <p className="k-paragraph k-col-start-1 k-col-end-4">{item.name}</p> |
| 54 | + <Rating value={item.rating} precision='half' className="k-col-start-1 k-col-end-4" /> |
| 55 | + </div> |
| 56 | + <div className="k-p-4"> |
| 57 | + <p className="k-paragraph"> |
| 58 | + {item.description} |
| 59 | + </p> |
| 60 | + </div> |
| 61 | + </div> |
| 62 | + ))} |
| 63 | + </div> |
| 64 | + </div> |
| 65 | + ); |
| 66 | +} |
0 commit comments