126 lines
4.9 KiB
HTML
126 lines
4.9 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<link rel="icon" type="image/png" href="/static/favicon.png">
|
|
<link rel="icon" type="image/x-icon" href="/static/favicon.ico">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<title>Padel Nivelles</title>
|
|
<style>
|
|
body {
|
|
font-family: Arial, sans-serif;
|
|
margin: 2em;
|
|
background: #222831;
|
|
color: #DFD0B8;
|
|
}
|
|
.table-container { width: 100%; overflow-x: auto; max-height: 70vh; }
|
|
table { border-collapse: separate; border-spacing: 0; width: 100%; min-width: 700px; margin-bottom: 1em; background: #393E46; color: #DFD0B8; border-radius: 18px; overflow: hidden; }
|
|
th, td { border: 1px solid #393E46; padding: 0.5em; text-align: center; border-radius: 12px; }
|
|
th { background: #393E46; color: #DFD0B8; position: sticky; top: 0; z-index: 2; }
|
|
.clickable { cursor: pointer; background: #222831; transition: background 0.15s, box-shadow 0.15s; }
|
|
.clickable:hover {
|
|
background: #575f6b;
|
|
box-shadow: 0 0 0 2px #94897966;
|
|
}
|
|
.yes { background: #948979; font-weight: bold; color: #222831; }
|
|
.no { background: #393E46; color: #948979; font-weight: bold; }
|
|
input[type="text"] {
|
|
width: 90%;
|
|
padding: 0.2em;
|
|
border: 1px solid #393E46;
|
|
background: #DFD0B8;
|
|
color: #222831;
|
|
border-radius: 16px;
|
|
}
|
|
input[type="text"]::placeholder {
|
|
color: #948979;
|
|
opacity: 1;
|
|
}
|
|
#add-date {
|
|
margin-top: 1em;
|
|
background: #948979;
|
|
color: #222831;
|
|
border: none;
|
|
padding: 0.7em 1.5em;
|
|
border-radius: 18px;
|
|
font-weight: bold;
|
|
font-size: 1em;
|
|
transition: background 0.2s;
|
|
}
|
|
button, a#reports-btn {
|
|
border-radius: 18px !important;
|
|
}
|
|
#add-date:hover {
|
|
background: #7c765c;
|
|
}
|
|
.secondary-text {
|
|
color: #DFD0B8;
|
|
}
|
|
.name-col { width: 140px; min-width: 100px; max-width: 180px; }
|
|
.menu-bar .dropdown-content {
|
|
opacity: 0;
|
|
visibility: hidden;
|
|
pointer-events: none;
|
|
transition: opacity 0.15s;
|
|
display: block;
|
|
position: absolute;
|
|
left: 0;
|
|
top: 100%;
|
|
background: #393E46;
|
|
min-width: 170px;
|
|
box-shadow: 0 2px 8px rgba(0,0,0,0.15);
|
|
border-radius: 4px;
|
|
z-index: 10;
|
|
}
|
|
.menu-bar .dropdown.open .dropdown-content {
|
|
opacity: 1;
|
|
visibility: visible;
|
|
pointer-events: auto;
|
|
}
|
|
.menu-bar .dropdown-content li {
|
|
padding: 0.7em 1em;
|
|
cursor: pointer;
|
|
color: #DFD0B8;
|
|
border-bottom: 1px solid #22283133;
|
|
background: none;
|
|
transition: background 0.15s, color 0.15s;
|
|
}
|
|
.menu-bar .dropdown-content li:last-child {
|
|
border-bottom: none;
|
|
}
|
|
.menu-bar .dropdown-content li:hover, .menu-bar .dropdown-content li:focus {
|
|
background: #948979;
|
|
color: #222831;
|
|
}
|
|
@media (max-width: 900px) {
|
|
body { margin: 1em; }
|
|
.name-col { width: 110px; min-width: 80px; max-width: 140px; font-size: 0.95em; }
|
|
th, td { padding: 0.3em; }
|
|
table { min-width: 600px; }
|
|
}
|
|
@media (max-width: 600px) {
|
|
body { margin: 0.5em; }
|
|
h1 { font-size: 1.2em; }
|
|
.name-col { width: 90px; min-width: 70px; max-width: 110px; font-size: 0.9em; }
|
|
th, td { padding: 0.2em; font-size: 0.9em; }
|
|
table { min-width: 400px; }
|
|
}
|
|
</style>
|
|
<script defer src="https://umami-ikow84gco0wcw8cgsc8o08g8.reflectonai.com/script.js" data-website-id="1e85082c-2652-4d6c-a0b2-fa55082982a7"></script>
|
|
</head>
|
|
<body>
|
|
<div style="text-align: left; margin-bottom: 1em;">
|
|
<h1 style="margin: 0;">Padel Nivelles</h1>
|
|
</div>
|
|
<div class="table-container">
|
|
<div id="attendance-table"></div>
|
|
</div>
|
|
|
|
<div style="display: flex; justify-content: flex-start; gap: 1em; margin-top: 1em;">
|
|
<button id="toggle-matches-btn" style="background: #948979; color: #222831; border: none; padding: 0.7em 1.5em; border-radius: 4px; font-weight: bold; font-size: 1em; transition: background 0.2s; cursor: pointer;">Show All Matches</button>
|
|
<a href="/reports" id="reports-btn" style="background: #948979; color: #222831; border: none; padding: 0.7em 1.5em; border-radius: 4px; font-weight: bold; font-size: 1em; transition: background 0.2s; cursor: pointer; text-decoration: none;">Reports</a>
|
|
</div>
|
|
<script src="/static/app.js"></script>
|
|
</body>
|
|
</html>
|