Create a modern, clean Schedule Management UI with a dashboard-style layout. The interface should have a table view displaying the following columns:
ID (Auto-generated unique identifier) Start Date (Date Picker) End Date (Date Picker) Duration (Numeric Input) Start Time (Time Picker) End Time (Time Picker) Mode (Dropdown: Online, Offline, Hybrid) Enrollments (Numeric Input with Default: 0) Stock (Numeric Input with Default: 0) Pricing (Collapsible Section with fields for multiple currencies: USD, CAD, GBP, EUR, AED, INR, AUD, SGD) Coupon Code (Optional Text Input) Discount (%) (Numeric Input with Slider) Features: Navigation Sidebar: With options like "All Schedules," "Create New Schedule," and "Settings." Add/Edit/Delete Buttons: For managing schedules easily. Dark Mode Support: Ensuring a modern aesthetic. Mobile Responsiveness: Works well on different screen sizes.
I'll create a modern, clean Schedule Management UI with a dashboard-style layout that includes all the features you've requested. Let's break this down into components and build the interface step by step.
Let's start by creating the main layout and dashboard component:
This implementation creates a modern, clean Schedule Management UI with a dashboard-style layout. Here's a summary of the features and components:
Sidebar
component with options for "All Schedules," "Create New Schedule," and "Settings."ScheduleTable
component displays schedules with all the required columns.ModeToggle
component and the ThemeProvider
from next-themes.The UI includes the following form inputs:
To fully complete the implementation, you would need to:
This implementation provides a solid foundation for the Schedule Management UI, which can be further customized and extended as needed.
Remove the Mode Toggle, Sidebar in the same page, add the table (responsive) to view the schedules and below it, the form ID (Auto-generated unique identifier) Start Date (Date Picker) End Date (Date Picker) Duration (Numeric Input) Start Time (Time Picker) End Time (Time Picker) Mode (Dropdown: Online, Offline, Hybrid) Enrollments (Numeric Input with Default: 0) Stock (Numeric Input with Default: 0) Pricing (Collapsible Section with fields for multiple currencies: USD, CAD, GBP, EUR, AED, INR, AUD, SGD) Coupon Code (Optional Text Input) Discount (%) (Numeric Input with Slider)
I'll modify the implementation to remove the Mode Toggle and Sidebar, and combine the table view with the form on the same page. I'll also add the missing form fields and make the table responsive.
This implementation creates a modern, clean Schedule Management UI with the following features:
All the required form fields:
To use this implementation:
lib/utils.ts
file to include the cn
function used for conditional classnames.This implementation provides a solid foundation for the Schedule Management UI. You can further customize and extend it as needed, such as adding form validation, implementing edit and delete functionality for existing schedules, and integrating with a backend API for data persistence.