Modals + Img Grid

This commit is contained in:
2024-10-27 02:14:26 -07:00
parent b3426ec6d8
commit 3d8aa9e608
70 changed files with 258 additions and 151 deletions
Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 41 KiB

Executable → Regular
View File

Before

Width:  |  Height:  |  Size: 10 KiB

After

Width:  |  Height:  |  Size: 10 KiB

+38 -1
View File
@@ -34,7 +34,44 @@
},
});
// modals
// openers
const body = document.querySelector("body");
const show_modal_buttons = document.querySelectorAll("[data-modal-show]");
show_modal_buttons.forEach((btn) => {
const target = btn.getAttribute('data-modal-show');
const modal = document.querySelector(`#${target}`);
if (modal) {
btn.addEventListener("click", (e) => {
modal.classList.toggle("hidden", false);
body.classList.toggle("overflow-hidden", true);
});
}
});
const hide_modal_buttons = document.querySelectorAll("[data-modal-hide]");
hide_modal_buttons.forEach((btn) => {
const target = btn.getAttribute('data-modal-hide');
const modal = document.querySelector(`#${target}`);
if (modal) {
btn.addEventListener("click", (e) => {
modal.classList.toggle("hidden", true);
body.classList.toggle("overflow-hidden", false);
});
}
});
const modal_bg = document.querySelectorAll(".modal-bg");
modal_bg.forEach((bg) => {
bg.addEventListener("click", (e) => {
if(e.target === bg) {
bg.classList.toggle("hidden", true);
body.classList.toggle("overflow-hidden", false);
}
});
});
// Swipers
// ----------------------------------------
const swipers = document.querySelectorAll(".swiper-slider");
+14 -2
View File
@@ -47,15 +47,27 @@
text-decoration: underline;
}
.testimonial a {
.testimonial a,
.img_grid_container a {
color: var(--meetups-color) !important;
text-decoration: none;
}
.testimonial a:hover {
.testimonial a:hover,
.img_grid_container a:hover {
text-decoration: underline;
}
.modal-bg a {
color: var(--meetups-color) !important;
text-decoration: none;
}
.modal-bg a:hover {
text-decoration: underline;
}
.video-container {
aspect-ratio: 16 / 9;
width: 100%;