-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: restructure HomePage layout and update FormBuilder styles f…
…or dark mode This commit introduces significant restructuring of the `HomePage` layout and updates the styling of the `FormBuilder` component to better accommodate dark mode. These changes aim to enhance usability and visual consistency across different themes. **HomePage Changes:** - Modularized the homepage content by introducing new functional components: `HeaderSection` and `MainContent`, improving code readability and maintainability. - Adjusted the layout to use functional components for displaying the header section and main content, promoting reusability and cleaner code structure. - Refined text alignment and structure within the homepage for a more cohesive user experience. **FormBuilder Changes:** - Updated button and border styles to dynamically adjust to dark mode, ensuring visual compatibility across both light and dark themes. - Simplified the `AddNewButton` component by replacing the manual button implementation with the existing `Button` component, reducing code redundancy. - Adjusted CSS classes throughout the `FormBuilder` component, prefixing border color classes with `dark:` to ensure proper appearance in dark mode. **New Components Added:** - `HeaderSection`: Renders the introductory section of the homepage, encapsulating the title, subtitle, and a brief description of the application. - `MainContent`: Centrally manages the layout for the main content area on the homepage, including the image display, navigation button to the WebUI, and resources links. - `SectionTitle`: A utility component for rendering section titles within the `MainContent`, enhancing the visual hierarchy. - `ResourceLinks`: Facilitates the display of resource links, making the code more organized and modular. These improvements not only refine the user interface but also embrace best practices for maintaining a scalable and easily navigable codebase.
- Loading branch information
1 parent
8a76782
commit 82b4f7c
Showing
2 changed files
with
54 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters