Admin mode. Data driven content sections. Bugfixes.

This commit is contained in:
kfj001 committed 2026-06-19 17:36:35 +00:00
1 parent bd65455945
commit 266c2451f1
30 files changed
+1733 -13

No files matched your search

+177
View File
@@ -0,0 +1,177 @@
@use '../../styles/variables' as *;
@use '../../styles/mixins' as *;
.admin-page {
min-height: calc(100vh - 80px);
background: $neutral-cream;
padding: $spacing-xl 0;
}
.admin-header {
text-align: center;
margin-bottom: $spacing-xl;
h1 {
font-family: $font-heading;
color: $primary-blue;
font-size: 2rem;
margin: 0 0 $spacing-xs;
}
p {
color: $neutral-medium;
margin: 0;
}
}
// ── Tabs ─────────────────────────────────────────────────
.admin-tabs {
display: flex;
justify-content: center;
gap: $spacing-sm;
margin-bottom: $spacing-xl;
}
.tab-btn {
background: $neutral-white;
border: 1px solid $neutral-light;
border-radius: $radius-md;
padding: $spacing-sm $spacing-xl;
font-size: 0.95rem;
font-weight: 600;
color: $neutral-dark;
cursor: pointer;
transition: all $transition-fast;
&:hover {
border-color: $primary-blue-muted;
color: $primary-blue;
}
&.active {
background: $primary-blue;
border-color: $primary-blue;
color: $neutral-white;
}
}
// ── Tab content ──────────────────────────────────────────
.tab-content {
@include card-style;
padding: $spacing-lg;
}
.tab-toolbar {
@include flex-between;
margin-bottom: $spacing-lg;
h2 {
font-family: $font-heading;
color: $primary-blue;
font-size: 1.3rem;
margin: 0;
}
}
.btn-add {
@include button-style($success-green, $neutral-white, darken($success-green, 8%));
}
// ── Table ────────────────────────────────────────────────
.admin-table {
width: 100%;
border-collapse: collapse;
thead th {
text-align: left;
font-size: 0.8rem;
font-weight: 600;
text-transform: uppercase;
color: $neutral-medium;
padding: $spacing-sm $spacing-md;
border-bottom: 2px solid $neutral-light;
}
tbody td {
padding: $spacing-sm $spacing-md;
border-bottom: 1px solid $neutral-light;
font-size: 0.95rem;
color: $neutral-dark;
vertical-align: middle;
}
.benefits-cell {
max-width: 300px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.empty-row {
text-align: center;
color: $neutral-medium;
padding: $spacing-xl !important;
}
.actions {
display: flex;
gap: $spacing-xs;
white-space: nowrap;
}
}
.btn-icon {
border: none;
padding: $spacing-xs $spacing-sm;
border-radius: $radius-sm;
font-size: 0.85rem;
cursor: pointer;
transition: background $transition-fast;
}
.btn-edit {
background: rgba($info-blue, 0.1);
color: $info-blue;
&:hover {
background: rgba($info-blue, 0.2);
}
}
.btn-delete {
background: rgba($danger-red, 0.1);
color: $danger-red;
&:hover {
background: rgba($danger-red, 0.2);
}
}
.loading-message {
text-align: center;
padding: $spacing-3xl;
color: $neutral-medium;
font-size: 1.1rem;
}
// ── Responsive ───────────────────────────────────────────
@include responsive(md) {
.admin-table {
font-size: 0.85rem;
thead th,
tbody td {
padding: $spacing-xs $spacing-sm;
}
}
.tab-toolbar {
flex-direction: column;
align-items: flex-start;
gap: $spacing-sm;
}
}