A clean and minimal youtube frontend, without all the ads and whistles
JavaScript
style: filter buttons
Christian Fei784de960ad64
diff --git a/client/main.css b/client/main.cssindex 50735c7..7f49aa5 100644--- a/client/main.css+++ b/client/main.css@@ -343,10 +343,6 @@ search-videos {}-#filter-results-status {- height: 2em;- padding: 0.5rem;-}details {padding: 10px;@@ -365,13 +361,31 @@ details {-+#filters-container button {+ display: flex;+ align-items: center;+ justify-content: center;+ margin: 0.5em;+ padding: 0.5em 1em;+ font-size: 1rem;+ background-color: #f0f0f0;+ border: none;+ cursor: pointer;+ transition: background-color 0.3s ease;+ border-radius: 5px;+ color: #333;+}+#filter-results-status {+ height: 2em;+ padding: 0.5rem;+}[data-ignored="true"] {display: none;}#show-summarized-videos.active, #show-downloaded-videos.active, #show-ignored-videos.active {- background-color: #e2ffd8;+ background-color: #545454;+ color: #f0f0f0;}.show-downloaded-videos [data-downloaded="false"] {display: none;diff --git a/client/main.js b/client/main.jsindex b7f0b81..dae6d20 100644--- a/client/main.js+++ b/client/main.js@@ -24,13 +24,13 @@ const routes = {let videos = await fetch('/videos').then(res => res.json())console.log('videos.length', videos.length)if (videos.length === 0) {- document.querySelector('empty-state').style.display = 'block'+ document.querySelector('empty-state').style.display = ''document.querySelector('channels-list').style.display = 'none'document.querySelector('#filters-container').style.display = 'none'} else {document.querySelector('empty-state').style.display = 'none'- document.querySelector('channels-list').style.display = 'block'- document.querySelector('#filters-container').style.display = 'block'+ document.querySelector('channels-list').style.display = ''+ document.querySelector('#filters-container').style.display = ''}const $showDownloadedVideos = document.getElementById('show-downloaded-videos')