Skip to content
Ideasoft
Diğer Modallar

Video Modal

Turkish content

This section is currently available in Turkish only. Component code and Twig variable names are language-independent.

Sitenizde bir banner'a veya bir buton'a tıklandığında popup'ta video gösterilmesini sağlayan komponent

Görünüm

Video Modal

Kod Yapısı

Html, Scss ve Json kodlarını kopyalayıp siteniz üzerinde ilgili alana eklediğinizde çalışmasını sağlayabilirsiniz. Kodların kullanımı ile ilgili bilgileri okuyarak nasıl eklemeniz gerektiğini öğrenebilirsiniz.

Test sitemizde Video Modal komponenti kullanılmıştır. Örneği demo sitede görüntüleyin.

HTML

index.html
{% if theme.settings.video_modal_check %} <div class="video-modal"> <a data-fancybox href="{{ theme.settings.video_modal_link }}"> <span>{{ theme.settings.video_modal_title }}</span> <svg width="24" height="24" viewBox="0 0 24 24" fill="none"> <path d="M11 19C15.4183 19 19 15.4183 19 11C19 6.58172 15.4183 3 11 3C6.58172 3 3 6.58172 3 11C3 15.4183 6.58172 19 11 19Z" stroke="#777777" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M21 20.9999L16.65 16.6499" stroke="#777777" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M11 8V14" stroke="#777777" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M8 11H14" stroke="#777777" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/> </svg> </a> </div> {% endif %}

SCSS

style.css
/* Video Modal */ .video-modal { margin-bottom: var(--spacer-9); > a { display: flex; justify-content: space-between; color: $color-text; font-size: var(--font-size-18); padding: var(--spacer-6); background-color: #fff; border: 1px solid $color-border; border-radius: $border-radius; &:hover { color: $color-primary-lighten; } } }

JSON

JSONindex.js
"video_modal_check": { "type": "checkbox", "default_value": "1", "label": "Video Modal Durumu" }, "video_modal_title": { "type": "text", "default_value": "Video Modal", "label": "Video Modal Metni" }, "video_modal_link": { "type": "text", "default_value": "", "label": "Video Modal Linki", "info": "Bu alana eklemek istediğiniz videonun linkini girmelisiniz" }
Last modified on