homepage rework for socials and projects
This commit is contained in:
parent
fe84a59326
commit
69e2e22e47
12 changed files with 432 additions and 137 deletions
|
@ -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);
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue