Sha256: 3d340e552346e185edfbc052df677e1e0b0fa168d9b814d24cb48ab941bdbc14

Contents?: true

Size: 1012 Bytes

Versions: 6

Compression:

Stored size: 1012 Bytes

Contents

require_relative '../helpers/indented_grid'

Voom::Presenters.define(:layouts) do
  helpers Demo::Helpers::IndentedGrid

  attach :top_nav
  attach :component_drawer
  page_title 'Layouts'

  indented_grid do

    headline 'Grid'

    grid do
      (1..12).each do |size|
        column 1, color: :lightgray do
          body '1'
        end
      end
    end

    grid do
      (1..3).each do |size|
        column 4, color: :lightgray do
          body '4'
        end
      end
    end

    grid do
      column 6, color: :lightgray do
        body '6 wide with sub-grid of 12'
        grid do
          (1..12).each do |size|
            column 1, color: :white do
              body '1'
            end
          end
        end
      end
      column 4, color: :lightgray do
        body '4'
      end
      column 2, color: :lightgray do
        body '2'
      end
    end

    headline 'Padding'
    body "See the [padding demo](#{presenters_path(:padding)})"

    attach :code, file: __FILE__
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
voom-presenters-2.1.2 app/demo/components/layouts.pom
voom-presenters-2.1.0 app/demo/components/layouts.pom
voom-presenters-2.0.3 app/demo/components/layouts.pom
voom-presenters-2.0.2 app/demo/components/layouts.pom
voom-presenters-2.0.1 app/demo/components/layouts.pom
voom-presenters-2.0.0 app/demo/components/layouts.pom