Working Prototype

This commit is contained in:
blaisadmin
2026-03-26 00:24:33 -04:00
parent 04c74de25a
commit 4cdfaa822e
9 changed files with 2760 additions and 1051 deletions
+448 -278
View File
@@ -3,49 +3,29 @@
@tailwind utilities;
:root {
color-scheme: dark;
--bg: #0d1216;
--panel: rgba(20, 28, 34, 0.92);
--panel-soft: rgba(28, 38, 45, 0.84);
--line: rgba(255, 255, 255, 0.08);
--text: #edf3ef;
--muted: #97a8a5;
--gold: #d8b36a;
--accent: #78b8a4;
--shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
font-family: "Segoe UI", "Inter", sans-serif;
color: #e8eadf;
background:
radial-gradient(circle at top left, rgba(94, 112, 71, 0.28), transparent 32%),
radial-gradient(circle at bottom right, rgba(67, 80, 51, 0.26), transparent 30%),
linear-gradient(160deg, #10130f 0%, #171b15 45%, #0d100c 100%);
}
* {
box-sizing: border-box;
}
html {
background:
radial-gradient(circle at top left, rgba(216, 179, 106, 0.16), transparent 22%),
radial-gradient(circle at bottom right, rgba(120, 184, 164, 0.14), transparent 24%),
linear-gradient(180deg, #11181d 0%, #0a0f12 100%);
html,
body,
#root {
min-height: 100%;
margin: 0;
}
body {
margin: 0;
min-width: 320px;
min-height: 100vh;
color: var(--text);
font-family: "Avenir Next", "Segoe UI", sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
#root {
min-height: 100vh;
}
h1,
h2,
h3,
.eyebrow,
.panel-kicker {
font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
color: #e8eadf;
background: transparent;
}
button,
@@ -55,233 +35,456 @@ textarea {
font: inherit;
}
button {
cursor: pointer;
}
input,
select,
textarea {
width: 100%;
margin-top: 8px;
padding: 12px 14px;
color: var(--text);
background: rgba(255, 255, 255, 0.03);
border: 1px solid rgba(255, 255, 255, 0.08);
border: 1px solid rgba(171, 180, 140, 0.18);
border-radius: 14px;
appearance: none;
-webkit-appearance: none;
-moz-appearance: none;
background: rgba(12, 16, 11, 0.72);
color: #eef1e5;
padding: 0.85rem 1rem;
transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
select {
background:
linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.03)),
url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M5 7.5L10 12.5L15 7.5' stroke='%23d8b36a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
no-repeat right 14px center;
padding-right: 42px;
}
select option {
color: var(--text);
background: #162027;
input:focus,
select:focus,
textarea:focus {
outline: none;
border-color: rgba(140, 158, 101, 0.74);
box-shadow: 0 0 0 3px rgba(109, 127, 73, 0.2);
}
textarea {
resize: vertical;
}
.app-shell {
display: grid;
grid-template-columns: 290px minmax(0, 1fr);
gap: 22px;
width: min(1440px, calc(100% - 28px));
margin: 0 auto;
padding: 20px 0 36px;
}
.sidebar,
.panel,
.summary-card,
.error-banner {
border: 1px solid var(--line);
background: var(--panel);
backdrop-filter: blur(16px);
box-shadow: var(--shadow);
}
.sidebar {
display: flex;
flex-direction: column;
gap: 18px;
padding: 22px;
border-radius: 28px;
position: sticky;
top: 20px;
height: fit-content;
}
.brand-block h1,
.stage-header h2 {
margin: 8px 0 12px;
}
.brand-block p,
.summary-card p,
.placeholder-copy,
.settings-row p,
.ammo-card p,
.firearm-card p,
.mini-stat span,
.card-footer span {
color: var(--muted);
}
.eyebrow,
.panel-kicker {
color: var(--gold);
text-transform: uppercase;
letter-spacing: 0.16em;
font-size: 0.76rem;
font-size: 0.72rem;
color: #aab37d;
}
.nav-stack {
.loading-shell,
.auth-shell {
min-height: 100vh;
display: grid;
gap: 10px;
gap: 2rem;
align-items: center;
padding: 3rem;
}
.nav-button,
.primary-button,
.secondary-button,
.chip-button {
.loading-shell {
place-items: center;
}
.loading-card,
.auth-card,
.auth-hero,
.panel,
.sidebar {
border: 1px solid rgba(171, 180, 140, 0.12);
background: rgba(17, 22, 16, 0.76);
backdrop-filter: blur(16px);
box-shadow: 0 28px 60px rgba(0, 0, 0, 0.28);
}
.loading-card,
.auth-card,
.auth-hero {
border-radius: 28px;
padding: 2rem;
}
.auth-shell {
grid-template-columns: 1.1fr 0.9fr;
}
.auth-hero {
min-height: 520px;
display: flex;
flex-direction: column;
justify-content: center;
background:
linear-gradient(135deg, rgba(103, 120, 68, 0.2), transparent 55%),
rgba(17, 22, 16, 0.82);
}
.auth-brand {
display: flex;
align-items: center;
gap: 1rem;
}
.brand-mark {
width: 72px;
height: 72px;
display: inline-flex;
align-items: center;
justify-content: center;
gap: 10px;
border-radius: 14px;
border: 1px solid transparent;
cursor: pointer;
}
.nav-button {
width: 100%;
justify-content: flex-start;
padding: 14px 16px;
background: rgba(255, 255, 255, 0.03);
color: var(--text);
}
.nav-button.active {
background: linear-gradient(135deg, rgba(216, 179, 106, 0.18), rgba(120, 184, 164, 0.12));
border-color: rgba(216, 179, 106, 0.18);
}
.summary-card {
padding: 18px;
border-radius: 22px;
background: linear-gradient(180deg, rgba(216, 179, 106, 0.12), rgba(255, 255, 255, 0.02));
color: #dfe6c8;
background: linear-gradient(145deg, rgba(104, 121, 68, 0.34), rgba(47, 56, 36, 0.76));
border: 1px solid rgba(171, 180, 140, 0.18);
}
.summary-card strong {
display: block;
margin-top: 10px;
font-size: 2rem;
.auth-hero h1 {
font-size: clamp(2.4rem, 5vw, 4.2rem);
line-height: 1.04;
margin: 0.35rem 0 0;
max-width: none;
}
.main-stage {
display: grid;
gap: 18px;
.auth-hero p,
.muted-copy,
.header-copy,
.card-footer span,
.settings-row p,
.provider-header p {
color: #b8c0af;
}
.stage-header {
.hero-tags,
.chip-row,
.button-row {
display: flex;
align-items: flex-end;
justify-content: space-between;
gap: 18px;
padding: 8px 4px;
gap: 0.75rem;
flex-wrap: wrap;
}
.stage-stats {
display: flex;
gap: 14px;
.hero-tags span,
.profile-chip,
.status-pill {
display: inline-flex;
align-items: center;
justify-content: center;
text-decoration: none;
border-radius: 999px;
padding: 0.55rem 0.95rem;
background: rgba(171, 180, 140, 0.08);
border: 1px solid rgba(171, 180, 140, 0.12);
color: inherit;
}
.mini-stat {
min-width: 160px;
padding: 14px 16px;
border-radius: 18px;
background: rgba(255, 255, 255, 0.04);
border: 1px solid rgba(255, 255, 255, 0.05);
.auth-card {
max-width: 520px;
width: 100%;
justify-self: center;
}
.mini-stat strong {
display: block;
margin-top: 8px;
font-size: 1.2rem;
}
.panel {
padding: 22px;
border-radius: 26px;
}
.panel-heading,
.card-footer,
.auth-tabs,
.settings-inline,
.header-tools,
.provider-header,
.toggle-row,
.ammo-card-top,
.settings-row {
.panel-heading,
.settings-row,
.card-footer,
.stage-header {
display: flex;
align-items: center;
justify-content: space-between;
gap: 16px;
gap: 1rem;
}
.panel-heading {
margin-bottom: 18px;
.auth-tabs {
margin-bottom: 1.25rem;
}
.tab-button,
.nav-button,
.profile-chip,
.secondary-button,
.primary-button {
border: 0;
transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.tab-button {
flex: 1;
padding: 0.95rem 1rem;
border-radius: 16px;
background: rgba(171, 180, 140, 0.06);
color: #dce2d2;
}
.tab-button.active,
.nav-button.active,
.primary-button,
.profile-chip.active {
background: linear-gradient(135deg, #89985f, #4c5736);
color: #eef3e4;
}
.form-stack,
.settings-block,
.settings-list,
.provider-config-grid,
.nav-stack,
.main-stage,
.view-grid,
.firearm-grid,
.ammo-grid,
.settings-grid {
display: grid;
gap: 1rem;
}
.auth-divider {
margin: 1.5rem 0 1rem;
text-align: center;
color: #8d9586;
position: relative;
}
.auth-divider span {
position: relative;
padding: 0 0.75rem;
background: rgba(16, 20, 27, 0.92);
}
.auth-divider::before {
content: "";
position: absolute;
top: 50%;
left: 0;
right: 0;
height: 1px;
background: rgba(171, 180, 140, 0.12);
}
.provider-list {
display: grid;
gap: 0.75rem;
}
.sso-button {
width: 100%;
display: inline-flex;
align-items: center;
justify-content: center;
border-radius: 14px;
padding: 0.9rem 1rem;
border: 1px solid rgba(171, 180, 140, 0.12);
background: rgba(171, 180, 140, 0.06);
color: #edf0e3;
transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.sso-button:hover {
transform: translateY(-1px);
background: rgba(171, 180, 140, 0.12);
}
.full-width {
width: 100%;
}
.error-banner,
.success-banner {
margin: 0;
padding: 0.95rem 1rem;
border-radius: 16px;
}
.error-banner {
background: rgba(146, 49, 49, 0.24);
border: 1px solid rgba(222, 96, 96, 0.28);
color: #ffd0d0;
}
.success-banner {
background: rgba(43, 97, 76, 0.24);
border: 1px solid rgba(88, 180, 143, 0.28);
color: #d3ffe8;
}
.toast-banner {
position: fixed;
top: 1rem;
left: 50%;
transform: translateX(-50%);
z-index: 1000;
min-width: min(520px, calc(100vw - 2rem));
box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}
.primary-button,
.secondary-button,
.nav-button {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 0.55rem;
border-radius: 14px;
padding: 0.85rem 1.1rem;
}
.primary-button {
font-weight: 700;
}
.secondary-button,
.nav-button,
.profile-chip {
background: rgba(171, 180, 140, 0.06);
color: #edf0e3;
border: 1px solid rgba(171, 180, 140, 0.12);
}
.nav-button {
justify-content: flex-start;
}
.primary-button:hover,
.secondary-button:hover,
.tab-button:hover,
.nav-button:hover,
.profile-chip:hover {
transform: translateY(-1px);
}
.app-shell {
min-height: 100vh;
display: grid;
grid-template-columns: 300px 1fr;
gap: 1.5rem;
padding: 1.5rem;
}
.sidebar,
.panel {
border-radius: 28px;
}
.sidebar {
padding: 1.5rem;
position: sticky;
top: 1.5rem;
height: calc(100vh - 3rem);
}
.mobile-sidebar {
display: none;
}
.brand-block h1,
.stage-header h2,
.panel h3 {
margin: 0.55rem 0 0.35rem;
}
.main-stage {
align-content: start;
}
.stage-header {
padding: 0.5rem 0;
}
.profile-picker {
min-width: 220px;
}
.profile-picker span,
label span {
display: block;
margin-bottom: 0.45rem;
color: #d9e0e6;
font-size: 0.92rem;
}
.stage-stats,
.view-grid,
.settings-grid {
display: grid;
gap: 18px;
gap: 1rem;
}
.stage-stats {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
.mini-stat {
border-radius: 22px;
padding: 1.2rem 1.35rem;
background: rgba(17, 22, 16, 0.72);
border: 1px solid rgba(171, 180, 140, 0.12);
}
.mini-stat span {
color: #b7bead;
display: block;
margin-bottom: 0.45rem;
}
.mini-stat strong {
font-size: 1.65rem;
}
.view-grid {
grid-template-columns: minmax(0, 1.4fr) minmax(340px, 0.8fr);
grid-template-columns: minmax(0, 1.35fr) minmax(360px, 0.8fr);
}
.settings-grid {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
.auth-settings-panel,
.settings-menu-panel {
grid-column: 1 / -1;
}
.panel {
padding: 1.4rem;
}
.firearm-grid,
.ammo-grid,
.settings-list,
.chip-grid {
display: grid;
gap: 14px;
.provider-config-grid {
margin-top: 1rem;
}
.ammo-toolbar {
display: grid;
gap: 14px;
margin-bottom: 18px;
.firearm-grid {
grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
}
.ammo-grid,
.provider-config-grid {
grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.firearm-card,
.ammo-card {
padding: 18px;
.ammo-card,
.provider-card {
border-radius: 22px;
border: 1px solid rgba(255, 255, 255, 0.06);
background: var(--panel-soft);
}
.firearm-card {
display: grid;
gap: 16px;
padding: 1rem;
background: rgba(12, 16, 11, 0.74);
border: 1px solid rgba(171, 180, 140, 0.1);
}
.firearm-visual {
overflow: hidden;
border-radius: 18px;
aspect-ratio: 16 / 7;
background: rgba(255, 255, 255, 0.04);
min-height: 180px;
border-radius: 20px;
padding: 1rem;
display: flex;
align-items: center;
justify-content: center;
background: rgba(171, 180, 140, 0.04);
}
.firearm-visual img {
.firearm-photo,
.firearm-silhouette {
width: 100%;
height: 100%;
max-height: 180px;
border-radius: 18px;
}
.firearm-photo {
@@ -297,134 +500,101 @@ textarea {
.form-grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 14px;
gap: 0.9rem;
margin-top: 1rem;
}
.form-grid.compact {
grid-template-columns: repeat(2, minmax(0, 1fr));
grid-template-columns: minmax(0, 1fr);
}
.full-width {
grid-column: 1 / -1;
}
label span {
display: block;
color: var(--muted);
font-size: 0.84rem;
}
.card-footer {
margin-top: 4px;
margin-top: 1rem;
padding-top: 1rem;
border-top: 1px solid rgba(171, 180, 140, 0.08);
}
.primary-button,
.secondary-button,
.chip-button {
padding: 12px 16px;
}
.button-row {
display: flex;
gap: 10px;
}
.primary-button {
background: var(--gold);
color: #16120d;
}
.secondary-button {
background: rgba(255, 255, 255, 0.05);
color: var(--text);
border-color: rgba(255, 255, 255, 0.08);
}
.chip-grid {
grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}
.chip-button {
background: rgba(255, 255, 255, 0.04);
color: var(--text);
border-color: rgba(255, 255, 255, 0.08);
}
.chip-button.disabled {
opacity: 0.45;
cursor: not-allowed;
}
.settings-inline {
display: flex;
gap: 12px;
}
.settings-inline input {
margin-top: 0;
.placeholder-copy {
margin: 0;
color: #abb4a1;
padding: 1rem 0;
}
.settings-row {
padding: 14px 0;
border-bottom: 1px solid rgba(255, 255, 255, 0.05);
padding: 0.95rem 0;
border-top: 1px solid rgba(171, 180, 140, 0.08);
}
.settings-row:last-child {
border-bottom: 0;
.settings-row:first-child {
border-top: 0;
padding-top: 0;
}
.badge {
display: inline-flex;
align-items: center;
border-radius: 999px;
padding: 8px 12px;
background: rgba(120, 184, 164, 0.14);
border: 1px solid rgba(120, 184, 164, 0.18);
color: #c9efe4;
.settings-row.static {
padding-bottom: 0.4rem;
}
.error-banner {
padding: 14px 16px;
border-radius: 18px;
background: rgba(201, 83, 83, 0.16);
border-color: rgba(201, 83, 83, 0.3);
.status-pill {
color: #eef3e4;
background: linear-gradient(135deg, #829455, #59693d);
border: 0;
}
@media (max-width: 1120px) {
.toggle-row {
gap: 0.65rem;
color: #d7ddc8;
}
.toggle-row input {
width: 18px;
height: 18px;
padding: 0;
}
@media (max-width: 1100px) {
.app-shell,
.view-grid {
.auth-shell,
.view-grid,
.settings-grid {
grid-template-columns: 1fr;
}
.desktop-sidebar {
display: none;
}
.mobile-sidebar {
display: block;
position: static;
height: auto;
}
.sidebar {
position: static;
height: auto;
}
}
@media (max-width: 720px) {
.app-shell {
width: min(100% - 16px, 1440px);
padding-top: 12px;
.app-shell,
.auth-shell {
padding: 1rem;
}
.stage-header,
.panel-heading,
.header-tools,
.card-footer,
.button-row,
.settings-inline,
.settings-row,
.ammo-card-top {
.settings-inline {
flex-direction: column;
align-items: flex-start;
align-items: stretch;
}
.stage-stats,
.form-grid,
.form-grid.compact {
.form-grid {
grid-template-columns: 1fr;
}
.mini-stat {
width: 100%;
}
}