diff --git a/assets/css/custom.css b/assets/css/custom.css index 4ffac01..0d42a8a 100644 --- a/assets/css/custom.css +++ b/assets/css/custom.css @@ -21,8 +21,9 @@ body { background: #4C5958; color: #fff; transition: all 0.3s; - overflow-y: auto; - padding-bottom: 20px; + padding-bottom: 0; /* Allow profile to stick to bottom */ + display: flex; + flex-direction: column; } #sidebar.mini { @@ -50,6 +51,7 @@ body { background: #4C5958; text-align: center; border-bottom: 1px solid #5a6867; + flex-shrink: 0; /* Prevent header from shrinking */ } .sidebar-header h3 { @@ -63,8 +65,9 @@ body { /* Profile Section */ .profile-section { padding: 15px 20px; - border-bottom: 1px solid #5a6867; + border-top: 1px solid #5a6867; /* Moved from bottom */ color: white; + flex-shrink: 0; /* Prevent profile from shrinking */ } .profile-section .dropdown-toggle { color: white; @@ -103,6 +106,8 @@ body { list-style: none; padding: 10px 0; margin: 0; + flex-grow: 1; /* Allow menu to fill space */ + overflow-y: auto; /* Add scroll if needed */ } .menu-list a { @@ -263,4 +268,33 @@ body { body.sidebar-open { overflow: hidden; } -} \ No newline at end of file +} + +/* Sidebar Logo */ +.sidebar-logo { + max-width: 80%; + height: auto; + display: block; + margin: 0 auto 1rem; +} + +#sidebar.mini .sidebar-logo { + display: none; /* Oculta o logo quando o menu está minimizado */ +} + +#sidebar.mini .sidebar-header { + padding: 10px 0; +} + +/* Adiciona um ícone para substituir o logo quando minimizado */ +#sidebar.mini .sidebar-header::before { + content: ''; + display: block; + width: 32px; + height: 32px; + margin: 0 auto; + background-image: url('../pasted-20251029-150345-2b427067.png'); + background-size: contain; + background-repeat: no-repeat; + background-position: center; +} diff --git a/assets/pasted-20251029-150345-2b427067.png b/assets/pasted-20251029-150345-2b427067.png new file mode 100644 index 0000000..b239b14 Binary files /dev/null and b/assets/pasted-20251029-150345-2b427067.png differ diff --git a/db/migrations/004_create_macro_areas_table.sql b/db/migrations/004_create_macro_areas_table.sql new file mode 100644 index 0000000..a159c7f --- /dev/null +++ b/db/migrations/004_create_macro_areas_table.sql @@ -0,0 +1,11 @@ +CREATE TABLE IF NOT EXISTS `macro_areas` ( + `id` INT AUTO_INCREMENT PRIMARY KEY, + `nome` VARCHAR(255) NOT NULL, + `slug` VARCHAR(255) NOT NULL UNIQUE, + `descricao` TEXT, + `ativo` BOOLEAN NOT NULL DEFAULT TRUE, + `user_id` INT, + `created_at` TIMESTAMP DEFAULT CURRENT_TIMESTAMP, + `updated_at` TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, + FOREIGN KEY (`user_id`) REFERENCES `users`(`id`) ON DELETE SET NULL +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; diff --git a/includes/header.php b/includes/header.php index 0da3d7d..7f1913b 100644 --- a/includes/header.php +++ b/includes/header.php @@ -52,40 +52,25 @@ $unclassifiedCount = 5; // Example value diff --git a/macro_areas.php b/macro_areas.php new file mode 100644 index 0000000..00b0f97 --- /dev/null +++ b/macro_areas.php @@ -0,0 +1,78 @@ +query('SELECT * FROM macro_areas ORDER BY nome ASC'); +$macro_areas = $stmt->fetchAll(PDO::FETCH_ASSOC); + +?> + +
+ +
+

Macro Áreas

+ + + + + Nova Macro Área + +
+ +
+
+
Registros
+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
NomeDescriçãoStatusAções
+ + Ativo + + Arquivado + + + + + + + + +
Nenhuma macro área encontrada.
+
+
+
+ +
+ + +