TIL GENERATOR
Pending tasks:
- Add a markdown editor in the app
✅ - Add button controls named "Push to Github"
✅ - Create services for Github API
✅ - Style the button component and position it in the UI
✅ - Once the response is successful
- Change the button label to successful
✅ - Clear the editor content
✅ - Disable the button for the day
✅ - Show a toast message - use a library for toast ✅
- Change the button label to successful
- If the response fails
- Don't clear the content
✅ - Show toast why it failed or error message ✅
- Don't clear the content
- Publish the website in netlify ✅
Nice to have
- For the same day, if you want to add more content create another service update - get the content, append the additional content and update the TIL file for that day, should be straightforward.
- Try to play around with confetti experiment once the TIL is pushed to github, throw some confetti