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.27 app/views/workarea/storefront/style_guides/components/_hero_content_block.html.haml
workarea-storefront-3.5.26 app/views/workarea/storefront/style_guides/components/_hero_content_block.html.haml
workarea-storefront-3.4.45 app/views/workarea/storefront/style_guides/components/_hero_content_block.html.haml
workarea-storefront-3.5.25 app/views/workarea/storefront/style_guides/components/_hero_content_block.html.haml
workarea-storefront-3.5.23 app/views/workarea/storefront/style_guides/components/_hero_content_block.html.haml
workarea-storefront-3.4.44 app/views/workarea/storefront/style_guides/components/_hero_content_block.html.haml
workarea-storefront-3.5.22 app/views/workarea/storefront/style_guides/components/_hero_content_block.html.haml
workarea-storefront-3.4.43 app/views/workarea/storefront/style_guides/components/_hero_content_block.html.haml
workarea-storefront-3.5.21 app/views/workarea/storefront/style_guides/components/_hero_content_block.html.haml
workarea-storefront-3.4.42 app/views/workarea/storefront/style_guides/components/_hero_content_block.html.haml
workarea-storefront-3.5.20 app/views/workarea/storefront/style_guides/components/_hero_content_block.html.haml
workarea-storefront-3.4.41 app/views/workarea/storefront/style_guides/components/_hero_content_block.html.haml
workarea-storefront-3.5.19 app/views/workarea/storefront/style_guides/components/_hero_content_block.html.haml
workarea-storefront-3.4.40 app/views/workarea/storefront/style_guides/components/_hero_content_block.html.haml
workarea-storefront-3.5.18 app/views/workarea/storefront/style_guides/components/_hero_content_block.html.haml
workarea-storefront-3.4.39 app/views/workarea/storefront/style_guides/components/_hero_content_block.html.haml
workarea-storefront-3.5.17 app/views/workarea/storefront/style_guides/components/_hero_content_block.html.haml
workarea-storefront-3.4.38 app/views/workarea/storefront/style_guides/components/_hero_content_block.html.haml
workarea-storefront-3.5.16 app/views/workarea/storefront/style_guides/components/_hero_content_block.html.haml
workarea-storefront-3.4.37 app/views/workarea/storefront/style_guides/components/_hero_content_block.html.haml