kick some bugs

This commit is contained in:
Aleksandr Shelkovin 2025-01-21 19:23:16 +03:00
parent 833a47ae43
commit 425591aba7
4 changed files with 34 additions and 38 deletions

View File

@ -603,6 +603,10 @@ video {
margin-bottom: 1rem; margin-bottom: 1rem;
} }
.me-2\.5 {
margin-inline-end: 0.625rem;
}
.ms-3 { .ms-3 {
margin-inline-start: 0.75rem; margin-inline-start: 0.75rem;
} }
@ -788,6 +792,12 @@ video {
gap: 1rem; gap: 1rem;
} }
.space-x-1 > :not([hidden]) ~ :not([hidden]) {
--tw-space-x-reverse: 0;
margin-right: calc(0.25rem * var(--tw-space-x-reverse));
margin-left: calc(0.25rem * calc(1 - var(--tw-space-x-reverse)));
}
.space-x-3 > :not([hidden]) ~ :not([hidden]) { .space-x-3 > :not([hidden]) ~ :not([hidden]) {
--tw-space-x-reverse: 0; --tw-space-x-reverse: 0;
margin-right: calc(0.75rem * var(--tw-space-x-reverse)); margin-right: calc(0.75rem * var(--tw-space-x-reverse));
@ -1117,6 +1127,11 @@ video {
background-color: rgb(185 28 28 / var(--tw-bg-opacity, 1)); background-color: rgb(185 28 28 / var(--tw-bg-opacity, 1));
} }
.hover\:text-blue-600:hover {
--tw-text-opacity: 1;
color: rgb(37 99 235 / var(--tw-text-opacity, 1));
}
.hover\:underline:hover { .hover\:underline:hover {
text-decoration-line: underline; text-decoration-line: underline;
} }
@ -1203,6 +1218,12 @@ video {
flex-direction: row; flex-direction: row;
} }
.md\:space-x-2 > :not([hidden]) ~ :not([hidden]) {
--tw-space-x-reverse: 0;
margin-right: calc(0.5rem * var(--tw-space-x-reverse));
margin-left: calc(0.5rem * calc(1 - var(--tw-space-x-reverse)));
}
.md\:space-x-8 > :not([hidden]) ~ :not([hidden]) { .md\:space-x-8 > :not([hidden]) ~ :not([hidden]) {
--tw-space-x-reverse: 0; --tw-space-x-reverse: 0;
margin-right: calc(2rem * var(--tw-space-x-reverse)); margin-right: calc(2rem * var(--tw-space-x-reverse));
@ -1230,15 +1251,6 @@ video {
--tw-text-opacity: 1; --tw-text-opacity: 1;
color: rgb(29 78 216 / var(--tw-text-opacity, 1)); color: rgb(29 78 216 / var(--tw-text-opacity, 1));
} }
.md\:hover\:bg-transparent:hover {
background-color: transparent;
}
.md\:hover\:text-blue-700:hover {
--tw-text-opacity: 1;
color: rgb(29 78 216 / var(--tw-text-opacity, 1));
}
} }
@media (min-width: 1024px) { @media (min-width: 1024px) {
@ -1349,14 +1361,5 @@ video {
--tw-text-opacity: 1; --tw-text-opacity: 1;
color: rgb(59 130 246 / var(--tw-text-opacity, 1)); color: rgb(59 130 246 / var(--tw-text-opacity, 1));
} }
.md\:dark\:hover\:bg-transparent:hover {
background-color: transparent;
}
.md\:dark\:hover\:text-blue-500:hover {
--tw-text-opacity: 1;
color: rgb(59 130 246 / var(--tw-text-opacity, 1));
}
} }
} }

View File

@ -5,10 +5,7 @@ class AboutModel
static function getData() static function getData()
{ {
$box = []; $box = [];
if ( if ($handle = opendir('./upload')) {
$handle =
opendir('./upload')
) {
while (false !== ($entry = readdir($handle))) { while (false !== ($entry = readdir($handle))) {
$ext = pathinfo($entry, PATHINFO_EXTENSION); $ext = pathinfo($entry, PATHINFO_EXTENSION);
@ -16,7 +13,6 @@ class AboutModel
array_push($box, "./upload/$entry"); array_push($box, "./upload/$entry");
} }
} }
closedir($handle); closedir($handle);
} }
return $box; return $box;

View File

@ -6,7 +6,7 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge" /> <meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Tailwind CSS 3 Login Page With border Style</title> <title>Tailwind CSS 3 Login Page With border Style</title>
<link rel="stylesheet" href="./css/styles.css"> <link rel="stylesheet" href="../app/assets/css/styles.css">
<!-- <script src="https://cdn.tailwindcss.com"></script> --> <!-- <script src="https://cdn.tailwindcss.com"></script> -->
</head> </head>
@ -23,7 +23,6 @@
</li> </li>
</ol> </ol>
</nav> </nav>
<div class="relative flex flex-col justify-center min-h-screen overflow-hidden">
<div class="w-full p-6 m-auto bg-white border-t-4 border-purple-600 rounded-md shadow-md border-top lg:max-w-md"> <div class="w-full p-6 m-auto bg-white border-t-4 border-purple-600 rounded-md shadow-md border-top lg:max-w-md">
<h1 class="text-3xl font-semibold text-center text-purple-700">LOGO</h1> <h1 class="text-3xl font-semibold text-center text-purple-700">LOGO</h1>
<form class="mt-6" action="auth" method="post"> <form class="mt-6" action="auth" method="post">

View File

@ -2,29 +2,27 @@
// require_once 'Autoloader.php'; // require_once 'Autoloader.php';
// Autoloader::init(); // Autoloader::init();
require_once __DIR__ . "/../../engine/app/view/View.php"; // require_once __DIR__ . "/../../engine/app/view/View.php";
class Router class Router
{ {
private $routes; private $routes;
public function __construct() public function __construct()
{ {
$routesPath = __DIR__ . '/../routes.php'; $routesPath = __DIR__ . '/../routes.php';
$this->routes = include_once($routesPath);
$this->routes = include($routesPath);
} }
public function run() public function run()
{ {
$uri = $this->getURI(); $uri = $this->getURI();
if (!$uri) { if (!$uri) {
$obj = new MainController(); $obj = new MainController();
$obj->actionIndex(); $obj->actionIndex();
return null; return null;
var_dump('Роутер пуст'); // var_dump('Роутер пуст');
} }
$controllerName = ""; $controllerName = "";
// $actionName = ; // $actionName = ;
@ -37,9 +35,10 @@ class Router
$controllerObject = new $controllerName(); $controllerObject = new $controllerName();
$result = $controllerObject->$actionName(); $result = $controllerObject->$actionName();
break; // break;
// var_dump($controllerFile); // var_dump($controllerFile);
} }
}
if (!$controllerName) { if (!$controllerName) {
// Page not found // Page not found
@ -48,7 +47,6 @@ class Router
// break; // break;
} }
} }
}
private function getURI() private function getURI()
{ {