diff --git a/MidrandBookshop/Components/Layout/MainLayout.razor b/MidrandBookshop/Components/Layout/MainLayout.razor index 8eb7703..4b58446 100644 --- a/MidrandBookshop/Components/Layout/MainLayout.razor +++ b/MidrandBookshop/Components/Layout/MainLayout.razor @@ -165,12 +165,21 @@ } - + - Log In + LogIn + + + + + + + diff --git a/MidrandBookshop/Components/Pages/Profile.razor b/MidrandBookshop/Components/Pages/Profile.razor index 0bf0e7a..62ca532 100644 --- a/MidrandBookshop/Components/Pages/Profile.razor +++ b/MidrandBookshop/Components/Pages/Profile.razor @@ -21,64 +21,66 @@
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...
+ + +
+ + + + Shipped to: @order.ShippingAddressName +
+
+ +
+
+ Total Paid + R @order.Total.ToString("N2") +
+ + +
+ + + + } + } + else + { +
+ Loading order history... +
+ } 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