mirror of
https://github.com/ReviveMii/revivetube
synced 2025-04-29 12:39:25 -04:00
221 lines
6.8 KiB
HTML
221 lines
6.8 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
|
<title>{{ title }}</title>
|
|
<style>
|
|
.header {
|
|
background-color: #202020;
|
|
border-bottom:2px solid #2c2c2c;
|
|
padding: 10px 20px;
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
.logo {
|
|
font-size: 24px;
|
|
color: #fe0000;
|
|
font-weight: bold;
|
|
}
|
|
.search-container {
|
|
flex: 1;
|
|
text-align: center;
|
|
}
|
|
.search-bar {
|
|
width: 400px;
|
|
padding: 8px;
|
|
font-size: 16px;
|
|
border: 1px solid #313131;
|
|
background-color: #121212;
|
|
color: #fff;
|
|
}
|
|
.search-bar:hover {
|
|
border: 1px solid #268ee9;
|
|
}
|
|
.search-button {
|
|
padding: 8px 15px;
|
|
font-size: 16px;
|
|
background-color: #222222;
|
|
border:1px solid #3d3d3d;
|
|
color: white;
|
|
cursor: pointer;
|
|
}
|
|
.search-button:hover {
|
|
border: 1px solid #268ee9;
|
|
}
|
|
a {
|
|
color: #3ea6ff;
|
|
text-decoration: none;
|
|
}
|
|
a:hover {
|
|
color: #46bbff;
|
|
}
|
|
body {
|
|
font-family: Arial, sans-serif;
|
|
color: #fff;
|
|
background-color: #0f0f0f;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
.header {
|
|
background-color: #202020;
|
|
border-bottom: 2px solid #2c2c2c;
|
|
padding: 10px 20px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
.logo {
|
|
font-size: 24px;
|
|
color: #fe0000;
|
|
font-weight: bold;
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
.logo img {
|
|
width: 24px;
|
|
height: 24px;
|
|
margin-right: 8px;
|
|
}
|
|
.search-container {
|
|
flex: 1;
|
|
text-align: center;
|
|
}
|
|
.search-bar {
|
|
width: 400px;
|
|
padding: 8px;
|
|
font-size: 16px;
|
|
border: 1px solid #313131;
|
|
background-color: #121212;
|
|
color: #fff;
|
|
}
|
|
.search-bar:hover {
|
|
border: 1px solid #268ee9;
|
|
}
|
|
.search-button {
|
|
padding: 8px 15px;
|
|
font-size: 16px;
|
|
background-color: #222222;
|
|
border: 1px solid #3d3d3d;
|
|
color: white;
|
|
cursor: pointer;
|
|
}
|
|
.search-button:hover {
|
|
border: 1px solid #268ee9;
|
|
}
|
|
.content {
|
|
padding: 20px;
|
|
text-align: center;
|
|
}
|
|
.channel-info {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
justify-content: center;
|
|
}
|
|
.channel-logo {
|
|
width: 36px;
|
|
height: 36px;
|
|
border-radius: 50%;
|
|
}
|
|
.like-image {
|
|
width: 20px;
|
|
height: auto;
|
|
}
|
|
#videooutline {
|
|
width: fit-content;
|
|
margin: auto;
|
|
border-bottom: 6px solid #181818;
|
|
border-right: 6px solid #181818;
|
|
}
|
|
#videooutline:hover {
|
|
border-bottom: 6px solid #111111;
|
|
border-right: 6px solid #111111;
|
|
}
|
|
.video-container {
|
|
background-color: #131313;
|
|
border: 1px solid #525252;
|
|
text-align: center;
|
|
padding: 10px;
|
|
width: fit-content;
|
|
}
|
|
.video-container:hover {
|
|
border: 1px solid #0f0f0f;
|
|
}
|
|
.comments-section {
|
|
margin-top: 20px;
|
|
}
|
|
.comment {
|
|
background-color: #222;
|
|
padding: 10px;
|
|
margin: 10px 0;
|
|
border-radius: 5px;
|
|
}
|
|
.comment-author {
|
|
font-weight: bold;
|
|
color: #3ea6ff;
|
|
}
|
|
.comment-text {
|
|
margin-top: 5px;
|
|
}
|
|
.comment-likes {
|
|
font-size: 12px;
|
|
color: #aaa;
|
|
}
|
|
</style>
|
|
<script src="https://unpkg.com/@ruffle-rs/ruffle"></script>
|
|
</head>
|
|
<body>
|
|
<div class="header">
|
|
<a href="/" style="text-decoration: none;"><div class="logo"><img src="../favicon.ico" style="width:32px; height:32px; display:inline; position:relative; top:3px; right:3px; padding-right:2px;"><span style="position:relative; top:-4px; padding-left:5px; border-left:1px solid #323232;">
|
|
ReviveTube</span></div></a>
|
|
<div class="search-container">
|
|
<form action="/" method="get">
|
|
<input class="search-bar" name="query" placeholder="Search YouTube" type="text">
|
|
<input type="submit" class="search-button" value="Search">
|
|
</form>
|
|
</div>
|
|
</div>
|
|
<div class="content">
|
|
<div id="videooutline">
|
|
<div class="video-container">
|
|
<object data="/player.swf" height="256" type="application/x-shockwave-flash" width="384">
|
|
<param name="wmode" value="transparent">
|
|
<param name="allowFullScreen" value="false">
|
|
<param name="flashvars" value="filename={{ video_flv }}">
|
|
</object>
|
|
</div>
|
|
</div>
|
|
<div class="container">
|
|
<h1 class="video-title">{{ title }}</h1>
|
|
<div class="video-meta">{{ viewCount }} Views • {{ publishedAt }}</div>
|
|
<br>
|
|
<div class="channel-info">
|
|
<img src="{{ channel_logo_url }}" alt="Channel Logo" class="channel-logo">
|
|
<div>
|
|
<a href="/channel?channel_id={{ channelId }}">{{ uploader }}</a>
|
|
<div class="subscriber-count">{{ subscriberCount }} Subscribers</div>
|
|
</div>
|
|
</div>
|
|
<br>
|
|
<div class="like-container">
|
|
<img src="/likeicon.png" alt="Like" class="like-image">
|
|
<span>{{ likeCount }}</span>
|
|
</div><br>
|
|
<div class="comments-section">
|
|
<h2>Comments ({{ commentCount }})</h2>
|
|
{% if comments %}
|
|
{% for comment in comments %}
|
|
<div class="comment">
|
|
<div class="comment-author">{{ comment.author }}</div>
|
|
<div class="comment-text">{{ comment.text | safe}}</div>
|
|
<div class="comment-likes">👍 {{ comment.likeCount }} | {{ comment.publishedAt }}</div>
|
|
</div>
|
|
{% endfor %}
|
|
{% else %}
|
|
<p>No Comments ):</p>
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html>
|