Fixed issue where the mobile navigation didn't close after a link was clicked. Also added Hope Food Pantry as a new project.

This commit is contained in:
blake committed 2025-11-20 09:13:42 -06:00
1 parent 04b6d1f509
commit b2852151f4
5 files changed
+21 -5

No files matched your search

+1 -1
View File
@@ -430,7 +430,7 @@ p {
.project-card--4 {
background-image: linear-gradient(rgba(11, 21, 50, 0.75)),
url("/img/client-img/cosmicallycreative.jpg");
url("/img/client-img/hopefoodpantry.jpg");
}
.project-card-link:link,
Binary file not shown.

After

Width:  |  Height:  |  Size: 360 KiB

+2 -2
View File
@@ -246,12 +246,12 @@
</div>
</a>
<a
href="https://cosmicallycreative.com"
href="https://hopefoodpantrysc.org"
target="_blank"
rel="noopener noreferrer"
class="project-card-link"
><div class="project-card project-card--4">
<h3>This website!</h3>
<h3>Hope Food Pantry</h3>
<span class="tag">HTML, CSS, and JS</span>
</div>
</a>
+10 -2
View File
@@ -1,6 +1,14 @@
{
"icons": [
{ "src": "img/favicon-192.webp", "type": "image/png", "sizes": "192x192" },
{ "src": "img/favicon-512.webp", "type": "image/png", "sizes": "512x512" }
{
"src": "img/favicons/favicon-192.webp",
"type": "image/png",
"sizes": "192x192"
},
{
"src": "img/favicons/favicon-512.webp",
"type": "image/png",
"sizes": "512x512"
}
]
}
+8
View File
@@ -8,6 +8,14 @@ btnNavEl.addEventListener("click", function () {
headerEl.classList.toggle("nav-open");
});
const navLinks = document.querySelectorAll(".main-nav-link");
navLinks.forEach((link) => {
link.addEventListener("click", () => {
headerEl.classList.remove("nav-open");
});
});
// Scroll Animations
document.addEventListener("DOMContentLoaded", () => {
const observerOptions = { root: null, rootMargin: "0px", threshold: 0.5 };