You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

24 lines
742 B

<%- content_for :title, node_title(@node) %>
<% image_attachment = @node.attachments.select { |a| a.asset&.file&.image? }[0] %>
<%= render partial: "stage_header" %>
<div class="hero-container">
<%# render_responsive_picture(image_attachment.asset, alt: "Hero", fetchpriority: "high") %>
<article>
<%= @result_node.attachments[0]&.body&.html_safe %>
</article>
<%= svg "ico-wave" %>
</div>
<article class="answers-container">
<%= @result_node.attachments[1]&.body&.html_safe %>
<div>
<%= link_to tag.span(t("game.drumroll_see_the_result")),
{ action: "result" },
class: (@result_node.parent.chance? and @result_node.bad_answer?) ? "cta last_save" : "cta" %>
</div>
</article>