diff --git a/static/assets/js/toggle.js b/static/assets/js/toggle.js new file mode 100644 index 0000000..58ab333 --- /dev/null +++ b/static/assets/js/toggle.js @@ -0,0 +1,10 @@ +// script.js +document.addEventListener("DOMContentLoaded", () => { + const menuToggle = document.querySelector("#menu-btn"); + const hiddenMenu = document.querySelector("#nav-menu"); + + menuToggle.addEventListener("click", () => { + hiddenMenu.classList.toggle("show"); + }); + }); + \ No newline at end of file diff --git a/static/assets/styles.css b/static/assets/styles.css index 26d413e..1c1b5f2 100644 --- a/static/assets/styles.css +++ b/static/assets/styles.css @@ -251,6 +251,26 @@ p { padding-bottom: 20px; } +#nav-menu { + width: 90%; + display: flex; + flex-direction: column; + gap:10px; + max-height: 0; + overflow: hidden; + transition: max-height 0.5s ease-in-out; +} + +/* Add a class to show the menu */ +#nav-menu.show { + display: flex; + max-height: 400px; +} + +#nav-menu .button-link { + width: 100%; +} + /* headers */ h4 { font-size: 24px; @@ -280,6 +300,10 @@ hr { border-top: 1px solid black; } +.list-container-mobile { + width: 100%; +} + /* breakpoints */ @media only screen and (max-width: 1440px) { diff --git a/templates/_nav.html b/templates/_nav.html index d6b2839..9d683c9 100644 --- a/templates/_nav.html +++ b/templates/_nav.html @@ -19,9 +19,14 @@ MM. MM. ,MP M `MM.M MM. MM Y , MM MM
✲ ✲ ✲
-
MENU
+
✲ ✲ ✲
+
✲ ✲ ✲

A grassroot organisation of artists, creative technologist, designers, and educators focused on supporting a vibrant new media arts community in Ireland -- through our events, newsletter, and other activities.

@@ -33,4 +38,6 @@ MM. MM. ,MP M `MM.M MM. MM Y , MM MM
instagram ↓
- \ No newline at end of file + + + \ No newline at end of file