diff --git a/app/views/shared/_stickers_display.html.erb b/app/views/shared/_stickers_display.html.erb index 43d753562..dcf699e61 100644 --- a/app/views/shared/_stickers_display.html.erb +++ b/app/views/shared/_stickers_display.html.erb @@ -1,14 +1,36 @@ -
-
-
-
-
- <% 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 %> +
+
+ <%= image_tag event.sticker_image_path, class: "w-4/5 h-4/5 object-contain", style: "transform: rotate(#{(-10..10).to_a.sample}deg)" %> +
+
<% end %> - <% end %> -
+
+ <% end %> + + + <% (9 - events.count).times do %> +
+
+
+
+
+
+ <% end %>