diff --git a/frontend/index.css b/frontend/index.css index 2736ee1..d34c94b 100644 --- a/frontend/index.css +++ b/frontend/index.css @@ -1,8 +1,34 @@ +.flex { + margin-left: 0; +} + + .loginSpacer { height: 33%; } -#menu { +#login { + width: 100%; + height: 100%; +} + +#content { + height: 85%; width: 100%; padding: 5%; +} + +#menu { + height: 5%; + width: 100%; + padding: 5%; +} +#mainPage { + width: 100%; + height: 100%; +} + +.screen { + width: 95%; + height: 100%; } \ No newline at end of file diff --git a/frontend/index.html b/frontend/index.html index a672499..de7f03f 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -9,7 +9,7 @@ -
+
@@ -26,14 +26,14 @@
diff --git a/frontend/index.js b/frontend/index.js index 4db2d55..7c13b3c 100644 --- a/frontend/index.js +++ b/frontend/index.js @@ -23,4 +23,18 @@ async function login() { document.getElementById("login").setAttribute("style", "display: none;"); document.getElementById("mainPage").setAttribute("style", ""); } +} + +function switchScreen(button) { + document.getElementById("tasks").setAttribute("style", "display: none;"); + document.getElementById("history").setAttribute("style", "display: none;"); + document.getElementById("addTask").setAttribute("style", "display: none;"); + + if (button === "task") { + document.getElementById("tasks").setAttribute("style", ""); + } else if (button === "history") { + document.getElementById("history").setAttribute("style", ""); + } else if (button === "add") { + document.getElementById("addTask").setAttribute("style", ""); + } } \ No newline at end of file