Responsive Tip Generator built with Vue, Pinia and TailwindCSS
Design comparison
Solution retrospective
This was my second time using vue for a challenge. It was hard getting some parts work as im kinda new to vue but everything worked out fine at the end. Next time I would better organize my components and make the code more readible. Also would try of a better way to work with the custom tip Percentage part.
What challenges did you encounter, and how did you overcome them?Had an issue with resetting the form for the reset button, I was using ref() as my state in my pinia store and just put the state back to its orginal value, in pinia and vue devtools the state was reset but not in the actual forms like bill, tipPercentage and persons. What I did was just change from ref to reactive.
What specific areas of your project would you like help with?Refactoring the code, making the tip percentages accessible and generally better components.
Community feedback
- @danielmrz-devPosted 4 months ago
Hey there! šš½āāļø
Congrats on completing the challenge! ā
Your project looks fantastic!
Here's a tip to make it even better:
Try this method to center an element vertically and horizontally:
š Apply this CSS to the body (skip position or margins to make it work correctly):
body { min-height: 100vh; display: flex; justify-content: center; align-items: center; }
Hope this helps!
Keep up the great work!
Marked as helpful0
Please log in to post a comment
Log in with GitHubJoin 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