Merge pull request 'Update Gradient Background (Landing Page)' (#64) from Korbs/poketube:main into main

Reviewed-on: https://codeberg.org/ashley/poke/pulls/64
This commit is contained in:
Ashley //// 2024-02-14 03:58:06 +00:00
commit 5b75ff995b
6 changed files with 166 additions and 117 deletions

BIN
css/bg-480.webm Normal file

Binary file not shown.

BIN
css/bg-720.webm Normal file

Binary file not shown.

BIN
css/bg-full.webm Normal file

Binary file not shown.

View file

@ -1,5 +1,3 @@
/* cyrillic */
@font-face {
font-family: "Ubuntu";
@ -691,6 +689,7 @@ html {
}
body {
background-color: #250717;
color: #fff;
font-family: ubuntu, sans-serif;
margin: auto;
@ -700,9 +699,6 @@ body {
min-height: 100vh;
flex-direction: column;
justify-content: flex-start;
background-image: radial-gradient(circle, #231638, #2b160e, #09250e, #0f132b);
animation: gradient 64s ease infinite;
background-size: 400% 400%;
}
body {cursor: url('/static/cursor.ico'), default}
@ -717,17 +713,6 @@ span > a,
li > a {cursor: url('/static/cursor-pointer.ico'), pointer}
.btn {cursor: url('/static/cursor-pointer.ico'), pointer !important}
@keyframes gradient {
0% {
background-position: 0 50%;
}
50% {
background-position: 100% 50%;
}
100% {
background-position: 0 50%;
}
}
@font-face {
font-family: "PokeTube Flex";
src: url("https://p.poketube.fun/https://cdn.glitch.global/43b6691a-c8db-41d4-921c-8cf6aa0d9108/robotoflex.ttf?v=16683434286881");
@ -896,3 +881,28 @@ button[type="submit"]:hover {
margin: auto;
}
}
video {
position: fixed;
top: 0px;
left: 0px;
width: 100%;
height: 100%;
object-fit: cover;
z-index: -1;
opacity: 0.2;
pointer-events: none;
}
@media screen and (max-width: 1919px) {
#HD-BG {
display: none;
}
}
@media screen and (min-width: 1920px) {
#SD-BG {
display: none;
}
}

View file

@ -20,6 +20,7 @@
--->
<!DOCTYPE html>
<html lang="en">
<head>
<title>Poke | The Ultimate Privacy App!</title>
<meta charset="UTF-8">
@ -32,8 +33,11 @@
<link rel="manifest" href="/manifest.json">
<meta name="darkreader-lock"> <!-- tells dark reader that the site has a dark theme and to turn itself off -->
<meta content="▶▶ Poke - The Ultimate privacy App!" property=og:title>
<meta content="Watch Silly videos or search the interwebs while being anonymous on poke!" property=twitter:description>
<meta content="https://cdn.glitch.global/d68d17bb-f2c0-4bc3-993f-50902734f652/aa70111e-5bcd-4379-8b23-332a33012b78.image.png?v=1701898829884" property="og:image" />
<meta content="Watch Silly videos or search the interwebs while being anonymous on poke!"
property=twitter:description>
<meta
content="https://cdn.glitch.global/d68d17bb-f2c0-4bc3-993f-50902734f652/aa70111e-5bcd-4379-8b23-332a33012b78.image.png?v=1701898829884"
property="og:image" />
<meta content="summary_large_image" name="twitter:card" />
<% if(isOldWindows) { %>
<style>
@ -46,12 +50,14 @@
h1 {
font-family: "Ginto Nord" !important;
}
</style> <% } %>
</style>
<% } %>
<style>
body {
overflow-x: hidden;
}
.subtitle {
text-align: center;
color: #FFFF00;
@ -69,35 +75,50 @@ body {
0% {
transform: scale(0.875) rotate(-20deg)
}
100% {
transform: scale(1) rotate(-20deg)
}
}
</style>
</head>
<body>
<video id="HD-BG" playsinline autoplay muted loop><source src="/bg-full.webm" type="video/webm"/></video>
<video id="SD-BG" playsinline autoplay muted loop><source src="/bg-480.webm" type="video/webm"/></video>
<div class="header">
<div class="header-content">
<div class="header-content-start">
<a href="/" style="text-decoration:none;"><img style="width: 130px;" src="/css/logo-poke.svg"/><p class="subtitle"> <%- random %></p></a>
<a href="/" style="text-decoration:none;"><img style="width: 130px;" src="/css/logo-poke.svg" />
<p class="subtitle"> <%- random %></p>
</a>
</div>
<div class="header-content-center" style="margin-left: -30px;">
<form action=/search><input class=search-bar autocomplete="on" id=fname name=query><button class="btn btn-success" type=submit><i class="fa-light fa-search"></i></button></form>
<form action=/search><input class=search-bar autocomplete="on" id=fname name=query><button
class="btn btn-success" type=submit><i class="fa-light fa-search"></i></button></form>
</div>
<div class="header-content-end">
<a href="https://codeberg.org/Ashley/poketube/src/branch/main/instances.json"><i class="fa-sharp fa-solid fa-server"></i></a>
<a href="https://codeberg.org/Ashley/poketube/src/branch/main/instances.json"><i
class="fa-sharp fa-solid fa-server"></i></a>
<a href="/apps"><i class="fa-sharp fa-solid fa-grid-2"></i></a>
<a href="/game-hub"><i class="fa-sharp fa-solid fa-gamepad-modern"></i></a>
</div>
</div>
</div>
<div class="features">
<a style="color: white; text-decoration: none;" href="https://war.ukraine.ua/donate/"><p><i class="fa-duotone fa-handshake-angle"></i> Support Ukraine </p></a>
<a style="color: white; text-decoration: none;" href="https://buildpalestine.com/2021/05/15/trusted-organizations-to-donate-to-palestine/"><p><i class="fa-duotone fa-handshake-angle"></i> Support Palestine</p></a>
<a style="color: white; text-decoration: none;" href="https://war.ukraine.ua/donate/">
<p><i class="fa-duotone fa-handshake-angle"></i> Support Ukraine </p>
</a>
<a style="color: white; text-decoration: none;"
href="https://buildpalestine.com/2021/05/15/trusted-organizations-to-donate-to-palestine/">
<p><i class="fa-duotone fa-handshake-angle"></i> Support Palestine</p>
</a>
</div>
<div class="landing">
<h1>The Ultimate Privacy App</h1>
<p style="max-width: 800px; text-align: center; margin: 20px auto;"> Be Anonymous watching epic videos, searching thingys on the interwebs and listening to music on poketube - the free yt front end thats focused on ur privacy!!</p>
<p style="max-width: 800px; text-align: center; margin: 20px auto;"> Be Anonymous watching epic videos, searching
thingys on the interwebs and listening to music on poketube - the free yt front end thats focused on ur privacy!!
</p>
<div class="features">
<p><i class="fa-sharp fa-solid fa-eye-low-vision"></i> No Tracking & Ads</p>
<p><i class="fa-sharp fa-solid fa-rabbit-running"></i>Very Fast</p>
@ -106,9 +127,17 @@ body {
</div>
<!-- source: https://picrew.me/share?cd=GD9wwCo5YY -->
<img src="/static/poke-chan-outfit-a.png" style="height: 400px;width: 369px;mask-image: none;margin-top: -14em;margin-left: -2em;margin-bottom: -13em;z-index: 999;position: absolute;-webkit-transform: scaleX(-1);transform: scaleX(-1);border-radius: 0px;" title="Poke-chan sitting :3">
<img src="/static/poke-chan-outfit-a.png"
style="height: 400px;width: 369px;mask-image: none;margin-top: -14em;margin-left: -2em;margin-bottom: -13em;z-index: 999;position: absolute;-webkit-transform: scaleX(-1);transform: scaleX(-1);border-radius: 0px;"
title="Poke-chan sitting :3">
<img src="/static/poke-screnshot-a.png" />
<style>@import url(https://ka-p.fontawesome.com/releases/v6.4.2/css/pro.min.css?token=fe06fc099b);@import url(https://ka-p.fontawesome.com/releases/v6.4.2/css/pro-v4-shims.min.css?token=fe06fc099b);@import url(https://ka-p.fontawesome.com/releases/v6.4.2/css/pro-v5-font-face.min.css?token=fe06fc099b);@import url(https://ka-p.fontawesome.com/releases/v6.4.2/css/pro-v4-font-face.min.css?token=fe06fc099b);@import url(https://ka-p.fontawesome.com/assets/fe06fc099b/108504408/custom-icons.css?token=fe06fc099b);</style>
<style>
@import url(https://ka-p.fontawesome.com/releases/v6.4.2/css/pro.min.css?token=fe06fc099b);
@import url(https://ka-p.fontawesome.com/releases/v6.4.2/css/pro-v4-shims.min.css?token=fe06fc099b);
@import url(https://ka-p.fontawesome.com/releases/v6.4.2/css/pro-v5-font-face.min.css?token=fe06fc099b);
@import url(https://ka-p.fontawesome.com/releases/v6.4.2/css/pro-v4-font-face.min.css?token=fe06fc099b);
@import url(https://ka-p.fontawesome.com/assets/fe06fc099b/108504408/custom-icons.css?token=fe06fc099b);
</style>
<script>
// @license magnet:?xt=urn:btih:1f739d935676111cfff4b4693e3816e664797050&dn=gpl-3.0.txt GPL-3.0-or-later
@ -131,4 +160,5 @@ body {
</script>
</div>
</body>
</html>

View file

@ -166,6 +166,15 @@ module.exports = function (app, config, renderTemplate) {
app.get("/favicon.ico", function (req, res) {
res.sendFile("favicon.ico", { root: cssDir });
});
app.get("/bg-full.webm", function (req, res) {
res.sendFile("bg-full.webm", { root: cssDir });
});
app.get("/bg-720.webm", function (req, res) {
res.sendFile("bg-720.webm", { root: cssDir });
});
app.get("/bg-480.webm", function (req, res) {
res.sendFile("bg-480.webm", { root: cssDir });
});
app.get("/css/:id", (req, res) => {
const filePath = path.join(cssDir, req.params.id);