gordwame
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
Viewing readonly version of townie-share-links branch: v11View latest version
create social media share cards for links
When I share a link to the game on social media platforms, I want a share card that displays the image of the board:
- The image of the board is the output of the SVGComponent
- if the link is for the "/play/:boardstring" route with a valid route, use the boardstring
- If link is for the default default endpoint "/" use "DEGWOARM" as the board string for the image (this can be saved once and reused).
- if the link is for the "/play/:boardstring" route with an invalid route, also use "DEGWOARM"
- for the text elements of the share link, make sure they are in an isolated file so that people can edit the language easily.
- the links should work everywhere possible, but in particular on bluesky and discord