diff --git a/html/discover.ejs b/html/discover.ejs index 549f8824..5a994dfe 100644 --- a/html/discover.ejs +++ b/html/discover.ejs @@ -18,532 +18,409 @@ along with this program. If not, see https://www.gnu.org/licenses/. --> <% if (!isMobile) { %> +<% if (!isMobile) { %> + + + + - Poke | Discover - - - - - - - - - - - - - - - - - - - - - -
- - - - - - + .search { + display: flex; align-items: center; gap: 8px; + padding: 8px 10px; border-radius: 999px; + font-family: "poketube flex", Inter, system-ui; + } + .search input { + flex: 1; background: transparent; color: var(--text-primary); + border: 0; outline: 0; font-size: 14.5px; padding: 6px 8px; min-width: 120px; + font-family: "poketube flex", Inter, system-ui; + } + .search button { + border: 0; padding: 8px 12px; border-radius: 999px; color: #fff; + background: linear-gradient(90deg, var(--brand), #ff5bcf); + box-shadow: 0 0 0 0 rgba(0,0,0,0); cursor: pointer; + font-family: "poketube flex", Inter, system-ui; + } + .search button:hover { box-shadow: 0 0 0 3px var(--ring); } -
-
-
-
- - - - - - +
+ <%- x.title %> + +
+
+ <% }) %> +
+
+ -
-

Discover Popular Videos On Poke :3

-

uses the united states trending page(s) from youtube!!

- <% if (!tab) { %> + - - - + if ('IntersectionObserver' in window) { + const io = new IntersectionObserver((entries, obs) => { + entries.forEach(entry => { + if (entry.isIntersecting) { + load(entry.target); + obs.unobserve(entry.target); + } + }); + }, { rootMargin: '200px 0px' }); + nodes.forEach(n => io.observe(n)); + } else { + const onScroll = () => { + const vh = window.innerHeight || document.documentElement.clientHeight; + nodes.forEach(n => { + if (!n.hasAttribute('data-bg')) return; + const r = n.getBoundingClientRect(); + if (r.top < vh + 200 && r.bottom > -200) load(n); + }); + }; + onScroll(); + window.addEventListener('scroll', onScroll, { passive: true }); + window.addEventListener('resize', onScroll); + } + }()); + + +<% } %> + <% } %>