Jumbotron(ui_jumbotron)Bootstrap Logo

UiBibz::Ui::Core::Boxes::Jumbotron

A lightweight, flexible component that can optionally extend the entire viewport to showcase key content on your site.

Usage

This component is an extension of component element. A Ui Bibz component consists of 3 arguments:
  • content[value/block]
  • html_options[hash]<default: {}>
  • options[hash]<default: {}>

 # by variable 
 ui_jumbotron content, options, html_options 

 # or by block 
 ui_jumbotron options, html_options do 
   content 
 end

Options

The specific options for this component are:

Examples

Some examples explain how to use the options present in the component.

Jumbotron

Hello, world!

This is a simple hero unit, a simple jumbotron-style component for calling extra attention to featured content or information.


It uses utility classes for typography and spacing to space content out within the larger container.

Learn more

ui_jumbotron do
  <h1 class="display-3">Hello, world!</h1>
  <p class="lead">This is a simple hero unit, a simple ui_jumbotron-style component for calling extra attention to featured content or information.</p>
  <hr class="m-y-md">
  <p>It uses utility classes for typography and spacing to space content out within the larger container.</p>
  <p class="lead">
    <a class="btn btn-primary btn-lg" href="#" role="button">Learn more</a>
  </p>
end
<div class="jumbotron">
  <h1 class="display-3">Hello, world!</h1>
  <p class="lead">This is a simple hero unit, a simple ui_jumbotron-style component for calling extra attention to featured content or information.</p>
  <p></p>
  <hr class="m-y-md">
  <p>It uses utility classes for typography and spacing to space content out within the larger container.</p>
  <p class="lead"><a class="btn-primary btn" href="#learn-more">Learn more</a></p>
</div>

Fluid

Fluid jumbotron

This is a modified jumbotron that occupies the entire horizontal space of it's parent.

ui_jumbotron fluid: true do
  <h1 class="display-3">Fluid jumbotron</h1>
  <p class="lead">This is a modified ui jumbotron that occupies the entire horizontal space of it's parent.</p>
end
<div class="jumbotron jumbotron-fluid">
  <div class="container">
    <h1 class="display-3">Fluid jumbotron</h1>
    <p class="lead">This is a modified ui jumbotron that occupies the entire horizontal space of it's parent.</p>
  </div>
</div>