fantasy-tools icon indicating copy to clipboard operation
fantasy-tools copied to clipboard

Export the Rankings

Open JakePartusch opened this issue 7 years ago • 2 comments

My guess is that a lot of users visit the page on Tuesdays, take a screenshot, and post it on their league board. Or league group chat/ slack/ snapchat, etc.

We should provide an easy way to export the results in a consistent format (Image?) that the users can use to share with their league.

JakePartusch avatar Oct 05 '18 02:10 JakePartusch

If I may ask, how is the app deployed? I'm thinking if its possible to make a worker script take a screenshot of the ReactJS page using PhantomJS. Something like this: https://github.com/svdgraaf/serverless-screenshot

Another alternative would be to generate an image through the serverless API. One way of me approaching this would be to export as an image through a HTML template all in the serverless API function.

phillytan avatar Oct 05 '18 03:10 phillytan

It is deployed with Netlify, so we would potentially be able to build a Netlify Function: https://www.netlify.com/docs/functions/

JakePartusch avatar Oct 05 '18 12:10 JakePartusch