volunteers/app/views/kanta/show.html.haml

17 lines
315 B
Plaintext
Raw Normal View History

#app
.flex.justify-center
2023-02-07 18:34:19 +02:00
= #@image.attributes
2023-02-05 16:18:18 +02:00
.flex.justify-center
2023-02-07 18:56:28 +02:00
%a.underline{ e_click: "bg_change" , r_class: 'bg'}
{{ bg }}
2023-02-05 16:18:18 +02:00
:opal
class Clicker < VueR::Application
2023-02-07 18:56:28 +02:00
def bg_change
self.bg = "bg-cyan-50"
end
2023-02-05 16:18:18 +02:00
end
2023-02-06 19:34:06 +02:00
kanta = Clicker.new(bg: 'bg-cyan-200')
2023-02-05 17:47:51 +02:00
kanta.mount("#app")