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