-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathreminders.html
More file actions
66 lines (59 loc) · 1.87 KB
/
reminders.html
File metadata and controls
66 lines (59 loc) · 1.87 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<title>PlantMama - Reminders</title>
<link rel="stylesheet" href="styles.css" />
<script defer src="reminders.js"></script>
</head>
<body>
<header>
<div class="logo">
<a href="index.html">PlantMama.</a>
</div>
<nav>
<ul>
<li><a href="index.html">Home</a></li>
<li><a href="chat.html">Chat</a></li>
<li><a href="rewards.html">Rewards</a></li>
<li><a href="plants.html">Plants Collection</a></li>
<li><a href="reminders.html">Reminders</a></li>
<li><a href="journal.html">Journal</a></li>
<li><a href="quiz.html">Quiz</a></li>
<li><a href="weather.html">Weather Tips</a></li>
</ul>
</nav>
<div class="search-bar">
<input type="text" placeholder="Search">
<button>🔍</button>
</div>
</header>
<section class="reminder-section">
<h2>Set a New Plant Reminder</h2>
<form id="reminderForm">
<label for="plantName">Plant Name:</label>
<input type="text" id="plantName" required />
<label for="frequency">Watering Frequency (in days):</label>
<input type="number" id="frequency" required />
<label for="lastWatered">Last Watered Date:</label>
<input type="date" id="lastWatered" required />
<button type="submit">Save Reminder</button>
</form>
<h3>Your Reminders</h3>
<div id="reminderList"></div>
</section>
<footer>
<p>© 2025 PlantMama. All rights reserved.</p>
</footer>
</body>
</html>
<script>
const links = document.querySelectorAll("nav a");
const current = window.location.pathname.split("/").pop();
links.forEach(link => {
if (link.getAttribute("href") === current) {
link.classList.add("active");
}
});
</script>