-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #93 from NashTech-Labs/feature/order-page
Feature/order page
- Loading branch information
Showing
3 changed files
with
45 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> | ||
) | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> | ||
) | ||
} |