Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Menu is responsive in different dimension #1612

Merged
merged 1 commit into from
Jun 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

<!-- Site Menu Links (for small screens)-->
<div
class="dropMenuLinks ease-in-out duration-300 flex flex-col justify-between overflow-y-auto h-screen z-50 absolute top-0 -right-[2000px] backdrop-blur-sm sm:p-12 p-8 bg-white/90 w-screen ">
class="dropMenuLinks ease-in-out duration-300 flex flex-col justify-between overflow-y-auto h-screen z-50 absolute top-0 -right-[2000px] backdrop-blur-sm sm:p-12 p-8 bg-white/90 w-[70%] rounded-md ">
<!-- Row - 1 -->
<div class="row-1 flex items-center justify-between text-black ">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"
Expand Down
6 changes: 5 additions & 1 deletion script.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
let dropMenuLinks = document.querySelector('.dropMenuLinks');
let indexOpenDropDown = document.querySelector('.indexOpenDropDown');
let closeDropDown = document.querySelector('.closeDropDown');
let heroSection = document.querySelector('.heroSection');

indexOpenDropDown.onclick = () => {
dropMenuLinks.style.right = 0;
heroSection.style.zIndex = `1`;
}

closeDropDown.onclick = () => {
dropMenuLinks.style.right = '-2000px';
dropMenuLinks.style.right = `-2000px`;
heroSection.style.zIndex = `50`;

}

function subscribe() {
Expand Down