homepage rework for socials and projects

This commit is contained in:
ari melody 2025-06-16 20:32:46 +01:00
parent fe84a59326
commit 69e2e22e47
Signed by: ari
GPG key ID: CF99829C92678188
12 changed files with 432 additions and 137 deletions

View file

@ -1,3 +1,5 @@
import { hijackClickEvent } from "./main.js";
const hexPrimary = document.getElementById("hex-primary");
const hexSecondary = document.getElementById("hex-secondary");
const hexTertiary = document.getElementById("hex-tertiary");
@ -14,3 +16,8 @@ updateHexColours();
window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change", () => {
updateHexColours();
});
document.querySelectorAll("ul#projects li.project-item").forEach(projectItem => {
const link = projectItem.querySelector('a');
hijackClickEvent(projectItem, link);
});