From c31bfd20c5dd7c68de037eb93493d87bcd383bee Mon Sep 17 00:00:00 2001 From: Flatlogic Bot Date: Thu, 8 Jan 2026 17:03:11 +0000 Subject: [PATCH] 1.01 --- .htaccess | 23 ++---- admin/index.php | 62 +++++++++++++++ index.php | 150 +---------------------------------- public/assets/css/custom.css | 58 ++++++++++++++ public/assets/js/main.js | 12 +++ 5 files changed, 139 insertions(+), 166 deletions(-) create mode 100644 admin/index.php create mode 100644 public/assets/css/custom.css create mode 100644 public/assets/js/main.js diff --git a/.htaccess b/.htaccess index e2bbc23..0871ce0 100644 --- a/.htaccess +++ b/.htaccess @@ -1,18 +1,5 @@ -DirectoryIndex index.php index.html -Options -Indexes -Options -MultiViews - -RewriteEngine On - -# 0) Serve existing files/directories as-is -RewriteCond %{REQUEST_FILENAME} -f [OR] -RewriteCond %{REQUEST_FILENAME} -d -RewriteRule ^ - [L] - -# 1) Internal map: /page or /page/ -> /page.php (if such PHP file exists) -RewriteCond %{REQUEST_FILENAME}.php -f -RewriteRule ^(.+?)/?$ $1.php [L] - -# 2) Optional: strip trailing slash for non-directories (keeps .php links working) -RewriteCond %{REQUEST_FILENAME} !-d -RewriteRule ^(.+)/$ $1 [R=301,L] + + RewriteEngine on + RewriteRule ^$ public/ [L] + RewriteRule (.*) public/$1 [L] + \ No newline at end of file diff --git a/admin/index.php b/admin/index.php new file mode 100644 index 0000000..999f162 --- /dev/null +++ b/admin/index.php @@ -0,0 +1,62 @@ + + + + + + Admin Dashboard + + + + + + +
+ + + +
+ + + +
+

Dashboard

+

Welcome to your admin dashboard.

+
+
+
+ + + + + + diff --git a/index.php b/index.php index 7205f3d..d86426b 100644 --- a/index.php +++ b/index.php @@ -1,150 +1,4 @@ - - - - - - New Style - - - - - - - - - - - - - - - - - - - - - -
-
-

Analyzing your requirements and generating your website…

-
- Loading… -
-

AI is collecting your requirements and applying the first changes.

-

This page will update automatically as the plan is implemented.

-

Runtime: PHP — UTC

-
-
- - - diff --git a/public/assets/css/custom.css b/public/assets/css/custom.css new file mode 100644 index 0000000..b16c80f --- /dev/null +++ b/public/assets/css/custom.css @@ -0,0 +1,58 @@ +body { + overflow-x: hidden; +} + +#sidebar-wrapper { + min-height: 100vh; + margin-left: -15rem; + -webkit-transition: margin .25s ease-out; + -moz-transition: margin .25s ease-out; + -o-transition: margin .25s ease-out; + transition: margin .25s ease-out; +} + +#sidebar-wrapper .sidebar-heading { + padding: 0.875rem 1.25rem; + font-size: 1.2rem; +} + +#sidebar-wrapper .list-group { + width: 15rem; +} + +#page-content-wrapper { + min-width: 100vw; +} + +body.sb-sidenav-toggled #wrapper #sidebar-wrapper { + margin-left: 0; +} + +@media (min-width: 768px) { + #sidebar-wrapper { + margin-left: 0; + } + + #page-content-wrapper { + min-width: 0; + width: 100%; + } + + body.sb-sidenav-toggled #wrapper #sidebar-wrapper { + margin-left: -15rem; + } +} + +:root { + --bs-primary: #4F46E5; + --bs-secondary: #10B981; +} + +.btn-primary { + background-color: var(--bs-primary); + border-color: var(--bs-primary); +} + +.list-group-item-action:focus, .list-group-item-action:hover { + background-color: #f8f9fa; +} diff --git a/public/assets/js/main.js b/public/assets/js/main.js new file mode 100644 index 0000000..558a99a --- /dev/null +++ b/public/assets/js/main.js @@ -0,0 +1,12 @@ +window.addEventListener('DOMContentLoaded', event => { + + // Toggle the side navigation + const sidebarToggle = document.body.querySelector('#sidebarToggle'); + if (sidebarToggle) { + sidebarToggle.addEventListener('click', event => { + event.preventDefault(); + document.body.classList.toggle('sb-sidenav-toggled'); + }); + } + +});