5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-28 13:16:21 +00:00
panel/app/views/sites/_designs_mobile.haml

21 lines
997 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|
%details.styled.custom-control-design
%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')
- characteris = design.characteristics.split(".")
- characteris.each_with_index do |charact, index|
%h5.design #{index + 1}. #{charact}
%a.btn.btn-primary.btn-lg.btn-block.mt-4{role: "button", href: design.url}= t('.source_code')