Open wisestmumbler opened 1 year ago
Feel free to take what I suggested and run with it / adapt it to something even better.
I decided to adapt what @wisestmumbler recommended to enhance the page and implement the Dad Joke search that the API offers to allow the user to request up to 4 dad jokes via a number input based on an optional search term in a form. The Dad Joke page would also let the user know if they requested more jokes about a search term than the DB has.
This works like a charm, nice work! I love a good dad joke.
Things I like: clean, simple, fast, self explanatory. I like the use of flex in css, the async js, and the alt text on the img tag in html.
Minor nitpicks: the fetch probably shouldn't be in a try/catch and the meme image could be scaled down to fit.
Enhancements:
I'd like you to add:
I think that form would occupy roughly the left 1/4 to 1/3 of the page (unless I shrink it down, then maybe it's just at the top?)
On the right side: