Closed michaelrambeau closed 2 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/bestofjs/javascript-risingstars/tVYuXrC8ouamxFjqRasTMNePdmnG
✅ Preview: https://javascript-risingstars-git-fix-banner-by-year-bestofjs.vercel.app
The background image displayed behind the site title should be different for every year, because it's made of the icons of the leading projects.
Now the
2020
banner is applied to all years.It seems that using
_app.tsx
to apply dynamic class to the page<body>
does not work: the class name does not change when navigating between years.I use dynamic solution to change the background image depending on the
year
provided by the routerquery
object.