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

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

Материал из Едрён Батон
Нет описания правки
Нет описания правки
 
(не показаны 2 промежуточные версии этого же участника)
Строка 1: Строка 1:
{{#tag:html|
{{#tag:html|
<div id="cover-container" class="wiki-cover" style="border-radius: 8px; -webkit-mask-image: -webkit-radial-gradient(white, black);" 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;">
Строка 11: Строка 11:
   <div class="cover-video-layer" id="cover-video-layer" style="display: none; position: absolute; top: 0; left: 0; width: 100%; height: 100%;">
   <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="Включить/выключить звук">
       <button class="control-btn" id="mute-btn" title="Включить/выключить звук">
Строка 26: Строка 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>
{{#if:{{{video-file|}}}|
<div class="video-banner-support" style="display: flex; align-items: flex-start; gap: 6px; margin-top: 8px; font-size: 13px; color: #aaa; line-height: 1.5;">
  <span style="display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid #aaa; font-size: 11px; font-weight: bold; margin-top: 1px; cursor: default;" title="Этот баннер поддерживает возможность воспроизводить видео, такие баннеры предназначены для показа геймплея или возможностей механик, предметов, ролей и других фишек сервера.">i</span>
  <span>Поддержка видео-баннера</span>
</div>
|}}
}}
}}

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

Video Cover