dark green UI
This commit is contained in:
parent
c844c99673
commit
55174136bb
@ -5,38 +5,27 @@
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>CZ.Basketball - zápasy</title>
|
||||
<link rel="icon" type="image/png" href="https://cz.basketball/img/logo-icon.png">
|
||||
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap" rel="stylesheet">
|
||||
<style>
|
||||
:root {
|
||||
--primary-color: #2c3e50;
|
||||
--secondary-color: #3498db;
|
||||
--accent-color: #e74c3c;
|
||||
--light-bg: #f8f9fa;
|
||||
--dark-text: #2c3e50;
|
||||
--light-text: #7f8c8d;
|
||||
--border-color: #e0e0e0;
|
||||
--success-color: #27ae60;
|
||||
--warning-color: #f39c12;
|
||||
--hover-bg: rgba(52, 152, 219, 0.1);
|
||||
}
|
||||
|
||||
* {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
body {
|
||||
font-family: 'Roboto', Arial, sans-serif;
|
||||
background: linear-gradient(135deg, #f5f7fa 0%, #e4edf5 100%);
|
||||
color: var(--dark-text);
|
||||
line-height: 1.6;
|
||||
padding: 15px;
|
||||
font-family: system-ui, -apple-system, sans-serif;
|
||||
margin: 0;
|
||||
padding: 10px;
|
||||
background: #1a1a1a;
|
||||
color: #e0e0e0;
|
||||
min-height: 100vh;
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
h1 {
|
||||
text-align: center;
|
||||
margin-bottom: 20px;
|
||||
color: #4ade80;
|
||||
font-size: 1.8rem;
|
||||
text-shadow: 0 2px 8px rgba(74, 222, 128, 0.3);
|
||||
}
|
||||
|
||||
.container {
|
||||
max-width: 1200px;
|
||||
max-width: 1400px;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
@ -44,41 +33,19 @@
|
||||
text-align: center;
|
||||
margin-bottom: 25px;
|
||||
padding: 20px;
|
||||
background: white;
|
||||
border-radius: 12px;
|
||||
box-shadow: 0 4px 12px rgba(0,0,0,0.05);
|
||||
}
|
||||
|
||||
h1 {
|
||||
color: var(--primary-color);
|
||||
font-size: 2.2rem;
|
||||
font-weight: 700;
|
||||
margin-bottom: 10px;
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
h1:after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
bottom: -5px;
|
||||
left: 0;
|
||||
width: 60px;
|
||||
height: 3px;
|
||||
background: var(--secondary-color);
|
||||
border-radius: 3px;
|
||||
}
|
||||
|
||||
.controls {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 15px;
|
||||
margin-bottom: 20px;
|
||||
justify-content: center;
|
||||
background: white;
|
||||
padding: 20px;
|
||||
border-radius: 12px;
|
||||
box-shadow: 0 2px 8px rgba(0,0,0,0.05);
|
||||
gap: 10px;
|
||||
padding: 15px;
|
||||
background: #2a2a2a;
|
||||
border-radius: 8px;
|
||||
box-shadow: 0 4px 12px rgba(0,0,0,0.5);
|
||||
margin-bottom: 15px;
|
||||
border: 1px solid #3a3a3a;
|
||||
}
|
||||
|
||||
.control-group {
|
||||
@ -91,25 +58,26 @@
|
||||
font-weight: 500;
|
||||
margin-bottom: 6px;
|
||||
font-size: 0.9rem;
|
||||
color: var(--light-text);
|
||||
color: #a0a0a0;
|
||||
}
|
||||
|
||||
input, select {
|
||||
padding: 10px 12px;
|
||||
border: 1px solid var(--border-color);
|
||||
border-radius: 8px;
|
||||
font-size: 1rem;
|
||||
background: #fafafa;
|
||||
transition: all 0.3s ease;
|
||||
padding: 8px 14px;
|
||||
font-size: 13px;
|
||||
border: 1px solid #4ade80;
|
||||
border-radius: 6px;
|
||||
cursor: pointer;
|
||||
background: #2a2a2a;
|
||||
color: #e0e0e0;
|
||||
transition: all 0.2s;
|
||||
}
|
||||
|
||||
input:focus, select:focus {
|
||||
outline: none;
|
||||
border-color: var(--secondary-color);
|
||||
box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
|
||||
border-color: #4ade80;
|
||||
box-shadow: 0 0 0 2px rgba(74, 222, 128, 0.2);
|
||||
}
|
||||
|
||||
/* Nová tlačítka Den+ a Den- */
|
||||
.date-controls {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
@ -117,15 +85,15 @@
|
||||
}
|
||||
|
||||
.date-btn {
|
||||
background-color: var(--secondary-color);
|
||||
color: white;
|
||||
border: none;
|
||||
border-radius: 8px;
|
||||
padding: 10px 15px;
|
||||
font-size: 1rem;
|
||||
background: #2a2a2a;
|
||||
color: #e0e0e0;
|
||||
border: 1px solid #4ade80;
|
||||
border-radius: 6px;
|
||||
padding: 8px 14px;
|
||||
font-size: 13px;
|
||||
font-weight: 500;
|
||||
cursor: pointer;
|
||||
transition: all 0.3s ease;
|
||||
transition: all 0.2s;
|
||||
min-width: 40px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
@ -133,71 +101,46 @@
|
||||
}
|
||||
|
||||
.date-btn:hover {
|
||||
background-color: #2980b9;
|
||||
transform: translateY(-2px);
|
||||
box-shadow: 0 4px 8px rgba(52, 152, 219, 0.3);
|
||||
background: #3a3a3a;
|
||||
border-color: #4ade80;
|
||||
}
|
||||
|
||||
.filter-buttons {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
gap: 10px;
|
||||
margin: 15px 0;
|
||||
gap: 8px;
|
||||
margin-bottom: 15px;
|
||||
padding: 12px;
|
||||
background: #2a2a2a;
|
||||
border-radius: 8px;
|
||||
box-shadow: 0 4px 12px rgba(0,0,0,0.5);
|
||||
border: 1px solid #3a3a3a;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.filter-btn {
|
||||
padding: 10px 20px;
|
||||
background: #f1f8ff;
|
||||
color: var(--secondary-color);
|
||||
border: 1px solid var(--secondary-color);
|
||||
border-radius: 20px;
|
||||
background: #2a2a2a;
|
||||
border: 1px solid #4ade80;
|
||||
color: #e0e0e0;
|
||||
padding: 6px 12px;
|
||||
border-radius: 6px;
|
||||
transition: all 0.2s;
|
||||
font-weight: 500;
|
||||
transition: all 0.3s ease;
|
||||
font-size: 12px;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.filter-btn:hover {
|
||||
background: var(--secondary-color);
|
||||
color: white;
|
||||
background: #3a3a3a;
|
||||
border-color: #4ade80;
|
||||
}
|
||||
|
||||
.filter-btn.active {
|
||||
background: var(--secondary-color);
|
||||
color: white;
|
||||
box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
|
||||
background: #4ade80;
|
||||
color: #1a1a1a;
|
||||
box-shadow: 0 0 10px rgba(74, 222, 128, 0.3);
|
||||
}
|
||||
|
||||
.status-indicators {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
gap: 15px;
|
||||
margin: 15px 0;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.status-item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 5px;
|
||||
font-size: 0.9rem;
|
||||
padding: 6px 12px;
|
||||
border-radius: 20px;
|
||||
background: white;
|
||||
box-shadow: 0 2px 4px rgba(0,0,0,0.05);
|
||||
}
|
||||
|
||||
.status-indicator {
|
||||
width: 10px;
|
||||
height: 10px;
|
||||
border-radius: 50%;
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.status-tv { background: var(--success-color); }
|
||||
.status-live { background: var(--warning-color); }
|
||||
.status-all { background: var(--secondary-color); }
|
||||
|
||||
#loading, #error {
|
||||
text-align: center;
|
||||
margin: 20px 0;
|
||||
@ -205,27 +148,27 @@
|
||||
border-radius: 8px;
|
||||
font-weight: 500;
|
||||
display: none;
|
||||
color: #4ade80;
|
||||
}
|
||||
|
||||
#loading {
|
||||
background: rgba(52, 152, 219, 0.1);
|
||||
color: var(--secondary-color);
|
||||
display: block;
|
||||
}
|
||||
|
||||
#error {
|
||||
background: rgba(231, 76, 60, 0.1);
|
||||
color: var(--accent-color);
|
||||
display: block;
|
||||
color: #ef4444;
|
||||
}
|
||||
|
||||
.table-container {
|
||||
background: #2a2a2a;
|
||||
border-radius: 8px;
|
||||
box-shadow: 0 4px 12px rgba(0,0,0,0.5);
|
||||
overflow: hidden;
|
||||
margin: 0 auto;
|
||||
max-width: 1400px;
|
||||
width: 100%;
|
||||
border: 1px solid #3a3a3a;
|
||||
overflow-x: auto;
|
||||
background: white;
|
||||
border-radius: 12px;
|
||||
box-shadow: 0 4px 15px rgba(0,0,0,0.08);
|
||||
margin-bottom: 25px;
|
||||
border: 1px solid var(--border-color);
|
||||
}
|
||||
|
||||
table {
|
||||
@ -234,87 +177,96 @@
|
||||
min-width: 700px;
|
||||
}
|
||||
|
||||
/* Zcela tencí a jednoduché záhlaví tabulky */
|
||||
thead {
|
||||
background: #4ade80;
|
||||
color: #1a1a1a;
|
||||
}
|
||||
|
||||
th {
|
||||
background-color: #2c3e50; /* Tmavě modrá - jedna barva */
|
||||
color: white;
|
||||
font-weight: 500;
|
||||
padding: 14px 12px;
|
||||
padding: 10px 12px;
|
||||
text-align: left;
|
||||
font-weight: 600;
|
||||
font-size: 12px;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.5px;
|
||||
position: sticky;
|
||||
top: 0;
|
||||
z-index: 10;
|
||||
font-size: 0.95rem;
|
||||
border: none;
|
||||
/* Odstranění jakýchkoli gradientů nebo stínů */
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
td {
|
||||
padding: 14px 12px;
|
||||
border-bottom: 1px solid var(--border-color);
|
||||
font-size: 0.95rem;
|
||||
padding: 10px 12px;
|
||||
border-bottom: 1px solid #3a3a3a;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
tr:nth-child(even) {
|
||||
background-color: #f8f9fa;
|
||||
tbody tr {
|
||||
transition: background-color 0.2s;
|
||||
}
|
||||
|
||||
tr:hover {
|
||||
background-color: #e3f2fd;
|
||||
transform: translateY(-1px);
|
||||
transition: all 0.2s ease;
|
||||
tbody tr:hover {
|
||||
background: rgba(74, 222, 128, 0.1);
|
||||
}
|
||||
|
||||
tbody tr:last-child td {
|
||||
border-bottom: none;
|
||||
}
|
||||
|
||||
tr.highlight {
|
||||
background-color: #fff9c4 !important;
|
||||
background-color: rgba(251, 191, 36, 0.2) !important;
|
||||
font-weight: 600;
|
||||
box-shadow: 0 0 0 2px #fbc02d;
|
||||
}
|
||||
|
||||
tr.nymburk {
|
||||
background-color: #e3f2fd;
|
||||
background-color: rgba(74, 222, 128, 0.05);
|
||||
}
|
||||
|
||||
a {
|
||||
color: var(--secondary-color);
|
||||
color: #4ade80;
|
||||
text-decoration: none;
|
||||
font-weight: 500;
|
||||
transition: all 0.2s;
|
||||
padding: 4px 8px;
|
||||
border-radius: 4px;
|
||||
transition: color 0.2s;
|
||||
}
|
||||
|
||||
a:hover {
|
||||
background: rgba(52, 152, 219, 0.1);
|
||||
color: #6ee7a7;
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
.footer {
|
||||
text-align: center;
|
||||
padding: 25px 0;
|
||||
color: var(--light-text);
|
||||
color: #808080;
|
||||
font-size: 0.9rem;
|
||||
border-top: 1px solid var(--border-color);
|
||||
margin-top: 20px;
|
||||
}
|
||||
|
||||
.match-time {
|
||||
font-weight: 700;
|
||||
color: var(--primary-color);
|
||||
color: #e0e0e0;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.team-name {
|
||||
font-weight: 500;
|
||||
color: #e0e0e0;
|
||||
}
|
||||
|
||||
.league-name {
|
||||
font-weight: 500;
|
||||
color: var(--secondary-color);
|
||||
color: #4ade80;
|
||||
}
|
||||
|
||||
/* Responsive design */
|
||||
@media (max-width: 768px) {
|
||||
th, td {
|
||||
padding: 8px 6px;
|
||||
font-size: 11px;
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: 1.5rem;
|
||||
}
|
||||
|
||||
.controls {
|
||||
flex-direction: column;
|
||||
align-items: stretch;
|
||||
@ -323,26 +275,6 @@
|
||||
.control-group {
|
||||
min-width: 100%;
|
||||
}
|
||||
|
||||
.filter-buttons {
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.filter-btn {
|
||||
width: 100%;
|
||||
max-width: 200px;
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: 1.8rem;
|
||||
}
|
||||
|
||||
th, td {
|
||||
padding: 10px 8px;
|
||||
font-size: 0.9rem;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 480px) {
|
||||
@ -361,11 +293,6 @@
|
||||
.controls {
|
||||
padding: 15px;
|
||||
}
|
||||
|
||||
.status-indicators {
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
}
|
||||
}
|
||||
|
||||
/* Animation */
|
||||
@ -377,13 +304,27 @@
|
||||
.fade-in {
|
||||
animation: fadeIn 0.3s ease-out;
|
||||
}
|
||||
|
||||
.loading-spinner {
|
||||
border: 4px solid #3a3a3a;
|
||||
border-radius: 50%;
|
||||
border-top: 4px solid #4ade80;
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
animation: spin 1s linear infinite;
|
||||
margin: 20px auto;
|
||||
}
|
||||
|
||||
@keyframes spin {
|
||||
0% { transform: rotate(0deg); }
|
||||
100% { transform: rotate(360deg); }
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
<header>
|
||||
<h1>CZ.Basketball – zápasy</h1>
|
||||
<p>Nejnovější zápasy a streamy</p>
|
||||
<h1>🏀 CZ.Basketball – zápasy</h1>
|
||||
</header>
|
||||
|
||||
<div class="controls">
|
||||
@ -423,9 +364,9 @@
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Čas</th>
|
||||
<th>Liga</th>
|
||||
<th>Domácí</th>
|
||||
<th>Hosté</th>
|
||||
<th>Liga</th>
|
||||
<th>Preview</th>
|
||||
<th>Live</th>
|
||||
<th>TV</th>
|
||||
@ -585,9 +526,9 @@ function renderMatches(matches) {
|
||||
|
||||
tr.innerHTML = `
|
||||
<td class="match-time">${match.status}</td>
|
||||
<td class="league-name">${league}</td>
|
||||
<td class="team-name">${match.home.name}</td>
|
||||
<td class="team-name">${match.away.name}</td>
|
||||
<td class="league-name">${league}</td>
|
||||
<td>${previewUrl ? '<a href="'+previewUrl+'" target="_blank">Preview</a>' : ''}</td>
|
||||
<td>${liveUrl ? '<a href="'+liveUrl+'" target="_blank">Live</a>' : ''}</td>
|
||||
<td>${tvUrl ? '<a href="'+tvUrl+'" target="_blank">TV</a>' : ''}</td>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user