Can view some videos
All checks were successful
Build / build (push) Successful in 3m15s

This commit is contained in:
2025-03-16 11:50:45 +01:00
parent 35d76f4ead
commit c36a533d17
10 changed files with 394 additions and 23 deletions

View File

@@ -8,10 +8,21 @@
</head>
<body>
<h1>Viva++</h1>
<div class="video-box">
<h2>{{.Title}}</h2>
<div>{{.Description}}</div>
<img src="{{.Thumbnail}}" alt="Thumbnail" />
<div class="video-container">
<div class="video-box">
<div class="thumbnail-container">
<a href="/video/{{.ID}}">
<img src="{{.Thumbnail}}" alt="Thumbnail" class="video-thumbnail" />
<div class="play-button">
<span class="play-symbol">▶</span>
</div>
</a>
</div>
<div class="video-info">
<h2 class="video-title">{{.Title}}</h2>
<p class="video-description">{{.Description}}</p>
</div>
</div>
</div>
</body>
</html>

35
web/video.gohtml Normal file
View File

@@ -0,0 +1,35 @@
{{- /*gotype: vivaplusdl.VideoPlayerVM*/}}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>{{.Title}} - Viva++</title>
<link href="/static/style.css" rel="stylesheet">
</head>
<body>
<h1>Viva++</h1>
<div class="back-button-container">
<a href="/" class="back-button">← Back to Home</a>
</div>
<div class="video-player-container">
<div class="video-player-box">
<h2 class="video-title">{{.Title}}</h2>
<div class="video-player">
<video controls autoplay src="/stream/{{.ID}}">
Your browser does not support the video tag.
</video>
</div>
<div class="video-player-info">
<p class="video-description">{{.Description}}</p>
<!--
<div class="video-actions">
<form method="post" action="/video/{{.ID}}/mark-watched">
<button type="submit" class="mark-watched">Mark as Watched</button>
</form>
</div>
-->
</div>
</div>
</div>
</body>
</html>