revamp the ux ui completely. call it eventpulse. let go of ant design. use css which replicates the ui ux of teamwork, asana, jira type tools as closely as possible. add logged in user identifier indicator on top of the screen clicking which opens menus with other features like logout etc. change color themes accordingly. make the sidebar a floating card type, expandible and collapsible, with a slight shadow under, with rounded corners, accordingly, adjust all colors for light and dark mode as well. output complete code block.
Assistant
Here's the complete code to revamp your application's UI/UX as per your requirements. This code includes a responsive layout with a top navigation bar featuring a user indicator with a dropdown menu, a collapsible sidebar with a floating card design, and support for light and dark modes. The styling mimics modern project management tools like Asana, Jira, and Teamwork.
Navigation Bar: A top navigation bar that includes the application name/logo on the left and a user menu on the right. The user menu displays the logged-in user's name and, when clicked, shows a dropdown with options like Profile, Settings, and Logout.
Sidebar: A collapsible sidebar with a floating card appearance. It has rounded corners, a slight shadow, and remains fixed on the side. A toggle button (☰) allows the user to expand or collapse the sidebar. The sidebar contains navigation links to different sections of the application.
Main Content Area: The main content adjusts its margin based on the sidebar's state (expanded or collapsed) to utilize the available space efficiently.
Light/Dark Mode: The application supports light and dark modes. A "Toggle Theme" button is added to switch between themes. The colors are adjusted using CSS custom properties (--primary-color, --background-color, etc.), which change based on the data-theme attribute on the body element.
Responsive Design: The layout adjusts for smaller screens. On mobile devices, the sidebar is hidden by default and can be swiped in.
Instructions to Use:
Integration: Replace your current HTML structure with the provided code. Ensure that you integrate any dynamic content or backend template rendering as per your application's requirements.
Styling: The CSS is included within the <style> tags for ease of demonstration. For a production environment, consider moving it to an external stylesheet.
Functionality: The JavaScript code handles the toggling of the sidebar, the user menu dropdown, and the theme switcher. Ensure that your application includes these scripts and adapt them if using a JavaScript framework or module bundler.
Logout Functionality: Replace the logout() function's alert with your actual logout logic, possibly involving a server request or redirecting to a logout URL.
Fonts and Icons: The code uses the "Inter" font from Google Fonts. You can replace it with your preferred font. For icons, UTF-8 characters are used for simplicity. For more advanced icons, consider using an icon library like Font Awesome.
Removing Ant Design: Since you're moving away from Ant Design, ensure that any Ant Design classes, components, or scripts are removed from your project to prevent conflicts.
Customization:
Adjust the color variables under the :root and [data-theme="dark"] selectors to match your branding.
Modify the sidebar links and content to reflect the actual navigation items in your application.
Enhance the user menu with additional options or integrate it with your user's profile data.
Feel free to ask if you need further assistance or additional features!