feat: Update styles and layout for improved UI/UX; add GEMINI project documentation

This commit is contained in:
2026-02-22 11:44:07 +01:00
parent b2aead1fbe
commit 3d6e0323ef
7 changed files with 387 additions and 180 deletions

View File

@@ -67,4 +67,13 @@ class Router
http_response_code(404);
echo '<h1>404 - Strona nie znaleziona</h1>';
}
public static function isCurrent(string $path): bool
{
$uri = parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH);
$uri = rtrim($uri, '/') ?: '/';
$path = rtrim($path, '/') ?: '/';
return $uri === $path;
}
}