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