diff --git a/web/components/watch/video_player.templ b/web/components/watch/video_player.templ new file mode 100644 index 0000000..4710e13 --- /dev/null +++ b/web/components/watch/video_player.templ @@ -0,0 +1,148 @@ +package watch + +import ( + "mal/web/components" + "mal/web/shared" +) + +templ VideoPlayer(data shared.WatchPageData) { + {{ streamToken := shared.ModeToken(data.InitialMode, data.ModeSources) }} + {{ hasDub := shared.ModeAvailable(data.AvailableModes, "dub") }} + {{ hasSub := shared.ModeAvailable(data.AvailableModes, "sub") }} +
+
+ +
+
+
+ + +
+
+ +
+
+
+
+
+
+ +
+ + + + +
+ 00:00 / 00:00 +
+
+ + + + + +
+
+
+
+
+}