From 2d99f3a61c67a0b184b710e558ccac45dcdb0a71 Mon Sep 17 00:00:00 2001 From: Niyonshuti Jean De Dieu <152473876+Jadowacu1@users.noreply.github.com> Date: Mon, 5 Aug 2024 02:21:35 +0200 Subject: [PATCH] TrackOrder Page template (#68) --- src/App.scss | 1 + src/assets/styles/trackOrder.scss | 123 ++++++++++++++++++++++++++++++ src/pages/trackerOrder.tsx | 75 ++++++++++++++++++ src/router.tsx | 2 + 4 files changed, 201 insertions(+) create mode 100644 src/assets/styles/trackOrder.scss create mode 100644 src/pages/trackerOrder.tsx diff --git a/src/App.scss b/src/App.scss index a09dbd44..aba1d539 100644 --- a/src/App.scss +++ b/src/App.scss @@ -36,3 +36,4 @@ @import "./assets/styles/SellerSideProduct.scss"; @import "./assets/styles/tables.scss"; @import "./assets/styles/cards.scss"; +@import "./assets/styles/trackOrder.scss"; diff --git a/src/assets/styles/trackOrder.scss b/src/assets/styles/trackOrder.scss new file mode 100644 index 00000000..957ede6a --- /dev/null +++ b/src/assets/styles/trackOrder.scss @@ -0,0 +1,123 @@ +$order-details-font-color: #f6820d; +$delivery-timeline-color: #ccc; +$circle-color: #f6820d; +$text-color: #333; +$text-family: 'Averia Serif Libre'; + + +.order-details-container { + display: flex; + width: 95%; + font-family: $text-family; + font-size: 1.5rem; + background-color: #f9f9f9; +} + +.order-details, .delivery-timeline { + margin-left: 5%; + background-color: #fff; + padding: 20px; + border-radius: 10px; + width: 48%; +} +.order-details h2{ + color: #f6820d; +} +.order-details h2, .delivery-timeline h2 { + margin-bottom: 20px; +} + +.order-details { + .description { + display: flex; + gap: 20px; + } + + p { + margin: 30px 0; + + } + + img { + width: 150px; + height: 150px; + display: block; + margin: 20px 0; + background-color: #ddd; + } +} + +.delivery-timeline { + .heading { + background-color: #D9D9D9; + height: 30px; + text-align: center; + + h3 { + margin: 0; + line-height: 30px; + } + } + + ul { + list-style: none; + padding: 0; + position: relative; + margin-left: 20px; + + + &::before { + content: ''; + position: absolute; + top: 0; + left: 10px; + height: 90%; + width: 2px; + background: #D9D9D9; + } + } + + li { + display: flex; + align-items: center; + margin: 20px 0; + position: relative; + margin-bottom: 40px; + + .circle { + width: 20px; + height: 20px; + background-color: $circle-color; + border-radius: 50%; + margin-right: 10px; + z-index: 1; + + } + + p { + margin: 0; + color: $text-color; + } + + span { + display: block; + color: $delivery-timeline-color; + } + + &:last-child::after { + content: ''; + position: absolute; + left: 10px; + top: 20px; + height: calc(100% - 20px); + width: 2px; + background: transparent; + } + } + + h2 { + margin-bottom: 20px; + border-bottom: 2px solid #ccc; + padding-bottom: 5px; + } +} diff --git a/src/pages/trackerOrder.tsx b/src/pages/trackerOrder.tsx new file mode 100644 index 00000000..7319b860 --- /dev/null +++ b/src/pages/trackerOrder.tsx @@ -0,0 +1,75 @@ +/* eslint-disable */ +import React from "react"; +const TrackerOrder = () => { + return ( +
+
+

Order Details

+

+ ORDER ID: 7001860211 +

+ +
+

Your order was delivered on June 22, 2024

+

+ Shipping Address: Musanze, Byangabo +

+
+

+ + Total +
+
+
+ 800,000 Rwf +

+ +

+ + Tracking Number +
+
+
+ 1Z999AA12345678 +

+
+
+ + Product + +

Flat TV

+
+ +
+
+

Delivery Timeline

+
+ +
+
+ ); +}; + +export default TrackerOrder; diff --git a/src/router.tsx b/src/router.tsx index fff2737b..da616b26 100644 --- a/src/router.tsx +++ b/src/router.tsx @@ -29,6 +29,7 @@ import Logout from './components/layout/Logout'; import UserProfile from './pages/UserEditProfile'; import ProductsPage from './pages/Products'; import UserCartPaymentSuccess from './pages/UserCartPaymentSuccess'; +import TrackerOrder from "../src/pages/trackerOrder" const AppRouter: React.FC = () => { return (
@@ -64,6 +65,7 @@ const AppRouter: React.FC = () => { } /> } /> } /> + } /> }> } />