Special Components
These are less commonly used components, developed for specific projects.
Progress
Slide
Slides can be used to display information about a specific topic; for example, a project or article.
Slider
The code for the slider consists in using a .slider
element to wrap multiple slide
components. That will automatically trigger the JS and all the extra functionality and styles used by slick.js. We are extending Slick with our own visual styles.
<div class="slider">
<div class="slide">...</div> <!-- Slide Component -->
<div class="slide">...</div> <!-- Slide Component -->
<div class="slide">...</div> <!-- Slide Component -->
...
</div>
Sortable Table with List.js
Name
search
keyboard_arrow_down
|
Category
keyboard_arrow_down
|
Date
keyboard_arrow_down
|
||
---|---|---|---|---|
Colliers International | Housing/Real Estate | 1898 | ||
Greenowl Mobile | Data/Technology | 2009 | ||
Hexoskin | Data/Technology, Healthcare | 2006 |
The .table-sortable
element uses List.js for sorting and fuzzysearch. This example uses three classes, .item__name
, .item__category
, and .item__date
.
Accordion
-
Title #1 - Lorem ipsum dolor sit amet, consectetur adipisicing elit.
-
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Delectus rem, ducimus quae distinctio nihil vero eaque asperiores vel blanditiis, nobis explicabo saepe cumque possimus aut deleniti a. Porro, quia, nam.
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Delectus rem, ducimus quae distinctio nihil vero eaque asperiores vel blanditiis, nobis explicabo saepe cumque possimus aut deleniti a. Porro, quia, nam.
-
Title #2 - Lorem ipsum dolor sit amet, consectetur adipisicing elit.
-
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Delectus rem, ducimus quae distinctio nihil vero eaque asperiores vel blanditiis, nobis explicabo saepe cumque possimus aut deleniti a. Porro, quia, nam.Lorem ipsum dolor sit amet, consectetur adipisicing elit. Delectus rem, ducimus quae distinctio nihil vero eaque asperiores vel blanditiis, nobis explicabo saepe cumque possimus aut deleniti a. Porro, quia, nam.
-
Title #3 - Lorem ipsum dolor sit amet, consectetur adipisicing elit.
-
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Delectus rem, ducimus quae distinctio nihil vero eaque asperiores vel blanditiis, nobis explicabo saepe cumque possimus aut deleniti a. Porro, quia, nam.
The .accordion
element is based upon dl
, dt
and dd
elements and the .accordion__item
class used to separate the sections of the accordion.
Map
The map component uses a custom D3.js script. The script makes it easy to represent discrete numerical data per geographic region.
The script targets two div elements:
<div id="map-wrapper">
<!-- The map overlayed with circular elements -->
</div>
<div id="caption">
<!-- Dynamically created labels-captions -->
</div>
The script is dependent on two files:
- A topojson/geojson file. This file is used to create the base map;
- A csv/json file with discrete values corresponding to the specific features of the base map (counties, states, provinces, etc.). This file is used to create circular elements over the base map and the labels-captions on hover. The features targeted in this file need to exist in the topojson/geojson file and follow the same naming convention. If the topojson/geojson does not contain certain features, they cannot be targeted.
The files used to create the above example can be found in the static folder.
The styling of the map component is independent of the D3.js script and can be changed using custom CSS.