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.4.27 app/views/workarea/storefront/style_guides/components/_hero_content_block.html.haml
workarea-storefront-3.5.4 app/views/workarea/storefront/style_guides/components/_hero_content_block.html.haml
workarea-storefront-3.4.26 app/views/workarea/storefront/style_guides/components/_hero_content_block.html.haml
workarea-storefront-3.5.3 app/views/workarea/storefront/style_guides/components/_hero_content_block.html.haml
workarea-storefront-3.4.25 app/views/workarea/storefront/style_guides/components/_hero_content_block.html.haml
workarea-storefront-3.5.2 app/views/workarea/storefront/style_guides/components/_hero_content_block.html.haml
workarea-storefront-3.4.24 app/views/workarea/storefront/style_guides/components/_hero_content_block.html.haml
workarea-storefront-3.5.1 app/views/workarea/storefront/style_guides/components/_hero_content_block.html.haml
workarea-storefront-3.4.23 app/views/workarea/storefront/style_guides/components/_hero_content_block.html.haml
workarea-storefront-3.4.22 app/views/workarea/storefront/style_guides/components/_hero_content_block.html.haml
workarea-storefront-3.5.0 app/views/workarea/storefront/style_guides/components/_hero_content_block.html.haml
workarea-storefront-3.4.21 app/views/workarea/storefront/style_guides/components/_hero_content_block.html.haml
workarea-storefront-3.5.0.beta.1 app/views/workarea/storefront/style_guides/components/_hero_content_block.html.haml
workarea-storefront-3.4.20 app/views/workarea/storefront/style_guides/components/_hero_content_block.html.haml
workarea-storefront-3.4.19 app/views/workarea/storefront/style_guides/components/_hero_content_block.html.haml
workarea-storefront-3.4.18 app/views/workarea/storefront/style_guides/components/_hero_content_block.html.haml
workarea-storefront-3.4.17 app/views/workarea/storefront/style_guides/components/_hero_content_block.html.haml
workarea-storefront-3.4.16 app/views/workarea/storefront/style_guides/components/_hero_content_block.html.haml
workarea-storefront-3.4.15 app/views/workarea/storefront/style_guides/components/_hero_content_block.html.haml
workarea-storefront-3.4.14 app/views/workarea/storefront/style_guides/components/_hero_content_block.html.haml