Tiles
Basic tile
The basic tile contains a title, description, and a call to action button.
Different background colours may be used for the tiles. Apply the classes coc-secondary-9L
, coc-secondary-8L
, or coc-secondary
to the tile element.
Title consectetur adipiscing elit
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Title consectetur adipiscing elit
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Title consectetur adipiscing elit
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Code
<div class="cui tile coc-secondary-9L">
<h3>Tile title</h3>
<p>Tile description</p>
<button class="cui btn-md utility-btn">Call to action</button>
</div>
<div class="cui tile coc-secondary-8L">
<h3>Tile title</h3>
<p>Tile description</p>
<button class="cui btn-md utility-btn">Call to action</button>
</div>
<div class="cui tile coc-secondary">
<h3>Tile title</h3>
<p>Tile description</p>
<button class="cui btn-md utility-btn">Call to action</button>
</div>
Equal height tiles
Tiles can have equal heights by utilizing the CSS flexbox feature. All tiles in a row will be set to equal heights, based on the height of the tallest tile in the row.
Note: Equal height tiles require the Bootstrap flex grid. Use a row
as the main wrapper element and col-*
classes to wrap around individual tiles. Apply the class row-equal-height-tiles
to the row
, as seen in the code block below.
Equal height basic tiles
To align the call-to-action button to the bottom of each tile, place the button inside a div with the class tile-footer
.
Title consectetur adipiscing elit
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Title in eu tincidunt dolor a vulputate
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean magna nisl, finibus eget vulputate eu, mattis in eros. Nullam rhoncus pulvinar lectus, sed faucibus nisl lobortis eget.
Title aenean magna nisl
Pellentesque at dui ullamcorper, viverra ligula nec, fermentum nisi. In eu tincidunt dolor, a vulputate metus.
Code
<!-- Equal height tiles require the Bootstrap flex grid -->
<div class="row row-equal-height-tiles">
<div class="col-sm-6 col-lg-4">
<div class="cui tile coc-secondary-9L">
<h3>Title goes here</h3>
<p>Content goes here</p>
<div class="tile-footer">
<button class="cui btn-md utility-btn">Call to action</button>
</div>
</div>
</div>
<div class="col-sm-6 col-lg-4">
<div class="cui tile coc-secondary-8L">
<h3>Title goes here</h3>
<p>Content goes here</p>
<div class="tile-footer">
<button class="cui btn-md utility-btn">Call to action</button>
</div>
</div>
</div>
<div class="col-sm-6 col-lg-4">
<div class="cui tile coc-secondary">
<h3>Title goes here</h3>
<p>Content goes here</p>
<div class="tile-footer">
<button class="cui btn-md utility-btn">Call to action</button>
</div>
</div>
</div>
</div>
Data tiles
Use data tiles to showcase a data metric consisting of 3 components: the name, the value, and a short description.
The widths are set with the Bootstrap grid column classes. Add the class row-equal-height-tiles
to the row
element to give the tiles equal heights.
Two variants are available: static and interactive.
Static
The following data tiles contain no interactivity. Their purpose is to simply display the information.
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean magna nisl, finibus eget vulputate eu, mattis in eros. Nullam rhoncus pulvinar lectus, sed faucibus nisl lobortis eget.
Pellentesque at dui ullamcorper, viverra ligula nec, fermentum nisi. In eu tincidunt dolor, a vulputate metus.
Code
<!-- Static -->
<div class="row row-equal-height-tiles">
<!-- Update the bootstrap column classes to suit your needs -->
<div class="col-12 col-sm-6 col-md-4">
<div class="tile-data">
<span class="name">Name</span>
<span class="value">Value</span>
<p>Example description. Lorem ipsum dolor vestibulum congue dolor eget nisl maximus tincidunt.</p>
</div>
</div>
<!-- Add additional tiles as necessary -->
...
</div>
Interactive
The following data tiles have been converted to interactive links using the <a>
tag. The value metric is coloured red to indicate that it is an interactive element. Styles for the hover, focus, and active states have been added.
Code
<!-- Interactive -->
<div class="row row-equal-height-tiles">
<!-- Update the bootstrap column classes to suit your needs -->
<div class="col-12 col-sm-6 col-md-4">
<a class="tile-data" href="page.html">
<span class="name">Name</span>
<span class="value">Value</span>
<p>Example description. Lorem ipsum dolor vestibulum congue dolor eget nisl maximus tincidunt.</p>
</a>
</div>
<!-- Add additional tiles as necessary -->
...
</div>