Design comparison
SolutionDesign
Community feedback
- @edu290386Posted over 1 year ago
You can check my project, for error message you must do something like this in your classname with an ternary operator : className={(values.people == 0) ? "w-full py-2 text-2xl text-right font-bold rounded-lg bg-[#f3f8fb] pr-4 focus:outline-red-500 border border-red-500 " : "w-full py-2 text-2xl text-right font-bold rounded-lg text-[#0c494c] bg-[#f3f8fb] pr-4 focus:outline-[#30c1ad] hover:cursor-pointer"} placeholder="0"
Check my project: https://github.com/edu290386/Frontmentor-TipCalulatorApp.git
0
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