Time Schedule Input - Copy this React, Tailwind Component to your project
I have a component where users can input time schedules for employees. The component consists of two fields: one for weekdays (Monday to Friday) and another for Saturday. I would like a cleaner, modern, and user friendly design for the time input fields, including the following: A time picker for both start and end times for weekdays (Monday to Friday) and Saturday. Clear labels and placeholder text. A neat layout with better spacing and visual hierarchy. Visual focus effects on the time input fields (such as border or background change). A responsive design that works well on both desktop and mobile devices. Here is the current component: html Copiar código <div> <label for="start time" class="block mb 2 text sm font medium text gray 900 dark:text white">Start time:</label> <div class="relative"> <div class="absolute inset y 0 end 0 top 0 flex items center pe 3.5 pointer events none"> <svg class="w 4 h 4 text gray 500 dark:text gray 400" aria hidden="true" xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 24 24"> <path fill rule="evenodd" d="M2 12C2 6.477 6.477 2 12 2s10 4.477 10 10 4.477 10 10 10S2 17.523 2 12Zm11 4a1 1 0 1 0 2 0v4a1 1 0 0 0 .293.707l3 3a1 1 0 0 0 1.414 1.414L13 11.586V8Z" clip rule="evenodd"/> </svg> </div> <input type="time" id="start time" class="bg gray 50 border leading none border gray 300 text gray 900 text sm rounded lg focus:ring blue 500 focus:border blue 500 block w full p 2.5 dark:bg gray 700 dark:border gray 600 dark:placeholder gray 400 dark:text white dark:focus:ring blue 500 dark:focus:border blue 500" min="09:00" max="18:00" value="00:00" required /> </div> </div> <div> <label for="end time" class="block mb 2 text sm font medium text gray 900 dark:text white">End time:</label> <div class="relative"> <div class="absolute inset y 0 end 0 top 0 flex items center pe 3.5 pointer events none"> <svg class="w 4 h 4 text gray 500 dark:text gray 400" aria hidden="true" xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 24 24"> <path fill rule="evenodd" d="M2 12C2 6.477 6.477 2 12 2s10 4.477 10 10 4.477 10 10 10S2 17.523 2 12Zm11 4a1 1 0 1 0 2 0v4a1 1 0 0 0 .293.707l3 3a1 1 0 0 0 1.414 1.414L13 11.586V8Z" clip rule="evenodd"/> </svg> </div> <input type="time" id="end time" class="bg gray 50 border leading none border gray 300 text gray 900 text sm rounded lg focus:ring blue 500 focus:border blue 500 block w full p 2.5 dark:bg gray 700 dark:border gray 600 dark:placeholder gray 400 dark:text white dark:focus:ring blue 500 dark:focus:border blue 500" min="09:00" max="18:00" value="00:00" required /> </div> </div> Can you improve this design by providing a cleaner, more modern look and enhance the overall user experience?
