diff options
author | crupest <crupest@outlook.com> | 2022-11-27 15:53:02 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2022-11-27 15:53:02 +0800 |
commit | c4e083863e8476ca70d8b895beea5a172fcb7ecd (patch) | |
tree | 3de0178b97b26904126056f1010a202fda7a4124 /docker/crupest-nginx/sites/www/src | |
parent | 79054b14574821a4ceb3c471a61080cb7808d171 (diff) | |
download | crupest-c4e083863e8476ca70d8b895beea5a172fcb7ecd.tar.gz crupest-c4e083863e8476ca70d8b895beea5a172fcb7ecd.tar.bz2 crupest-c4e083863e8476ca70d8b895beea5a172fcb7ecd.zip |
Enhance nginx config and www page.
Diffstat (limited to 'docker/crupest-nginx/sites/www/src')
-rw-r--r-- | docker/crupest-nginx/sites/www/src/main.js | 2 | ||||
-rw-r--r-- | docker/crupest-nginx/sites/www/src/style.css | 8 |
2 files changed, 8 insertions, 2 deletions
diff --git a/docker/crupest-nginx/sites/www/src/main.js b/docker/crupest-nginx/sites/www/src/main.js index 111b0bd..13a85c3 100644 --- a/docker/crupest-nginx/sites/www/src/main.js +++ b/docker/crupest-nginx/sites/www/src/main.js @@ -21,7 +21,7 @@ document.addEventListener("DOMContentLoaded", async () => { const todoContainer = document.getElementById("todo-container"); const res = await fetch("/api/todos"); - const body = res.json(); + const body = await res.json(); if (res.status !== 200) { todoMessage.style.color = "red"; diff --git a/docker/crupest-nginx/sites/www/src/style.css b/docker/crupest-nginx/sites/www/src/style.css index 6021c6c..b632745 100644 --- a/docker/crupest-nginx/sites/www/src/style.css +++ b/docker/crupest-nginx/sites/www/src/style.css @@ -5,7 +5,13 @@ html { body { width: 100%; margin: 0; - padding: 0 2em; + box-sizing: border-box; +} + +@media (min-width: 576px) { + #main-article { + padding: 0 2em; + } } #color-strip-container { |