Closed deanputney closed 4 years ago
I don't particularly want to deal with loading all the images into React at the moment to actually put them in the share URL. @kofron if you're up for it in the morning, go nuts. Once that's done this closes the share metadata issue #21.
I'll take care of the images right now
I have performed the following dark magic:
ls src/images/state-shares/* | sed -e 's/\// /g' -e 's/\./ /g' -e 's/-//g' | awk '{print "import " $(NF-1)"ShareImage from '\''../images/site-shares/" $(NF-1)".png'\'';" }'
Except that won't work. Not entirely sure how to do this actually, we should talk about it
Looks like we're in good shape now. The images appear to be writing properly to the HTML.
Here is how to make the share images for each state:
.hero
element to haveheight: 100vh;
. This fills the viewport.