Latest solutions
responsive with next.js tailwind css and zustand
#next#react#tailwind-css#zustandSubmitted over 1 year ago
Latest comments
- @lillianedwards@thales91
Hello, another way to add the horizontal line and place a border-bottom of the color you need, then on the button you can place it with position relative and calibrate the top: -10px for example the element will go on top of the line covering the line hope I helped
ref https://developer.mozilla.org/en-US/docs/Web/CSS/position
- @omar-ashraf2@thales91
Hello, the solution was very good, the only thing I saw that you can improve is to test the last day of the month if it is valid using the date-fns lib to ensure that the user will not enter February 31st, for example, follow the code I I did it on mine
const lastDayMonth = lastDayOfMonth(new Date(year, month - 1, 1)); if (day > lastDayMonth.getDate()) { setError("day", { message: "Invalid day" }); return; }
- @hulaun@thales91
nice mobile you can customize your css to look good on the desktop, I also suggest you use css media query
- @stanko-tomic@thales91
very good work, I really liked this solution it is very similar
The code is good, and I separated the steps into components, but I really liked your solution, it was easy to understand