92 lines
3.2 KiB
HTML
92 lines
3.2 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; }
|
|
@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 style="display: flex; align-items: center; justify-content: space-between;">
|
|
<h1 style="margin: 0;">Padel Nivelles</h1>
|
|
<nav class="menu-bar">
|
|
<ul>
|
|
<li class="dropdown">
|
|
<span id="show-menu-btn">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>
|