Sha256: 2f68f55c00f60c8e040ce0581c290944e97826da3c9d9543847b7b0258eeb94b

Contents?: true

Size: 1.33 KB

Versions: 6

Compression:

Stored size: 1.33 KB

Contents

= javascript_include_tag 'tramway/landing/smooth-scroll'
%header
  %nav.navbar.navbar-expand-lg.navbar-dark.indigo.scrolling-navbar.fixed-top
    = link_to yield(:application_name), '#', class: 'navbar-brand'

    %button.navbar-toggler{ type: :button, data: { toggle: :collapse, target: '#navbarSupportedContent' }, aria: { controls: 'navbarSupportedContent', expanded: 'false', label: 'Toggle navigation' } }
      = fa_icon :bars
    .collapse.navbar-collapse#navbarSupportedContent
      %ul.navbar-nav.mr-auto
        - @blocks.with_navbar_link.each do |block|
          = menu_item block.title, "##{block.anchor}"
  - if block
    #intro.view.hm-black-strong{ style: "background-image: url('#{block.background.url}')" }
      .container-fluid.full-bg-img.d-flex.align-items-center.justify-content-center
        .row.d-flex.justify-content-center
          .col-md-10.text-center
            %h2.display-3.font-bold.white-text.mb-2
              = yield(:application_name)
            %hr.hr-light
            %h4.white-text.my-4
              = yield(:application_tagline)
            - @blocks.with_navbar_link.each do |block|
              %button.btn.btn-outline-white.waves-effect.waves-light.header-buttons{ type: :button, data: { anchor: "##{block.anchor}" } }
                = block.title
  %script
    var scroll = new SmoothScroll('a[href*="#"]');

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
tramway-landing-1.2.7 app/views/tramway/landing/blocks/block_types/_header.html.haml
tramway-landing-1.2.6 app/views/tramway/landing/blocks/block_types/_header.html.haml
tramway-landing-1.2.5 app/views/tramway/landing/blocks/block_types/_header.html.haml
tramway-landing-1.2.4 app/views/tramway/landing/blocks/block_types/_header.html.haml
tramway-landing-1.2.3 app/views/tramway/landing/blocks/block_types/_header.html.haml
tramway-landing-1.2.2 app/views/tramway/landing/blocks/block_types/_header.html.haml