1
0
Fork 0
mirror of https://codeberg.org/ashley/poke.git synced 2024-11-17 03:14:40 -05:00
poke/html/account-me.ejs

96 lines
2.3 KiB
Text
Raw Normal View History

2023-10-08 02:41:14 -04:00
<!DOCTYPE html><html>
<head>
2023-10-08 13:36:12 -04:00
<title>PokeTube | Subscriptions </title>
2023-10-16 11:07:14 -04:00
<meta name="viewport" content="width=device-1200px, initial-scale=1.0, shrink-to-fit=yes, viewport-fit=cover">
2023-10-08 13:36:12 -04:00
<link href=/css/yt-ukraine.svg?v=6 rel=icon>
<link href=/css/app.main.css?v=44600 rel=stylesheet>
2023-10-08 02:41:14 -04:00
<style>
/* Define the grid container */
.grid-container {
display: grid;
grid-template-columns: repeat(2, 0.2fr);
gap: 2px; /* Set the gap between grid items */
margin-left: auto;
margin-right: auto;
max-width: 15em;
}
/* Style for grid items */
.grid-item {
background-color: #333;
padding: 20px;
2024-01-06 08:29:33 -05:00
max-width:5em;
2023-10-08 02:41:14 -04:00
text-align: center;
border-radius: 1em;
}
2023-10-08 13:36:12 -04:00
body{
font-family:sans-serif;
color:#fff;
background-image: radial-gradient(circle, #231638, #2b160e, #09250e, #0f132b);
animation: gradient 64s ease infinite;
background-size: 400% 400%;}
2023-10-08 02:41:14 -04:00
2023-10-08 13:36:12 -04:00
h1 {
font-family:"poketube flex";
font-weight: 800;
font-stretch: extra-expanded;
}
2023-10-08 02:41:14 -04:00
a {
background: #111;
padding: 5px;
color: #fff;
2023-10-08 13:36:12 -04:00
text-decoration: none !important;
2023-10-08 02:41:14 -04:00
border-radius: 5px;
}
2023-10-08 13:36:12 -04:00
@keyframes gradient {
0% {
background-position: 0 50%;
}
50% {
background-position: 100% 50%;
}
100% {
background-position: 0 50%;
}
}
2023-10-08 02:41:14 -04:00
</style>
</head>
<body>
User: <%- userid %><br>
2023-10-08 13:36:12 -04:00
<i><b>do not share ur user id with anyone</b></i><br><br>
<div>
<a style="margin-top:-59px; float: right" href="/api/get-channel-subs?ID=<%- userid %>">view json</a>
</div>
2023-10-08 02:41:14 -04:00
<br>
<center>
<h1>
My subscriptions
</h1>
</center>
<div class="grid-container">
2023-10-08 13:36:12 -04:00
<% if (userSubs) { %>
2023-10-08 02:41:14 -04:00
<% for (const channelID in userSubs) { %>
<div class="grid-item">
2024-01-06 08:29:33 -05:00
<img style="width:5em;border-radius:5px" src="<%= userSubs[channelID].avatar %>" alt="Avatar"><br >
2023-10-08 02:41:14 -04:00
<br>
<%= userSubs[channelID].channelName %><br>
2024-01-06 08:29:33 -05:00
<div style="gap: 1px;display: flex;margin-left: -12px;">
2023-10-08 02:41:14 -04:00
<a href="/api/remove-channel-sub?ID=<%- userid %>&channelID=<%= channelID %>" style="margin-bottom:1px">unsub </a> <a href="/channel?id=<%= channelID %>">view</a>
</div> </div>
<% } %>
2023-10-08 13:36:12 -04:00
<% } %>
2023-10-08 02:41:14 -04:00
</div>
</div>
</body>
2023-12-15 00:09:10 -05:00
</html>
2023-12-28 08:53:21 -05:00