Files
RoadmapMaker/templates/admin.html
2025-09-07 08:32:35 +02:00

301 lines
7.0 KiB
HTML

<!DOCTYPE html>
<html lang="it">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Admin - Roadmap Manager</title>
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css" rel="stylesheet">
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
background: #f8f9fa;
color: #2c3e50;
}
.sidebar {
position: fixed;
left: 0;
top: 0;
width: 250px;
height: 100vh;
background: linear-gradient(135deg, #2c3e50, #3498db);
color: white;
padding: 20px;
z-index: 1000;
}
.sidebar h2 {
margin-bottom: 30px;
text-align: center;
padding-bottom: 20px;
border-bottom: 1px solid rgba(255,255,255,0.2);
}
.nav-item {
padding: 15px 20px;
margin: 5px 0;
border-radius: 8px;
cursor: pointer;
transition: all 0.3s ease;
display: flex;
align-items: center;
gap: 10px;
}
.nav-item:hover, .nav-item.active {
background: rgba(255,255,255,0.1);
transform: translateX(5px);
}
.main-content {
margin-left: 250px;
padding: 30px;
}
.header {
background: white;
padding: 20px 30px;
border-radius: 15px;
box-shadow: 0 2px 10px rgba(0,0,0,0.1);
margin-bottom: 30px;
display: flex;
justify-content: space-between;
align-items: center;
}
.btn {
padding: 12px 24px;
border: none;
border-radius: 8px;
cursor: pointer;
font-size: 14px;
font-weight: 500;
text-decoration: none;
display: inline-flex;
align-items: center;
gap: 8px;
transition: all 0.3s ease;
}
.btn-primary {
background: #3498db;
color: white;
}
.btn-primary:hover {
background: #2980b9;
transform: translateY(-2px);
}
.btn-success {
background: #2ecc71;
color: white;
}
.btn-success:hover {
background: #27ae60;
}
.btn-danger {
background: #e74c3c;
color: white;
}
.btn-danger:hover {
background: #c0392b;
}
.btn-warning {
background: #f39c12;
color: white;
}
.card {
background: white;
border-radius: 15px;
padding: 25px;
box-shadow: 0 5px 20px rgba(0,0,0,0.1);
margin-bottom: 25px;
}
.card h3 {
margin-bottom: 20px;
color: #2c3e50;
display: flex;
align-items: center;
gap: 10px;
}
.form-group {
margin-bottom: 20px;
}
.form-group label {
display: block;
margin-bottom: 8px;
font-weight: 500;
color: #2c3e50;
}
.form-control {
width: 100%;
padding: 12px 16px;
border: 2px solid #e9ecef;
border-radius: 8px;
font-size: 14px;
transition: all 0.3s ease;
}
.form-control:focus {
outline: none;
border-color: #3498db;
box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}
.milestone-item {
background: #f8f9fa;
border: 2px solid #e9ecef;
border-radius: 12px;
padding: 20px;
margin-bottom: 15px;
transition: all 0.3s ease;
}
.milestone-item:hover {
border-color: #3498db;
box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.milestone-header {
display: flex;
justify-content: between;
align-items: center;
margin-bottom: 15px;
}
.milestone-title {
font-weight: 600;
color: #2c3e50;
flex-grow: 1;
}
.milestone-actions {
display: flex;
gap: 10px;
}
.status-badge {
padding: 6px 12px;
border-radius: 20px;
font-size: 12px;
font-weight: 500;
text-transform: uppercase;
}
.badge-completed {
background: #d5f4e6;
color: #27ae60;
}
.badge-in_progress {
background: #fdeaa7;
color: #f39c12;
}
.badge-pending {
background: #ecf0f1;
color: #95a5a6;
}
.modal {
display: none;
position: fixed;
z-index: 2000;
left: 0;
top: 0;
width: 100%;
height: 100%;
background-color: rgba(0,0,0,0.5);
backdrop-filter: blur(5px);
}
.modal-content {
background: white;
margin: 3% auto;
padding: 30px;
border-radius: 15px;
max-width: 600px;
max-height: 80vh;
overflow-y: auto;
position: relative;
box-shadow: 0 20px 60px rgba(0,0,0,0.3);
animation: modalSlide 0.3s ease-out;
}
@keyframes modalSlide {
from { opacity: 0; transform: translateY(-50px); }
to { opacity: 1; transform: translateY(0); }
}
.close {
position: absolute;
right: 20px;
top: 20px;
font-size: 28px;
cursor: pointer;
color: #aaa;
}
.close:hover {
color: #e74c3c;
}
.section {
display: none;
}
.section.active {
display: block;
}
.back-to-site {
position: fixed;
top: 30px;
right: 30px;
z-index: 1100;
}
.grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 20px;
}
@media (max-width: 768px) {
.sidebar {
width: 100%;
height: auto;
position: relative;
}
.main-content {
margin-left: 0;
}
.grid {
grid-template-columns: 1fr;
}
}
</style>
</head>
<body>
<div class="sidebar">
<h2><i class="fas fa-cogs"></i> Admin Panel</h2>
<div class="nav-item active" data-section="milestones">
<i class="fas fa-list"></i>