import { ComponentChildren, toChildArray } from "preact";
import { Main, render_and_copy, shuffle, n_of } from "./common.tsx";
const Tag = ({ tag }: { tag: string }) => (
{`#${tag}`}
);
const tags = [
"CSS Crimes",
"borgesposting",
"NEISVoid",
"circling the square",
"retrocomputing",
"cats of cohost",
"coho film club",
"cohost crafts",
"the cohost plural feed",
"cohost summer mixtape",
"trans trucks",
"The Cohost Local Feed (Minnesota)",
"cohost draws",
"tv head",
"make up a mech pilot",
"frasierposting",
"cohost utilities",
"alt text request",
"meepismonday",
];
// repeating makes it seem more random
export const PseudoRandom = ({
children,
repeat = 5,
}: {
children: ComponentChildren;
repeat?: number;
}) => (
{...n_of(repeat, toChildArray(children))
.map(shuffle)
.flat()
.map(child => {child})}
);
/// width is 0-1
export const Choice = ({ children }: { children: ComponentChildren }) => (
{children}
);
render_and_copy(
{...tags.map(tag => )}
Some notes:
- all tags are from @TagOfTheDay
- i'll do my best to keep this up to date
-
it would be helpful if you could pester me in the comments
when this tag list is out of date (most recent first): (also
you can just like. use this tag list)
{...tags.toReversed().map(tag => (
-
))}
-
if there's enough interest, i'll hack together a little
generator for these (it would be easy to make one for tags, but
one for other stuff would require a bit more work)
-
this was generated on {new Date().toDateString()} at{" "}
{new Date().toTimeString()}
);