Actions

Template

Videos: Difference between revisions

From Dune Awakening DB

Created page with "{{#css:Template:VideoGallery/styles.css}} <div class="video-gallery-main-container"> <!-- Video Categories Section (60% width) --> <div class="video-categories"> <!-- Search Bar (Optional) --> <div class="video-search-bar"> <input type="text" class="video-search-input" placeholder="Search videos..."> <button class="video-search-button">Search</button> </div> <!-- Tab Navigation --> <div clas..."
 
mNo edit summary
Line 1: Line 1:
{{#css:Template:VideoGallery/styles.css}}
{{TemplateStyles|Template:VideoGallery/styles.css}}
 
<div class="video-gallery-main-container">
<div class="video-gallery-main-container">
    <!-- Video Categories Section (60% width) -->
  <!-- 60 % column – categories -->
    <div class="video-categories">
  <div class="video-categories">
        <!-- Search Bar (Optional) -->
    <!-- Search -->
        <div class="video-search-bar">
    <div class="video-search-bar">
            <input type="text" class="video-search-input" placeholder="Search videos...">
      <input type="text" class="video-search-input" placeholder="Search videos…">
            <button class="video-search-button">Search</button>
      <button class="video-search-button">Search</button>
        </div>
    </div>
       
 
        <!-- Tab Navigation -->
    <!-- Tabs -->
        <div class="video-tabs-nav">
    <div class="video-tabs-nav">
            <button class="video-tab active" data-tab="featured">◆ Featured</button>
      <button class="video-tab active" data-tab="featured">◆ Featured</button>
            <button class="video-tab" data-tab="leveling">⬆ Leveling</button>
      <button class="video-tab" data-tab="leveling">⬆ Leveling</button>
            <button class="video-tab" data-tab="crafting">⚒ Crafting</button>
      <button class="video-tab" data-tab="crafting">⚒ Crafting</button>
            <button class="video-tab" data-tab="building">⌂ Building</button>
      <button class="video-tab" data-tab="building">⌂ Building</button>
            <button class="video-tab" data-tab="pve">⚔ PVE</button>
      <button class="video-tab" data-tab="pve">⚔ PVE</button>
            <button class="video-tab" data-tab="pvp">⚔ PVP</button>
      <button class="video-tab" data-tab="pvp">⚔ PVP</button>
        </div>
    </div>
       
 
        <!-- Tab Content Containers -->
    <!-- Tab panes -->
        <div class="video-tab-content active" data-content="featured">
    <div class="video-tab-content active" data-content="featured">
            {{#invoke:VideoGallery|renderVideos|category=featured}}
      {{#invoke:VideoGallery|renderVideos|category=featured}}
        </div>
       
        <div class="video-tab-content" data-content="leveling">
            {{#invoke:VideoGallery|renderVideos|category=leveling}}
        </div>
       
        <div class="video-tab-content" data-content="crafting">
            {{#invoke:VideoGallery|renderVideos|category=crafting}}
        </div>
       
        <div class="video-tab-content" data-content="building">
            {{#invoke:VideoGallery|renderVideos|category=building}}
        </div>
       
        <div class="video-tab-content" data-content="pve">
            {{#invoke:VideoGallery|renderVideos|category=pve}}
        </div>
       
        <div class="video-tab-content" data-content="pvp">
            {{#invoke:VideoGallery|renderVideos|category=pvp}}
        </div>
     </div>
     </div>
      
     <div class="video-tab-content" data-content="leveling">
     <!-- Video Player Panel (40% width) -->
      {{#invoke:VideoGallery|renderVideos|category=leveling}}
    <div class="video-player-panel" id="videoPlayerPanel">
    </div>
        <div class="no-video-selected">
    <div class="video-tab-content" data-content="crafting">
            <div class="placeholder-icon">▶</div>
      {{#invoke:VideoGallery|renderVideos|category=crafting}}
            <p>Select a video to watch</p>
     </div>
        </div>
    <div class="video-tab-content" data-content="building">
      {{#invoke:VideoGallery|renderVideos|category=building}}
    </div>
    <div class="video-tab-content" data-content="pve">
      {{#invoke:VideoGallery|renderVideos|category=pve}}
    </div>
    <div class="video-tab-content" data-content="pvp">
      {{#invoke:VideoGallery|renderVideos|category=pvp}}
    </div>
  </div>
 
  <!-- 40 % column – player -->
  <div class="video-player-panel" id="videoPlayerPanel">
    <div class="no-video-selected">
      <div class="placeholder-icon">▶</div>
      <p>Select a video to watch</p>
     </div>
     </div>
  </div>
</div>
</div>


<!-- Store video data for JavaScript -->
<!-- JSON payload for JS -->
<script type="application/json" id="video-gallery-data">
<script type="application/json" id="video-gallery-data">
{{#invoke:VideoGallery|getVideoData}}
{{#invoke:VideoGallery|getVideoData}}
</script>
</script>


<!-- Include JavaScript -->
<!-- Load the VideoGallery gadget -->
{{#widget:VideoGalleryJS}}
{{#tag:script|mw.loader.load('ext.gadget.VideoGallery');}}

Revision as of 23:28, 1 June 2025

Template:TemplateStyles

<script type="application/json" id="video-gallery-data"> Script error: The function "getVideoData" does not exist. </script>

<script>mw.loader.load('ext.gadget.VideoGallery');</script>