<%- include('../../_common/ja/_head', {
  key: 'docs',
  pagetitle: 'Video | Document'
}) %>

<%- include('../../_component/docs/ja/_header') %>

<%- include('../../_component/docs/ja/_menu') %>

<div class="uc-grid _small-col-full _nowrap">

<%- include('../../_component/docs/ja/_sidebar', {
  current: 'video'
}) %>

  <div class="uc-grid-cell _col-fit">

  <main class="uc-content">
    <section class="uc-section">

      <h2 class="uc-section-title">Video</h2>
      <p>You can optimize video embedding by specifying the <code>uc-video</code> class.</p>

      <div class="doc-component-box" id="c-1">
        <h3>1. Basic</h3>
        <p>Create a basic video block.</p>

        <div class="doc-component-preview">
          <div class="uc-content">
            <div class="uc-video">
              <iframe width="560" height="315" src="https://www.youtube.com/embed/IcrbM1l_BoI" frameborder="0" allowfullscreen=""></iframe>
            </div>
          </div>
        </div>
        <div class="uc-code-unit">
<pre><code class="html">&lt;div class="uc-video"&gt;
  &lt;iframe width="560" height="315" src="https://www.youtube.com/embed/IcrbM1l_BoI" frameborder="0" allowfullscreen=""&gt;&lt;/iframe&gt;
&lt;/div&gt;
</code></pre>
        </div>
      </div>

      <div class="doc-component-box" id="c-2">
        <h3>2. Fit to width</h3>
        <p>By specifying the <code>_full</code> class, you can display the image in the full width.</p>

        <div class="doc-component-preview">
          <div class="uc-video _full">
            <iframe width="560" height="315" src="https://www.youtube.com/embed/IcrbM1l_BoI" frameborder="0" allowfullscreen=""></iframe>
          </div>
        </div>
        <div class="uc-code-unit">
<pre><code class="html">&lt;div class="uc-video _full"&gt;
  &lt;iframe width="560" height="315" src="https://www.youtube.com/embed/IcrbM1l_BoI" frameborder="0" allowfullscreen=""&gt;&lt;/iframe&gt;
&lt;/div&gt;
</code></pre>
        </div>
      </div>

    </section>

    <div class="uc-pager-unit">
      <div class="uc-btn"><a href="./code.html">← Code</a></div>
      <div class="uc-btn _primary"><a href="./pager.html">Pager →</a></div>
    </div>
  </main>

  </div>

</div>

<%- include('../../_component/_footer') %>

<%- include('../../_common/_foot') %>
