Skip to content
Snippets Groups Projects
Commit 94c4e4a2 authored by Olivia206's avatar Olivia206
Browse files

fixed image style

parent dd42f2f9
No related branches found
No related tags found
No related merge requests found
......@@ -2,7 +2,8 @@
.video
@include aspect-ratio(16/9, 'iframe')
@supports not (aspect-ratio: 1)
iframe
iframe,
img
min-height: 400px
position: relative
&-player
......@@ -22,6 +23,7 @@
width: 100%
height: 100%
img
object-fit: cover
z-index: 1
&::after
content: ''
......
......@@ -16,7 +16,10 @@
<div class="video">
<div class="video-player">
<button class="video-player__play" title ="{{- i18n "blocks.video.play" -}}" aria-label="{{- i18n "blocks.video.play" -}}"></button>
<img src="https://img.youtube.com/vi/XEEUOiTgJL0/hqdefault.jpg" alt="">
<picture>
<source srcset="https://osuny-1b4da.kxcdn.com/g1qn3b0yvdg2t0wosq059xocpyq1?format=webp&width=1800&height=0&&fit=inside&quality=50" type="image/jpg" />
<img src="https://osuny-1b4da.kxcdn.com/g1qn3b0yvdg2t0wosq059xocpyq1?format=webp&width=1800&height=0&&fit=inside&quality=50" alt="" />
</picture>
</div>
{{ $url := .url}}
{{ if strings.Contains $url "vimeo" }}
......
{{- with site.Data.website.external_domains -}}
<meta http-equiv="-Content-Security-Policy"
<meta http-equiv="Content-Security-Policy"
content="
default-src 'self' {{ delimit . " " }}
{{ if not hugo.IsProduction }}'unsafe-inline'{{ end }}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment