app/views/promethee/components/cover/_show.html.erb
<%
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>