aboutsummaryrefslogtreecommitdiffstats
path: root/templates/index.html
diff options
context:
space:
mode:
authorMitsuo Tokumori <[email protected]>2025-03-06 11:24:57 +0900
committerMitsuo Tokumori <[email protected]>2025-03-06 11:24:57 +0900
commit304d0a2c3e0e1eea58d6db1762c1b96e450b5843 (patch)
tree70976dfdec1b65f92849125a47b7ff7ff18740f7 /templates/index.html
downloadmasu-304d0a2c3e0e1eea58d6db1762c1b96e450b5843.tar.gz
masu-304d0a2c3e0e1eea58d6db1762c1b96e450b5843.tar.bz2
masu-304d0a2c3e0e1eea58d6db1762c1b96e450b5843.zip
Initial commit
Only 2 blocks: time and weather. Currently data is passed in formatted strings made server-side (python) just for testing, later the formatting should be client-side (html). Also the "time" API might be redundant, ideally it should pass the city names, and offsets (time zone), and then just use the system time (otherwise DST jumps would need to be taken into account).
Diffstat (limited to 'templates/index.html')
-rw-r--r--templates/index.html19
1 files changed, 19 insertions, 0 deletions
diff --git a/templates/index.html b/templates/index.html
new file mode 100644
index 0000000..6337647
--- /dev/null
+++ b/templates/index.html
@@ -0,0 +1,19 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <link rel="stylesheet" href="/static/style.css">
+</head>
+<body>
+ <header>
+ <button id="reload">Reload</button>
+ <label>Weather City: <input id="city" value="Kofu, JP"></label>
+ <label><input type="checkbox" id="pause" checked> Auto-Update</label>
+ </header>
+ <div class="grid">
+ <div class="block" id="time"></div>
+ <div class="block" id="weather"></div>
+ <!-- Add more blocks -->
+ </div>
+ <script src="/static/script.js"></script>
+</body>
+</html>