5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-24 18:46:22 +00:00
panel/app/views/sites/_designs_mobile.haml

21 lines
1,022 B
Text
Raw Normal View History

= form_for site, html: { class: form_class(site) } do |f|
-# Tablet and mobile views with 1 columns and accordion
.row.d-lg-none
.col
%h1.pb-3.text-center.font-weight-bolder= t('.selector')
- @designs.each do |design|
2023-11-29 14:39:51 +00:00
%details.styled.pl-2.mb-n1.border-magenta.border-solid
%summary
%h5.font-weight-bolder.pt-2 - #{design.name}
.pb-2 #{design.description}
.col
%h5.text-center.font-weight-bolder.pb-3= t('.preview')
.embed-responsive.embed-responsive-1by1
%iframe.embed-responsive-item{allowfullscreen: "", src: "/placeholder.png"}
.col
%h5.text-center.font-weight-bolder.pb-3= t('.characteristics')
- characteristics = design.characteristics
- characteristics.each_line.with_index do |characteristic, index|
%h5 #{index+1}. #{characteristic}
%a.btn.btn-primary.btn-lg.btn-block.mt-4{role: "button", href: design.url}= t('.source_code')