Sha256: 52b5673db775ef2034829124ecbfb2087225f31389f08cd9f3f2d48498c83d8f

Contents?: true

Size: 1.86 KB

Versions: 62

Compression:

Stored size: 1.86 KB

Contents

#hero-content-block.style-guide__subsection

  %h3= link_to_style_guide('components', 'hero_content_block')

  %p A content block that displays an image with a positionable button overlay.

  %p In the following examples:
  %ul
    %li The example block has been centered
    %li An intrinsic ratio has been manually applied to each image.

  - %w(top-left top-center top-right middle-left middle-center middle-right bottom-left bottom-center bottom-right).each do |position|
    %p should display a <b>regular button</b> @ <b>#{position.gsub('-', ', ')}</b>
    .style-guide__example-block
      .hero-content-block
        .hero-content-block__image-container{ style: "padding-bottom: 48.958333333%" }= image_tag 'workarea/storefront/style_guide_light_banner.png', alt: '', class: 'hero-content-block__image'
        .hero-content-block__button{ class: "hero-content-block__button--#{position}" }= link_to 'Hero Action', '#', class: 'button'

    %p should display a <b>large button</b> @ <b>#{position.gsub('-', ', ')}</b>
    .style-guide__example-block
      .hero-content-block
        .hero-content-block__image-container{ style: "padding-bottom: 48.958333333%" }= image_tag 'workarea/storefront/style_guide_light_banner.png', alt: '', class: 'hero-content-block__image'
        .hero-content-block__button{ class: "hero-content-block__button--#{position}" }= link_to 'Hero Action', '#', class: 'button button--large'

    %p should display a <b>small button</b> @ <b>#{position.gsub('-', ', ')}</b>
    .style-guide__example-block
      .hero-content-block
        .hero-content-block__image-container{ style: "padding-bottom: 48.958333333%" }= image_tag 'workarea/storefront/style_guide_light_banner.png', alt: '', class: 'hero-content-block__image'
        .hero-content-block__button{ class: "hero-content-block__button--#{position}" }= link_to 'Hero Action', '#', class: 'button button--small'

Version data entries

62 entries across 62 versions & 1 rubygems

Version Path
workarea-storefront-3.5.15 app/views/workarea/storefront/style_guides/components/_hero_content_block.html.haml
workarea-storefront-3.4.36 app/views/workarea/storefront/style_guides/components/_hero_content_block.html.haml
workarea-storefront-3.5.14 app/views/workarea/storefront/style_guides/components/_hero_content_block.html.haml
workarea-storefront-3.4.35 app/views/workarea/storefront/style_guides/components/_hero_content_block.html.haml
workarea-storefront-3.5.13 app/views/workarea/storefront/style_guides/components/_hero_content_block.html.haml
workarea-storefront-3.4.34 app/views/workarea/storefront/style_guides/components/_hero_content_block.html.haml
workarea-storefront-3.5.12 app/views/workarea/storefront/style_guides/components/_hero_content_block.html.haml
workarea-storefront-3.4.33 app/views/workarea/storefront/style_guides/components/_hero_content_block.html.haml
workarea-storefront-3.5.11 app/views/workarea/storefront/style_guides/components/_hero_content_block.html.haml
workarea-storefront-3.5.10 app/views/workarea/storefront/style_guides/components/_hero_content_block.html.haml
workarea-storefront-3.4.32 app/views/workarea/storefront/style_guides/components/_hero_content_block.html.haml
workarea-storefront-3.5.9 app/views/workarea/storefront/style_guides/components/_hero_content_block.html.haml
workarea-storefront-3.4.31 app/views/workarea/storefront/style_guides/components/_hero_content_block.html.haml
workarea-storefront-3.5.8 app/views/workarea/storefront/style_guides/components/_hero_content_block.html.haml
workarea-storefront-3.4.30 app/views/workarea/storefront/style_guides/components/_hero_content_block.html.haml
workarea-storefront-3.5.7 app/views/workarea/storefront/style_guides/components/_hero_content_block.html.haml
workarea-storefront-3.4.29 app/views/workarea/storefront/style_guides/components/_hero_content_block.html.haml
workarea-storefront-3.5.6 app/views/workarea/storefront/style_guides/components/_hero_content_block.html.haml
workarea-storefront-3.4.28 app/views/workarea/storefront/style_guides/components/_hero_content_block.html.haml
workarea-storefront-3.5.5 app/views/workarea/storefront/style_guides/components/_hero_content_block.html.haml