add video slide feature

This commit is contained in:
denyskon committed 2023-08-07 11:14:40 +02:00
1 parent e203dc7597
commit 321e4a1f38
12264 files changed
+1566 -668542

No files matched your search

File diff suppressed because it is too large. Load diff
+13 -1
View File
@@ -2,7 +2,19 @@
<div class="swiper-wrapper">
{{ range .Site.Data.slide }}
<div class="swiper-slide">
<img src="{{ .image }}" alt="">
{{ with .image }}
<img src="{{ . }}">
{{ end }}
{{ with .video }}
<video class="slide-video" src="{{ . }}" controls autoplay loop></video>
<style>
.slide-video {
height: calc(100vh - 120px);
width: 100vw;
object-fit: cover;
}
</style>
{{ end }}
<div class="s-fade-txt">
<h1 class="text-4xl {{ or .color "text-white" }}">{{ .title }}</h1>
</div>