Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
</head>

<body>
<div id="cursor"></div>
<div id="app"></div>
</body>

Expand Down
Binary file modified priv/static/images/open-graph.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion sitemap.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>https://links.juleskab.lat/</loc>
<lastmod>2026-01-11</lastmod>
<lastmod>2026-04-30</lastmod>
<changefreq>monthly</changefreq>
<priority>1.0</priority>
</url>
Expand Down
35 changes: 35 additions & 0 deletions src/effects.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
export function setupCursorEffect(onLoaded, onMouseMoved) {
setTimeout(onLoaded, 120);

const el = () => document.getElementById("cursor");

window.addEventListener("mousemove", (e) => {
const c = el();
if (c) {
c.style.left = e.clientX + "px";
c.style.top = e.clientY + "px";
}
const normX = e.clientX / (window.innerWidth || 1);
const normY = e.clientY / (window.innerHeight || 1);
onMouseMoved(normX, normY);
});

document.addEventListener("mouseover", (e) => {
if (!e.target.closest("a")) return;
const c = el();
if (!c) return;
c.style.width = "36px";
c.style.height = "36px";
c.style.opacity = "0.35";
});

document.addEventListener("mouseout", (e) => {
const link = e.target.closest("a");
if (!link || link.contains(e.relatedTarget)) return;
const c = el();
if (!c) return;
c.style.width = "";
c.style.height = "";
c.style.opacity = "";
});
}
Loading
Loading