static background testing the waters
This commit is contained in:
parent
24c358f8f7
commit
84a5fb4a21
2 changed files with 45 additions and 21 deletions
|
@ -5,24 +5,27 @@ const Tag = ({ tag }: { tag: string }) => (
|
||||||
<a href={`https://cohost.org/rc/tagged/${tag}`}>{`#${tag}`}</a>
|
<a href={`https://cohost.org/rc/tagged/${tag}`}>{`#${tag}`}</a>
|
||||||
);
|
);
|
||||||
|
|
||||||
const tags = `\
|
const tags = [
|
||||||
CSS Crimes
|
"CSS Crimes",
|
||||||
borgesposting
|
"borgesposting",
|
||||||
NEISVoid
|
"NEISVoid",
|
||||||
circling the square
|
"circling the square",
|
||||||
retrocomputing
|
"retrocomputing",
|
||||||
cats of cohost
|
"cats of cohost",
|
||||||
coho film club
|
"coho film club",
|
||||||
cohost crafts
|
"cohost crafts",
|
||||||
the cohost plural feed
|
"the cohost plural feed",
|
||||||
cohost summer mixtape
|
"cohost summer mixtape",
|
||||||
trans trucks
|
"trans trucks",
|
||||||
The Cohost Local Feed (Minnesota)
|
"The Cohost Local Feed (Minnesota)",
|
||||||
cohost draws
|
"cohost draws",
|
||||||
tv head
|
"tv head",
|
||||||
make up a mech pilot
|
"make up a mech pilot",
|
||||||
frasierposting
|
"frasierposting",
|
||||||
cohost utilities`.split("\n");
|
"cohost utilities",
|
||||||
|
"alt text request",
|
||||||
|
"meepismonday",
|
||||||
|
];
|
||||||
|
|
||||||
// repeating makes it seem more random
|
// repeating makes it seem more random
|
||||||
export const PseudoRandom = ({
|
export const PseudoRandom = ({
|
||||||
|
@ -53,7 +56,6 @@ export const Choice = ({ children }: { children: ComponentChildren }) => (
|
||||||
<details
|
<details
|
||||||
style={{
|
style={{
|
||||||
width: "100%",
|
width: "100%",
|
||||||
height: "100%",
|
|
||||||
display: "flex",
|
display: "flex",
|
||||||
flex: 1,
|
flex: 1,
|
||||||
cursor: "pointer",
|
cursor: "pointer",
|
||||||
|
@ -68,11 +70,10 @@ export const Choice = ({ children }: { children: ComponentChildren }) => (
|
||||||
style={{
|
style={{
|
||||||
position: "absolute",
|
position: "absolute",
|
||||||
top: "1.5rem",
|
top: "1.5rem",
|
||||||
bottom: 0,
|
|
||||||
left: 0,
|
left: 0,
|
||||||
right: 0,
|
right: 0,
|
||||||
width: "100%",
|
width: "100%",
|
||||||
height: "100%",
|
height: "fit-content",
|
||||||
display: "flex",
|
display: "flex",
|
||||||
alignContent: "center",
|
alignContent: "center",
|
||||||
justifyContent: "center",
|
justifyContent: "center",
|
||||||
|
@ -111,6 +112,10 @@ render_and_copy(
|
||||||
generator for these (it would be easy to make one for tags, but
|
generator for these (it would be easy to make one for tags, but
|
||||||
one for other stuff would require a bit more work)
|
one for other stuff would require a bit more work)
|
||||||
</li>
|
</li>
|
||||||
|
<li>
|
||||||
|
this was generated on {new Date().toDateString()} at{" "}
|
||||||
|
{new Date().toTimeString()}
|
||||||
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</Main>
|
</Main>
|
||||||
);
|
);
|
||||||
|
|
19
html/static-background.tsx
Normal file
19
html/static-background.tsx
Normal file
|
@ -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(
|
||||||
|
<>
|
||||||
|
<Main>
|
||||||
|
<div class="moire"></div>
|
||||||
|
</Main>
|
||||||
|
<div id="fake-main"></div>
|
||||||
|
</>
|
||||||
|
);
|
Loading…
Reference in a new issue