2026 Version + better Admin Panel
Some checks failed
Deploy to Firebase Hosting on merge / build_and_deploy (push) Has been cancelled

This commit is contained in:
Laptop-Luis
2026-03-27 06:32:11 +01:00
parent 9c57f94ccb
commit cb700679a0
9 changed files with 472 additions and 138 deletions

233
src/Admin.css Normal file
View File

@@ -0,0 +1,233 @@
.admin-container {
min-height: 100vh;
padding: 30px 20px;
background: rgba(0, 0, 0, 0.4);
color: white;
}
.admin-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 40px;
border-bottom: 2px solid #61dafb;
padding-bottom: 20px;
max-width: 1200px;
margin-left: auto;
margin-right: auto;
}
.admin-header h2 {
margin: 0;
font-size: 28px;
color: #ffffff;
}
.logout-btn {
background-color: #dc3545;
color: white;
border: none;
padding: 10px 20px;
border-radius: 5px;
cursor: pointer;
font-size: 16px;
transition: background-color 0.3s ease;
}
.logout-btn:hover {
background-color: #c82333;
}
.logout-btn:active {
background-color: #a71d2a;
transform: scale(0.98);
}
.admin-stats {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 20px;
margin-bottom: 40px;
max-width: 1200px;
margin-left: auto;
margin-right: auto;
}
.stat-box {
background: rgba(0, 0, 0, 0.6);
backdrop-filter: blur(10px);
color: white;
padding: 30px;
border-radius: 8px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
text-align: center;
border: 1px solid rgba(97, 218, 251, 0.3);
transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.stat-box:hover {
transform: translateY(-5px);
box-shadow: 0 8px 16px rgba(97, 218, 251, 0.2);
border-color: #61dafb;
}
.stat-box h3 {
margin: 0 0 15px 0;
font-size: 16px;
opacity: 0.8;
text-transform: uppercase;
letter-spacing: 1px;
}
.stat-number {
margin: 0;
font-size: 48px;
font-weight: bold;
color: #61dafb;
}
.admin-table-container {
background: rgba(0, 0, 0, 0.6);
backdrop-filter: blur(10px);
border-radius: 8px;
padding: 25px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
max-width: 1200px;
margin: 0 auto;
border: 1px solid rgba(97, 218, 251, 0.3);
}
.admin-table-container h3 {
margin-top: 0;
margin-bottom: 20px;
color: #ffffff;
font-size: 1.3em;
}
.admin-table {
width: 100%;
border-collapse: collapse;
font-size: 14px;
}
.admin-table thead {
background-color: rgba(97, 218, 251, 0.1);
border-bottom: 2px solid #61dafb;
}
.admin-table th {
padding: 12px;
text-align: left;
font-weight: 600;
color: #61dafb;
}
.admin-table th:last-child {
text-align: center;
}
.admin-table td {
padding: 12px;
border-bottom: 1px solid rgba(97, 218, 251, 0.1);
color: #f0f0f0;
}
.admin-table tbody tr:hover {
background-color: rgba(97, 218, 251, 0.05);
}
.count-cell {
font-weight: 600;
color: #61dafb;
text-align: center;
}
.names-list {
display: flex;
flex-direction: column;
gap: 8px;
align-items: flex-start;
}
.name-item {
display: flex;
align-items: center;
gap: 10px;
padding: 5px 10px;
background-color: rgba(97, 218, 251, 0.1);
border-radius: 4px;
border: 1px solid rgba(97, 218, 251, 0.2);
}
.name-item span {
color: #f0f0f0;
}
.delete-person-btn {
background: none;
border: none;
color: #dc3545;
cursor: pointer;
font-size: 16px;
padding: 0;
transition: transform 0.2s ease;
display: flex;
align-items: center;
}
.delete-person-btn:hover {
transform: scale(1.2);
}
.actions-cell {
text-align: center;
}
.delete-registration-btn {
background-color: #dc3545;
color: white;
border: none;
padding: 8px 12px;
border-radius: 4px;
cursor: pointer;
font-size: 14px;
transition: background-color 0.3s ease, transform 0.2s ease;
}
.delete-registration-btn:hover {
background-color: #c82333;
}
.delete-registration-btn:active {
background-color: #a71d2a;
transform: scale(0.95);
}
@media (max-width: 768px) {
.admin-header {
flex-direction: column;
gap: 15px;
align-items: flex-start;
}
.admin-stats {
grid-template-columns: 1fr;
}
.admin-table {
font-size: 12px;
}
.admin-table th,
.admin-table td {
padding: 8px;
}
.stat-number {
font-size: 36px;
}
.admin-header h2 {
font-size: 24px;
}
}