From 84a5fb4a21e658082ce6b5f8b4b6ffa08051d081 Mon Sep 17 00:00:00 2001 From: mehbark Date: Mon, 24 Jul 2023 16:17:00 -0400 Subject: [PATCH] static background testing the waters --- html/random-tag-of-the-day.tsx | 47 +++++++++++++++++++--------------- html/static-background.tsx | 19 ++++++++++++++ 2 files changed, 45 insertions(+), 21 deletions(-) create mode 100644 html/static-background.tsx diff --git a/html/random-tag-of-the-day.tsx b/html/random-tag-of-the-day.tsx index 58ffb4d..c31dc05 100644 --- a/html/random-tag-of-the-day.tsx +++ b/html/random-tag-of-the-day.tsx @@ -5,24 +5,27 @@ 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`.split("\n"); +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 = ({ @@ -53,7 +56,6 @@ export const Choice = ({ children }: { children: ComponentChildren }) => (
( style={{ position: "absolute", top: "1.5rem", - bottom: 0, left: 0, right: 0, width: "100%", - height: "100%", + height: "fit-content", display: "flex", alignContent: "center", justifyContent: "center", @@ -111,6 +112,10 @@ render_and_copy( 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()} +
  • ); diff --git a/html/static-background.tsx b/html/static-background.tsx new file mode 100644 index 0000000..8508034 --- /dev/null +++ b/html/static-background.tsx @@ -0,0 +1,19 @@ +import { Main, render_and_copy } from "./common.tsx"; +// when two grids are misaligned and strange patterns you find, that's-a moire +// ^ bad remembering of https://xkcd.com/1814/ +// some sort of parallax would be *phenomenal* +// maybe a multi-part post? +// ^ horrible for sharing +// shape moire is a thing +// moires are too headachey and cws would ruin the attention-grabbing aspect +// draggable window to reveal stuff? +// i've been reading a lot of homestuck lately so something related to that would be nice + +render_and_copy( + <> +
    +
    +
    +
    + +);