working well

This commit is contained in:
Joshua Seigler 2025-04-25 14:29:43 -04:00
parent 9a4336dacd
commit 940b015a0e
5 changed files with 43 additions and 15 deletions

BIN
public/brush-stroke.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 58 KiB

Binary file not shown.

View file

@ -1,21 +1,45 @@
:root {
background: url(data:image/bmp;base64,Qk1aBAAAAAAAADYAAAAoAAAABAAAAAMAAAABABgAAAAAACQAAAATCwAAEwsAAAAAAAAAAAAAYoKGcJCTdI2QZHp3X3h/cYyNeYuOZXp5RmNkZnt3c3p2U2xo);
background-size: cover;
}
@font-face {
font-family: 'helsinkiregular';
src: url('helsinki-webfont.woff') format('woff');
font-weight: normal;
font-style: normal;
}
#root { #root {
max-width: 1280px; position: relative;
margin: 0 auto; margin: 0 auto;
padding: 2rem;
text-align: center; text-align: center;
font-family: 'helsinkiregular', sans-serif;
} }
#root::before { #root::before {
z-index: -1; z-index: -1;
content: ''; content: '';
position: absolute; position: fixed;
inset: 0; inset: 0;
background: gray; margin: auto;
mask-image: url('brush-stroke.jpg'); height: min(100vh, 50rem);
background-color: #FFF;
mask-image: url('brush-stroke.png');
mask-size: cover; mask-size: cover;
mask-repeat: no-repeat; mask-repeat: no-repeat;
mask-position: center;
} }
.prompt { .prompt {
font-size: min(3rem, 10vmin); font-size: min(3rem, 10vmin);
text-shadow: 0 0 0.1em white, 0 0 0.25em white, 0 0 0.5em white, 0 0 1em white;
width: min(80vmax, calc(100vw - 2rem));
margin: 0 auto;
}
#regenerate {
position: fixed;
bottom: 1rem;
left: 1rem;
} }

View file

@ -31,9 +31,9 @@ function App() {
return ( return (
<> <>
<h1>Your Prompt:</h1> <div>You should draw {['a','e','i','o','u'].includes(suggestion().charAt(0)) ? 'an' : 'a'}</div>
<div class="prompt">{suggestion()}</div> <div class="prompt">{suggestion()}</div>
<button on:click={() => { <button id="regenerate" on:click={() => {
setSuggestion(getPrompt()) setSuggestion(getPrompt())
}}> }}>

View file

@ -92,19 +92,21 @@
"aquatic", "aquatic",
"ancient", "ancient",
"future", "future",
"super" "superpowered"
], ],
"animal": [ "animal": [
"albatross", "albatross",
"alligator", "alligator",
"antelope", "antelope",
"arctic", "arctic fox",
"armadillo", "armadillo",
"baboon", "baboon",
"badger", "badger",
"bat", "bat",
"beagle", "beagle",
"bear", "brown bear",
"black bear",
"polar bear",
"beaver", "beaver",
"bison", "bison",
"blue whale", "blue whale",
@ -120,7 +122,7 @@
"cheetah", "cheetah",
"chihuahua", "chihuahua",
"chimpanzee", "chimpanzee",
"chinchillas", "chinchilla",
"cobra", "cobra",
"cow", "cow",
"crab", "crab",
@ -196,7 +198,7 @@
"rhinoceros", "rhinoceros",
"salamander", "salamander",
"salmon", "salmon",
"sardines", "sardine",
"shark", "shark",
"sheep", "sheep",
"sloth", "sloth",
@ -269,7 +271,7 @@
"craftsperson", "craftsperson",
"curator", "curator",
"customer experience designer", "customer experience designer",
"customer service", "customer service representative",
"data analyst", "data analyst",
"data architect", "data architect",
"data scientist", "data scientist",
@ -287,7 +289,7 @@
"engineer", "engineer",
"entrepreneur", "entrepreneur",
"environmental engineer", "environmental engineer",
"environmental science", "environmental scientist",
"epidemiologist", "epidemiologist",
"equipment operator", "equipment operator",
"event planner", "event planner",
@ -346,9 +348,11 @@
"mental health counselor", "mental health counselor",
"midwife", "midwife",
"miner", "miner",
"monk",
"musician", "musician",
"nanny", "nanny",
"network administrator", "network administrator",
"nun",
"nurse", "nurse",
"occupational health & safety specialist", "occupational health & safety specialist",
"occupational therapist", "occupational therapist",
@ -408,7 +412,7 @@
"systems analyst", "systems analyst",
"tailor", "tailor",
"teacher", "teacher",
"technical support", "technical support representative",
"technical writer", "technical writer",
"technician", "technician",
"technology architect", "technology architect",