1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-10-28 02:15:47 -04:00

fix magic wand cursor 🪄

This commit is contained in:
2022-01-24 20:43:45 -05:00
parent 5847fd82b6
commit c1e030dfcc
6 changed files with 30 additions and 31 deletions

View File

@@ -343,8 +343,8 @@ const Index = () => (
}
.home .birthday :global(a:hover) {
/* magic wand cursor easter egg */
cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='40' height='48' viewport='0 0 100 100' style='font-size:24px'><text y='50%' transform='rotate(-70 0 0) translate(-18, 5)'>🪄</text></svg>")
16 0,
cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='30' style='font-size:24px'><text y='50%' transform='rotate(-70 0 0) translate(-20, 6)'>🪄</text></svg>")
5 5,
auto;
}

View File

@@ -25,7 +25,7 @@ export const getStaticProps: GetStaticProps = async () => {
// parse the year of each note and group them together
const notesByYear = {};
getAllNotes().map((note) => {
const year = parseInt(format(new Date(note.date), "yyyy"));
const year = Number.parseInt(format(new Date(note.date), "yyyy"));
(notesByYear[year] || (notesByYear[year] = [])).push(note);
});