Adds customers page and related styling
Introduces new customers management interface with data table Adds customers-specific CSS and updates layout to include new stylesheet Configures menu service to point to new customers page route
This commit is contained in:
parent
c1d2df9327
commit
65ad9aacdf
6 changed files with 361 additions and 1 deletions
|
|
@ -1127,6 +1127,32 @@ swp-tag {
|
|||
background: var(--bg-purple-strong);
|
||||
color: var(--color-purple);
|
||||
}
|
||||
|
||||
/* Customer tags */
|
||||
&.vip {
|
||||
background: var(--bg-amber-strong);
|
||||
color: #b8860b;
|
||||
}
|
||||
|
||||
&.stamkunde {
|
||||
background: var(--bg-teal-strong);
|
||||
color: var(--color-teal);
|
||||
}
|
||||
|
||||
&.ny {
|
||||
background: var(--bg-blue-strong);
|
||||
color: var(--color-blue);
|
||||
}
|
||||
|
||||
&.allergi {
|
||||
background: var(--bg-red-strong);
|
||||
color: var(--color-red);
|
||||
}
|
||||
|
||||
&.sensitiv {
|
||||
background: var(--bg-purple-strong);
|
||||
color: var(--color-purple);
|
||||
}
|
||||
}
|
||||
|
||||
/* ===========================================
|
||||
|
|
|
|||
68
PlanTempus.Application/wwwroot/css/customers.css
Normal file
68
PlanTempus.Application/wwwroot/css/customers.css
Normal file
|
|
@ -0,0 +1,68 @@
|
|||
/**
|
||||
* Customers - Page Styling
|
||||
*
|
||||
* Feature-specific styling only.
|
||||
* Reuses:
|
||||
* - swp-sticky-header, swp-header-content, swp-page-container (page.css)
|
||||
* - swp-stats-row, swp-stat-card (stats.css)
|
||||
* - swp-action-bar, swp-search-input (components.css, services.css)
|
||||
* - swp-data-table, swp-avatar, swp-tag, swp-empty-state (components.css)
|
||||
* - swp-btn (components.css)
|
||||
*/
|
||||
|
||||
/* ===========================================
|
||||
CUSTOMER TABLE (uses swp-data-table from components.css)
|
||||
=========================================== */
|
||||
swp-card.customers-list {
|
||||
padding: 0;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
/* Table columns: Navn(1fr) | Tlf(120px) | Email(180px) | Besøg(70px) | Sidste(90px) | Frisør(100px) | Oprettet(90px) | Tags(140px) */
|
||||
swp-card.customers-list swp-data-table {
|
||||
grid-template-columns: minmax(200px, 1fr) 120px 180px 70px 90px 100px 90px 140px;
|
||||
}
|
||||
|
||||
swp-card.customers-list swp-data-table-header,
|
||||
swp-card.customers-list swp-data-table-row {
|
||||
padding: 0 var(--spacing-10);
|
||||
}
|
||||
|
||||
swp-card.customers-list swp-data-table-header swp-data-table-cell {
|
||||
padding-top: var(--spacing-5);
|
||||
padding-bottom: var(--spacing-5);
|
||||
}
|
||||
|
||||
swp-card.customers-list swp-data-table-row {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
swp-card.customers-list swp-data-table-cell {
|
||||
padding: var(--spacing-5) 0;
|
||||
}
|
||||
|
||||
/* Name cell with avatar */
|
||||
swp-card.customers-list swp-data-table-cell:first-child {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: var(--spacing-4);
|
||||
}
|
||||
|
||||
/* Mono font for visits column */
|
||||
swp-card.customers-list swp-data-table-row swp-data-table-cell:nth-child(4) {
|
||||
font-family: var(--font-mono);
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
/* Muted text for email and created columns */
|
||||
swp-card.customers-list swp-data-table-row swp-data-table-cell:nth-child(3),
|
||||
swp-card.customers-list swp-data-table-row swp-data-table-cell:nth-child(7) {
|
||||
color: var(--color-text-secondary);
|
||||
}
|
||||
|
||||
/* Tags cell */
|
||||
swp-card.customers-list swp-data-table-cell:last-child {
|
||||
display: flex;
|
||||
gap: var(--spacing-2);
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue