146 lines
3.8 KiB
PHP
146 lines
3.8 KiB
PHP
<!DOCTYPE html>
|
|
<html lang="pl">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>Panel Administracyjny - togethere.cloud</title>
|
|
<link href="//fonts.googleapis.com/css?family=Lato:400,500,600,700,800,900" rel="stylesheet">
|
|
<style>
|
|
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
body {
|
|
font-family: 'Lato', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
|
|
background: #f1f1f1;
|
|
color: #444;
|
|
line-height: 1.6;
|
|
}
|
|
|
|
/* Górna belka */
|
|
.admin-header {
|
|
background: #23282d;
|
|
color: #fff;
|
|
padding: 0;
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
height: 32px;
|
|
z-index: 9999;
|
|
box-shadow: 0 1px 1px rgba(0,0,0,0.1);
|
|
}
|
|
|
|
.admin-header-content {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
height: 100%;
|
|
padding: 0 15px;
|
|
}
|
|
|
|
.admin-logo {
|
|
display: flex;
|
|
align-items: center;
|
|
text-decoration: none;
|
|
color: #fff;
|
|
font-weight: 600;
|
|
font-size: 14px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.admin-logo:hover {
|
|
color: #00b9eb;
|
|
transition: color 0.2s;
|
|
}
|
|
|
|
.admin-header-right {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 20px;
|
|
}
|
|
|
|
.admin-user-info {
|
|
font-size: 13px;
|
|
color: #eee;
|
|
}
|
|
|
|
.admin-logout {
|
|
color: #00b9eb;
|
|
text-decoration: none;
|
|
font-size: 13px;
|
|
padding: 3px 8px;
|
|
border-radius: 3px;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.admin-logout:hover {
|
|
background: #32373c;
|
|
color: #fff;
|
|
}
|
|
|
|
/* Layout główny */
|
|
.admin-wrapper {
|
|
display: flex;
|
|
margin-top: 32px;
|
|
min-height: calc(100vh - 32px);
|
|
}
|
|
|
|
.admin-sidebar {
|
|
width: 220px;
|
|
background: #23282d;
|
|
color: #eee;
|
|
position: fixed;
|
|
top: 32px;
|
|
bottom: 0;
|
|
left: 0;
|
|
overflow-y: auto;
|
|
box-shadow: 1px 0 1px rgba(0,0,0,0.1);
|
|
}
|
|
|
|
.admin-content {
|
|
flex: 1;
|
|
margin-left: 220px;
|
|
padding: 20px;
|
|
min-height: calc(100vh - 32px - 60px);
|
|
}
|
|
|
|
/* Responsywność */
|
|
@media (max-width: 782px) {
|
|
.admin-sidebar {
|
|
width: 36px;
|
|
}
|
|
|
|
.admin-content {
|
|
margin-left: 36px;
|
|
}
|
|
|
|
.admin-header-content {
|
|
padding: 0 10px;
|
|
}
|
|
|
|
.admin-user-info {
|
|
display: none;
|
|
}
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="admin-header">
|
|
<div class="admin-header-content">
|
|
<a href="https://togethere.cloud/" class="admin-logo">
|
|
<span>⚡ togethere.cloud Admin</span>
|
|
</a>
|
|
<div class="admin-header-right">
|
|
<span class="admin-user-info">
|
|
Zalogowano jako: <strong><?php echo htmlspecialchars($_SESSION['username'] ?? 'Admin'); ?></strong>
|
|
</span>
|
|
<a href="/account/logout.php" class="admin-logout">Wyloguj</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="admin-wrapper">
|