Skip to content

Commit bbcf1e7

Browse files
committed
add Thank you page
1 parent 6afdd1b commit bbcf1e7

File tree

4 files changed

+18
-9
lines changed

4 files changed

+18
-9
lines changed
771 KB
Loading

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

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,16 +23,15 @@ export const BackgroundImage = (props: BackgroundImageProps) => {
2323
height: "100%"
2424
}}>
2525
<div className="k-text-center k-text-white k-pt-25">
26-
<h1
27-
className="k-h1 k-font-bold"
28-
>
26+
<h1 className="k-h1 k-font-bold">
2927
{title}
3028
</h1>
3129
<p className="k-font-size-lg k-mb-4 k-font-bold k-text-uppercase">{subtitle}</p>
32-
<span className="k-gap-9"></span>
33-
<Button themeColor="primary" className="k-mb-4" onClick={onButtonClick}>
34-
{buttonText}
35-
</Button>
30+
{buttonText && (
31+
<Button themeColor="primary" className="k-mb-4" onClick={onButtonClick}>
32+
{buttonText}
33+
</Button>
34+
)}
3635
</div>
3736
</div>
3837
</section>

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import React from 'react';
22
import { Layout } from "@/components/Layout";
3-
import { CustomSection } from "@/components/CustomizedSection";
43
import CardNumber from "@/components/CardNumber";
54
import ExpiryDate from "@/components/ExpiryDate";
65
import PasswordInput from "@/components/PasswordInput";

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

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,20 @@
11
import React from 'react';
2+
import { Layout } from "@/components/Layout";
3+
import { BackgroundImage } from '../components/BackgroundImage';
4+
import present from "@/assets/present.png";
5+
import { Button } from "@progress/kendo-react-buttons";
26

37
const ThankYou: React.FC = () => {
48
return (
59
<>
6-
Thank you page
10+
<BackgroundImage img={present} title="" subtitle="" />
11+
<Layout>
12+
<div className="k-d-flex k-flex-col k-justify-content-center k-align-items-center k-h-100 k-text-center">
13+
<h1>Thank You For Your Order!</h1>
14+
<p>You have submitted your order</p>
15+
<Button className="k-mt-6">Back to Shopping</Button>
16+
</div>
17+
</Layout>
718
</>
819
);
920
};

0 commit comments

Comments
 (0)