- <% events.shuffle.each do |event| %>
- <%= link_to event, class: "max-w-[10vw]", style: "transform: rotate(#{(-20...20).to_a.sample}deg) translateY(#{(0...10).to_a.sample}vw) translateX(#{(0...10).to_a.sample}vh) scale(#{100 + (-10...10).to_a.sample}%)" do %>
- <%= image_tag event.sticker_image_path, class: "transition transition-transform hover:scale-105" %>
+
+
+
+
+
+ <%= events.count %> STAMPS COLLECTED
+
+
+
+
+
+
+ <% events.each_with_index do |event, index| %>
+
+ <%= link_to event, class: "block h-full w-full" do %>
+
<% end %>
- <% end %>
-
+
+ <% end %>
+
+
+ <% (9 - events.count).times do %>
+
+ <% end %>