9 changed files with 123 additions and 10 deletions
After Width: | Height: | Size: 288 KiB |
Binary file not shown.
@ -0,0 +1,27 @@
|
||||
[block] |
||||
name = Slide |
||||
button_label = Slide |
||||
|
||||
[fields.title] |
||||
label = Title |
||||
type = string |
||||
|
||||
[fields.description] |
||||
label = Description |
||||
type = string |
||||
|
||||
[fields.button_text] |
||||
label = Button Text |
||||
type = string |
||||
|
||||
[fields.button_link] |
||||
label = Button Link |
||||
type = url |
||||
|
||||
[fields.background_image] |
||||
label = Background Image |
||||
type = text |
||||
|
||||
[fields.video_mp4] |
||||
label = Video MP4 |
||||
type = text |
@ -0,0 +1,21 @@
|
||||
<!-- active --> |
||||
<div class="carousel-item"> |
||||
{% if this.video_mp4 %} |
||||
<video autoplay muted loop> |
||||
<source src="{{ this.video_mp4 }}" type="video/mp4"> |
||||
</video> |
||||
{% elif this.background_image %} |
||||
<img src="{{ this.background_image }}" class="d-block w-100" alt="..."> |
||||
{% endif %} |
||||
<div class="carousel-caption d-none d-md-block"> |
||||
<h3 class="display-4">{{ this.title }}</h5> |
||||
<p class="lead"> |
||||
{{ this.description }} |
||||
<br> |
||||
<a href="{{ this.button_link }}" class="btn btn-primary btn-lg" role="button" aria-pressed="true"> |
||||
{{ this.button_text }} |
||||
</a> |
||||
</p> |
||||
</div> |
||||
</div> |
||||
|
@ -1,3 +0,0 @@
|
||||
<div class="text-block text-block-{{ this.class }}"> |
||||
{{ this.text }} |
||||
</div> |
Loading…
Reference in new issue