Initial app

This commit is contained in:
blaisadmin
2026-04-06 23:36:12 -04:00
parent 9405327f74
commit 68ab8b12d2
20 changed files with 5626 additions and 152 deletions
+490
View File
@@ -0,0 +1,490 @@
:root {
--ink: #1f2a2a;
--muted: #5d5f59;
--panel-border: rgba(31, 110, 78, 0.16);
--panel-bg: rgba(255, 248, 241, 0.82);
--card-bg: linear-gradient(180deg, rgba(255, 240, 231, 0.94), rgba(239, 248, 244, 0.88));
--accent-red: #cb3a35;
--accent-green: #238a5a;
--accent-blue: #2769b3;
--accent-gold: #f0b63f;
--accent-teal: #2f8f98;
color: var(--ink);
background:
radial-gradient(circle at top left, rgba(203, 58, 53, 0.24), transparent 24%),
radial-gradient(circle at 88% 22%, rgba(39, 105, 179, 0.22), transparent 20%),
radial-gradient(circle at bottom right, rgba(35, 138, 90, 0.24), transparent 28%),
linear-gradient(180deg, #fff3e8 0%, #f6ead7 55%, #eef7f2 100%);
font-family: "Avenir Next", "Segoe UI", sans-serif;
line-height: 1.5;
font-weight: 400;
}
* {
box-sizing: border-box;
}
html,
body,
#root {
margin: 0;
min-height: 100%;
}
body {
min-height: 100vh;
color: var(--ink);
}
button,
input,
textarea {
font: inherit;
}
button {
cursor: pointer;
}
button:disabled {
cursor: not-allowed;
}
input,
textarea {
width: 100%;
margin-top: 0.5rem;
border: 1px solid rgba(39, 105, 179, 0.16);
border-radius: 16px;
padding: 0.9rem 1rem;
background: rgba(255, 254, 250, 0.92);
color: var(--ink);
}
input:focus,
textarea:focus {
outline: none;
border-color: rgba(39, 105, 179, 0.62);
box-shadow: 0 0 0 4px rgba(39, 105, 179, 0.14);
}
textarea {
resize: vertical;
}
.app-shell {
max-width: 1280px;
margin: 0 auto;
padding: 2rem;
display: grid;
gap: 1.5rem;
}
.stack-grid {
display: grid;
gap: 1.5rem;
}
.hero-card,
.panel {
background: var(--panel-bg);
border: 1px solid var(--panel-border);
box-shadow: 0 22px 44px rgba(89, 48, 42, 0.13);
backdrop-filter: blur(14px);
}
.hero-card {
border-radius: 32px;
padding: 2rem;
display: grid;
grid-template-columns: 1.3fr 0.7fr;
gap: 1.5rem;
background:
linear-gradient(135deg, rgba(203, 58, 53, 0.12), transparent 34%),
linear-gradient(225deg, rgba(39, 105, 179, 0.1), transparent 36%),
linear-gradient(180deg, rgba(255, 248, 241, 0.92), rgba(245, 251, 248, 0.86));
position: relative;
overflow: hidden;
}
.hero-card::after {
content: "";
position: absolute;
inset: auto -8% -42% auto;
width: 280px;
height: 280px;
border-radius: 50%;
background:
radial-gradient(circle at 35% 35%, rgba(240, 182, 63, 0.62), transparent 26%),
radial-gradient(circle at 58% 44%, rgba(35, 138, 90, 0.52), transparent 32%),
radial-gradient(circle at 72% 62%, rgba(39, 105, 179, 0.5), transparent 30%),
radial-gradient(circle at 42% 74%, rgba(203, 58, 53, 0.52), transparent 32%);
pointer-events: none;
opacity: 0.75;
}
.hero-card h1,
.panel h2 {
margin: 0;
}
.hero-card h1 {
font-size: clamp(2.2rem, 5vw, 4rem);
line-height: 1;
max-width: 12ch;
}
.page-tabs {
display: flex;
gap: 0.75rem;
flex-wrap: wrap;
margin-top: 1.25rem;
position: relative;
z-index: 1;
}
.page-tab {
border: 1px solid rgba(39, 105, 179, 0.14);
border-radius: 999px;
padding: 0.7rem 1.1rem;
background: rgba(255, 255, 255, 0.54);
color: var(--ink);
transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.page-tab.active {
background: linear-gradient(135deg, rgba(203, 58, 53, 0.92), rgba(39, 105, 179, 0.92));
color: #fffdf9;
border-color: transparent;
}
.page-tab:hover {
transform: translateY(-1px);
border-color: rgba(35, 138, 90, 0.34);
}
.eyebrow {
margin: 0 0 0.5rem;
text-transform: uppercase;
letter-spacing: 0.18em;
font-size: 0.72rem;
color: var(--accent-red);
}
.lede,
.muted,
.chart-footer span,
.recent-list small,
.bird-card small {
color: var(--muted);
}
.hero-stats,
.dashboard-grid,
.forms-grid {
display: grid;
gap: 1.5rem;
}
.hero-stats {
grid-template-columns: repeat(3, 1fr);
align-self: end;
}
.hero-stats article,
.chart-card,
.recent-list article,
.bird-card {
border-radius: 24px;
background: var(--card-bg);
border: 1px solid rgba(39, 105, 179, 0.12);
}
.hero-stats article {
padding: 1rem;
position: relative;
overflow: hidden;
}
.hero-stats strong {
display: block;
font-size: 1.7rem;
color: var(--accent-green);
}
.hero-stats article::before,
.bird-card::before,
.chart-card::before {
content: "";
display: block;
height: 5px;
border-radius: 999px;
background: linear-gradient(90deg, var(--accent-red), var(--accent-gold), var(--accent-green), var(--accent-blue));
}
.hero-stats article::before {
margin-bottom: 0.9rem;
}
.hero-stats article:nth-child(2) strong {
color: var(--accent-blue);
}
.hero-stats article:nth-child(3) strong {
color: var(--accent-red);
}
.dashboard-grid {
grid-template-columns: 320px 1fr;
}
.forms-grid {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
.settings-grid {
align-items: start;
}
.flock-member-panel,
.flock-member-sections {
display: grid;
gap: 1.5rem;
}
.panel {
border-radius: 28px;
padding: 1.5rem;
}
.panel-header {
display: flex;
align-items: start;
justify-content: space-between;
gap: 1rem;
margin-bottom: 1rem;
}
.bird-list {
display: grid;
gap: 0.9rem;
}
.bird-card {
width: 100%;
text-align: left;
padding: 1rem;
border: 1px solid rgba(95, 121, 77, 0.12);
display: grid;
gap: 0.35rem;
transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
position: relative;
overflow: hidden;
}
.bird-card:hover,
.bird-card.active {
transform: translateY(-2px);
box-shadow: 0 16px 24px rgba(39, 105, 179, 0.15);
border-color: rgba(35, 138, 90, 0.42);
}
.bird-card::before {
position: absolute;
inset: 0 auto 0 0;
width: 6px;
height: auto;
margin: 0;
border-radius: 0 999px 999px 0;
}
.chart-card {
padding: 1rem;
background:
linear-gradient(180deg, rgba(255, 248, 236, 0.92), rgba(240, 249, 245, 0.88)),
var(--card-bg);
position: relative;
overflow: hidden;
}
.chart-card::before {
margin-bottom: 1rem;
}
.chart-card::after {
content: "";
position: absolute;
top: 1rem;
right: 1rem;
width: 110px;
height: 110px;
border-radius: 50%;
background:
radial-gradient(circle, rgba(39, 105, 179, 0.14), transparent 58%);
pointer-events: none;
}
.overview-chart-card {
min-height: 260px;
}
.weight-chart {
width: 100%;
height: auto;
min-height: 180px;
}
.chart-footer,
.recent-list,
.detail-grid,
.summary-grid,
.legend-grid,
.inline-form {
display: grid;
gap: 0.85rem;
}
.chart-footer {
grid-template-columns: 1fr auto;
align-items: center;
}
.recent-list article {
padding: 0.9rem 1rem;
display: grid;
gap: 0.25rem;
}
.legend-grid,
.detail-grid,
.summary-grid {
grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.inline-form {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
.legend-card,
.detail-card,
.summary-card,
.vet-visit-card {
padding: 1rem;
border-radius: 20px;
background: linear-gradient(180deg, rgba(255, 252, 247, 0.9), rgba(240, 248, 244, 0.82));
border: 1px solid rgba(39, 105, 179, 0.1);
display: grid;
gap: 0.35rem;
}
.inset-panel {
padding: 1.25rem;
background: linear-gradient(180deg, rgba(255, 252, 247, 0.74), rgba(241, 248, 244, 0.72));
}
.wide-field {
grid-column: 1 / -1;
}
.legend-card {
grid-template-columns: auto 1fr;
align-items: center;
}
.legend-swatch {
width: 14px;
height: 14px;
border-radius: 50%;
display: inline-block;
box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.65);
}
.detail-card span,
.summary-card span {
color: var(--muted);
font-size: 0.95rem;
}
.detail-card strong,
.summary-card strong,
.legend-card strong {
font-size: 1.05rem;
}
.vet-visit-card span,
.vet-visit-card small {
color: var(--muted);
}
.empty-card {
opacity: 0.82;
}
.form-panel {
display: grid;
gap: 1rem;
}
label {
display: block;
font-weight: 600;
}
.primary-button {
border: 0;
border-radius: 18px;
padding: 0.95rem 1.2rem;
color: #fffdf9;
background: linear-gradient(135deg, var(--accent-red), var(--accent-blue));
box-shadow: 0 14px 28px rgba(39, 105, 179, 0.2);
}
.primary-button:hover {
background: linear-gradient(135deg, #b7312d, #1f5e9f);
}
.danger-button {
border: 1px solid rgba(171, 44, 44, 0.18);
border-radius: 18px;
padding: 0.95rem 1.2rem;
color: #fffaf8;
background: linear-gradient(135deg, #bc3733, #8e2523);
box-shadow: 0 12px 24px rgba(142, 37, 35, 0.18);
}
.danger-button:hover {
background: linear-gradient(135deg, #aa2f2c, #7d201e);
}
.primary-button:disabled {
opacity: 0.55;
cursor: not-allowed;
}
.error-banner {
margin: 0;
padding: 1rem 1.2rem;
border-radius: 18px;
background: rgba(203, 58, 53, 0.1);
border: 1px solid rgba(203, 58, 53, 0.2);
color: #922728;
}
@media (max-width: 980px) {
.hero-card,
.dashboard-grid,
.forms-grid,
.hero-stats,
.chart-footer,
.inline-form {
grid-template-columns: 1fr;
}
.app-shell {
padding: 1rem;
}
.page-tabs {
margin-top: 1rem;
}
}