279 lines
6.9 KiB
HTML
279 lines
6.9 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>{% block title %}Pickleball ELO Tracker{% endblock %}</title>
|
|
<style>
|
|
/* Common CSS - Pitt colors (Blue #003594, Gold #FFB81C) */
|
|
body {
|
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
|
|
background: linear-gradient(135deg, #003594 0%, #001a4d 100%);
|
|
padding: 20px;
|
|
margin: 0;
|
|
min-height: 100vh;
|
|
}
|
|
.container {
|
|
max-width: 1000px;
|
|
margin: 0 auto;
|
|
background: white;
|
|
border-radius: 12px;
|
|
padding: 30px;
|
|
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
|
|
}
|
|
h1 {
|
|
color: #003594;
|
|
margin-top: 0;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
}
|
|
h2 {
|
|
color: #003594;
|
|
border-bottom: 2px solid #FFB81C;
|
|
padding-bottom: 10px;
|
|
}
|
|
h3 {
|
|
color: #003594;
|
|
}
|
|
|
|
.nav {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 10px;
|
|
justify-content: center;
|
|
margin: 20px 0;
|
|
padding: 20px;
|
|
background: #f5f5f5;
|
|
border-radius: 8px;
|
|
}
|
|
.btn {
|
|
padding: 10px 16px;
|
|
border: none;
|
|
border-radius: 6px;
|
|
background: #003594;
|
|
color: white;
|
|
text-decoration: none;
|
|
cursor: pointer;
|
|
font-weight: bold;
|
|
transition: all 0.2s;
|
|
display: inline-block;
|
|
}
|
|
.btn:hover {
|
|
background: #001a4d;
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
|
|
}
|
|
.btn-success {
|
|
background: #27ae60;
|
|
}
|
|
.btn-success:hover {
|
|
background: #229954;
|
|
}
|
|
.btn-warning {
|
|
background: #f39c12;
|
|
}
|
|
.btn-warning:hover {
|
|
background: #e67e22;
|
|
}
|
|
.btn-danger {
|
|
background: #e74c3c;
|
|
}
|
|
.btn-danger:hover {
|
|
background: #c0392b;
|
|
}
|
|
|
|
table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
margin: 20px 0;
|
|
}
|
|
th {
|
|
background: #003594;
|
|
color: white;
|
|
padding: 12px;
|
|
text-align: left;
|
|
font-weight: bold;
|
|
}
|
|
td {
|
|
border-bottom: 1px solid #ddd;
|
|
padding: 12px;
|
|
}
|
|
tr:hover {
|
|
background: #f9f9f9;
|
|
}
|
|
|
|
.form-group {
|
|
margin: 15px 0;
|
|
}
|
|
label {
|
|
display: block;
|
|
margin-bottom: 5px;
|
|
font-weight: bold;
|
|
color: #333;
|
|
}
|
|
input[type="text"],
|
|
input[type="email"],
|
|
input[type="number"],
|
|
input[type="date"],
|
|
select,
|
|
textarea {
|
|
width: 100%;
|
|
padding: 10px;
|
|
border: 1px solid #ddd;
|
|
border-radius: 6px;
|
|
font-size: 14px;
|
|
box-sizing: border-box;
|
|
}
|
|
input[type="text"]:focus,
|
|
input[type="email"]:focus,
|
|
input[type="number"]:focus,
|
|
input[type="date"]:focus,
|
|
select:focus,
|
|
textarea:focus {
|
|
outline: none;
|
|
border-color: #003594;
|
|
box-shadow: 0 0 0 3px rgba(0, 53, 148, 0.1);
|
|
}
|
|
|
|
.form-row {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
gap: 20px;
|
|
}
|
|
@media (max-width: 768px) {
|
|
.form-row {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
}
|
|
|
|
.alert {
|
|
padding: 15px;
|
|
border-radius: 6px;
|
|
margin: 15px 0;
|
|
}
|
|
.alert-success {
|
|
background: #d4edda;
|
|
color: #155724;
|
|
border: 1px solid #c3e6cb;
|
|
}
|
|
.alert-error {
|
|
background: #f8d7da;
|
|
color: #721c24;
|
|
border: 1px solid #f5c6cb;
|
|
}
|
|
.alert-info {
|
|
background: #d1ecf1;
|
|
color: #0c5460;
|
|
border: 1px solid #bee5eb;
|
|
}
|
|
|
|
.stats-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
|
|
gap: 20px;
|
|
margin: 30px 0;
|
|
}
|
|
.stat-card {
|
|
background: linear-gradient(135deg, #003594 0%, #001a4d 100%);
|
|
color: white;
|
|
padding: 25px;
|
|
border-radius: 12px;
|
|
text-align: center;
|
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
|
|
}
|
|
.stat-value {
|
|
font-size: 36px;
|
|
font-weight: bold;
|
|
margin: 10px 0;
|
|
}
|
|
.stat-label {
|
|
font-size: 14px;
|
|
opacity: 0.9;
|
|
}
|
|
|
|
.leaderboard-entry {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 15px;
|
|
background: #f9f9f9;
|
|
border-radius: 6px;
|
|
margin: 10px 0;
|
|
}
|
|
.rank {
|
|
font-size: 24px;
|
|
font-weight: bold;
|
|
color: #FFB81C;
|
|
margin-right: 15px;
|
|
min-width: 40px;
|
|
}
|
|
.player-info {
|
|
flex: 1;
|
|
}
|
|
.player-name {
|
|
font-weight: bold;
|
|
color: #003594;
|
|
}
|
|
.player-rating {
|
|
font-size: 24px;
|
|
font-weight: bold;
|
|
color: #003594;
|
|
}
|
|
|
|
code {
|
|
background: #f5f5f5;
|
|
padding: 2px 6px;
|
|
border-radius: 4px;
|
|
font-family: 'Courier New', monospace;
|
|
}
|
|
|
|
.card {
|
|
background: #f9f9f9;
|
|
border: 1px solid #ddd;
|
|
border-radius: 8px;
|
|
padding: 20px;
|
|
margin: 15px 0;
|
|
}
|
|
|
|
.error-message {
|
|
background: #f8d7da;
|
|
color: #721c24;
|
|
padding: 12px;
|
|
border-radius: 6px;
|
|
margin: 10px 0;
|
|
}
|
|
|
|
.success-message {
|
|
background: #d4edda;
|
|
color: #155724;
|
|
padding: 12px;
|
|
border-radius: 6px;
|
|
margin: 10px 0;
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.container {
|
|
padding: 15px;
|
|
}
|
|
h1 {
|
|
font-size: 24px;
|
|
}
|
|
.nav {
|
|
flex-direction: column;
|
|
}
|
|
.btn {
|
|
width: 100%;
|
|
text-align: center;
|
|
}
|
|
}
|
|
</style>
|
|
{% block extra_css %}{% endblock %}
|
|
</head>
|
|
<body>
|
|
<div class="container">
|
|
{% block content %}{% endblock %}
|
|
</div>
|
|
</body>
|
|
</html>
|