Add themed UI, favicon, plan deletion, regrow cycles, and crop prep/post tasks
This commit is contained in:
24
static/farmcal-icon.svg
Normal file
24
static/farmcal-icon.svg
Normal file
@@ -0,0 +1,24 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" role="img" aria-label="FarmCal Icon">
|
||||
<defs>
|
||||
<linearGradient id="sky" x1="0" y1="0" x2="0" y2="1">
|
||||
<stop offset="0%" stop-color="#5db6d8"/>
|
||||
<stop offset="100%" stop-color="#f6d27a"/>
|
||||
</linearGradient>
|
||||
<linearGradient id="field" x1="0" y1="0" x2="1" y2="1">
|
||||
<stop offset="0%" stop-color="#8dbf2f"/>
|
||||
<stop offset="100%" stop-color="#4f7a1c"/>
|
||||
</linearGradient>
|
||||
</defs>
|
||||
<rect width="256" height="256" rx="40" fill="url(#sky)"/>
|
||||
<path d="M0 180 C40 150, 100 145, 256 170 L256 256 L0 256 Z" fill="url(#field)"/>
|
||||
<circle cx="194" cy="62" r="20" fill="#ffe98a" opacity=".9"/>
|
||||
<rect x="58" y="118" width="118" height="36" rx="8" fill="#1f2c34"/>
|
||||
<rect x="136" y="84" width="48" height="40" rx="8" fill="#b8d7e9"/>
|
||||
<rect x="150" y="94" width="24" height="22" rx="3" fill="#8fb3c9"/>
|
||||
<rect x="82" y="98" width="54" height="26" rx="6" fill="#7fbf28"/>
|
||||
<circle cx="86" cy="176" r="24" fill="#1f2c34"/>
|
||||
<circle cx="86" cy="176" r="10" fill="#a73b2f"/>
|
||||
<circle cx="172" cy="176" r="34" fill="#1f2c34"/>
|
||||
<circle cx="172" cy="176" r="14" fill="#a73b2f"/>
|
||||
<rect x="52" y="154" width="154" height="10" rx="5" fill="#141d23"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 1.2 KiB |
@@ -1,50 +1,86 @@
|
||||
:root {
|
||||
--bg: #f2f5ef;
|
||||
--card: #ffffff;
|
||||
--text: #1f2a1d;
|
||||
--muted: #5d6a5a;
|
||||
--accent: #365f2c;
|
||||
--accent-2: #93b877;
|
||||
--danger: #9b2f2f;
|
||||
--sky-1: #59b8df;
|
||||
--sky-2: #f3d49a;
|
||||
--field-1: #87b52a;
|
||||
--field-2: #3f6620;
|
||||
--soil: #6f4e2d;
|
||||
--card: #ffffffee;
|
||||
--text: #1c2328;
|
||||
--muted: #55606a;
|
||||
--accent: #7eb61a;
|
||||
--accent-dark: #537b0f;
|
||||
--danger: #ac2f2f;
|
||||
}
|
||||
|
||||
* { box-sizing: border-box; }
|
||||
|
||||
body {
|
||||
margin: 0;
|
||||
font-family: "Segoe UI", Tahoma, sans-serif;
|
||||
background: radial-gradient(circle at top, #e8f1df, var(--bg));
|
||||
font-family: "Bahnschrift", "Trebuchet MS", sans-serif;
|
||||
color: var(--text);
|
||||
background:
|
||||
radial-gradient(1100px 500px at 78% 14%, #fff6d6aa 0%, transparent 55%),
|
||||
linear-gradient(180deg, var(--sky-1) 0%, var(--sky-2) 35%, #f2e4c0 55%, #d4c17f 68%, #8ea347 77%, var(--field-1) 100%);
|
||||
min-height: 100vh;
|
||||
}
|
||||
|
||||
.top {
|
||||
padding: 1.2rem 1rem;
|
||||
background: linear-gradient(90deg, #2f4f2a, #4d7a40);
|
||||
position: relative;
|
||||
padding: 1.1rem 1rem;
|
||||
color: #fff;
|
||||
text-shadow: 0 2px 10px #1d2b33aa;
|
||||
background:
|
||||
linear-gradient(130deg, #2f6e89cc, #6ca741cc),
|
||||
repeating-linear-gradient(130deg, #00000011 0 10px, #ffffff10 10px 20px);
|
||||
border-bottom: 2px solid #ffffff44;
|
||||
}
|
||||
|
||||
.top h1 {
|
||||
margin: 0;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: .55rem;
|
||||
font-size: clamp(1.5rem, 2.8vw, 2.1rem);
|
||||
letter-spacing: .02em;
|
||||
}
|
||||
|
||||
.brand-icon {
|
||||
width: 2rem;
|
||||
height: 2rem;
|
||||
border-radius: .4rem;
|
||||
box-shadow: 0 4px 14px #00000055;
|
||||
}
|
||||
|
||||
.top p {
|
||||
margin: .25rem 0 0;
|
||||
font-weight: 600;
|
||||
opacity: .96;
|
||||
}
|
||||
.top h1 { margin: 0; }
|
||||
.top p { margin: .35rem 0 0; opacity: .9; }
|
||||
|
||||
.tabs {
|
||||
display: flex;
|
||||
gap: .5rem;
|
||||
flex-wrap: wrap;
|
||||
padding: .7rem 1rem;
|
||||
max-width: 1280px;
|
||||
padding: .75rem 1rem;
|
||||
max-width: 1320px;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
.tabs a {
|
||||
text-decoration: none;
|
||||
color: #234020;
|
||||
background: #e7efdf;
|
||||
border: 1px solid #cbd8c3;
|
||||
color: #21331b;
|
||||
background: #f2f8e7d9;
|
||||
border: 1px solid #99bd5f;
|
||||
border-radius: 999px;
|
||||
padding: .35rem .75rem;
|
||||
font-weight: 600;
|
||||
padding: .36rem .85rem;
|
||||
font-weight: 700;
|
||||
box-shadow: 0 2px 8px #1b331111;
|
||||
}
|
||||
|
||||
.tabs a.active {
|
||||
color: #fff;
|
||||
background: var(--accent);
|
||||
border-color: var(--accent);
|
||||
border-color: var(--accent-dark);
|
||||
background: linear-gradient(180deg, #8fcf22, #6d9f14);
|
||||
}
|
||||
|
||||
.layout {
|
||||
@@ -52,61 +88,85 @@ body {
|
||||
grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
|
||||
gap: 1rem;
|
||||
padding: 1rem;
|
||||
max-width: 1280px;
|
||||
max-width: 1320px;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
.card {
|
||||
background: var(--card);
|
||||
border: 1px solid #dbe6d5;
|
||||
border-radius: 12px;
|
||||
border: 1px solid #ffffffc4;
|
||||
border-radius: 14px;
|
||||
padding: 1rem;
|
||||
box-shadow: 0 8px 20px rgba(0,0,0,0.05);
|
||||
box-shadow: 0 10px 28px #2b2d181e;
|
||||
backdrop-filter: blur(2px);
|
||||
}
|
||||
|
||||
.card h2 {
|
||||
margin-top: 0;
|
||||
font-size: 1.05rem;
|
||||
margin: 0 0 .7rem;
|
||||
font-size: 1.06rem;
|
||||
}
|
||||
|
||||
.full-width { grid-column: 1 / -1; }
|
||||
|
||||
.grid {
|
||||
display: grid;
|
||||
gap: .8rem;
|
||||
grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
|
||||
grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
|
||||
}
|
||||
|
||||
.full { grid-column: 1 / -1; }
|
||||
.mt { margin-top: .8rem; }
|
||||
.mt-xs { margin-top: .3rem; }
|
||||
|
||||
label {
|
||||
display: grid;
|
||||
gap: .35rem;
|
||||
font-weight: 600;
|
||||
color: var(--muted);
|
||||
}
|
||||
input, select, button {
|
||||
font: inherit;
|
||||
padding: .55rem .65rem;
|
||||
border-radius: 8px;
|
||||
border: 1px solid #c9d8c2;
|
||||
}
|
||||
button {
|
||||
background: var(--accent);
|
||||
color: #fff;
|
||||
border: none;
|
||||
cursor: pointer;
|
||||
font-weight: 700;
|
||||
min-width: 0;
|
||||
}
|
||||
button:hover { background: #2d5124; }
|
||||
.btn-small { padding: .4rem .6rem; font-size: .9rem; }
|
||||
.danger { background: #a13939; }
|
||||
.danger:hover { background: #8f2f2f; }
|
||||
|
||||
input, select, textarea {
|
||||
font: inherit;
|
||||
width: 100%;
|
||||
max-width: 100%;
|
||||
min-width: 0;
|
||||
padding: .52rem .65rem;
|
||||
border-radius: 9px;
|
||||
border: 1px solid #b7c7a2;
|
||||
background: #fff;
|
||||
color: var(--text);
|
||||
}
|
||||
|
||||
button {
|
||||
font: inherit;
|
||||
border: none;
|
||||
border-radius: 9px;
|
||||
padding: .55rem .85rem;
|
||||
background: linear-gradient(180deg, #8fcf22, #6d9f14);
|
||||
color: #fff;
|
||||
cursor: pointer;
|
||||
font-weight: 800;
|
||||
width: auto;
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
button:hover { background: linear-gradient(180deg, #7cbc19, #5e8a12); }
|
||||
|
||||
.btn-small { padding: .35rem .58rem; font-size: .9rem; }
|
||||
.danger { background: linear-gradient(180deg, #cc4747, #9a2e2e); }
|
||||
.danger:hover { background: linear-gradient(180deg, #b43d3d, #842626); }
|
||||
|
||||
.check {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: .45rem;
|
||||
}
|
||||
.check input { width: 1rem; height: 1rem; }
|
||||
|
||||
.check input {
|
||||
width: 1.05rem;
|
||||
height: 1.05rem;
|
||||
}
|
||||
|
||||
.hint {
|
||||
color: var(--muted);
|
||||
@@ -117,65 +177,91 @@ button:hover { background: #2d5124; }
|
||||
display: flex;
|
||||
gap: .45rem;
|
||||
align-items: center;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.inline-inputs {
|
||||
display: inline-flex;
|
||||
gap: .35rem;
|
||||
align-items: center;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.inline-inputs input {
|
||||
width: 5rem;
|
||||
width: 5.2rem;
|
||||
}
|
||||
|
||||
.tasks {
|
||||
margin: 0;
|
||||
padding-left: 1.1rem;
|
||||
}
|
||||
.tasks li { margin: .35rem 0; }
|
||||
|
||||
.tasks li { margin: .3rem 0; }
|
||||
|
||||
.task-sublist {
|
||||
margin: .3rem 0 0;
|
||||
padding-left: 1rem;
|
||||
}
|
||||
|
||||
.muted { color: var(--muted); }
|
||||
|
||||
.calendar-grid {
|
||||
display: grid;
|
||||
gap: .75rem;
|
||||
grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
|
||||
grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
|
||||
}
|
||||
|
||||
.month-card {
|
||||
border: 1px solid #dbe6d5;
|
||||
border-radius: 10px;
|
||||
padding: .6rem;
|
||||
background: #f9fbf7;
|
||||
border: 1px solid #cad5ad;
|
||||
border-radius: 11px;
|
||||
padding: .65rem;
|
||||
background: linear-gradient(180deg, #fbfff5, #f0f7de);
|
||||
}
|
||||
|
||||
.month-card h3 {
|
||||
margin: 0 0 .4rem;
|
||||
margin: 0 0 .45rem;
|
||||
font-size: .98rem;
|
||||
}
|
||||
|
||||
.month-days {
|
||||
margin: 0;
|
||||
padding-left: 1rem;
|
||||
max-height: 260px;
|
||||
overflow: auto;
|
||||
}
|
||||
.month-days li { margin: .25rem 0; }
|
||||
|
||||
.table-wrap { overflow: auto; }
|
||||
.month-days li { margin: .24rem 0; }
|
||||
|
||||
.table-wrap {
|
||||
overflow-x: auto;
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
table {
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
min-width: 680px;
|
||||
}
|
||||
|
||||
th, td {
|
||||
text-align: left;
|
||||
padding: .5rem;
|
||||
border-bottom: 1px solid #e2eadf;
|
||||
white-space: nowrap;
|
||||
border-bottom: 1px solid #d7decb;
|
||||
vertical-align: top;
|
||||
}
|
||||
|
||||
th {
|
||||
background: #eef5e8;
|
||||
color: #384534;
|
||||
background: #edf5de;
|
||||
color: #2f3a24;
|
||||
}
|
||||
|
||||
td form {
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
td input,
|
||||
td select {
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
.toast {
|
||||
@@ -186,10 +272,13 @@ th {
|
||||
border-radius: 8px;
|
||||
color: #fff;
|
||||
max-width: 380px;
|
||||
box-shadow: 0 8px 18px #0000003f;
|
||||
}
|
||||
|
||||
.toast.error { background: var(--danger); }
|
||||
.toast.info { background: #2f6d7a; }
|
||||
|
||||
@media (max-width: 700px) {
|
||||
@media (max-width: 760px) {
|
||||
.layout { grid-template-columns: 1fr; }
|
||||
table { min-width: 540px; }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user