Closed d4rkener closed 3 years ago
Hello, Rahul - thank you for the PR!
The update looks good, but there are a few things I'd like to see before merging it.
document.createElement
should be used to create the image tag separately, instead of defining it in the innerHTML
.
As stated in #33, I'd like it to include a srcset of various sizes so that the image quality is optimized for each device. Instead of pixel density, it should employ width descriptors. Please see the issue description for a link to the API results which show available poster image widths.
This will likely involve some changes to the CSS so it conforms to the correct image width.
If you have any other questions, let me know.
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/macjabeth/showbunny/AZcDz9HpcytYefLzZbi6YYtU7dQp
✅ Preview: https://showbunny-git-fork-rahulshawdev-rahulshawdev-s-f57385-macjabeth.vercel.app