Skip to content

Commit 2c57c41

Browse files
committed
complete the home page
1 parent e7f2239 commit 2c57c41

File tree

6 files changed

+79
-2
lines changed

6 files changed

+79
-2
lines changed
670 KB
Loading
438 KB
Loading
505 KB
Loading
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
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+
}

examples/ecommerce-jewellery-store/src/data/types.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,4 +65,11 @@ export type ProductCardProps = {
6565
reviews: string | undefined;
6666
price: number | undefined;
6767
description: string | undefined;
68+
}
69+
70+
export type TestemonialsDataDescriptor = {
71+
image: string;
72+
name: string;
73+
description: string;
74+
rating: number;
6875
}

examples/ecommerce-jewellery-store/src/pages/Home.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ import brownWatch from '../assets/brownWatch.jpg'
1818
import vitageWatch from '../assets/vitageWatch.jpg'
1919
import casualSilverWatch from "../assets/listViewImages/casualSilverWatch.png"
2020
import homeServicesImage from '../assets/homeServicesImage.png'
21+
import { Testemonials } from '../components/Testemonials';
2122

2223

2324

@@ -99,9 +100,9 @@ const Home: React.FC = () => {
99100
<Layout>
100101
<CustomSection>
101102
<OrderedImgText
102-
title='Timeless Classics'
103+
title='Fine Jewelry'
103104
subtitle='Get our unique handmade collections'
104-
contentText='Jewelry enhances style and adds elegance, with each piece telling a unique story.'
105+
contentText="Jewelry elevates one's style and brings sophistication, with every piece narrating a distinct tale."
105106
img={homeModel3}
106107
order='last'
107108
link="Shop Now"
@@ -142,6 +143,9 @@ const Home: React.FC = () => {
142143
></OrderedImgText>
143144
</CustomSection>
144145
</Layout>
146+
<Layout>
147+
<Testemonials></Testemonials>
148+
</Layout>
145149
</>
146150
);
147151
};

0 commit comments

Comments
 (0)