Implemented order history
continuous-integration/drone/pr Build is passing

This commit is contained in:
Khwezi Mngoma
2026-06-17 22:45:40 +02:00
parent 8d2efbeb4a
commit 1efe1ff21e
3 changed files with 347 additions and 184 deletions
@@ -3,13 +3,25 @@
========================================================================== */
.account-page-container {
max-width: 1140px;
max-width: 1200px;
margin: 0 auto;
padding-left: 1.5rem;
padding-right: 1.5rem;
font-family: system-ui, -apple-system, sans-serif;
}
.tab-panel-body {
padding-left: 1rem;
padding-right: 1rem;
}
@media (min-width: 768px) {
.tab-panel-body {
padding-left: 2rem;
padding-right: 2rem;
}
}
.account-main-title {
font-size: 2.25rem;
letter-spacing: -0.03em;
@@ -39,102 +51,99 @@
.account-nav-stack .nav-link.active {
background-color: #111111 !important;
color: #FFFFFF !important;
font-weight: 600;
}
.account-nav-stack .nav-link:hover:not(.active):not(.nav-logout) {
color: #111111;
.account-nav-stack .nav-link:hover:not(.active) {
background-color: rgba(0, 0, 0, 0.04) !important;
transform: translateX(2px);
color: #111111;
}
.account-nav-stack .nav-logout:hover {
background-color: #FFF5F5 !important;
color: #DC3545 !important;
.nav-logout:hover {
background-color: rgba(220, 53, 69, 0.08) !important;
}
/* --- Main Tabbed Layout Container Content Structures --- */
.panel-card-wrapper {
background-color: #FFFFFF;
border: 1px solid rgba(0, 0, 0, 0.06);
border-radius: 12px;
padding: 2.2rem;
}
.panel-section-title {
font-size: 0.9rem;
color: #666666;
}
/* --- Order History Structured Panel Cards --- */
.premium-order-card {
transition: transform 0.2s ease, border-color 0.2s ease;
}
.premium-order-card:hover {
border-color: rgba(0, 0, 0, 0.15) !important;
}
.border-b-dashed {
border-bottom: 1px dashed rgba(0, 0, 0, 0.08);
}
/* Minimalist Curated Logistics and Payment Badges Matrix */
/* --- Balanced Status Mapping Badges --- */
.status-badge-base {
font-family: var(--bs-font-monospace);
font-size: 0.65rem !important;
letter-spacing: 0.05em;
padding: 0.3rem 0.6rem !important;
border-radius: 4px !important;
text-transform: uppercase;
font-size: 0.68rem;
font-weight: 600;
padding: 0.45rem 0.65rem;
letter-spacing: 0.02em;
border-radius: 4px;
}
/* Fulfillment Matrix Colors */
/* 1. Core Order Lifecycle Badge Styles */
.order-completed {
background-color: #111111 !important;
color: #FFFFFF !important;
border: 1px solid #111111;
}
.order-processing {
background-color: rgba(0, 0, 0, 0.03) !important;
color: #111111 !important;
border: 1px solid rgba(0, 0, 0, 0.15);
}
.order-hold {
background-color: rgba(108, 117, 125, 0.05) !important;
color: #495057 !important;
border: 1px solid rgba(108, 117, 125, 0.2);
}
.order-cancelled {
background-color: rgba(220, 53, 69, 0.04) !important;
color: #842029 !important;
border: 1px solid rgba(220, 53, 69, 0.12);
}
/* 2. Logistics Shipment Status Badge Styles */
.status-delivered {
background-color: #E2F0D9 !important; /* Soft Green Match */
color: #385723 !important;
border: 1px solid rgba(56, 87, 35, 0.15);
background-color: rgba(25, 135, 84, 0.06) !important;
color: #198754 !important;
border: 1px solid rgba(25, 135, 84, 0.15);
}
.status-shipped {
background-color: #FFF3CD !important; /* Warm Gold Amber */
color: #856404 !important;
border: 1px solid rgba(133, 100, 4, 0.12);
background-color: rgba(13, 110, 253, 0.06) !important;
color: #0d6efd !important;
border: 1px solid rgba(13, 110, 253, 0.15);
}
.status-processing {
background-color: #F2F2F2 !important; /* Architectural Neutral Muted Grey */
color: #595959 !important;
border: 1px dashed rgba(0, 0, 0, 0.12);
background-color: rgba(255, 193, 7, 0.08) !important;
color: #b58100 !important;
border: 1px solid rgba(255, 193, 7, 0.25);
}
/* Financial Matrix Colors */
/* 3. Financial Payment Status Badge Styles */
.pay-paid {
background-color: #E2F0D9 !important; /* Soft Green Match */
color: #385723 !important;
border: 1px solid rgba(56, 87, 35, 0.15);
background-color: rgba(25, 135, 84, 0.06) !important;
color: #198754 !important;
border: 1px solid rgba(25, 135, 84, 0.15);
}
.pay-pending {
background-color: #F8D7DA !important; /* soft red alert tint for unpaid/abandoned items */
color: #721C24 !important;
border: 1px solid rgba(114, 28, 36, 0.15);
background-color: rgba(220, 53, 69, 0.06) !important;
color: #dc3545 !important;
border: 1px solid rgba(220, 53, 69, 0.15);
}
.pay-refunded {
background-color: #E2E3E5 !important;
color: #383D41 !important;
border: 1px solid rgba(56, 61, 65, 0.15);
background-color: rgba(108, 117, 125, 0.08) !important;
color: #6c757d !important;
border: 1px solid rgba(108, 117, 125, 0.2);
}
/* --- Curated Shipping Identity Panels --- */
/* --- Saved Addresses Section Layout --- */
.address-curated-card {
transition: all 0.23s cubic-bezier(0.16, 1, 0.3, 1);
transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.address-curated-card:hover {
border-color: #111111 !important;
transform: translateY(-2px);
box-shadow: 0 6px 18px rgba(0, 0, 0, 0.03) !important;
}
.border-top-dashed {
@@ -142,22 +151,21 @@
}
.btn-action-trigger {
transition: color 0.15s ease;
padding: 0;
font-weight: 500;
letter-spacing: 0.04em;
opacity: 0.75;
transition: opacity 0.15s ease;
}
.btn-action-trigger:hover:not(.text-danger) {
color: #111111 !important;
text-decoration: underline;
.btn-action-trigger:hover {
opacity: 1;
}
.btn-action-trigger:hover.text-danger {
color: #A71D2A !important;
text-decoration: underline;
}
/* --- Interactive Form Element Overlays --- */
/* --- Interactive Address Form Fields --- */
.premium-plaintext-field {
border: 1px solid rgba(0, 0, 0, 0.12);
background-color: #FAFAFA;
border: 1px solid rgba(0, 0, 0, 0.08);
border-radius: 6px;
padding: 0.65rem 0.85rem;
font-size: 0.9rem;
@@ -196,40 +204,69 @@
background: transparent;
border: none;
color: #666666;
transition: color 0.2s ease;
transition: color 0.15s ease;
}
.btn-clean-cancel:hover {
color: #111111;
}
.border-y {
border-top: 1px solid rgba(0, 0, 0, 0.06);
border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.context-clickable {
cursor: pointer;
user-select: none;
}
/* --- Identity Node Presentation Wrappers --- */
/* --- Profile Settings Identity Pillar Elements --- */
.profile-hero-banner {
background-color: #FAFAFA;
border: 1px solid rgba(0, 0, 0, 0.05);
}
.animate-fade-in {
animation: layoutFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
/* --- CSS Grid Book Item Layout --- */
.manifest-grid-wrap {
display: grid;
grid-template-columns: repeat(1, 1fr);
gap: 1rem;
width: 100%;
}
@keyframes layoutFadeIn {
from {
opacity: 0;
transform: translateY(6px);
}
to {
opacity: 1;
transform: translateY(0);
@media (min-width: 768px) {
.manifest-grid-wrap {
grid-template-columns: repeat(2, 1fr);
}
}
.manifest-grid-cell {
min-width: 0;
}
.manifest-book-item {
transition: background-color 0.15s ease;
}
.manifest-book-item:hover {
background-color: rgba(0, 0, 0, 0.015) !important;
}
.book-thumbnail-container {
width: 42px;
height: 56px;
overflow: hidden;
display: flex;
align-items: center;
justify-content: center;
border: 1px solid rgba(0, 0, 0, 0.08) !important;
}
.book-thumbnail-img {
width: 100%;
height: 100%;
object-fit: cover;
}
.shadow-xs {
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.min-w-0 {
min-width: 0;
}
.order-summary-footer {
border-top: 1px solid rgba(0, 0, 0, 0.06) !important;
}