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:
1 parent
04b6d1f509
commit
b2852151f4
5 files changed
+21
-5
No files matched your search
+1
-1
@@ -430,7 +430,7 @@ p {
|
|||||||
|
|
||||||
.project-card--4 {
|
.project-card--4 {
|
||||||
background-image: linear-gradient(rgba(11, 21, 50, 0.75)),
|
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,
|
.project-card-link:link,
|
||||||
|
|||||||
Binary file not shown.
|
After Width: | Height: | Size: 360 KiB |
+2
-2
@@ -246,12 +246,12 @@
|
|||||||
</div>
|
</div>
|
||||||
</a>
|
</a>
|
||||||
<a
|
<a
|
||||||
href="https://cosmicallycreative.com"
|
href="https://hopefoodpantrysc.org"
|
||||||
target="_blank"
|
target="_blank"
|
||||||
rel="noopener noreferrer"
|
rel="noopener noreferrer"
|
||||||
class="project-card-link"
|
class="project-card-link"
|
||||||
><div class="project-card project-card--4">
|
><div class="project-card project-card--4">
|
||||||
<h3>This website!</h3>
|
<h3>Hope Food Pantry</h3>
|
||||||
<span class="tag">HTML, CSS, and JS</span>
|
<span class="tag">HTML, CSS, and JS</span>
|
||||||
</div>
|
</div>
|
||||||
</a>
|
</a>
|
||||||
|
|||||||
+10
-2
@@ -1,6 +1,14 @@
|
|||||||
{
|
{
|
||||||
"icons": [
|
"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,6 +8,14 @@ btnNavEl.addEventListener("click", function () {
|
|||||||
headerEl.classList.toggle("nav-open");
|
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
|
// Scroll Animations
|
||||||
document.addEventListener("DOMContentLoaded", () => {
|
document.addEventListener("DOMContentLoaded", () => {
|
||||||
const observerOptions = { root: null, rootMargin: "0px", threshold: 0.5 };
|
const observerOptions = { root: null, rootMargin: "0px", threshold: 0.5 };
|
||||||
|
|||||||
Reference in new issue
Block a user