Sha256: e8185751c2de54df4a4cf2df20373542e4a343249440d14b936ab38af934fdcc

Contents?: true

Size: 901 Bytes

Versions: 24

Compression:

Stored size: 901 Bytes

Contents

<%
blob = blob_from_data component[:attributes].dig(:image, :value)

surtitle = component[:attributes].dig(:surtitle, :value)&.to_s
title = component[:attributes].dig(:title, :value)&.to_s
subtitle = component[:attributes].dig(:subtitle, :value)&.to_s
%>
<div  class="<%= promethee_class_for(component) %>"
      id="<%= promethee_id_for component %>"
      style="background-image: url(<%= url_for(blob.variant(resize: '1920>', quality: 95)) if blob %>)">
    <div class="container">
      <div class="promethee__component__row">
        <div class="promethee__component__content">
          <% if surtitle.present? %>
            <p><%= surtitle %></p>
          <% end %>
          <% if title.present? %>
            <h1><%= title %></h1>
          <% end %>
          <% if subtitle.present? %>
            <p><%= subtitle %></p>
          <% end %>
        </div>
      </div>
    </div>
</div>

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
promethee-5.1.1 app/views/promethee/components/cover/_show.html.erb
promethee-5.1.0 app/views/promethee/components/cover/_show.html.erb
promethee-5.0.2 app/views/promethee/components/cover/_show.html.erb
promethee-5.0.1 app/views/promethee/components/cover/_show.html.erb
promethee-5.0.0 app/views/promethee/components/cover/_show.html.erb
promethee-4.1.28 app/views/promethee/components/cover/_show.html.erb
promethee-4.1.27 app/views/promethee/components/cover/_show.html.erb
promethee-4.1.26 app/views/promethee/components/cover/_show.html.erb
promethee-4.1.25 app/views/promethee/components/cover/_show.html.erb
promethee-4.1.24 app/views/promethee/components/cover/_show.html.erb
promethee-4.1.23 app/views/promethee/components/cover/_show.html.erb
promethee-4.1.22 app/views/promethee/components/cover/_show.html.erb
promethee-4.1.21 app/views/promethee/components/cover/_show.html.erb
promethee-4.1.20 app/views/promethee/components/cover/_show.html.erb
promethee-4.1.19 app/views/promethee/components/cover/_show.html.erb
promethee-4.1.18 app/views/promethee/components/cover/_show.html.erb
promethee-4.1.17 app/views/promethee/components/cover/_show.html.erb
promethee-4.1.16 app/views/promethee/components/cover/_show.html.erb
promethee-4.1.15 app/views/promethee/components/cover/_show.html.erb
promethee-4.1.14 app/views/promethee/components/cover/_show.html.erb