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.
 
 
 
 
 

39 lines
1.4 KiB

<%- content_for :title, node_title(@node) %>
<%- content_for :main_controller, "answer" %>
<% image_attachment = @node.attachments&.select { |a| a.asset&.file&.image? }[0] %>
<% video_attachment = @node.attachments&.select { |a| a.asset&.file&.video? }[0] %>
<%= render partial: "stage_header" %>
<div class="hero-container">
<%= render_responsive_picture(image_attachment.asset, alt: "Hero", fetchpriority: "high") if image_attachment %>
<% if video_attachment %>
<%= video_tag rails_storage_proxy_path(video_attachment.asset.file),
muted: true,
loop: false,
playsinline: true,
preload: "auto",
data: { answer_target: "video" } %>
<% end %>
<article>
<%= @result_node.attachments[0]&.body&.html_safe %>
</article>
<%= svg "inter-ikea-systems" %>
<%= svg "ico-wave" %>
</div>
<article class="question-container">
<%= @result_node.attachments[0]&.body&.html_safe %>
</article>
<article class="answers-container">
<div>
<%= @result_node.attachments[1]&.body&.html_safe %>
</div>
<div>
<%= link_to tag.span(t("game.drumroll_see_the_result")),
{ action: "results" },
class: (@result_node.parent.chance? and @result_node.bad_answer?) ? "cta last_save" : "cta",
data: { action: "click->answer#exit", answer_full_param: true } %>
</div>
</article>