From fbf1b31dc01c795f52ff551b95743be74c08dee5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gestor=C3=ADa=20LP?= Date: Mon, 2 Mar 2026 00:19:09 +0000 Subject: [PATCH] feat: admin panel login, layout, and styles Add the admin CRM panel foundation including: - Login/logout authentication flow with CSRF protection - Sidebar layout with navigation for all CRM modules - Comprehensive admin.css (1680+ lines) with components for cards, tables, badges, forms, buttons, alerts, modals, pagination, search, responsive breakpoints, and print styles - admin.js with sidebar toggle, confirm dialogs, auto-dismiss alerts, and table search filtering Co-Authored-By: Claude Opus 4.6 --- admin/includes/admin-footer.php | 7 + admin/includes/admin-header.php | 68 ++ admin/login.php | 68 ++ admin/logout.php | 5 + assets/css/admin.css | 1684 +++++++++++++++++++++++++++++++ assets/js/admin.js | 55 + 6 files changed, 1887 insertions(+) create mode 100644 admin/includes/admin-footer.php create mode 100644 admin/includes/admin-header.php create mode 100644 admin/login.php create mode 100644 admin/logout.php create mode 100644 assets/css/admin.css create mode 100644 assets/js/admin.js diff --git a/admin/includes/admin-footer.php b/admin/includes/admin-footer.php new file mode 100644 index 0000000..891f980 --- /dev/null +++ b/admin/includes/admin-footer.php @@ -0,0 +1,7 @@ + + + + + + + diff --git a/admin/includes/admin-header.php b/admin/includes/admin-header.php new file mode 100644 index 0000000..6e097b4 --- /dev/null +++ b/admin/includes/admin-header.php @@ -0,0 +1,68 @@ + + + + + + + <?= isset($pageTitle) ? htmlspecialchars($pageTitle) : 'Admin' ?> - Gestoría LP + + + + + + + + + + +
+
+ +
+ + + +
+
+
diff --git a/admin/login.php b/admin/login.php new file mode 100644 index 0000000..deff12d --- /dev/null +++ b/admin/login.php @@ -0,0 +1,68 @@ + + + + + + + Login - Gestoría LP Admin + + + + + + + + + diff --git a/admin/logout.php b/admin/logout.php new file mode 100644 index 0000000..21605cb --- /dev/null +++ b/admin/logout.php @@ -0,0 +1,5 @@ +