diff --git a/assets/images/vertical-ad-mock.jpg b/assets/images/vertical-ad-mock.jpg new file mode 100644 index 0000000..3679713 Binary files /dev/null and b/assets/images/vertical-ad-mock.jpg differ diff --git a/assets/js/st-nav.js b/assets/js/st-nav.js index efaa27d..51ffec3 100644 --- a/assets/js/st-nav.js +++ b/assets/js/st-nav.js @@ -1,17 +1,31 @@ //Nav slide in logic const nav = document.querySelector('.st-nav'); -const openButton = document.querySelector('.st-open-nav'); -const closeButton = document.querySelector('.st-close-nav'); +const openNavButton = document.querySelector('.st-open-nav'); +const closeNavButton = document.querySelector('.st-close-nav'); -openButton.addEventListener('click', () => { +openNavButton.addEventListener('click', () => { nav.classList.add('st-nav-is-open'); }); -closeButton.addEventListener('click', () => { +closeNavButton.addEventListener('click', () => { nav.classList.remove('st-nav-is-open'); }); +//Search slide logic + +const searchOverlay = document.querySelector('.st-search-overlay'); +const openSearchButton = document.querySelector('.st-open-search'); +const closeSearchButton = document.querySelector('.st-close-search'); + +openSearchButton.addEventListener('click', () => { + searchOverlay.classList.add('st-search-is-open'); +}); + +closeSearchButton.addEventListener('click', () => { + searchOverlay.classList.remove('st-search-is-open'); +}); + //Sticky nav logic const iconBar = document.querySelector('.st-header-icon-bar'); diff --git a/header.php b/header.php index 936526c..7c85b90 100644 --- a/header.php +++ b/header.php @@ -26,27 +26,35 @@ forum join - + - +