From cda1d225bcc366be38f9d221ddeb4ab80ab97680 Mon Sep 17 00:00:00 2001 From: Khwezi Mngoma Date: Sun, 24 May 2026 11:27:59 +0200 Subject: [PATCH 1/2] Final design touches --- .../Components/Layout/MainLayout.razor | 18 ++++- .../Components/Pages/Profile.razor | 69 ++++++++++++++++++- .../Components/Pages/Profile.razor.css | 26 +++++++ 3 files changed, 111 insertions(+), 2 deletions(-) diff --git a/MidrandBookshop/Components/Layout/MainLayout.razor b/MidrandBookshop/Components/Layout/MainLayout.razor index 8eb7703..fde5e09 100644 --- a/MidrandBookshop/Components/Layout/MainLayout.razor +++ b/MidrandBookshop/Components/Layout/MainLayout.razor @@ -165,12 +165,28 @@ } - + @* Log In + *@ + + + + + + LogIn + + + + + + + diff --git a/MidrandBookshop/Components/Pages/Profile.razor b/MidrandBookshop/Components/Pages/Profile.razor index 0bf0e7a..a6b1e5f 100644 --- a/MidrandBookshop/Components/Pages/Profile.razor +++ b/MidrandBookshop/Components/Pages/Profile.razor @@ -21,6 +21,73 @@
Order History
+
+ @if (orderHistory != null) + { + @foreach (var order in orderHistory) + { +
+
+ +
+
+
+ @order.OrderId +
+
+ @order.OrderDate.ToString("MMM dd, yyyy") +
+
+ + @order.Status + +
+
+ +
+ + @order.ProductTitle + +
+ +
+ + + + Shipped to: @order.ShippingAddressName +
+
+ +
+
+ Total Paid + R @order.Total.ToString("N2") +
+ + +
+ +
+
+ } + } + else + { +
+ Loading order history... +
+ } +
+ + @*
+
+
Order History
+
+
@@ -80,7 +147,7 @@
-
+ *@
diff --git a/MidrandBookshop/Components/Pages/Profile.razor.css b/MidrandBookshop/Components/Pages/Profile.razor.css index d0d1268..87a100d 100644 --- a/MidrandBookshop/Components/Pages/Profile.razor.css +++ b/MidrandBookshop/Components/Pages/Profile.razor.css @@ -176,3 +176,29 @@ cursor: pointer; user-select: none; } + +/* Shared Card Styling Unification Rules */ +.order-history-card { + transition: border-color 0.2s ease, box-shadow 0.2s ease; + border-radius: 0; /* Matches your address card configuration */ +} + + .order-history-card:hover { + border-color: rgba(0, 0, 0, 0.16); + } + +/* Micro Typography Alignment */ +.xx-small { + font-size: 0.65rem; +} + +.tracking-wider { + letter-spacing: 0.05rem; +} + +/* Responsive adjustments across layout break-points */ +@media (max-width: 575.98px) { + .border-sm-top-0 { + border-top: 1px solid rgba(0, 0, 0, 0.06) !important; + } +} \ No newline at end of file From 2f8afc380ea19b05b055b18261e8917a390ee785 Mon Sep 17 00:00:00 2001 From: Khwezi Mngoma Date: Sun, 24 May 2026 11:29:49 +0200 Subject: [PATCH 2/2] Light refactor --- .../Components/Layout/MainLayout.razor | 7 -- .../Components/Pages/Profile.razor | 65 ------------------- 2 files changed, 72 deletions(-) diff --git a/MidrandBookshop/Components/Layout/MainLayout.razor b/MidrandBookshop/Components/Layout/MainLayout.razor index fde5e09..4b58446 100644 --- a/MidrandBookshop/Components/Layout/MainLayout.razor +++ b/MidrandBookshop/Components/Layout/MainLayout.razor @@ -165,13 +165,6 @@ } - @* - - - - - Log In - *@ diff --git a/MidrandBookshop/Components/Pages/Profile.razor b/MidrandBookshop/Components/Pages/Profile.razor index a6b1e5f..62ca532 100644 --- a/MidrandBookshop/Components/Pages/Profile.razor +++ b/MidrandBookshop/Components/Pages/Profile.razor @@ -83,71 +83,6 @@ }
- @*
-
-
Order History
-
- -
- - - - - - - - - - - - - - @if (orderHistory != null) - { - @foreach (var order in orderHistory) - { - - - - - - - - - - } - } - else - { - - - - } - -
Order IDTitleDateAddressStatusTotalInvoice
@order.OrderId - - @order.DisplayTitle - - @order.OrderDate.ToString("MMM dd, yyyy") - - - - - @order.ShippingAddressName - - - - @order.Status - - R @order.Total.ToString("N2") - -
Loading order history...
-
-
*@