Initial commit: React + Vite plant app with footer navigation

- Wiki page with 8 plant entries, search, and category/difficulty filters
- Calendar page with monthly grid, task scheduling, and upcoming tasks
- My Plants page with personal collection, health tracking, and add/edit/remove
- Footer navigation with Wiki, Calendar, and My Plants tabs

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
NillanHendrix
2026-04-14 07:10:40 +02:00
commit ce2d03f7d6
26 changed files with 4443 additions and 0 deletions
+263
View File
@@ -0,0 +1,263 @@
.cal-page {
padding: 24px 20px 100px;
max-width: 680px;
margin: 0 auto;
width: 100%;
box-sizing: border-box;
text-align: left;
}
.cal-header {
margin-bottom: 20px;
}
.cal-header h1 {
margin: 0 0 6px;
font-size: 28px;
letter-spacing: -0.5px;
}
.cal-header p {
color: var(--text);
font-size: 15px;
}
.cal-nav {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 12px;
}
.cal-month-label {
font-size: 17px;
font-weight: 500;
color: var(--text-h);
}
.cal-nav-btn {
background: transparent;
border: 1px solid var(--border);
border-radius: 8px;
padding: 6px 12px;
font-size: 18px;
cursor: pointer;
color: var(--text-h);
transition: background 0.15s;
}
.cal-nav-btn:hover {
background: var(--accent-bg);
}
.cal-grid {
display: grid;
grid-template-columns: repeat(7, 1fr);
gap: 4px;
margin-bottom: 24px;
}
.cal-day-name {
text-align: center;
font-size: 12px;
color: var(--text);
padding: 4px 0 6px;
text-transform: uppercase;
letter-spacing: 0.3px;
}
.cal-day {
display: flex;
flex-direction: column;
align-items: center;
padding: 6px 2px 4px;
border-radius: 8px;
border: 1px solid transparent;
cursor: pointer;
background: transparent;
transition: background 0.15s, border-color 0.15s;
min-height: 44px;
gap: 3px;
}
.cal-day:hover {
background: var(--accent-bg);
}
.cal-day.today .cal-day-num {
background: var(--accent);
color: #fff;
border-radius: 50%;
width: 24px;
height: 24px;
display: flex;
align-items: center;
justify-content: center;
}
.cal-day.selected {
border-color: var(--accent-border);
background: var(--accent-bg);
}
.cal-day-num {
font-size: 13px;
color: var(--text-h);
width: 24px;
height: 24px;
display: flex;
align-items: center;
justify-content: center;
}
.cal-dots {
display: flex;
gap: 2px;
}
.cal-dot {
width: 5px;
height: 5px;
border-radius: 50%;
}
.dot-water { background: #3b82f6; }
.dot-fertilize { background: #22c55e; }
.dot-repot { background: #a855f7; }
.dot-prune { background: #f59e0b; }
.cal-dot.done { opacity: 0.3; }
.cal-selected-tasks,
.cal-upcoming {
margin-bottom: 24px;
}
.cal-selected-tasks h2,
.cal-upcoming h2 {
font-size: 17px;
margin: 0 0 12px;
}
.cal-empty {
color: var(--text);
font-size: 14px;
margin: 0 0 12px;
}
.task-list {
list-style: none;
padding: 0;
margin: 0 0 12px;
display: flex;
flex-direction: column;
gap: 6px;
}
.task-item {
display: flex;
align-items: center;
gap: 10px;
padding: 10px 12px;
border: 1px solid var(--border);
border-radius: 10px;
font-size: 14px;
color: var(--text-h);
}
.task-item.done {
opacity: 0.5;
}
.task-item.done .task-label {
text-decoration: line-through;
}
.task-check {
background: transparent;
border: none;
cursor: pointer;
font-size: 16px;
color: var(--accent);
padding: 0;
width: 20px;
flex-shrink: 0;
}
.task-icon {
font-size: 16px;
flex-shrink: 0;
}
.task-label {
flex: 1;
}
.task-date {
font-size: 12px;
color: var(--text);
flex-shrink: 0;
}
.task-remove {
background: transparent;
border: none;
cursor: pointer;
font-size: 18px;
color: var(--text);
padding: 0;
line-height: 1;
flex-shrink: 0;
transition: color 0.15s;
}
.task-remove:hover {
color: #ef4444;
}
.add-task-form {
display: flex;
gap: 8px;
}
.task-type-select {
padding: 8px 10px;
border-radius: 8px;
border: 1px solid var(--border);
background: var(--bg);
color: var(--text-h);
font-size: 14px;
cursor: pointer;
flex-shrink: 0;
}
.task-input {
flex: 1;
padding: 8px 12px;
border-radius: 8px;
border: 1px solid var(--border);
background: var(--bg);
color: var(--text-h);
font-size: 14px;
outline: none;
transition: border-color 0.2s;
}
.task-input:focus {
border-color: var(--accent);
}
.task-add-btn {
padding: 8px 16px;
border-radius: 8px;
border: none;
background: var(--accent);
color: #fff;
font-size: 14px;
cursor: pointer;
flex-shrink: 0;
transition: opacity 0.15s;
}
.task-add-btn:hover {
opacity: 0.85;
}