From 0c4d741c6de5cd375928f02ecd6847384cdb76e5 Mon Sep 17 00:00:00 2001 From: VlastikYoutubeKo <56507931+VlastikYoutubeKo@users.noreply.github.com> Date: Thu, 28 Aug 2025 23:53:37 +0200 Subject: [PATCH] Update index.html --- index.html | 611 ++++++++++++++++++++++++++++++++++++++++++++++++----- 1 file changed, 555 insertions(+), 56 deletions(-) diff --git a/index.html b/index.html index f09adfd..4da5ab2 100644 --- a/index.html +++ b/index.html @@ -14,6 +14,9 @@ --accent-color: #0d6efd; --header-bg: #ffffff; --danger-color: #dc3545; + --success-color: #198754; + --warning-color: #ffc107; + --secondary-bg: #f1f3f4; } @media (prefers-color-scheme: dark) { @@ -25,21 +28,35 @@ --accent-color: #4dabf7; --header-bg: #1e1e1e; --danger-color: #f06571; + --success-color: #51cf66; + --warning-color: #ffd43b; + --secondary-bg: #2d2d2d; } } + * { + box-sizing: border-box; + } + body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; background-color: var(--bg-color); color: var(--text-color); - transition: background-color 0.2s, color 0.2s; + transition: background-color 0.3s ease, color 0.3s ease; + line-height: 1.6; } .container { - max-width: 900px; + max-width: 1200px; margin: 0 auto; - padding: 2rem; + padding: 1rem; + } + + @media (min-width: 768px) { + .container { + padding: 2rem; + } } header { @@ -47,19 +64,49 @@ margin-bottom: 3rem; border-bottom: 1px solid var(--border-color); padding-bottom: 1.5rem; + position: relative; } header h1 { - font-size: 3rem; + font-size: clamp(2rem, 5vw, 3rem); margin: 0; + background: linear-gradient(45deg, var(--accent-color), #6f42c1); + -webkit-background-clip: text; + -webkit-text-fill-color: transparent; + background-clip: text; + } + + .stats-bar { + display: flex; + justify-content: center; + gap: 2rem; + margin-top: 1rem; + flex-wrap: wrap; + } + + .stat-item { + text-align: center; + padding: 0.5rem; + } + + .stat-number { + font-size: 1.5rem; + font-weight: bold; + color: var(--accent-color); + } + + .stat-label { + font-size: 0.9rem; + color: var(--muted-text-color); } .project-info { - background-color: var(--header-bg); + background: linear-gradient(135deg, var(--header-bg) 0%, var(--secondary-bg) 100%); border: 1px solid var(--border-color); - border-radius: 8px; + border-radius: 12px; padding: 1.5rem; margin-bottom: 2rem; + box-shadow: 0 2px 4px rgba(0,0,0,0.1); } .project-info h2, .project-info h3 { @@ -70,36 +117,130 @@ color: var(--accent-color); text-decoration: none; font-weight: 500; + transition: color 0.2s ease; } .project-info a:hover { text-decoration: underline; + color: var(--success-color); } - .playlist-links p { - margin: 0.5rem 0; + .playlist-links { + display: grid; + grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); + gap: 1rem; + margin: 1rem 0; + } + + .playlist-link { + display: block; + padding: 1rem; + background-color: var(--secondary-bg); + border: 1px solid var(--border-color); + border-radius: 8px; + text-decoration: none; + transition: all 0.2s ease; + } + + .playlist-link:hover { + transform: translateY(-2px); + box-shadow: 0 4px 8px rgba(0,0,0,0.15); } - .search-container { + .controls-bar { + display: flex; + gap: 1rem; margin-bottom: 1.5rem; + flex-wrap: wrap; + align-items: center; + } + + .search-container { + flex: 1; + min-width: 250px; + position: relative; } #search-input { width: 100%; - padding: 0.75rem 1rem; + padding: 0.75rem 1rem 0.75rem 2.5rem; font-size: 1rem; - border-radius: 8px; - border: 1px solid var(--border-color); + border-radius: 25px; + border: 2px solid var(--border-color); background-color: var(--header-bg); color: var(--text-color); - box-sizing: border-box; + transition: border-color 0.2s ease, box-shadow 0.2s ease; + } + + #search-input:focus { + outline: none; + border-color: var(--accent-color); + box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1); + } + + .search-icon { + position: absolute; + left: 0.75rem; + top: 50%; + transform: translateY(-50%); + color: var(--muted-text-color); + pointer-events: none; + } + + .view-toggle { + display: flex; + border: 1px solid var(--border-color); + border-radius: 8px; + overflow: hidden; + } + + .view-button { + padding: 0.5rem 1rem; + background: var(--header-bg); + border: none; + color: var(--text-color); + cursor: pointer; + transition: all 0.2s ease; + } + + .view-button.active { + background: var(--accent-color); + color: white; + } + + .expand-collapse-buttons { + display: flex; + gap: 0.5rem; + } + + .action-button { + padding: 0.5rem 1rem; + border: 1px solid var(--border-color); + border-radius: 6px; + background: var(--header-bg); + color: var(--text-color); + cursor: pointer; + font-size: 0.9rem; + transition: all 0.2s ease; + } + + .action-button:hover { + background: var(--accent-color); + color: white; + border-color: var(--accent-color); } .category-folder { border: 1px solid var(--border-color); - border-radius: 8px; + border-radius: 12px; margin-bottom: 1rem; background-color: var(--header-bg); + overflow: hidden; + transition: all 0.3s ease; + } + + .category-folder:hover { + box-shadow: 0 4px 12px rgba(0,0,0,0.1); } .category-header { @@ -109,9 +250,39 @@ justify-content: space-between; align-items: center; font-size: 1.2rem; + font-weight: 600; + background: linear-gradient(90deg, var(--header-bg) 0%, var(--secondary-bg) 100%); + transition: all 0.2s ease; + } + + .category-header:hover { + background: var(--secondary-bg); + } + + .category-title { + display: flex; + align-items: center; + gap: 0.5rem; + } + + .channel-count { + background: var(--accent-color); + color: white; + padding: 0.25rem 0.5rem; + border-radius: 12px; + font-size: 0.8rem; font-weight: 500; } + .expand-icon { + transition: transform 0.3s ease; + font-size: 1.2rem; + } + + .expand-icon.expanded { + transform: rotate(180deg); + } + .channel-table { width: 100%; border-collapse: collapse; @@ -128,37 +299,199 @@ font-weight: 600; font-size: 0.9rem; color: var(--muted-text-color); + background-color: var(--secondary-bg); + } + + .channel-table tr:hover { + background-color: var(--secondary-bg); } .channel-name { display: flex; align-items: center; + gap: 0.75rem; + } + + .channel-logo { + width: 32px; + height: 24px; + object-fit: contain; + border-radius: 4px; + background-color: var(--secondary-bg); + border: 1px solid var(--border-color); + } + + .logo-fallback { + width: 32px; + height: 24px; + display: flex; + align-items: center; + justify-content: center; + background: linear-gradient(45deg, var(--accent-color), #6f42c1); + border-radius: 4px; + color: white; + font-size: 10px; + font-weight: bold; + text-transform: uppercase; } .channel-table a { color: var(--accent-color); text-decoration: none; font-weight: 500; + transition: color 0.2s ease; + } + + .channel-table a:hover { + color: var(--success-color); + } + + .status-indicator { + width: 8px; + height: 8px; + border-radius: 50%; + display: inline-block; + margin-right: 0.5rem; + } + + .status-stable { + background-color: var(--success-color); + } + + .status-unstable { + background-color: var(--warning-color); } .unstable-icon { - color: #ffc107; + color: var(--warning-color); font-weight: bold; - margin-left: 8px; cursor: help; - font-size: 1.2rem; + font-size: 1rem; } .report-button { font-size: 0.8rem; - padding: 4px 8px; - border-radius: 5px; + padding: 6px 12px; + border-radius: 20px; border: 1px solid var(--danger-color); background: transparent; color: var(--danger-color); cursor: pointer; text-decoration: none; display: inline-block; + transition: all 0.2s ease; + } + + .report-button:hover { + background: var(--danger-color); + color: white; + } + + .loading-spinner { + display: flex; + justify-content: center; + align-items: center; + padding: 3rem; + } + + .spinner { + width: 40px; + height: 40px; + border: 4px solid var(--border-color); + border-top: 4px solid var(--accent-color); + border-radius: 50%; + animation: spin 1s linear infinite; + } + + @keyframes spin { + 0% { transform: rotate(0deg); } + 100% { transform: rotate(360deg); } + } + + .no-results { + text-align: center; + padding: 3rem; + color: var(--muted-text-color); + } + + .grid-view { + display: grid; + grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); + gap: 1rem; + } + + .grid-category { + border: 1px solid var(--border-color); + border-radius: 12px; + background: var(--header-bg); + padding: 1rem; + } + + .grid-category h3 { + margin-top: 0; + font-size: 1.1rem; + } + + .grid-channels { + display: flex; + flex-direction: column; + gap: 0.5rem; + } + + .grid-channel { + display: flex; + justify-content: space-between; + align-items: center; + padding: 0.5rem; + border: 1px solid var(--border-color); + border-radius: 6px; + font-size: 0.9rem; + } + + .grid-channel-info { + display: flex; + align-items: center; + gap: 0.5rem; + } + + .grid-channel-logo { + width: 20px; + height: 15px; + object-fit: contain; + border-radius: 2px; + } + + .grid-logo-fallback { + width: 20px; + height: 15px; + display: flex; + align-items: center; + justify-content: center; + background: linear-gradient(45deg, var(--accent-color), #6f42c1); + border-radius: 2px; + color: white; + font-size: 8px; + font-weight: bold; + } + + @media (max-width: 768px) { + .controls-bar { + flex-direction: column; + align-items: stretch; + } + + .channel-table th:nth-child(n+3), + .channel-table td:nth-child(n+3) { + display: none; + } + + .stats-bar { + gap: 1rem; + } + + .playlist-links { + grid-template-columns: 1fr; + } } @@ -171,7 +504,7 @@