Sha256: a7a588979507c09b90bfe01ec6999f4073d84e52d628ba647db73b6f8930b3dd

Contents?: true

Size: 1.25 KB

Versions: 3

Compression:

Stored size: 1.25 KB

Contents

<%= render component_tag(style: slide_styles, class: {"with-title": title?}) do %>
  <div class="slide-aspect">
    <div class="slide-container">

      <div class="slide-layout">
        <div class="slide-group">
          <% if title? %>
            <header class="slide-header">
              <h3 class="slide-title" data-role="title">
                <%= title %>
              </h3>  
            </header>
          <% end %>

          <div class="slide-content" data-slide-region="content-1">
            <% if text_1? %>
              <div class="slide-text" data-role="text-1">
                <%= text_1 %>
              </div>
            <% end %>
            <% if image_1? %>
              <div class="slide-media" data-role="media-1">
                <%= image_1 %>
              </div>
            <% end %>
          </div>
        </div>

        <div class="slide-content" data-slide-region="content-2">
          <% if text_2? %>
            <div class="slide-text" data-role="text-2">
              <%= text_2 %>
            </div>
          <% end %>
          <% if image_2? %>
            <div class="slide-media" data-role="media-2">
              <%= image_2 %>
            </div>
          <% end %>
        </div>
      </div>
    </div>
  </div>
<% end %>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
coveragebook_components-0.6.2 app/components/coco/book/blocks/slides/editable_slide/editable_slide.html.erb
coveragebook_components-0.6.1 app/components/coco/book/blocks/slides/editable_slide/editable_slide.html.erb
coveragebook_components-0.6.0 app/components/coco/book/blocks/slides/editable_slide/editable_slide.html.erb