-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
202 lines (183 loc) · 6.15 KB
/
index.html
File metadata and controls
202 lines (183 loc) · 6.15 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
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Plant Tracker</title>
<!-- tailwind css -->
<script src="https://cdn.jsdelivr.net/npm/@tailwindcss/browser@4"></script>
</head>
<body>
<!-- header section starts -->
<header class="w-[80%] mx-auto">
<h1 class="text-6xl font-bold text-green-600 py-6">Plant Tracker</h1>
<div class="grid grid-cols-3 gap-8">
<div class="bg-amber-200 p-4 rounded-lg text-center">
<p id="totalCount" class="text-2xl font-bold text-amber-600">0</p>
<p class="text-xl text-amber-600">Total</p>
</div>
<div class="bg-green-200 p-4 rounded-lg text-center">
<p id="thrivingCount" class="text-2xl font-bold text-green-600">0</p>
<p class="text-xl text-green-600">Thriving</p>
</div>
<div class="bg-red-200 p-4 rounded-lg text-center">
<p id="strugglingCount" class="text-2xl font-bold text-red-600">0</p>
<p class="text-xl text-red-600">Struggling</p>
</div>
</div>
</header>
<hr class="my-12 text-gray-300" />
<main class="w-[80%] mx-auto">
<!-- toggle button section starts -->
<div class="flex gap-4">
<button
onclick="toggleStyle('all-filter-btn')"
class="bg-black text-white px-6 py-2 font-bold cursor-pointer"
id="all-filter-btn"
>
All
</button>
<button
onclick="toggleStyle('thriving-filter-btn')"
class="bg-gray-300 px-6 py-2 font-bold cursor-pointer"
id="thriving-filter-btn"
>
Thriving
</button>
<button
onclick="toggleStyle('struggling-filter-btn')"
class="bg-gray-300 px-6 py-2 font-bold cursor-pointer"
id="struggling-filter-btn"
>
Struggling
</button>
</div>
<!-- filtered card -->
<section id="filtered-section" class="hidden"></section>
<!-- plant card section starts -->
<section id="allCards" class="my-4 space-y-4">
<!-- card 1 -->
<div class="card flex justify-between border p-6">
<!-- main part 1 -->
<div class="space-y-6">
<!-- part 1 -->
<div>
<p class="plantName text-4xl">Plant Name 1</p>
<p class="latinName">Latin Name</p>
</div>
<!-- part 2 -->
<div class="flex gap-2">
<p class="light bg-gray-200 px-4">Bright Indicate</p>
<p class="water bg-gray-200 px-4">Weekly</p>
</div>
<!-- part 3 -->
<p class="status">Not Applicable</p>
<p class="notes">New leaf unfurling by the east window.</p>
<!-- part 4 -->
<div class="flex gap-4">
<button
class="thriving-btn bg-green-200 px-4 py-2 cursor-pointer"
>
Thrive
</button>
<button
class="struggling-btn bg-red-200 px-4 py-2 cursor-pointer"
>
Struggle
</button>
</div>
</div>
<!-- main part 2 -->
<div>
<button
class="btn-delete bg-red-200 text-red-600 px-4 py-2 cursor-pointer"
>
Delete
</button>
</div>
</div>
<!-- card 2 -->
<div class="card flex justify-between border p-6">
<!-- main part 1 -->
<div class="space-y-6">
<!-- part 1 -->
<div>
<p class="plantName text-4xl">Plant Name 2</p>
<p class="latinName">Latin Name</p>
</div>
<!-- part 2 -->
<div class="flex gap-2">
<p class="light bg-gray-200 px-4">Bright Indicate</p>
<p class="water bg-gray-200 px-4">Weekly</p>
</div>
<!-- part 3 -->
<p class="status">Not Applicable</p>
<p class="notes">New leaf unfurling by the east window.</p>
<!-- part 4 -->
<div class="flex gap-4">
<button
class="thriving-btn bg-green-200 px-4 py-2 cursor-pointer"
>
Thrive
</button>
<button
class="struggling-btn bg-red-200 px-4 py-2 cursor-pointer"
>
Struggle
</button>
</div>
</div>
<!-- main part 2 -->
<div>
<button
class="btn-delete bg-red-200 text-red-600 px-4 py-2 cursor-pointer"
>
Delete
</button>
</div>
</div>
<!-- card 3-->
<div class="card flex justify-between border p-6">
<!-- main part 1 -->
<div class="space-y-6">
<!-- part 1 -->
<div>
<p class="plantName text-4xl">Plant Name 3</p>
<p class="latinName">Latin Name</p>
</div>
<!-- part 2 -->
<div class="flex gap-2">
<p class="light bg-gray-200 px-4">Bright Indicate</p>
<p class="water bg-gray-200 px-4">Weekly</p>
</div>
<!-- part 3 -->
<p class="status">Not Applicable</p>
<p class="notes">New leaf unfurling by the east window.</p>
<!-- part 4 -->
<div class="flex gap-4">
<button
class="thriving-btn bg-green-200 px-4 py-2 cursor-pointer"
>
Thrive
</button>
<button
class="struggling-btn bg-red-200 px-4 py-2 cursor-pointer"
>
Struggle
</button>
</div>
</div>
<!-- main part 2 -->
<div>
<button
class="btn-delete bg-red-200 text-red-600 px-4 py-2 cursor-pointer"
>
Delete
</button>
</div>
</div>
</section>
</main>
<script src="./js/plant.js"></script>
</body>
</html>