diff --git a/templates/assets/css/data.css b/templates/assets/css/data.css new file mode 100644 index 0000000..0c4a4b2 --- /dev/null +++ b/templates/assets/css/data.css @@ -0,0 +1,17 @@ +.container { + font-family: 'Lato', sans-serif; + display: flex; + flex-direction: column; +} + +h1, h2, h6 { + margin: 2vh 0 2vh 2vw; +} + +p { + margin: 2vh 2vw 4vh 2vw; +} + +h6 { + font-size: 3vh; +} \ No newline at end of file diff --git a/templates/assets/css/navigation.css b/templates/assets/css/navigation.css index ce9d6da..e301c80 100644 --- a/templates/assets/css/navigation.css +++ b/templates/assets/css/navigation.css @@ -117,17 +117,29 @@ #down_1, #down_2, #down_3{ margin-top: 0; - box-shadow: 0 0 15px 47px #0cffae; +} + +#style { + background-color: #0cffae; + padding-left: 6vw; } #chevron_1, #chevron_2, #chevron_3 { z-index: 1000; } -#hemp_dropdown, #spider_dropdown, #offgrid_dropdown { +#hemp_dropdown, #offgrid_dropdown { width: 25vw; } +#hemp_dropdown a { + padding-left: 3vw !important; +} + +#hover:hover { + color: #3ebe93; +} + .desktop_navigation { display: none; } diff --git a/templates/assets/js/main.js b/templates/assets/js/main.js index a331d7a..80c2024 100644 --- a/templates/assets/js/main.js +++ b/templates/assets/js/main.js @@ -1,47 +1,41 @@ // show mobile menu onclick +let menu = document.getElementById("md"); +menu.style.display = "none"; -document.getElementById("icon").addEventListener("click", function menu() { - var x = document.getElementById("md"); - if (x.style.display === "none") { - x.style.display = "flex";} + +document.getElementById("icon").addEventListener("click", () => { + if (menu.style.display === "none") { + menu.style.display = "flex"; + } else { - x.style.display ="none"; + menu.style.display ="none"; } } ) // show hemp submenu +let hemp_menu = document.getElementById("down_1"); +hemp_menu.style.display = "none"; -document.getElementById("chevron_1").addEventListener("click", function menu() { - var x= document.getElementById("down_1"); - if (x.style.display === "none") { - x.style.display = "flex";} - else { - x.style.display ="none"; - } - } -) - -// spider submenu +document.getElementById("chevron_1").addEventListener("click", () => { -document.getElementById("chevron_2").addEventListener("click", function menu() { - var x= document.getElementById("down_2"); - if (x.style.display === "none") { - x.style.display = "flex";} + if (hemp_menu.style.display === "none") { + hemp_menu.style.display = "flex";} else { - x.style.display ="none"; + hemp_menu.style.display ="none"; } } ) // offgrid submenu +let offgrid_menu = document.getElementById("down_3"); +offgrid_menu.style.display = "none"; -document.getElementById("chevron_3").addEventListener("click", function menu() { - var x= document.getElementById("down_3"); - if (x.style.display === "none") { - x.style.display = "flex";} +document.getElementById("chevron_3").addEventListener("click", () => { + if (offgrid_menu.style.display === "none") { + offgrid_menu.style.display = "flex";} else { - x.style.display ="none"; + offgrid_menu.style.display ="none"; } } ) diff --git a/templates/index_de.html.tera b/templates/index_de.html.tera index d3f1a34..e6a457b 100644 --- a/templates/index_de.html.tera +++ b/templates/index_de.html.tera @@ -3,6 +3,8 @@ {%block head%} {{super()}} + + {%endblock head%} {{super()}} {%block content%} diff --git a/templates/nav.html.tera b/templates/nav.html.tera index d6c3a35..4512be1 100644 --- a/templates/nav.html.tera +++ b/templates/nav.html.tera @@ -26,24 +26,15 @@ -