From 31162f2360a2bca939321ad9a5fe2d7f663dddae Mon Sep 17 00:00:00 2001 From: mehbark Date: Thu, 27 Jul 2023 12:20:58 -0400 Subject: [PATCH] random tag: add randirect link --- html/adjustable-bar-graph.tsx | 2 ++ html/hs-mortality.tsx | 1 + html/random-tag-of-the-day.tsx | 21 +++++++++++++++++++-- html/winamp.tsx | 1 + 4 files changed, 23 insertions(+), 2 deletions(-) create mode 100644 html/adjustable-bar-graph.tsx create mode 100644 html/winamp.tsx diff --git a/html/adjustable-bar-graph.tsx b/html/adjustable-bar-graph.tsx new file mode 100644 index 0000000..2a4e4ea --- /dev/null +++ b/html/adjustable-bar-graph.tsx @@ -0,0 +1,2 @@ +// i no joke had the idea for this in a dream +// winamp seems more fun (the equalizer yk) diff --git a/html/hs-mortality.tsx b/html/hs-mortality.tsx index 8bcbf4d..78157c4 100644 --- a/html/hs-mortality.tsx +++ b/html/hs-mortality.tsx @@ -10,6 +10,7 @@ // img.src = a.href; // a.insertAdjacentElement("afterend", img); // }) +// didn't find anything there btw // pretty hopeless to try to recreate the pulsing light import { Main, render_and_copy, static_url } from "./common.tsx"; diff --git a/html/random-tag-of-the-day.tsx b/html/random-tag-of-the-day.tsx index c31dc05..a4798b6 100644 --- a/html/random-tag-of-the-day.tsx +++ b/html/random-tag-of-the-day.tsx @@ -1,8 +1,9 @@ import { ComponentChildren, toChildArray } from "preact"; import { Main, render_and_copy, shuffle, n_of } from "./common.tsx"; +const tag_link = (tag: string) => `https://cohost.org/rc/tagged/${tag}`; const Tag = ({ tag }: { tag: string }) => ( - {`#${tag}`} + {`#${tag}`} ); const tags = [ @@ -25,12 +26,17 @@ const tags = [ "cohost utilities", "alt text request", "meepismonday", + "rats", + "worldwide music wednesday", + "chaos magick", ]; +const default_repeat = 4; + // repeating makes it seem more random export const PseudoRandom = ({ children, - repeat = 5, + repeat = default_repeat, }: { children: ComponentChildren; repeat?: number; @@ -93,6 +99,17 @@ render_and_copy(