From 245e95db0d63357aaa2eca808192f4d7b553d195 Mon Sep 17 00:00:00 2001 From: mehbark Date: Sun, 20 Aug 2023 08:37:11 -0400 Subject: [PATCH] cursor adventure: done enough, ready for draft link :D --- html/cursor-adventure.tsx | 235 ++++++++++++++++++++++++++++++- static/cursor-fun-end/index.html | 6 +- 2 files changed, 233 insertions(+), 8 deletions(-) diff --git a/html/cursor-adventure.tsx b/html/cursor-adventure.tsx index f514d30..d6f3bf5 100644 --- a/html/cursor-adventure.tsx +++ b/html/cursor-adventure.tsx @@ -30,6 +30,9 @@ const cursors = [ "vriska_egg", "easter_eggbug", // such a cool idea to have the map hidden as a cursor :D + // i'll link to a draft post with a debug build + // too big i think :( + // maybe for the best (actual pointer makes it clear that it's a link) "concept", ] as const; type Cursor = (typeof cursors)[number]; @@ -45,21 +48,34 @@ const grid_area_str = ({ row_start, row_end, col_start, col_end }: GridArea) => `${row_start} / ${col_start} / ${row_end} / ${col_end}`; const CursorImg = ({ cursor }: { cursor: Cursor }) => ( - + ); const debug = true; +const debug_style = debug + ? { + border: "1px solid red", + overflow: "hidden", + justifyContent: "center", + alignContent: "center", + } + : {}; // the cursor fallback is _mandatory_ const Section = ({ cursor, grid_area, link, start, + end, }: { cursor?: Cursor; grid_area: GridArea; link?: string; start?: true; + end?: true; }) => link ? ( + {end && debug ? "end" : ""} {debug && cursor && } ) : ( @@ -92,9 +107,7 @@ const Section = ({ fontFamily: "Comic Sans MS", } : {}), - ...(debug - ? { border: "1px solid red", overflow: "hidden" } - : {}), + ...debug_style, }} > {start ? "start" : ""} @@ -146,5 +159,213 @@ render_and_copy( cursor="up" grid_area={{ row_start: 7, row_end: 13, col_start: 5, col_end: 7 }} /> +
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
); diff --git a/static/cursor-fun-end/index.html b/static/cursor-fun-end/index.html index 89d0d39..f379d20 100644 --- a/static/cursor-fun-end/index.html +++ b/static/cursor-fun-end/index.html @@ -62,7 +62,7 @@ } async function main() { - await sleep(3500); + await sleep(2500); hide("rickroll"); show("psyche"); set_title("PSYCHE"); @@ -108,6 +108,10 @@ />

i just want you to read homestuck :]

+

+ that's all there's definitely no trick nor time pressure to + clicking these links +

offline (best)