Skip to content

Commit 08c2cb2

Browse files
committed
polish shopping cart
1 parent 6329826 commit 08c2cb2

File tree

1 file changed

+79
-5
lines changed

1 file changed

+79
-5
lines changed

examples/ecommerce-jewellery-store/src/components/ShoppingCartList.tsx

Lines changed: 79 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
import * as React from "react";
2-
import { chevronLeftIcon, trashIcon } from "@progress/kendo-svg-icons";
2+
import {
3+
chevronLeftIcon,
4+
trashIcon,
5+
walletSolidIcon,
6+
heartIcon,
7+
percentIcon,
8+
} from "@progress/kendo-svg-icons";
39
import {
410
Form,
511
Field,
@@ -16,6 +22,8 @@ import { NumericTextBox } from "@progress/kendo-react-inputs";
1622
import { useNavigate } from "react-router-dom";
1723
import { Layout } from "./Layout";
1824
import shoppingCartImage from "../assets/shoppingCartImg.png";
25+
import { Avatar } from "@progress/kendo-react-layout";
26+
import { SvgIcon } from "@progress/kendo-react-common";
1927

2028
const EmailInput = (fieldRenderProps: FieldRenderProps) => {
2129
const { validationMessage, visited, ...others } = fieldRenderProps;
@@ -36,8 +44,8 @@ export const ShoppingCartList: React.FC = () => {
3644
};
3745

3846
const onProceedClick = () => {
39-
navigate("/paymentdetails")
40-
}
47+
navigate("/paymentdetails");
48+
};
4149

4250
const updateQuantity = (event) => {
4351
const target = event.target.element;
@@ -178,7 +186,11 @@ export const ShoppingCartList: React.FC = () => {
178186
</FieldWrapper>
179187
</fieldset>
180188
<div className="k-form-buttons">
181-
<Button themeColor={"primary"} size={"large"} onClick={onProceedClick}>
189+
<Button
190+
themeColor={"primary"}
191+
size={"large"}
192+
onClick={onProceedClick}
193+
>
182194
Proceed to Checkout
183195
</Button>
184196
</div>
@@ -201,8 +213,70 @@ export const ShoppingCartList: React.FC = () => {
201213
</Layout>
202214
) : null}
203215
<Layout>
204-
<div className="k-d-grid">
216+
<div className="k-d-flex k-flex-col k-align-items-center k-py-12 k-px-4.5 k-px-sm-6 k-px-md-4 k-px-lg-7.5 k-px-xl-10 k-gap-10">
217+
<div className="k-d-flex k-flex-col k-align-items-center k-gap-4 k-text-center">
218+
<h2 className="k-h2 !k-mb-0">Why people choose us?</h2>
219+
</div>
220+
<div className="k-d-grid k-grid-cols-1 k-grid-cols-md-3 k-gap-5">
221+
<div className="k-d-flex k-flex-col k-align-items-center">
222+
<Avatar
223+
rounded="full"
224+
type="icon"
225+
themeColor="primary"
226+
size="large"
227+
>
228+
<SvgIcon icon={walletSolidIcon} size="xxlarge" />
229+
</Avatar>
230+
<p className="k-font-size-xl k-font-bold k-px-4 k-py-3 !k-mb-0">
231+
Return Policy
232+
</p>
233+
<p className="k-p-4 !k-mb-0 k-text-center">
234+
You can return your items within 30 days for a full refund or
235+
exchange.
236+
</p>
237+
</div>
205238

239+
<div className="k-d-flex k-flex-col k-align-items-center">
240+
<Avatar
241+
rounded="full"
242+
type="icon"
243+
themeColor="primary"
244+
size="large"
245+
>
246+
<SvgIcon icon={heartIcon} size="xxlarge" />
247+
</Avatar>
248+
<p className="k-font-size-xl k-font-bold k-px-4 k-py-3 !k-mb-0">
249+
Included Gift Wrapping
250+
</p>
251+
<p className="k-p-4 !k-mb-0 k-text-center">
252+
Apply your discount code at checkout to enjoy exclusive savings
253+
on your order.
254+
</p>
255+
</div>
256+
257+
<div className="k-d-flex k-flex-col k-align-items-center">
258+
<Avatar
259+
rounded="full"
260+
type="icon"
261+
themeColor="primary"
262+
size="large"
263+
>
264+
<SvgIcon icon={percentIcon} size="xxlarge" />
265+
</Avatar>
266+
<p className="k-font-size-xl k-font-bold k-px-4 k-py-3 !k-mb-0 k-text-center">
267+
Discount Code Available
268+
</p>
269+
<p className="k-p-4 !k-mb-0 k-text-center">
270+
Add gift wrapping for a special touch, along with a personalized
271+
message for your loved ones.
272+
</p>
273+
</div>
274+
</div>
275+
<div>
276+
<Button fillMode="flat" themeColor="primary">
277+
See all
278+
</Button>
279+
</div>
206280
</div>
207281
</Layout>
208282
</>

0 commit comments

Comments
 (0)