Skip to content
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted 7 months ago

Product list with cart - Vue 3 Composition API & TypeScript

pinia, typescript, vue, tailwind-css
P
Florian Stăncioiu•770
@florianstancioiu
A solution to the Product list with cart 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'm happy I learned about Vue 3 Composition API (better later than never).

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

I had a bit of trouble with the modal, it had an edge case where if you added all the products into the modal cart, the modal content would be bigger than the modal overlay. I managed to solve it using position fixed on the overlay instead of absolute. I don't know how or why it worked but it seemed to do the job.

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

My product images are not the right size, I set them using the <picture> tag not with <img> directly.

I found a stackoverflow answer (here's the link) that might help me but I don't fully understand it. If there's someone more knowledgeable than me on this topic, feel free to leave a comment here, I could use some advice.

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 Florian Stăncioiu'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