Latest solutions
Interactive card details form solution - React/Babel - SASS
#react#sass/scssSubmitted about 2 years ago
Latest comments
- @Leskim@Leandr0SmS
Hey,
Nice work with this challenge. There is some issue with the logic, I tried my birthday and the numbers start to change without stop.
About you question, I used in my solution the "on change" event at input to remove the error message. https://www.w3schools.com/jsref/event_onchange.asp
Hope it helps!
Marked as helpful - @walkerlyna@Leandr0SmS
Hey Luis,
I forked your repo to test locally and made a pull request with the changes.
My suggestion would be to change the height of the .images div to the same as the .nft image (26rem) and adjust the height of the .capa to 100%.
Hope it´s help you!
Marked as helpful - @Vidottizzz@Leandr0SmS
Hey Guilherme,
I liked your solution of putting two calculation possibilities.
I find some sources talk about this calculation, here is one : https://www.tutsmake.com/javascript-difference-between-two-dates-in-years-months-days/
I tried to account for the difference in days in months and leap years. I arrived at this solution: https://github.com/Leandr0SmS/Frontend-Mentor-Projects/tree/main/age-calculator-app
Hope it help you to find your best solution!
👍
Marked as helpful - @Leandr0SmS@Leandr0SmS
Thanks,
I update the code, but it keeps rendering twice... I realized that the app renders while the fetch() promise is pending, after getting data from the API it renders again with the new data state. I don't know how to avoid the component to renders twice, maybe creating a promise that waits for the API to send the data. 👋
- @bagelsbagel@Leandr0SmS
Hey,
For me it's a great work with HTML and CSS! Hover effects are working fine. About responsive design checkout this article:
https://www.freecodecamp.org/news/responsive-web-design-modern-website-code-for-beginners/