From 72f7b05bebffb8ae7069cb6f4deacc21d99edf11 Mon Sep 17 00:00:00 2001 From: Naomi Carrigan Date: Thu, 29 Jan 2026 15:21:02 -0800 Subject: [PATCH] feat: cursor --- src/index.ts | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/src/index.ts b/src/index.ts index 3c83ac3..aceb19f 100644 --- a/src/index.ts +++ b/src/index.ts @@ -216,7 +216,7 @@ nhcarriganHeadersStyles.innerHTML = ` html { font-family: 'Vampyr', monospace; - cursor: url('https://cdn.nhcarrigan.com/cursors/rose-cursor.png') 16 16, url('https://cdn.nhcarrigan.com/cursors/cursor.cur'), auto; + cursor: url('data:image/svg+xml;utf8,') 0 0, url('https://cdn.nhcarrigan.com/cursors/cursor.cur'), auto; min-height: 100vh; min-width: 100vw; } @@ -335,7 +335,7 @@ footer { background: none; border: 1px solid var(--witch-plum); border-radius: 20px; - cursor: url('https://cdn.nhcarrigan.com/cursors/rose-pointer.png') 16 16, url('https://cdn.nhcarrigan.com/cursors/pointer.cur'), pointer; + cursor: url('data:image/svg+xml;utf8,') 0 0, url('https://cdn.nhcarrigan.com/cursors/pointer.cur'), pointer; color: var(--witch-lavender); font-size: 1rem; font-family: 'Vampyr', monospace; @@ -357,7 +357,7 @@ footer { a { color: var(--accent); - cursor: url('https://cdn.nhcarrigan.com/cursors/rose-pointer.png') 16 16, url('https://cdn.nhcarrigan.com/cursors/pointer.cur'), pointer; + cursor: url('data:image/svg+xml;utf8,') 0 0, url('https://cdn.nhcarrigan.com/cursors/pointer.cur'), pointer; transition: all 0.3s ease; text-decoration: none; } @@ -367,6 +367,7 @@ a:hover { text-decoration: underline; text-decoration-color: var(--witch-mauve); text-underline-offset: 3px; + cursor: url('data:image/svg+xml;utf8,') 0 0, pointer; } #tree-nation-offset-website { @@ -505,6 +506,10 @@ input, textarea, select { outline: none; } +input[type="text"], input[type="email"], input[type="password"], textarea { + cursor: url('data:image/svg+xml;utf8,') 12 24, text; +} + input:focus, textarea:focus, select:focus { border-color: var(--witch-rose); box-shadow: 0 0 0 3px rgba(168, 87, 126, 0.15); @@ -520,7 +525,7 @@ button, input[type="submit"], input[type="button"] { color: var(--witch-moon); border: none; border-radius: 25px; - cursor: url('https://cdn.nhcarrigan.com/cursors/rose-pointer.png') 16 16, url('https://cdn.nhcarrigan.com/cursors/pointer.cur'), pointer; + cursor: url('data:image/svg+xml;utf8,') 0 0, url('https://cdn.nhcarrigan.com/cursors/pointer.cur'), pointer; transition: all 0.3s ease; text-transform: uppercase; letter-spacing: 1px; @@ -623,6 +628,11 @@ pre { color: var(--witch-moon); } +/* Draggable elements */ +[draggable="true"] { + cursor: url('data:image/svg+xml;utf8,') 12 12, move; +} + @media screen and (max-width: 625px) { #tree-nation-offset-website { display: none;