-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
643 lines (575 loc) · 25.9 KB
/
index.html
File metadata and controls
643 lines (575 loc) · 25.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>AgXcel CSA Crop Planner</title>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
min-height: 100vh;
padding: 20px;
}
.container {
max-width: 1400px;
margin: 0 auto;
background: white;
border-radius: 20px;
box-shadow: 0 20px 60px rgba(0,0,0,0.3);
overflow: hidden;
}
.header {
background: linear-gradient(135deg, #2d5016 0%, #4a7c2c 100%);
color: white;
padding: 40px;
text-align: center;
}
.header h1 {
font-size: 2.5em;
margin-bottom: 10px;
}
.header p {
opacity: 0.9;
font-size: 1.1em;
}
.nav-tabs {
display: flex;
background: #f5f5f5;
border-bottom: 2px solid #ddd;
overflow-x: auto;
}
.nav-tab {
padding: 20px 30px;
cursor: pointer;
border: none;
background: none;
font-size: 16px;
font-weight: 600;
color: #666;
transition: all 0.3s;
white-space: nowrap;
}
.nav-tab:hover {
background: #e8f5e9;
color: #2d5016;
}
.nav-tab.active {
background: white;
color: #2d5016;
border-bottom: 3px solid #4a7c2c;
}
.content {
padding: 40px;
}
.tab-content {
display: none;
}
.tab-content.active {
display: block;
}
/* Calendar Styles */
.event-item {
padding: 15px;
margin-bottom: 10px;
border-radius: 8px;
border-left: 4px solid;
}
.event-milestone { background: #f3e5f5; border-color: #9c27b0; }
.event-nursery { background: #e3f2fd; border-color: #2196f3; }
.event-field { background: #e8f5e9; border-color: #4caf50; }
.event-harvest { background: #fff3e0; border-color: #ff9800; }
.event-date {
font-weight: bold;
font-size: 0.9em;
margin-bottom: 5px;
}
.event-task {
font-size: 0.95em;
}
.event-beds {
display: inline-block;
background: white;
padding: 3px 10px;
border-radius: 12px;
font-size: 0.8em;
margin-left: 10px;
}
/* Bed Diagram Styles */
.bed-selector {
display: flex;
gap: 10px;
margin-bottom: 30px;
flex-wrap: wrap;
}
.bed-btn {
padding: 12px 24px;
border: 2px solid #ddd;
background: white;
border-radius: 8px;
cursor: pointer;
font-weight: 600;
transition: all 0.3s;
}
.bed-btn:hover {
background: #e8f5e9;
border-color: #4a7c2c;
}
.bed-btn.active {
background: #4a7c2c;
color: white;
border-color: #4a7c2c;
}
.bed-diagram {
border: 3px solid #333;
border-radius: 8px;
height: 120px;
display: flex;
margin: 20px 0;
overflow: hidden;
}
.bed-section {
border-right: 2px solid #333;
display: flex;
align-items: center;
justify-content: center;
text-align: center;
padding: 10px;
position: relative;
font-size: 0.85em;
font-weight: bold;
}
.bed-section:last-child {
border-right: none;
}
.bed-section:hover::after {
content: attr(data-spacing);
position: absolute;
bottom: 5px;
left: 0;
right: 0;
background: rgba(0,0,0,0.8);
color: white;
padding: 5px;
font-size: 0.75em;
font-weight: normal;
}
table {
width: 100%;
border-collapse: collapse;
margin-top: 20px;
}
th, td {
padding: 12px;
text-align: left;
border: 1px solid #ddd;
}
th {
background: #4a7c2c;
color: white;
font-weight: 600;
}
tr:nth-child(even) {
background: #f9f9f9;
}
/* CSA Week Cards */
.csa-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 20px;
margin-top: 20px;
}
.csa-week {
border: 2px solid #ff9800;
border-radius: 12px;
padding: 20px;
background: white;
box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.csa-week-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 15px;
}
.csa-week h3 {
color: #ff6f00;
font-size: 1.3em;
}
.csa-date {
background: #fff3e0;
padding: 5px 15px;
border-radius: 20px;
font-size: 0.9em;
}
.crop-item {
display: flex;
align-items: center;
gap: 10px;
padding: 5px 0;
font-size: 0.95em;
}
.crop-bullet {
width: 8px;
height: 8px;
background: #4caf50;
border-radius: 50%;
}
.info-box {
background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
padding: 20px;
border-radius: 10px;
margin-bottom: 20px;
}
.info-box h3 {
margin-bottom: 10px;
color: #2d5016;
}
.print-btn {
background: #4a7c2c;
color: white;
padding: 12px 30px;
border: none;
border-radius: 8px;
font-size: 16px;
cursor: pointer;
margin: 10px 5px;
}
.print-btn:hover {
background: #3a6522;
}
@media print {
body { background: white; padding: 0; }
.container { box-shadow: none; }
.nav-tabs, .print-btn, .bed-selector { display: none; }
}
</style>
</head>
<body>
<div class="container">
<div class="header">
<h1>🌱 AgXcel CSA Crop Planner</h1>
<p>8-Week CSA Program: February 16 - April 6, 2026</p>
<p style="font-size: 0.9em; margin-top: 10px;">5 Beds × 100ft × 2.5ft | 1/16 Acre Plot</p>
</div>
<div class="nav-tabs">
<button class="nav-tab active" onclick="switchTab('calendar')">📅 Planting Calendar</button>
<button class="nav-tab" onclick="switchTab('beds')">🗺️ Bed Layouts</button>
<button class="nav-tab" onclick="switchTab('weekly')">🛒 Weekly CSA</button>
<button class="nav-tab" onclick="switchTab('printable')">🖨️ Printable</button>
</div>
<div class="content">
<!-- CALENDAR TAB -->
<div id="calendar" class="tab-content active">
<div class="info-box">
<h3>Master Planting Timeline</h3>
<div style="display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 15px; margin-top: 15px;">
<div><strong>TP Seeds:</strong> Nov 22, 2025</div>
<div><strong>DS Seeds:</strong> Dec 6, 2025</div>
<div><strong>CSA Start:</strong> Feb 16, 2026</div>
<div><strong>CSA End:</strong> Apr 6, 2026</div>
</div>
</div>
<div id="calendar-events"></div>
<div class="info-box" style="margin-top: 20px;">
<h3>Legend</h3>
<div style="display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-top: 10px;">
<div>🟣 Milestone</div>
<div>🔵 Nursery Start</div>
<div>🟢 Field Planting</div>
<div>🟠 Harvest</div>
</div>
</div>
</div>
<!-- BED LAYOUTS TAB -->
<div id="beds" class="tab-content">
<div class="info-box">
<h3>Bed Planning Strategy</h3>
<ul style="margin-left: 20px; margin-top: 10px;">
<li>Group crops by similar bed prep needs (fine vs. chunky tilth)</li>
<li>Pair succession plantings in same bed when possible</li>
<li>Each bed is 100ft long × 2.5ft wide = 250 sq ft</li>
<li>Hover over diagram sections to see spacing details</li>
</ul>
</div>
<div class="bed-selector" id="bed-selector"></div>
<div id="bed-display"></div>
</div>
<!-- WEEKLY CSA TAB -->
<div id="weekly" class="tab-content">
<div class="info-box">
<h3>CSA Planning Tips</h3>
<ul style="margin-left: 20px; margin-top: 10px;">
<li>Each share should be worth ~$25-28</li>
<li>Include 5-8 different items per week</li>
<li>Balance greens, roots, and specialty items</li>
<li>Plan succession plantings 2-3 weeks apart</li>
</ul>
</div>
<div id="csa-weeks" class="csa-grid"></div>
</div>
<!-- PRINTABLE TAB -->
<div id="printable" class="tab-content">
<div class="info-box">
<h3>Printable Bed Diagrams</h3>
<p>Click below to generate print-friendly versions of all bed layouts with complete crop details.</p>
<button class="print-btn" onclick="window.print()">🖨️ Print All Beds</button>
</div>
<div id="printable-content"></div>
</div>
</div>
</div>
<script>
// Data
const calendarEvents = [
{ date: '11/22/25', task: 'TP Seeds Distributed', category: 'milestone', beds: 'All' },
{ date: '11/22/25', task: 'Start in Nursery: Eggplant, Tomatillo, Broccoli, Cauliflower, Bunching Onions, Mini Onions, Parsley, Chard, Kale', category: 'nursery', beds: 'B1-3' },
{ date: '11/29/25', task: 'Start in Nursery: Fennel', category: 'nursery', beds: 'B2' },
{ date: '12/6/25', task: 'DS Seeds Distributed', category: 'milestone', beds: 'All' },
{ date: '12/6/25', task: 'Direct Seed: Carrots #1', category: 'field', beds: 'B5' },
{ date: '12/13/25', task: 'Start in Nursery: Sunflowers', category: 'nursery', beds: 'B2' },
{ date: '12/20/25', task: 'Transplant: Broccoli, Cauliflower, Chard, Kale', category: 'field', beds: 'B2-3' },
{ date: '12/20/25', task: 'Start in Nursery: Basil, Pac Choi #1, Flowers', category: 'nursery', beds: 'B3-4' },
{ date: '12/20/25', task: 'Direct Seed: Beets #1, Okra', category: 'field', beds: 'B1, B5' },
{ date: '12/27/25', task: 'Start in Nursery: Leaf Lettuce', category: 'nursery', beds: 'B4' },
{ date: '12/27/25', task: 'Transplant: Fennel', category: 'field', beds: 'B2' },
{ date: '12/27/25', task: 'Direct Seed: Bush Beans #1, Carrots #2', category: 'field', beds: 'B3, B5' },
{ date: '1/3/26', task: 'Start in Nursery: Head Lettuce, Cilantro #1', category: 'nursery', beds: 'B5' },
{ date: '1/3/26', task: 'Transplant: Bunching Onions, Mini Onions, Parsley', category: 'field', beds: 'B2' },
{ date: '1/10/26', task: 'Transplant: Tomatillo, Sunflowers', category: 'field', beds: 'B1-2' },
{ date: '1/10/26', task: 'Direct Seed: Turnips, Beets #2', category: 'field', beds: 'B4-5' },
{ date: '1/17/26', task: 'Transplant: Eggplant, Okra, Basil, Pac Choi, Flowers', category: 'field', beds: 'B1, B3-4' },
{ date: '1/17/26', task: 'Direct Seed: Salad Mix #1, Arugula #1, Radish #1, Beans #2', category: 'field', beds: 'B3-4' },
{ date: '1/24/26', task: 'Start in Nursery: Cilantro #2', category: 'nursery', beds: 'B5' },
{ date: '1/24/26', task: 'Transplant: Leaf Lettuce', category: 'field', beds: 'B4' },
{ date: '1/31/26', task: 'Transplant: Head Lettuce, Cilantro #1', category: 'field', beds: 'B5' },
{ date: '2/13/26', task: 'First Harvest: Kale, Beets #1', category: 'harvest', beds: 'B3, B5' },
{ date: '2/16/26', task: '🎉 CSA WEEK 1! Harvest: Salad Mix, Arugula, Radish, Turnips', category: 'harvest', beds: 'B4' },
{ date: '2/18/26', task: 'First Harvest: Chard', category: 'harvest', beds: 'B3' },
{ date: '2/20/26', task: 'First Harvest: Bush Beans #1', category: 'harvest', beds: 'B3' },
{ date: '2/21/26', task: 'Direct Seed: Salad Mix #2, Arugula #2', category: 'field', beds: 'B4' },
{ date: '3/1/26', task: 'Harvest: Broccoli', category: 'harvest', beds: 'B2' },
{ date: '3/13/26', task: 'Harvest: Bush Beans #2 begins', category: 'harvest', beds: 'B3' },
{ date: '3/18/26', task: 'Harvest: Okra, Eggplant, Basil begin', category: 'harvest', beds: 'B1, B3' },
{ date: '4/6/26', task: '🎉 CSA WEEK 8 - Final Week!', category: 'harvest', beds: 'All' }
];
const beds = [
{
num: 1,
name: "Long-Season Single Row Crops",
prep: "11/27/25",
sections: [
{ crop: 'Okra', feet: 50, color: '#a8d5a8', spacing: '2ft single row' },
{ crop: 'Eggplant', feet: 30, color: '#d4b5d4', spacing: '1.5ft single row' },
{ crop: 'Tomatillo', feet: 20, color: '#fff5a8', spacing: '1.5ft zig-zag' }
]
},
{
num: 2,
name: "Brassicas, Alliums & Specialty",
prep: "11/27/25",
sections: [
{ crop: 'Broccoli', feet: 15, color: '#90c990', spacing: '2ft diamond, 3 rows' },
{ crop: 'Cauliflower', feet: 15, color: '#b8e6b8', spacing: '2ft diamond, 3 rows' },
{ crop: 'Sunflowers', feet: 25, color: '#ffeb99', spacing: '1ft double row' },
{ crop: 'Bunching Onions', feet: 15, color: '#c8e6c8', spacing: '2" apart, 3 rows' },
{ crop: 'Mini Onions', feet: 10, color: '#ffc8e6', spacing: '3 rows' },
{ crop: 'Fennel', feet: 10, color: '#d4ff99', spacing: '6" diamond, 3 rows' },
{ crop: 'Parsley', feet: 10, color: '#80c880', spacing: '1ft diamond, 3 rows' }
]
},
{
num: 3,
name: "Continuous Harvest Greens & Beans",
prep: "11/27/25",
sections: [
{ crop: 'Chard', feet: 15, color: '#ffb8b8', spacing: '2ft diamond, 3 rows' },
{ crop: 'Kale', feet: 20, color: '#90c990', spacing: '2ft diamond, 3 rows' },
{ crop: 'Bush Beans #1', feet: 20, color: '#c8e6c8', spacing: '4" spacing, 2 rows' },
{ crop: 'Bush Beans #2', feet: 20, color: '#d4ff99', spacing: '4" spacing, 2 rows' },
{ crop: 'Basil', feet: 10, color: '#80c880', spacing: '2ft diamond, 3 rows' },
{ crop: 'Flowers', feet: 15, color: '#ffc8d8', spacing: 'interplanted' }
]
},
{
num: 4,
name: "Fast Greens & Succession",
prep: "12/24/25",
sections: [
{ crop: 'Salad Mix #1→#2', feet: 20, color: '#e6ffc8', spacing: 'broadcast' },
{ crop: 'Arugula #1→#2', feet: 10, color: '#c8e6c8', spacing: 'broadcast' },
{ crop: 'Radish #1→#2', feet: 10, color: '#ffb8b8', spacing: '3-5 rows' },
{ crop: 'Turnips', feet: 15, color: '#e6c8ff', spacing: '3 rows' },
{ crop: 'Pac Choi #1', feet: 15, color: '#b8e6b8', spacing: '1ft diamond, 3 rows' },
{ crop: 'Leaf Lettuce', feet: 20, color: '#d4ff99', spacing: '8" diamond, 3 rows' },
{ crop: 'Open Space', feet: 10, color: '#e8e8e8', spacing: 'future use' }
]
},
{
num: 5,
name: "Root Vegetables & Herbs",
prep: "11/13/25",
sections: [
{ crop: 'Carrots #1', feet: 15, color: '#ffc88c', spacing: '3-5 rows' },
{ crop: 'Carrots #2', feet: 15, color: '#ffb366', spacing: '3-5 rows' },
{ crop: 'Beets #1', feet: 15, color: '#ffb8b8', spacing: '3-5 rows' },
{ crop: 'Beets #2', feet: 15, color: '#ff9999', spacing: '3-5 rows' },
{ crop: 'Head Lettuce', feet: 10, color: '#c8e6c8', spacing: '1ft diamond, 3 rows' },
{ crop: 'Cilantro #1', feet: 10, color: '#90c990', spacing: '6" diamond, 3 rows' },
{ crop: 'Cilantro #2', feet: 10, color: '#d4ff99', spacing: '6" diamond, 3 rows' },
{ crop: 'Flowers', feet: 10, color: '#ffc8d8', spacing: 'interplanted' }
]
}
];
const csaWeeks = [
{ week: 1, date: '2/16', items: ['Kale', 'Chard', 'Salad Mix #1', 'Arugula #1', 'Radish #1', 'Turnips', 'Carrots #1', 'Beets #1'] },
{ week: 2, date: '2/23', items: ['Kale', 'Chard', 'Salad Mix #1', 'Arugula #1', 'Turnips', 'Bush Beans #1', 'Carrots #1', 'Beets #1'] },
{ week: 3, date: '3/2', items: ['Kale', 'Chard', 'Salad Mix #1', 'Arugula #1', 'Bush Beans #1', 'Broccoli', 'Carrots #1', 'Beets #2'] },
{ week: 4, date: '3/9', items: ['Kale', 'Chard', 'Pac Choi #1', 'Bush Beans #1', 'Cauliflower', 'Mini Onions', 'Sunflowers', 'Bunching Onions', 'Carrots #2'] },
{ week: 5, date: '3/16', items: ['Kale', 'Chard', 'Leaf Lettuce', 'Fennel', 'Bush Beans #2', 'Basil', 'Carrots #2', 'Parsley'] },
{ week: 6, date: '3/23', items: ['Kale', 'Chard', 'Salad Mix #2', 'Arugula #2', 'Head Lettuce', 'Cilantro #1', 'Okra', 'Eggplant', 'Tomatillo', 'Basil'] },
{ week: 7, date: '3/30', items: ['Kale', 'Chard', 'Salad Mix #2', 'Arugula #2', 'Bush Beans #2', 'Okra', 'Eggplant', 'Tomatillo', 'Basil', 'Parsley'] },
{ week: 8, date: '4/6', items: ['Kale', 'Chard', 'Salad Mix #2', 'Arugula #2', 'Bush Beans #2', 'Okra', 'Eggplant', 'Tomatillo', 'Basil', 'Cilantro #2'] }
];
let currentBed = 1;
// Initialize
function init() {
renderCalendar();
renderBedSelector();
renderBed(1);
renderCSAWeeks();
renderPrintable();
}
function switchTab(tab) {
document.querySelectorAll('.tab-content').forEach(t => t.classList.remove('active'));
document.querySelectorAll('.nav-tab').forEach(t => t.classList.remove('active'));
document.getElementById(tab).classList.add('active');
event.target.classList.add('active');
}
function renderCalendar() {
const container = document.getElementById('calendar-events');
container.innerHTML = calendarEvents.map(event => `
<div class="event-item event-${event.category}">
<div class="event-date">${event.date}</div>
<div class="event-task">
${event.task}
<span class="event-beds">${event.beds}</span>
</div>
</div>
`).join('');
}
function renderBedSelector() {
const container = document.getElementById('bed-selector');
container.innerHTML = beds.map(bed => `
<button class="bed-btn ${bed.num === 1 ? 'active' : ''}"
onclick="selectBed(${bed.num})">
Bed ${bed.num}
</button>
`).join('');
}
function selectBed(num) {
currentBed = num;
document.querySelectorAll('.bed-btn').forEach(btn => btn.classList.remove('active'));
event.target.classList.add('active');
renderBed(num);
}
function renderBed(num) {
const bed = beds[num - 1];
const container = document.getElementById('bed-display');
container.innerHTML = `
<div style="background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%); padding: 20px; border-radius: 10px; margin-bottom: 20px;">
<h2 style="color: #2d5016; margin-bottom: 5px;">Bed #${bed.num}: ${bed.name}</h2>
<p style="color: #666;">Field Prep Date: ${bed.prep}</p>
</div>
<div style="font-size: 0.85em; color: #666; margin-bottom: 5px; font-family: monospace;">
0ft ←────────── 100ft long × 2.5ft wide ──────────→ 100ft
</div>
<div class="bed-diagram">
${bed.sections.map(section => `
<div class="bed-section"
style="width: ${section.feet}%; background: ${section.color};"
data-spacing="${section.spacing}">
<div>
<div>${section.crop}</div>
<div style="font-size: 0.9em; font-weight: normal;">${section.feet}ft</div>
</div>
</div>
`).join('')}
</div>
<div style="margin-top: 20px; padding: 15px; background: #f5f5f5; border-radius: 8px;">
<strong>Crop Details:</strong>
${bed.sections.map(section => `
<div style="margin: 10px 0; padding: 8px; background: white; border-left: 4px solid ${section.color}; border-radius: 4px;">
<strong>${section.crop}</strong> • ${section.feet} bed feet • ${section.spacing}
</div>
`).join('')}
</div>
`;
}
function renderCSAWeeks() {
const container = document.getElementById('csa-weeks');
container.innerHTML = csaWeeks.map(week => `
<div class="csa-week">
<div class="csa-week-header">
<h3>Week ${week.week}</h3>
<div class="csa-date">${week.date}</div>
</div>
${week.items.map(item => `
<div class="crop-item">
<div class="crop-bullet"></div>
<span>${item}</span>
</div>
`).join('')}
<div style="margin-top: 15px; padding-top: 15px; border-top: 1px solid #ddd; font-size: 0.85em; color: #666;">
${week.items.length} items available
</div>
</div>
`).join('');
}
function renderPrintable() {
const container = document.getElementById('printable-content');
container.innerHTML = beds.map(bed => `
<div style="margin-bottom: 40px; page-break-after: always;">
<h2 style="color: #2d5016; margin-bottom: 10px;">Bed #${bed.num}: ${bed.name}</h2>
<p style="color: #666; margin-bottom: 20px;">Field Prep Date: ${bed.prep}</p>
<div class="bed-diagram">
${bed.sections.map(section => `
<div class="bed-section" style="width: ${section.feet}%; background: ${section.color};">
<div>
<div>${section.crop}</div>
<div style="font-size: 0.9em;">${section.feet}ft</div>
</div>
</div>
`).join('')}
</div>
<table>
<thead>
<tr>
<th>Crop</th>
<th>Bed Feet</th>
<th>Spacing</th>
</tr>
</thead>
<tbody>
${bed.sections.map(section => `
<tr>
<td style="border-left: 4px solid ${section.color};"><strong>${section.crop}</strong></td>
<td>${section.feet} ft</td>
<td>${section.spacing}</td>
</tr>
`).join('')}
</tbody>
</table>
</div>
`).join('');
}
// Initialize on load
init();
</script>
</body>
</html>