downforacross / downforacross.com

Web frontend for downforacross.com -- continuation of stevenhao/crosswordsio
https://downforacrosscom.downforacross1.now.sh
MIT License
229 stars 90 forks source link

Added modals for uploading puzzles #171

Closed JohnHKoh closed 3 years ago

JohnHKoh commented 3 years ago

Uploading a puzzle should appropriately show the right modals on successful validation, where you can choose unlisted or public. Also refreshes the puzzles list upon confirming a public upload. Also some prettier CSS with the drag and drop.

After selecting a file to upload: image

After selecting the upload button: image

After choosing unlisted and selecting the upload button: image

By using the @sweetalert/with-react package, I was also able to remove some helper functions from the modals and allow for more extensibility and customization to the modals.

vercel[bot] commented 3 years ago

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/downforacross/downforacross.com/8qQxj3M5MyBCKk5uayoDm5eJPrP8
✅ Preview: https://downforacrossc-git-fork-johnhkoh-johnhkoh-upload-modal-d-224569.vercel.app