Skip to content
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted over 1 year ago

Rock Paper Scissors - Nuxt 3, Pinia, Tailwind

nuxt, pinia, tailwind-css
Arpad Gabor Bondor [Gabriel, Red]•265
@ArpadGBondor
A solution to the Rock, Paper, Scissors game challenge
View live sitePreview (opens in new tab)View codeCode (opens in new tab)

Solution retrospective


What are you most proud of, and what would you do differently next time?

I made the positioning of every game component easier, by wrapping them in divs that allowed me to set the position of the middle of the components compared to the middle of the play area.

It might looks a bit clumsy, but it made much easier to set calculate the positions, and keep everything centered.

What challenges did you encounter, and how did you overcome them?

I was aiming for creating a pure Tailwind design, but I encountered an error where Tailwind did not apply the shadows behind the disk components with the md: and the lg: modifiers added. I even safelisted the classes in tailwind, so it didn't scrap the dinamically generated classnames at build time. The classes themselves worked without the lg: modifiers, Tailwind just didn't apply them on wide screen..

What specific areas of your project would you like help with?

Any feedback is welcome

Code
Loading...

Please log in to post a comment

Log in with GitHub

Community feedback

No feedback yet. Be the first to give feedback on Arpad Gabor Bondor [Gabriel, Red]'s solution.

Join our Discord community

Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!

Join our Discord

Stay up to datewith new challenges, featured solutions, selected articles, and our latest news

Frontend Mentor

  • Unlock Pro
  • Contact us
  • FAQs
  • Become a partner
  • Use cases

Explore

  • Learning paths
  • Challenges
  • Solutions
  • Articles

Community

  • Discord
  • Guidelines

For companies

  • Hire developers
  • Train developers
© Frontend Mentor 2019 - 2025
  • Terms
  • Cookie Policy
  • Privacy Policy
  • License