Открыть меню
Переключить меню настроек
Открыть персональное меню
Вы не представились системе
Ваш IP-адрес будет виден всем, если вы внесёте какие-либо изменения.

Шаблон:VideoBanner: различия между версиями

Материал из Едрён Батон
Нет описания правки
Нет описания правки
 
(не показано 8 промежуточных версий этого же участника)
Строка 1: Строка 1:
{{#tag:html|
{{#tag:html|
<div id="cover-container" class="wiki-cover" data-video-url="{{FilePath:{{{video-file|}}}}}">
<div id="cover-container" class="wiki-cover" style="border-radius: 8px; -webkit-mask-image: -webkit-radial-gradient(white, black); position: relative;" data-video-url="{{FilePath:{{{video-file|}}}}}">
   <div class="cover-image-layer" id="cover-image-layer">
   <div class="cover-image-layer" id="cover-image-layer">
     <img src="{{FilePath:{{{image|}}}}}" alt="Video Cover" style="width: 100%; height: 100%; object-fit: cover;">
     <img src="{{FilePath:{{{image|}}}}}" alt="Video Cover" style="width: 100%; height: 100%; object-fit: cover;">
    {{#if:{{{video-file|}}}|
     <div class="play-overlay" id="inline-play-btn" title="Воспроизвести">
     <div class="play-overlay" id="inline-play-btn" title="Воспроизвести">
       <svg viewBox="0 0 24 24"><path d="M8 5v14l11-7z"/></svg>
       <svg viewBox="0 0 24 24"><path d="M8 5v14l11-7z"/></svg>
     </div>
     </div>
    |}}
   </div>
   </div>
   <div class="cover-video-layer" id="cover-video-layer" style="display: none;">
   <div class="cover-video-layer" id="cover-video-layer" style="display: none; position: absolute; top: 0; left: 0; width: 100%; height: 100%;">
     <div id="inline-video-container" style="width: 100%; height: 100%;"></div>
     <div id="inline-video-container" style="width: 100%; height: 100%;"></div>
     <div class="video-controls">
     <div class="video-controls">
      <button class="control-btn" id="mute-btn" title="Включить/выключить звук">
        <svg id="mute-icon" viewBox="0 0 24 24" fill="currentColor">
          <path d="M16.5 12c0-1.77-1.02-3.29-2.5-4.03v2.21l2.45 2.45c.03-.2.05-.41.05-.63zm2.5 0c0 .94-.2 1.82-.54 2.64l1.51 1.51C20.63 14.91 21 13.5 21 12c0-4.28-2.99-7.86-7-8.73v2.06c2.89.86 5 3.54 5 6.67zM4.27 3L3 4.27 7.73 9H3v6h4l5 5v-6.73l4.25 4.25c-.67.52-1.42.93-2.25 1.18v2.06c1.38-.31 2.63-.95 3.69-1.81L19.73 21 21 19.73l-9-9L4.27 3zM12 4L9.91 6.09 12 8.18V4z"/>
        </svg>
      </button>
       <button class="control-btn" id="expand-btn" title="Открыть в окне">
       <button class="control-btn" id="expand-btn" title="Открыть в окне">
         <svg viewBox="0 0 24 24" fill="currentColor"><path d="M7 14H5v5h5v-2H7v-3zm-2-4h2V7h3V5H5v5zm12 7h-3v2h5v-5h-2v3zM14 5v2h3v3h2V5h-5z"/></svg>
         <svg viewBox="0 0 24 24" fill="currentColor"><path d="M7 14H5v5h5v-2H7v-3zm-2-4h2V7h3V5H5v5zm12 7h-3v2h5v-5h-2v3zM14 5v2h3v3h2V5h-5z"/></svg>
Строка 18: Строка 25:
     </div>
     </div>
   </div>
   </div>
  {{#if:{{{video-file|}}}|
  <div style="position: absolute; bottom: 10px; left: 12px; display: flex; align-items: center; gap: 5px; z-index: 10; user-select: none;">
    <span
      style="display: inline-flex; align-items: center; justify-content: center; width: 15px; height: 15px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,0.55); font-size: 10px; font-weight: bold; color: rgba(255,255,255,0.55); line-height: 1; flex-shrink: 0; cursor: default;"
      onmouseenter="document.getElementById('vbs-tip').style.display='block'"
      onmouseleave="document.getElementById('vbs-tip').style.display='none'"
    >i</span>
    <span
      style="font-size: 12px; color: rgba(255,255,255,0.55); cursor: default;"
      onmouseenter="document.getElementById('vbs-tip').style.display='block'"
      onmouseleave="document.getElementById('vbs-tip').style.display='none'"
    >Доступна поддержка видео-баннера</span>
    <div id="vbs-tip" style="display: none; position: absolute; bottom: 24px; left: 0; width: 280px; background: rgba(20,20,20,0.97); border: 1px solid rgba(255,255,255,0.12); border-radius: 8px; padding: 10px 13px; font-size: 12px; color: rgba(255,255,255,0.82); line-height: 1.6; pointer-events: none;">
      Этот баннер поддерживает возможность воспроизводить видео. Такие баннеры предназначены для шоукейса геймплея, механик, предметов, ролей и других фишек сервера.
    </div>
  </div>
  |}}
</div>
</div>
}}
}}

Текущая версия от 11:55, 13 апреля 2026

Video Cover