| @ -0,0 +1 @@ | |||
| <svg xmlns="http://www.w3.org/2000/svg" width="22" height="22" viewBox="0 0 22 22"><path d="M14.5,7.25c-2.69,0-7.25.58-7.25,2.75v8.8c0,2.03,3.76,2.95,7.25,2.95s7.25-.92,7.25-2.95v-8.8c0-2.17-4.56-2.75-7.25-2.75ZM14.5,8.75c3.69,0,5.61.92,5.75,1.22-.14.36-2.07,1.28-5.75,1.28s-5.59-.91-5.75-1.21h0c.16-.38,2.08-1.29,5.75-1.29ZM8.75,11.78c1.57.73,4.04.97,5.75.97s4.18-.24,5.75-.97v2.69c-.16.37-2.08,1.28-5.75,1.28s-5.61-.92-5.75-1.25v-2.72ZM14.5,20.25c-3.77,0-5.75-1.08-5.75-1.45v-2.52c1.57.73,4.04.97,5.75.97s4.18-.24,5.75-.97v2.52c0,.37-1.98,1.45-5.75,1.45Z"/><path d="M1.75,7.83v-3.05c1.57.73,4.04.97,5.75.97s4.18-.24,5.75-.97v1.22h1.5v-3C14.75.83,10.19.25,7.5.25S.25.83.25,3v15c0,.08.01.15.03.23.54,1.72,3.73,2.52,5.72,2.52v-1.5c-1.89,0-3.91-.76-4.25-1.39v-3.11c1.25.68,2.99,1,4.25,1v-1.5c-1.91,0-3.95-.79-4.25-1.42v-3.08c1.25.68,2.99,1,4.25,1v-1.5c-1.91,0-3.95-.79-4.25-1.42ZM7.5,1.75c3.69,0,5.61.92,5.75,1.22-.14.36-2.07,1.28-5.75,1.28S1.91,3.34,1.75,3.04h0c.16-.38,2.08-1.29,5.75-1.29Z"/></svg> | |||
| @ -0,0 +1 @@ | |||
| <svg xmlns="http://www.w3.org/2000/svg" width="20" height="22" viewBox="0 0 20 22"><path d="M16.5,4.75h-4v-1.5h4v1.5ZM19.75,1v20c0,.41-.34.75-.75.75H1c-.41,0-.75-.34-.75-.75V5c0-.41.34-.75.75-.75h1.25v-1.75c0-.41.34-.75.75-.75h4c.41,0,.75.34.75.75v1.75h1.5V1c0-.41.34-.75.75-.75h9c.41,0,.75.34.75.75ZM3.75,4.25h2.5v-1h-2.5v1ZM18.25,1.75h-7.5v3.25c0,.41-.34.75-.75.75H1.75v14.5h16.5V1.75ZM10,8.47l.81.75c1.1,1.02,2.94,2.72,2.94,4.36,0,1.8-1.4,3.66-3.75,3.66s-3.75-1.86-3.75-3.66c0-1.65,1.84-3.35,2.95-4.36l.8-.75ZM10,10.52c-.85.79-2.25,2.16-2.25,3.06,0,1.06.84,2.16,2.25,2.16s2.25-1.1,2.25-2.16c0-.91-1.4-2.28-2.25-3.06Z"/></svg> | |||
| @ -0,0 +1 @@ | |||
| <svg xmlns="http://www.w3.org/2000/svg" width="22" height="19" viewBox="0 0 22 19"><path d="M21.48,8.88c-.07-.13-.16-.26-.25-.38-.83-1.04-2.24-1.04-5.05-1.04h-.4c-.44,0-.89,0-.99-.04-.05-.03-.09-.08-.1-.11,0-.11.12-.52.24-.91l.27-.86c.08-.25.12-.38.14-.49.29-1.18.1-2.41-.53-3.45-.07-.11-.14-.22-.29-.43-.11-.17-.17-.25-.23-.31-.64-.73-1.76-.8-2.5-.16-.06.05-.13.12-.26.27l-4.09,4.53c-1.02,1.13-1.58,1.75-1.88,2.54-.02.06-.04.13-.06.19-.66-.6-1.53-.97-2.49-.97-1.52,0-2.75,1.23-2.75,2.75v6c0,1.52,1.23,2.75,2.75,2.75,1.23,0,2.31-.6,2.99-1.51.11.16.23.3.37.44,1.11,1.07,2.64,1.07,5.7,1.07h.51c2.49,0,3.74,0,4.87-.65.11-.06.22-.13.32-.2,1.07-.73,1.59-1.85,2.62-4.07,1.17-2.51,1.75-3.77,1.1-4.95ZM5.25,15c0,1.24-1.01,2.25-2.25,2.25-.69,0-1.25-.56-1.25-1.25v-6c0-.69.56-1.25,1.25-1.25,1.24,0,2.25,1.01,2.25,2.25v4ZM19.02,13.21c-.92,1.97-1.38,2.96-2.11,3.46-.07.05-.14.09-.22.14-.78.45-1.9.45-4.12.45h-.51c-2.65,0-3.98,0-4.65-.65-.63-.61-.66-1.75-.66-4.48v-.97c0-1.36,0-2.04.21-2.58.21-.54.67-1.05,1.6-2.08L12.64,1.96c.07-.08.11-.12.14-.15.05-.04.12-.07.18-.07.08,0,.15.03.21.09.03.03.06.08.11.16.12.18.18.26.24.35.43.71.55,1.53.36,2.33-.02.1-.06.2-.12.4h0s-.27.87-.27.87c-.25.82-.39,1.27-.24,1.77.12.4.38.74.74.96.43.27.92.27,1.79.27h.4c2.18,0,3.49,0,3.88.48.04.05.08.11.11.17.28.51-.25,1.68-1.15,3.6Z"/></svg> | |||
| @ -1 +0,0 @@ | |||
| <%- content_for :title, node_title(@node) %> | |||
| @ -0,0 +1,84 @@ | |||
| <%- content_for :title, node_title(@node) %> | |||
| <div class="results-header"> | |||
| <h1><%= result_headline(current_player) %></h1> | |||
| </div> | |||
| <div class="results-tagline"> | |||
| <div> | |||
| <div><%= result_description(current_player) %></div> | |||
| </div> | |||
| <%= svg "ico-wave" %> | |||
| </div> | |||
| <div class="impact food-waste"> | |||
| <div class="icon"><%= svg "ico-last-save" %></div> | |||
| <h3><%= impact_label(:food_waste) %></h3> | |||
| <p><%= impact_message(current_player, :food_waste) %></p> | |||
| <details class="impact-learn-more"> | |||
| <summary> | |||
| <h4><%= t("game.results.what_many_dont_know") %></h4> | |||
| <span class="details-icon"></span> | |||
| </summary> | |||
| <% impact_learn_more(:food_waste).each do |paragraph| %> | |||
| <p><%= paragraph %></p> | |||
| <% end %> | |||
| </details> | |||
| </div> | |||
| <div class="impact emissions"> | |||
| <div class="icon"><%= svg "ico-fuel" %></div> | |||
| <h3><%= impact_label(:emissions) %></h3> | |||
| <p><%= impact_message(current_player, :emissions) %></p> | |||
| <details class="impact-learn-more"> | |||
| <summary> | |||
| <h4><%= t("game.results.what_many_dont_know") %></h4> | |||
| <span class="details-icon"></span> | |||
| </summary> | |||
| <% impact_learn_more(:emissions).each do |paragraph| %> | |||
| <p><%= paragraph %></p> | |||
| <% end %> | |||
| </details> | |||
| </div> | |||
| <div class="impact income"> | |||
| <div class="icon"><%= svg "ico-coins" %></div> | |||
| <h3><%= impact_label(:income) %></h3> | |||
| <p><%= impact_message(current_player, :income) %></p> | |||
| <details class="impact-learn-more"> | |||
| <summary> | |||
| <h4><%= t("game.results.what_many_dont_know") %></h4> | |||
| <span class="details-icon"></span> | |||
| </summary> | |||
| <% impact_learn_more(:income).each do |paragraph| %> | |||
| <p><%= paragraph %></p> | |||
| <% end %> | |||
| </details> | |||
| </div> | |||
| <div class="like-container"> | |||
| <%= tag.h3 t("game.did_you_like_this_game") %> | |||
| <div> | |||
| <button class="thumbs-up"><%= svg "ico-thumb" %></button> | |||
| <button class="thumbs-down"><%= svg "ico-thumb" %></button> | |||
| </div> | |||
| </div> | |||
| <div class="newsletter-container"> | |||
| <%= tag.h3 t("game.join_our_newsletter") %> | |||
| <%= tag.p t("game.join_our_newsletter_desc") %> | |||
| <%= link_to "#" do %> | |||
| <%= tag.span svg("ico-arrow-right") %> | |||
| <%= tag.span t("game.sounds_good") %> | |||
| <% end %> | |||
| </div> | |||
| <%= button_to tag.span(t("game.save_another_tomato")), start_path, class: "cta" %> | |||