Beta: admin assets, resource download forms, and resource page redesign

This commit is contained in:
nmemmert
2026-04-30 15:47:10 -04:00
parent 10bd6848ef
commit 7f56060d6b
14 changed files with 2000 additions and 1029 deletions
+225 -34
View File
@@ -1455,29 +1455,89 @@
}
.resources-list {
display: flex;
flex-wrap: wrap;
gap: 1rem;
justify-content: center;
}
display: grid;
grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
gap: 1rem;
}
.resource-link {
font-family: var(--brand-font-body);
font-weight: 500;
font-size: 1rem;
letter-spacing: 0.06em;
color: var(--brand-gold);
text-decoration: none;
border: 1px solid rgba(201, 168, 76, 0.3);
border-radius: 999px;
padding: 0.6rem 1.4rem;
transition: background 200ms, color 200ms;
}
.resource-link {
display: grid;
grid-template-columns: auto 1fr auto;
align-items: center;
gap: 1rem;
min-height: 86px;
padding: 1rem 1.2rem;
font-family: var(--brand-font-body);
font-weight: 600;
font-size: 1rem;
letter-spacing: 0.02em;
color: var(--brand-warm-white);
text-decoration: none;
background: #111;
border: 1px solid rgba(201, 168, 76, 0.18);
border-radius: 18px;
transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}
.resource-link:hover {
background: rgba(201, 168, 76, 0.1);
color: #d4b87a;
}
.resource-link:hover {
transform: translateY(-1px);
background: rgba(201, 168, 76, 0.08);
border-color: rgba(201, 168, 76, 0.35);
}
.resource-link--with-image {
grid-template-columns: auto 1fr auto;
}
.resource-download-card {
background: #111;
border: 1px solid rgba(201, 168, 76, 0.18);
border-radius: 18px;
padding: 1rem;
display: grid;
gap: 1rem;
}
.resource-download-header {
display: flex;
gap: 1rem;
align-items: center;
}
.resource-download-meta {
display: flex;
flex-direction: column;
gap: 0.35rem;
min-width: 0;
}
.resource-link-label {
display: block;
font-size: 1rem;
color: var(--brand-warm-white);
}
.resource-link-action {
color: var(--brand-gold);
font-size: 0.95rem;
white-space: nowrap;
}
.resource-link-image {
width: 72px;
height: 72px;
border-radius: 16px;
object-fit: cover;
border: 1px solid rgba(201, 168, 76, 0.2);
flex-shrink: 0;
}
.resource-link-tags {
margin-top: 0.15rem;
color: rgba(201, 168, 76, 0.9);
font-size: 0.88rem;
letter-spacing: 0.03em;
}
/* ── Custom content blocks ── */
.section-custom-block {
@@ -1783,7 +1843,8 @@
}
.admin-form-wrap {
max-width: 760px;
max-width: 1400px;
width: min(100%, 1400px);
margin: 0 auto;
padding: 3rem 2rem 5rem;
}
@@ -1795,6 +1856,31 @@
margin-bottom: 1.1rem;
}
.admin-action-toolbar {
display: flex;
flex-wrap: wrap;
gap: 1rem;
justify-content: space-between;
align-items: center;
margin-bottom: 1.5rem;
}
.admin-action-toolbar-meta {
display: flex;
flex-wrap: wrap;
gap: 1rem;
color: var(--brand-muted);
font-size: 0.95rem;
align-items: center;
}
.admin-actions--toolbar {
display: flex;
flex-wrap: wrap;
gap: 0.75rem;
justify-content: flex-end;
}
.admin-top-tabs .admin-tab {
flex: 1 1 180px;
min-width: 180px;
@@ -2111,6 +2197,28 @@
margin-top: 0.9rem;
}
.admin-assets-table input[type="text"] {
width: 100%;
padding: 0.35rem 0.45rem;
border: 1px solid rgba(201, 168, 76, 0.18);
border-radius: 8px;
background: #090909;
color: var(--brand-warm-white);
}
.admin-assets-actions {
display: flex;
gap: 0.5rem;
flex-wrap: wrap;
}
.resource-link-tags {
margin-top: 0.35rem;
color: var(--brand-gold);
font-size: 0.88rem;
opacity: 0.9;
}
.admin-restore-row {
margin-top: 0.9rem;
display: flex;
@@ -2303,11 +2411,16 @@
}
.admin-form-section-fields {
display: flex;
flex-direction: column;
display: grid;
gap: 1rem;
}
@media (min-width: 1024px) {
.admin-form-section-fields {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
}
.admin-form-section .admin-section-header {
border-top: none;
padding-top: 0;
@@ -2424,21 +2537,61 @@
/* ── Admin: select input ── */
.admin-field select {
background: #111;
border: 1px solid rgba(201, 168, 76, 0.22);
border: 1px solid rgba(201, 168, 76, 0.35);
border-radius: 6px;
color: var(--brand-warm-white);
font-family: var(--brand-font-body);
font-size: 1rem;
font-weight: 300;
padding: 0.65rem 0.85rem;
padding: 0.65rem 1rem 0.65rem 0.85rem;
outline: none;
appearance: none;
transition: border-color 200ms;
appearance: auto;
transition: border-color 200ms, background-image 200ms;
cursor: pointer;
background-image: linear-gradient(45deg, transparent 50%, rgba(255,255,255,0.9) 50%), linear-gradient(135deg, rgba(255,255,255,0.9) 50%, transparent 50%);
background-position: calc(100% - 0.75rem) calc(50% - 0.15rem), calc(100% - 0.4rem) calc(50% - 0.15rem);
background-size: 0.45rem 0.45rem, 0.45rem 0.45rem;
background-repeat: no-repeat;
}
.admin-field select:focus {
border-color: rgba(201, 168, 76, 0.65);
border-color: rgba(201, 168, 76, 0.75);
}
.admin-field-asset-picker {
display: flex;
flex-direction: column;
gap: 0.35rem;
margin-top: 0.75rem;
padding: 0.85rem 0.9rem;
border: 1px solid rgba(201, 168, 76, 0.16);
border-radius: 10px;
background: rgba(255, 255, 255, 0.02);
}
.admin-field-asset-picker label {
color: var(--brand-gold);
}
.admin-field-asset-picker label {
font-size: 0.78rem;
color: var(--brand-gold);
letter-spacing: 0.14em;
text-transform: uppercase;
}
.admin-field-asset-picker select {
width: 100%;
min-width: 0;
background: #111;
border: 1px solid rgba(201, 168, 76, 0.45);
border-radius: 6px;
color: var(--brand-warm-white);
padding: 0.65rem 0.85rem;
}
.admin-field-asset-picker select:focus {
border-color: rgba(201, 168, 76, 0.75);
}
/* ── Admin: section divider ── */
@@ -2596,12 +2749,29 @@
margin-bottom: 0.75rem;
}
.back-to-top {
position: fixed;
right: 1.5rem;
bottom: 1.5rem;
z-index: 20;
background: rgba(12, 12, 12, 0.96);
color: var(--brand-gold);
border: 1px solid rgba(201, 168, 76, 0.45);
border-radius: 999px;
padding: 0.85rem 1rem;
cursor: pointer;
box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
font-family: var(--brand-font-body);
font-weight: 700;
transition: transform 0.25s ease, background 0.2s ease;
}
.back-to-top:hover {
transform: translateY(-2px);
background: rgba(201, 168, 76, 0.08);
}
.btn-admin-add {
background: transparent;
color: var(--brand-gold);
font-family: var(--brand-font-body);
font-weight: 600;
font-size: 0.95rem;
letter-spacing: 0.06em;
padding: 0.6rem 1.2rem;
border-radius: 999px;
@@ -2637,6 +2807,27 @@
border-color: rgba(224, 92, 92, 0.4);
}
.btn-admin-apply {
background: transparent;
color: var(--brand-gold);
font-family: var(--brand-font-body);
font-weight: 600;
font-size: 0.85rem;
letter-spacing: 0.05em;
padding: 0.5rem 0.85rem;
border-radius: 6px;
border: 1px solid rgba(201, 168, 76, 0.35);
cursor: pointer;
flex-shrink: 0;
align-self: flex-start;
transition: background 200ms, border-color 200ms;
}
.btn-admin-apply:hover {
background: rgba(201, 168, 76, 0.08);
border-color: rgba(201, 168, 76, 0.65);
}
/* ── Responsive ── */
@media (max-width: 820px) {
.hero {