Site overview
A site overview is a table of contents for a group of pages: a heading, a few lines of explanation and a grid of links, each with an icon, a title and a description. The front page of this documentation is built from five of them.
Use it as a landing page for a section of a site, where visitors choose where to go next. For the navigation that stays on every page, use a navbar or a sidebar.
Structure
Give a wrapper the class site-overview. Inside it go a heading, an optional explainer and a list of links. Each link holds an icon, a title and a description.
Lending
Everything about borrowing from the library, from the first loan to the last reminder.
<div class="site-overview">
<h2>Lending</h2>
<div class="explainer">
<p>Everything about borrowing from the library.</p>
</div>
<ul>
<li>
<a href="...">
<svg class="icon"><use xlink:href="/images/icons.svg#book"></use></svg>
<div class="title">Loans</div>
<div class="description">What is out, and when it is due back.</div>
</a>
</li>
...
</ul>
</div>
| Part | Styling |
|---|---|
| Heading | Any heading, <h1> to <h6>, underlined in the color of the overview. |
.explainer | Slightly larger text that keeps the right-hand quarter of the page free on wide screens. |
<ul> | A grid of three columns without bullets. It has two columns from 667px to 900px wide, and one column below that. |
.icon | Placed to the left of the text, in the color of the overview. |
.title | Large, bold and underlined. The underline and the icon change color when the link is hovered. |
.description | One or two lines in the regular text color. |
Keep the whole link meaningful: the icon, the title and the description are one link, so a screen reader reads them together. Keep descriptions short, and leave the icon without a text of its own.
Colors
Add a color class to tint the heading, the icons and the link that has focus: yellow, red, blue, green, orange, purple or gray. Without a color class the heading is blue and the icons are muted.
<div class="site-overview green">
...
</div>
A color class only sets custom properties. Set them yourself for a color that is not in the list.
| Custom property | Used for |
|---|---|
--nausikaa-so-header | The underline of the heading, and the icon and underline of a hovered link. |
--nausikaa-so-icon | The icons and the underline of the titles. |
--nausikaa-so-background | The background of the link that has focus. |
--nausikaa-so-border | The border of the link that has focus. |
--nausikaa-so-active-text | The text and icon of the link that has focus. |
.site-overview.brand {
--nausikaa-so-header: #b5179e;
--nausikaa-so-icon: #f72585;
}