In the portfolio, I have a unique requirement where every odd entry should be reversed. These projects are generated dynamically from an array and passed into the component through props.
To style it, I'm utilizing styled-components.
However, I'm encountering an issue with nth-child where setting it to odd or even affects all of the projects. When set to odd, none of them are reversed, but when set to even, all of them are. What am I overlooking here?