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