diff --git a/static/css/custom.css b/static/css/custom.css index 0d3933d..4c77534 100644 --- a/static/css/custom.css +++ b/static/css/custom.css @@ -1,4 +1,5 @@ -body { +html, body { + height: 100%; background-color: #eee; font-family: "Poppins", sans-serif; } \ No newline at end of file diff --git a/static/js/interact.js b/static/js/interact.js new file mode 100644 index 0000000..62077c6 --- /dev/null +++ b/static/js/interact.js @@ -0,0 +1,25 @@ +function openCategory(DOM) { + DOM.parentNode.children[1].classList.remove("hidden"); +} + +function closeCategory(DOM) { + DOM.parentNode.children[1].classList.add("hidden"); +} + +function toggleCategory(DOM) { + let classes = DOM.parentNode.children[1].classList; + classes[classes.contains("hidden") ? "remove" : "add"]("hidden"); +} + +/* +function postPageLoad() { + let ent = document.getElementById("sidenav").children[1].children[0].children[0].children; + + for (let i = 0; i < ent.length; i++) { + if (!ent[i].children[0].classList.contains("item")) + continue; + + ent[i].children[0].onclick = toggleCategory(ent[i].children[0]); + } +} +*/ \ No newline at end of file diff --git a/templates/layout/dash.html b/templates/layout/dash.html index 9be7edc..a65d41a 100644 --- a/templates/layout/dash.html +++ b/templates/layout/dash.html @@ -10,9 +10,9 @@ Husstanden {% endif %} - -
-
+ +
+
{% include 'layout/includes/side_nav.html' %}
@@ -23,5 +23,6 @@
{% include 'layout/includes/boot-body.html' %} + \ No newline at end of file diff --git a/templates/layout/includes/side_nav.html b/templates/layout/includes/side_nav.html index bfcbf65..bb8fdd7 100644 --- a/templates/layout/includes/side_nav.html +++ b/templates/layout/includes/side_nav.html @@ -1,4 +1,11 @@ +
@@ -53,57 +104,58 @@
- + Dashboard -
- + Recieps - +
Log - - +
+
+
\ No newline at end of file