diff --git a/src/baby_monitor/main.py b/src/baby_monitor/main.py
index 33f73ee..80540d7 100644
--- a/src/baby_monitor/main.py
+++ b/src/baby_monitor/main.py
@@ -99,6 +99,12 @@ def serve_feedings() -> FileResponse:
return FileResponse(static_path / "feedings.html")
+@app.get("/diapers.html", include_in_schema=False)
+def serve_diapers() -> FileResponse:
+ """Serve the diaper changes overview page."""
+ return FileResponse(static_path / "diapers.html")
+
+
@app.get("/log-diaper.html", include_in_schema=False)
def serve_log_diaper() -> FileResponse:
"""Serve the log diaper change page."""
diff --git a/src/baby_monitor/static/diapers.html b/src/baby_monitor/static/diapers.html
new file mode 100644
index 0000000..1723dd9
--- /dev/null
+++ b/src/baby_monitor/static/diapers.html
@@ -0,0 +1,1010 @@
+
+
+
+
+
+ Diaper Changes - Baby Monitor
+
+
+
+
+
+
+
+
+
+
+
๐งท Diaper Changes
+
Overview of all diaper change sessions
+
+
+
+
+
+
+
+
diff --git a/src/baby_monitor/static/feedings.html b/src/baby_monitor/static/feedings.html
index 68dc416..7c9825d 100644
--- a/src/baby_monitor/static/feedings.html
+++ b/src/baby_monitor/static/feedings.html
@@ -359,6 +359,7 @@
@@ -410,6 +411,10 @@
window.location.href = "/add-child.html";
});
+ document.getElementById("menuDiapers").addEventListener("click", () => {
+ window.location.href = "/diapers.html";
+ });
+
document.getElementById("menuLogout").addEventListener("click", () => {
closeMenu();
logout();
diff --git a/src/baby_monitor/static/index.html b/src/baby_monitor/static/index.html
index 29a4433..65932fd 100644
--- a/src/baby_monitor/static/index.html
+++ b/src/baby_monitor/static/index.html
@@ -217,6 +217,7 @@
@@ -290,6 +291,10 @@
window.location.href = "/feedings.html";
});
+ document.getElementById("menuDiapers").addEventListener("click", () => {
+ window.location.href = "/diapers.html";
+ });
+
document.getElementById("menuLogout").addEventListener("click", () => {
closeMenu();
logout();