23 lines
1.1 KiB
Plaintext
23 lines
1.1 KiB
Plaintext
<div class="bubble" data-controller="upload-preview" style="view-transition-name: bubble-<%= bubble.id -%>; --bubble-color: <%= bubble.color %>; <%= bubble_rotation(bubble) -%> <%= bubble_size(bubble) %>">
|
|
<h1 class="bubble__title">
|
|
<%= turbo_frame_tag bubble, :edit do %>
|
|
<%= link_to bubble.title, edit_bubble_path(bubble), class: "txt-undecorated" %>
|
|
<% end %>
|
|
</h1>
|
|
|
|
<svg class="bubble__svg" viewBox="0 0 990 990" xmlns="http://www.w3.org/2000/svg">
|
|
<path d="m0 0h990v990h-990z" fill="none" stroke="none" />
|
|
<path d="m391.65 879.47c-110.52-15.95-212.21-91.86-255.92-191.23-66.78-143.65-41.62-347.61 48.08-481.17 368.33-516.3 1252.97 520.2 451.03 660.78-44.07 8.84-88.98 13.49-133.01 15.68-36.69 2-73.37 1.91-109.99-4.03z"/>
|
|
</svg>
|
|
|
|
<%= link_to bubble, class: "bubble__link" do %>
|
|
<span class="for-screen-reader"><%= bubble.title %></span>
|
|
<% end %>
|
|
|
|
<%= render "bubbles/boosts", bubble: bubble %>
|
|
<%= render "bubbles/color", bubble: bubble %>
|
|
<%= render "bubbles/date", bubble: bubble %>
|
|
<%= render "bubbles/image", bubble: bubble %>
|
|
<%= render "bubbles/tags", bubble: bubble %>
|
|
</div>
|