add video slide feature

This commit is contained in:
2023-08-07 11:14:40 +02:00
parent e203dc7597
commit 321e4a1f38
12264 changed files with 1566 additions and 668542 deletions

File diff suppressed because it is too large Load Diff

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>