Skip to content

Commit

Permalink
Merge pull request #93 from NashTech-Labs/feature/order-page
Browse files Browse the repository at this point in the history
Feature/order page
  • Loading branch information
ankit-mogha authored Feb 9, 2024
2 parents 8228d9f + 5890030 commit ecb6aa0
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 0 deletions.
12 changes: 12 additions & 0 deletions car-ui-react/src/pages/Order/OrderPage.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import { OrderSuccess } from "./components/OrderSuccess"
import { OrderFail } from "./components/OrderFail"

export const OrderPage = () => {
const status= true;

return (
<main>
{ status ? <OrderSuccess /> : <OrderFail />}
</main>
)
}
16 changes: 16 additions & 0 deletions car-ui-react/src/pages/Order/components/OrderFail.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
export const OrderFail = () => {
return (
<section className="text-xl text-center max-w-4xl mx-auto my-10 py-5 dark:text-slate-100 border dark:border-slate-700 rounded bg-gray-200">
<div className="my-5">
<p className="bi bi-exclamation-circle text-red-500 text-7xl mb-5"></p>
<p>Payment failed, please try again!</p>
</div>
<div className="my-5">
<p>Your order is not confirmed.</p>
<p>Connect <span className="">[email protected]</span> for support.</p>
</div>
<a href="/" type="button" className="text-white bg-blue-700 hover:bg-blue-800 rounded-lg text-lg px-5 py-2.5 mr-2 mb-2 dark:bg-blue-600 dark:hover:bg-blue-700 focus:outline-none">Check Cart Again<i className="ml-2 bi bi-cart"></i></a>
</section>
)
}

17 changes: 17 additions & 0 deletions car-ui-react/src/pages/Order/components/OrderSuccess.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
export const OrderSuccess = () => {
return (
<section className="text-xl text-center max-w-4xl mx-auto my-10 py-5 dark:text-slate-100 border dark:border-slate-700 rounded bg-gray-200">
<div className="my-5">
<p className="bi bi-check-circle text-green-600 text-7xl mb-5"></p>
<p>Thank you user name for order!</p>
<p>Your Order ID: user id</p>
</div>
<div className="my-5">
<p>Your order is confirmed.</p>
<p>Please check your mail ([email protected]) for the purchased Car.</p>
<p className="my-5">Payment ID: xyz_123456789</p>
</div>
<a href="/" type="button" className="text-white bg-blue-700 hover:bg-blue-800 rounded-lg text-lg px-5 py-2.5 mr-2 mb-2 dark:bg-blue-600 dark:hover:bg-blue-700 focus:outline-none">Continue Shopping <i className="ml-2 bi bi-cart"></i></a>
</section>
)
}

0 comments on commit ecb6aa0

Please sign in to comment.