Sha256: 08e1cf5c6a97520663ada37a36dae5f38f40db40bbf409ed0940e93e41c08c10

Contents?: true

Size: 746 Bytes

Versions: 9

Compression:

Stored size: 746 Bytes

Contents

require_relative '../helpers/indented_grid'

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

  indented_grid do
    display 'Layouts'

    display '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'
      end
      column 4, color: :lightgray do
        body '4'
      end
      column 2, color: :lightgray do
        body '2'
      end
    end

    attach :code, file: __FILE__
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
voom-presenters-0.1.8 app/demo/components/layouts.pom
voom-presenters-0.1.7 app/demo/components/layouts.pom
voom-presenters-0.1.6 app/demo/components/layouts.pom
voom-presenters-0.1.5 app/demo/components/layouts.pom
voom-presenters-0.1.4 app/demo/components/layouts.pom
voom-presenters-0.1.3 app/demo/components/layouts.pom
voom-presenters-0.1.2 app/demo/components/layouts.pom
voom-presenters-0.1.1 app/demo/components/layouts.pom
voom-presenters-0.1.0 app/demo/components/layouts.pom