Website pieces
Doors
The main parts of a site as three or four doors under the first screen: tiles with a drawing, a title and a line from a tablet up; rows with a small drawing, the title and an arrow on a phone. .kui-doors with .kui-door links.
Examples
Three doors
HTML
<div class="kui-container" lang="sr-Latn">
<ul class="kui-doors">
<li><a class="kui-door" href="#doors-bread"><span class="kui-door__picture"><svg class="kui-drawing" viewBox="0 0 120 90" aria-hidden="true" focusable="false"><path class="kui-drawing__quiet" stroke-width="2" d="M8 80h104"/><path class="kui-drawing__fill" stroke-width="3" d="M20 74c-6-22 8-44 40-44s46 22 40 44z"/><path stroke-width="3" d="M42 40c-4 8-5 16-4 24M60 36c-3 9-3 19-1 28M78 40c-1 9 0 17 3 24"/></svg></span><span><span class="kui-door__title">Hleb i peciva</span><span class="kui-door__text">Svako jutro iz peći na drva.</span></span><span class="kui-door__arrow"><svg class="kui-icon" aria-hidden="true"><use href="kit/icons.svg#chevron-right"></use></svg></span></a></li>
<li><a class="kui-door" href="#doors-cakes"><span class="kui-door__picture"><svg class="kui-drawing" viewBox="0 0 120 90" aria-hidden="true" focusable="false"><path class="kui-drawing__quiet" stroke-width="2" d="M8 80h104"/><path class="kui-drawing__fill" stroke-width="3" d="M26 48h68v32H26z"/><path stroke-width="3" d="M26 60c6 5 11 5 17 0s11-5 17 0 11 5 17 0 11-5 17 0M40 48V36M60 48V30M80 48V36"/><path class="kui-drawing__solid" d="M40 30c-2-3 0-6 0-6s2 3 0 6zM60 24c-2-3 0-6 0-6s2 3 0 6zM80 30c-2-3 0-6 0-6s2 3 0 6z"/></svg></span><span><span class="kui-door__title">Torte po porudžbini</span><span class="kui-door__text">Za rođendane, slave i venčanja.</span></span><span class="kui-door__arrow"><svg class="kui-icon" aria-hidden="true"><use href="kit/icons.svg#chevron-right"></use></svg></span></a></li>
<li><a class="kui-door" href="#doors-deliver"><span class="kui-door__picture"><svg class="kui-drawing" viewBox="0 0 120 90" aria-hidden="true" focusable="false"><path class="kui-drawing__quiet" stroke-width="2" d="M8 80h104"/><path class="kui-drawing__fill" stroke-width="3" d="M14 34h56v38H14zM70 46h20l14 14v12H70z"/><circle class="kui-drawing__fill" cx="34" cy="74" r="7" stroke-width="3"/><circle class="kui-drawing__fill" cx="88" cy="74" r="7" stroke-width="3"/><path stroke-width="3" d="M26 50h30M26 58h20"/></svg></span><span><span class="kui-door__title">Dostava</span><span class="kui-door__text">Kafićima i prodavnicama, pre sedam.</span></span><span class="kui-door__arrow"><svg class="kui-icon" aria-hidden="true"><use href="kit/icons.svg#chevron-right"></use></svg></span></a></li>
</ul>
</div>
Classes and attributes
.kui-doors- The list of doors: a row of equal tiles from 48rem up, rows with lines between them on a phone.
.kui-door- One door, a link.
.kui-door__picture- Its drawing or picture.
.kui-door__title, .kui-door__text- Its title, in the display font and the heading colour, and its line, shown from a tablet up.
.kui-door__arrow- The arrow of a row on a phone.
Accessibility
- A door is one link; its title is its name.
- Drawings in doors are aria-hidden.
Do and do not
Do
- Name each door for the visitor’s task, in their words.
Do not
- Do not make more than four doors; then it is a menu.
- Do not repeat the doors as a grid of identical cards further down.