pull/1/head
Jan Umbach 2024-05-29 22:58:10 +02:00
parent ab731bf80e
commit 2638b73999
2 changed files with 38 additions and 0 deletions

View File

@ -345,10 +345,15 @@ body {
{% render 'shx-StarRatingForm'
, content_type: 'init' %}
{% render 'shx-video-base'
, content_type: 'init' %}
{% include 'pagefly-app-header' %}
<script src="{{ 'anime.min.js' | asset_url }}" defer="defer"></script>
<script async src="{{ 'dotlottie-player.js' | asset_url }}"></script>
</head>
<body class="gradient{% if settings.animations_hover_elements != 'none' %} animate--hover-{{ settings.animations_hover_elements }}{% endif %}">

View File

@ -0,0 +1,33 @@
{% assign content_type = content_type | default: 'awdawd' %}
{% if content_type == 'wasd' %}
{% elsif content_type == "init" %}
{% style %}
.shx-video {
position: relative;
width: 100%;
padding-top: 56.25%;
overflow: hidden;
}
.shx-video__wrapper {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
.shx-video__wrapper video {
width: 100%;
height: 100%;
object-fit: cover;
}
{% endstyle %}
{% endif %}