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

21 lines
990 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.details.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 do |characteristic|
%h5 #{characteristic}
%a.btn.btn-primary.btn-lg.btn-block.mt-4{role: "button", href: design.url}= t('.source_code')