best design
This commit is contained in:
parent
1519dbcf9c
commit
a8bfa70837
@ -7,277 +7,238 @@
|
||||
<title>TVCOM Přenosy</title>
|
||||
<style>
|
||||
body {
|
||||
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
||||
margin: 0;
|
||||
padding: 20px;
|
||||
background: linear-gradient(135deg, #1a5f23 0%, #ff8c00 100%);
|
||||
color: #333;
|
||||
min-height: 100vh;
|
||||
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: 30px;
|
||||
color: #fff;
|
||||
font-size: 2.8rem;
|
||||
text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
|
||||
background: linear-gradient(to right, #ff8c00, #32cd32);
|
||||
-webkit-background-clip: text;
|
||||
-webkit-text-fill-color: transparent;
|
||||
background-clip: text;
|
||||
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: 1400px;
|
||||
margin: 0 auto;
|
||||
max-width: 1400px;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
.filters {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
justify-content: center;
|
||||
gap: 15px;
|
||||
padding: 20px;
|
||||
background: rgba(46, 139, 87, 0.9);
|
||||
border-radius: 15px;
|
||||
box-shadow: 0 8px 32px rgba(0,0,0,0.1);
|
||||
margin-bottom: 30px;
|
||||
backdrop-filter: blur(10px);
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
justify-content: center;
|
||||
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;
|
||||
}
|
||||
|
||||
input, select, button {
|
||||
padding: 12px 20px;
|
||||
font-size: 16px;
|
||||
border: 2px solid #32cd32;
|
||||
border-radius: 25px;
|
||||
cursor: pointer;
|
||||
background: #fff;
|
||||
color: #1a5f23;
|
||||
transition: all 0.3s ease;
|
||||
box-shadow: 0 2px 5px rgba(0,0,0,0.1);
|
||||
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: #ff8c00;
|
||||
box-shadow: 0 2px 10px rgba(255, 140, 0, 0.3);
|
||||
outline: none;
|
||||
border-color: #4ade80;
|
||||
box-shadow: 0 0 0 2px rgba(74, 222, 128, 0.2);
|
||||
}
|
||||
|
||||
button:hover {
|
||||
transform: translateY(-3px);
|
||||
box-shadow: 0 5px 15px rgba(0,0,0,0.2);
|
||||
background: linear-gradient(45deg, #32cd32, #ff8c00);
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
button:active {
|
||||
transform: translateY(0);
|
||||
background: linear-gradient(45deg, #ff8c00, #32cd32);
|
||||
background: #3a3a3a;
|
||||
border-color: #4ade80;
|
||||
}
|
||||
|
||||
button.active {
|
||||
background: linear-gradient(45deg, #32cd32, #ff8c00);
|
||||
color: #fff;
|
||||
border-color: #32cd32;
|
||||
box-shadow: 0 5px 15px rgba(50, 205, 50, 0.4);
|
||||
background: #4ade80;
|
||||
color: #1a1a1a;
|
||||
border-color: #4ade80;
|
||||
}
|
||||
|
||||
.sport-buttons {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
justify-content: center;
|
||||
gap: 12px;
|
||||
margin-bottom: 30px;
|
||||
padding: 15px;
|
||||
background: rgba(46, 139, 87, 0.9);
|
||||
border-radius: 15px;
|
||||
box-shadow: 0 8px 32px rgba(0,0,0,0.1);
|
||||
backdrop-filter: blur(10px);
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
justify-content: center;
|
||||
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;
|
||||
}
|
||||
|
||||
.sport-buttons button {
|
||||
background: linear-gradient(45deg, #32cd32 0%, #ff8c00 100%);
|
||||
border: none;
|
||||
color: #fff;
|
||||
padding: 10px 20px;
|
||||
border-radius: 30px;
|
||||
transition: all 0.3s ease;
|
||||
font-weight: 600;
|
||||
box-shadow: 0 4px 10px rgba(0,0,0,0.1);
|
||||
background: #2a2a2a;
|
||||
border: 1px solid #4ade80;
|
||||
color: #e0e0e0;
|
||||
padding: 6px 12px;
|
||||
border-radius: 6px;
|
||||
transition: all 0.2s;
|
||||
font-weight: 500;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.sport-buttons button:hover {
|
||||
transform: translateY(-3px);
|
||||
box-shadow: 0 6px 15px rgba(0,0,0,0.2);
|
||||
background: linear-gradient(45deg, #ff8c00, #32cd32);
|
||||
background: #3a3a3a;
|
||||
border-color: #4ade80;
|
||||
}
|
||||
|
||||
.sport-buttons button.active {
|
||||
background: linear-gradient(45deg, #32cd32, #ff8c00);
|
||||
box-shadow: 0 5px 15px rgba(50, 205, 50, 0.4);
|
||||
background: #4ade80;
|
||||
color: #1a1a1a;
|
||||
box-shadow: 0 0 10px rgba(74, 222, 128, 0.3);
|
||||
}
|
||||
|
||||
.table-container {
|
||||
background: rgba(46, 139, 87, 0.95);
|
||||
border-radius: 15px;
|
||||
box-shadow: 0 12px 40px rgba(0,0,0,0.15);
|
||||
overflow: hidden;
|
||||
margin: 0 auto;
|
||||
max-width: 1400px;
|
||||
width: 100%;
|
||||
backdrop-filter: blur(10px);
|
||||
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;
|
||||
}
|
||||
|
||||
table {
|
||||
width: 100%;
|
||||
border-collapse: separate;
|
||||
border-spacing: 0;
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
}
|
||||
|
||||
thead {
|
||||
background: linear-gradient(45deg, #32cd32, #ff8c00);
|
||||
color: #fff;
|
||||
background: #4ade80;
|
||||
color: #1a1a1a;
|
||||
}
|
||||
|
||||
th {
|
||||
padding: 16px;
|
||||
text-align: left;
|
||||
font-weight: 700;
|
||||
font-size: 16px;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 1px;
|
||||
border-bottom: 2px solid rgba(255,255,255,0.2);
|
||||
color: #fff;
|
||||
padding: 10px 12px;
|
||||
text-align: left;
|
||||
font-weight: 600;
|
||||
font-size: 12px;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.5px;
|
||||
}
|
||||
|
||||
td {
|
||||
padding: 16px;
|
||||
border-bottom: 1px solid #eee;
|
||||
padding: 10px 12px;
|
||||
border-bottom: 1px solid #3a3a3a;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
tbody tr {
|
||||
transition: all 0.3s ease;
|
||||
border-bottom: 1px solid #eee;
|
||||
transition: background-color 0.2s;
|
||||
}
|
||||
|
||||
tbody tr:hover {
|
||||
background: linear-gradient(90deg, rgba(50, 205, 50, 0.1) 0%, rgba(255, 140, 0, 0.1) 100%);
|
||||
transform: scale(1.01);
|
||||
background: rgba(74, 222, 128, 0.1);
|
||||
}
|
||||
|
||||
.thumbnail {
|
||||
width: 100px;
|
||||
height: 70px;
|
||||
object-fit: cover;
|
||||
border-radius: 10px;
|
||||
box-shadow: 0 3px 10px rgba(0,0,0,0.1);
|
||||
border: 2px solid #fff;
|
||||
tbody tr:last-child td {
|
||||
border-bottom: none;
|
||||
}
|
||||
|
||||
.sport-icon {
|
||||
font-size: 20px;
|
||||
text-align: center;
|
||||
width: 30px;
|
||||
}
|
||||
|
||||
.title-cell {
|
||||
font-weight: 600;
|
||||
color: #333;
|
||||
font-size: 18px;
|
||||
font-weight: 500;
|
||||
color: #e0e0e0;
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.title-cell a {
|
||||
color: #32cd32;
|
||||
text-decoration: none;
|
||||
transition: all 0.3s ease;
|
||||
font-weight: 600;
|
||||
color: #4ade80;
|
||||
text-decoration: none;
|
||||
transition: color 0.2s;
|
||||
}
|
||||
|
||||
.title-cell a:hover {
|
||||
color: #ff8c00;
|
||||
text-decoration: underline;
|
||||
transform: scale(1.05);
|
||||
color: #6ee7a7;
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
.time-cell {
|
||||
white-space: nowrap;
|
||||
color: #ff8c00;
|
||||
font-size: 16px;
|
||||
font-weight: 600;
|
||||
white-space: nowrap;
|
||||
color: #a0a0a0;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.sport-cell {
|
||||
color: #32cd32;
|
||||
font-size: 15px;
|
||||
font-weight: 600;
|
||||
color: #4ade80;
|
||||
font-size: 12px;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.league-cell {
|
||||
color: #555;
|
||||
font-size: 14px;
|
||||
font-weight: 500;
|
||||
color: #808080;
|
||||
font-size: 11px;
|
||||
}
|
||||
|
||||
.no-results {
|
||||
text-align: center;
|
||||
padding: 60px;
|
||||
color: #1a5f23;
|
||||
font-size: 18px;
|
||||
background: rgba(46, 139, 87, 0.7);
|
||||
border-radius: 10px;
|
||||
margin: 20px;
|
||||
text-align: center;
|
||||
padding: 30px;
|
||||
color: #a0a0a0;
|
||||
font-size: 14px;
|
||||
background: #2a2a2a;
|
||||
border-radius: 8px;
|
||||
margin: 20px;
|
||||
border: 1px solid #3a3a3a;
|
||||
}
|
||||
|
||||
#loading {
|
||||
text-align: center;
|
||||
font-size: 1.5em;
|
||||
margin-top: 50px;
|
||||
color: #fff;
|
||||
font-weight: 600;
|
||||
text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
|
||||
background: linear-gradient(45deg, #32cd32, #ff8c00);
|
||||
-webkit-background-clip: text;
|
||||
-webkit-text-fill-color: transparent;
|
||||
background-clip: text;
|
||||
text-align: center;
|
||||
font-size: 1.2em;
|
||||
margin-top: 30px;
|
||||
color: #4ade80;
|
||||
}
|
||||
|
||||
.loading-spinner {
|
||||
border: 5px solid rgba(50, 205, 50, 0.3);
|
||||
border-radius: 50%;
|
||||
border-top: 5px solid #ff8c00;
|
||||
width: 50px;
|
||||
height: 50px;
|
||||
animation: spin 1s linear infinite;
|
||||
margin: 20px auto;
|
||||
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); }
|
||||
0% { transform: rotate(0deg); }
|
||||
100% { transform: rotate(360deg); }
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.filters {
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.sport-buttons {
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
th, td {
|
||||
padding: 12px 8px;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.thumbnail {
|
||||
width: 70px;
|
||||
height: 50px;
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: 2.2rem;
|
||||
}
|
||||
|
||||
th:nth-child(4), td:nth-child(4) {
|
||||
display: none;
|
||||
}
|
||||
th, td {
|
||||
padding: 8px 6px;
|
||||
font-size: 11px;
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: 1.5rem;
|
||||
}
|
||||
|
||||
th:nth-child(4), td:nth-child(4) {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
@ -431,6 +392,24 @@ function formatDateTime(dateStr, timeStr) {
|
||||
}
|
||||
}
|
||||
|
||||
// === ikona pro sport ===
|
||||
function getSportIcon(sport) {
|
||||
const icons = {
|
||||
'Basketbal': '🏀',
|
||||
'Fotbal': '⚽',
|
||||
'Hokej': '🏒',
|
||||
'Volejbal': '🏐',
|
||||
'Florbal': '🥍',
|
||||
'Házenou': '🤾',
|
||||
'Házená': '🤾',
|
||||
'Tenis': '🎾',
|
||||
'Futsal': '⚽',
|
||||
'Atletika': '🏃',
|
||||
'Plavání': '🏊'
|
||||
};
|
||||
return icons[sport] || '🏆';
|
||||
}
|
||||
|
||||
// === vykreslení seznamu ===
|
||||
function renderList(items) {
|
||||
if (!items.length) {
|
||||
@ -443,7 +422,7 @@ function renderList(items) {
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Náhled</th>
|
||||
<th></th>
|
||||
<th>Název</th>
|
||||
<th>Čas</th>
|
||||
<th>Sport</th>
|
||||
@ -455,14 +434,14 @@ function renderList(items) {
|
||||
|
||||
for (const t of items) {
|
||||
const dateTimeStr = formatDateTime(t.date, t.time);
|
||||
const imgSrc = t.image || 'https://via.placeholder.com/80x60?text=Bez+náhledu';
|
||||
const league = t.league || '';
|
||||
const leaguePart = t.leaguePart || '';
|
||||
const fullLeague = `${league} ${leaguePart}`.trim();
|
||||
const sportIcon = getSportIcon(t.sport);
|
||||
|
||||
tableHTML += `
|
||||
<tr>
|
||||
<td><img src="${imgSrc}" alt="" class="thumbnail"></td>
|
||||
<td class="sport-icon">${sportIcon}</td>
|
||||
<td class="title-cell"><a href="${t.link}" target="_blank">${t.title}</a></td>
|
||||
<td class="time-cell">${dateTimeStr}</td>
|
||||
<td class="sport-cell">${t.sport || ''}</td>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user