130 lines
4.5 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<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: collapse; width: 100%; min-width: 700px; margin-bottom: 1em; background: #393E46; color: #DFD0B8; }
th, td { border: 1px solid #393E46; padding: 0.5em; text-align: center; }
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: #393E46;
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;
}
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: 4px;
font-weight: bold;
font-size: 1em;
transition: background 0.2s;
}
#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:hover .dropdown-content,
.menu-bar .dropdown:focus-within .dropdown-content,
.menu-bar .dropdown .dropdown-content:focus,
.menu-bar .dropdown .dropdown-content:active {
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>
</style>
</head>
<body>
<div class="header-bar">
<h1 style="margin: 0;">Padel Nivelles</h1>
<nav class="menu-bar">
<ul>
<li class="dropdown">
<span id="show-menu-btn" tabindex="0" aria-haspopup="true" aria-expanded="false">Show ▾</span>
<ul class="dropdown-content" id="show-menu-dropdown">
<li id="show-all-matches">Show all matches</li>
<li id="show-future-matches">Show future matches</li>
</ul>
</li>
</ul>
</nav>
</div>
<div class="table-container">
<div id="attendance-table"></div>
</div>
<button id="add-date">Add Date</button>
<script src="/static/app.js"></script>
</body>
</html>