Sha256: 44e5f5db1346100370ba19072e04dc686978734fcf2bd1057080f06ecc199066

Contents?: true

Size: 1007 Bytes

Versions: 6

Compression:

Stored size: 1007 Bytes

Contents

Voom::Presenters.define(:avatars) do
  attach :top_nav
  attach :component_drawer
  page_title 'Avatars'

  grid do
    column 1
    column 10 do
      body 'An avatar can contain an image or icon. Avatars can be used within a list line, the media section of a card, a content block or column.'

      grid do
        column 6 do
          headline 'Types'
          body '**With an Icon**'
          avatar :thumb_up
          body '**With an Image**'
          avatar 'img/demo/avatar.jpg'
        end
      end

      grid do
        column 6 do
          headline 'Sizes'
          body '**small**'
          avatar :person, size: :small
          body '**medium** (default)'
          avatar 'img/demo/image_card.jpg', size: :medium
          body '**large**'
          avatar :cake, size: :large
          body '**x-large**'
          avatar :golf_course, size: 'x-large'
          body '**xx-large**'
          avatar 'img/demo/avatar.jpg', size: 'xx-large'
        end
      end

    end
  end

end

Version data entries

6 entries across 6 versions & 1 rubygems

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