Dashboard
+Bem-vindo ao seu CRM!
+Este é o painel principal. As funcionalidades serão adicionadas aqui.
+diff --git a/assets/css/custom.css b/assets/css/custom.css new file mode 100644 index 0000000..9fcb354 --- /dev/null +++ b/assets/css/custom.css @@ -0,0 +1,128 @@ + +:root { + --primary-color: #4F46E5; + --secondary-color: #10B981; + --background-color: #F3F4F6; + --surface-color: #FFFFFF; + --text-color: #111827; +} + +body { + font-family: 'Inter', sans-serif; + background-color: var(--background-color); + color: var(--text-color); +} + +.sidebar { + position: fixed; + top: 0; + left: 0; + height: 100vh; + width: 80px; + background-color: var(--surface-color); + padding: 1rem 0; + transition: width 0.3s ease; + z-index: 1000; + overflow-x: hidden; + display: flex; + flex-direction: column; + border-right: 1px solid #e5e7eb; +} + +.sidebar.expanded { + width: 250px; +} + +.sidebar .nav-link { + display: flex; + align-items: center; + padding: 0.75rem 1.5rem; + color: #6b7280; + text-decoration: none; + white-space: nowrap; +} + +.sidebar .nav-link .icon { + width: 1.5rem; + height: 1.5rem; + margin-right: 1rem; + flex-shrink: 0; +} + +.sidebar .nav-link .link-text { + opacity: 0; + transition: opacity 0.2s ease-in-out; +} + +.sidebar.expanded .nav-link .link-text { + opacity: 1; +} + +.sidebar .nav-link:hover { + color: var(--primary-color); + background-color: #f9fafb; +} + +.sidebar .logo-container { + display: flex; + align-items: center; + justify-content: center; + padding: 1rem; + margin-bottom: 1rem; +} + +.sidebar .logo { + width: 40px; + height: 40px; + background-color: var(--primary-color); + border-radius: 50%; + color: white; + display: flex; + align-items: center; + justify-content: center; + font-weight: bold; + font-size: 1.5rem; + flex-shrink: 0; +} + + +.sidebar-toggle { + position: absolute; + bottom: 1rem; + left: 1.5rem; + background: none; + border: none; + color: #6b7280; + padding: 0.5rem; +} + +.sidebar.expanded .sidebar-toggle { + left: auto; + right: 1rem; +} + +.main-content { + margin-left: 80px; + padding: 2rem; + transition: margin-left 0.3s ease; +} + +.main-content.expanded { + margin-left: 250px; +} + +@media (max-width: 768px) { + .sidebar { + width: 0; + padding: 0; + } + .sidebar.expanded { + width: 250px; + } + .main-content { + margin-left: 0; + } + .main-content.expanded { + margin-left: 0; /* Or a semi-transparent overlay */ + } +} diff --git a/assets/js/main.js b/assets/js/main.js new file mode 100644 index 0000000..7595b8c --- /dev/null +++ b/assets/js/main.js @@ -0,0 +1,20 @@ +document.addEventListener('DOMContentLoaded', function () { + const sidebar = document.querySelector('.sidebar'); + const mainContent = document.querySelector('.main-content'); + const sidebarToggle = document.querySelector('.sidebar-toggle'); + + if (sidebarToggle) { + sidebarToggle.addEventListener('click', () => { + sidebar.classList.toggle('expanded'); + mainContent.classList.toggle('expanded'); + }); + } + + // Mobile toggle for off-canvas menu + const mobileMenuButton = document.querySelector('.mobile-menu-button'); + if(mobileMenuButton) { + mobileMenuButton.addEventListener('click', () => { + sidebar.classList.toggle('expanded'); + }); + } +}); diff --git a/index.php b/index.php index 6f7ffab..e2f9f44 100644 --- a/index.php +++ b/index.php @@ -1,131 +1,76 @@ - - +
- - -= ($_SERVER['HTTP_HOST'] ?? '') === 'appwizzy.com' ? 'AppWiZZy' : 'Flatlogic' ?> AI is collecting your requirements and applying the first changes.
-This page will update automatically as the plan is implemented.
-Runtime: PHP = htmlspecialchars($phpVersion) ?> — UTC = htmlspecialchars($now) ?>
Este é o painel principal. As funcionalidades serão adicionadas aqui.
+