feat: submit modal for user content
Hey yall, heard you mention on the latest show you could use some sort of submission "system" for syntax highlights, etc.
First I just wanted to add a second button, but it immediately got crowded in your header. So I decided to make a "User submitted content modal" out of it where you could potentially add other stuff easily in the future as well.
The modal also has click outside closing control, locks the body scroll, closes upon pressing 'ESC', everything you'd expect from a decent modal. I added a new dependency, react-use, I hope its okay here as it really is a great all-around set of react-hooks.
The 1. Potluck Questions anchor is the same as always, leads to your Google Doc. However, the second form for Highlight name / url currently doesn't lead anywhere. I left the "handleSubmit" function more or less empty so you can send the data from there to the Notion API, Google Sheets, whatever yall wanna do.
Hope this might be a nice start for you guys! Obviously feel free to change anything up. Keep up the awesome work!


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/wesbos/Syntax/AiBjCmJi5hppRnQ5qXct4gzMDivS
✅ Preview: https://syntax-git-fork-ndom91-ndom91-add-user-submit-modal-wesbos.vercel.app