Empty state
What a view shows before it has anything: an empty tray with the outline of what goes in it printed on its floor, one sentence and one key.
Kit part · Empty states
An empty state drawn as an empty machined tray. The shape of what goes in it, a file, a key or a card, is cut into its floor the way a case is cut for the thing it carries. Under it: what is missing, one line on why, a key that fills it and, if you like, a link to read more. It is markup and nothing else.
Uploads, exports and build logs are kept here once Lode has something to keep.
A key lets a service sign in to Lode without a person. Issue one and it is listed here.
Add a card before the trial ends on 14 October and the plan carries on without a break.
A key lets a service sign in to Lode without a person. Issue one and it is listed here.
Files other people share with you will be listed here.
Add a card before the trial ends on 14 October and the plan carries on without a break.
Both finishes, side by side. Hover, pressed and focus are forced with .is-hover, .is-down and .is-focus; checked and disabled are real.
Aluminium
| Part | File | Key | Card | Key focus |
|---|---|---|---|---|
| Tray | No files in this project yetUploads, exports and build logs are kept here once Lode has something to keep. | No signing keys yetA key lets a service sign in to Lode without a person. Issue one and it is listed here. | No payment card on fileAdd a card before the trial ends on 14 October and the plan carries on without a break. | No signing keys yetA key lets a service sign in to Lode without a person. Issue one and it is listed here. |
Graphite
| Part | File | Key | Card | Key focus |
|---|---|---|---|---|
| Tray | No files in this project yetUploads, exports and build logs are kept here once Lode has something to keep. | No signing keys yetA key lets a service sign in to Lode without a person. Issue one and it is listed here. | No payment card on fileAdd a card before the trial ends on 14 October and the plan carries on without a break. | No signing keys yetA key lets a service sign in to Lode without a person. Issue one and it is listed here. |
| Name | Kind | Values | What it does |
|---|---|---|---|
| section.tui-empty-tray | element | aria-labelledby | The tray: a raised plate with the bed cut into it. Labelled by its title. |
| data-shape | attribute | "file" · "key" · "card" | What is cut into the floor. File by default. |
| --row | class | wide and short | The bed to the left of the words. It folds to a column on a narrow screen. |
| .tui-empty-tray__bed · __shape | class | aria-hidden | The recessed floor and the debossed shape in it. The shape is a picture and is hidden from assistive technology. |
| h3.tui-empty-tray__title | element | a heading | What is missing, said plainly. The heading level is yours; h3 is the default. |
| .tui-empty-tray__reason | class | one sentence | Why it is empty, or how it fills. |
| .tui-empty-tray__next | class | key · link | The next step: a key with the act on it, and an optional link for reading more. Leave it out where people cannot add anything. |
| --tray-w | custom property | length | The width of the shape. 132px, or 104px in a row. |
<section class="tui-empty-tray" data-shape="key" aria-labelledby="keys-t">
<div class="tui-empty-tray__bed">
<span class="tui-empty-tray__shape" aria-hidden="true"></span>
</div>
<div class="tui-empty-tray__front">
<h3 class="tui-empty-tray__title" id="keys-t">No signing keys yet</h3>
<p class="tui-empty-tray__reason">A key lets a service sign in to Lode without a person.
Issue one and it is listed here.</p>
<div class="tui-empty-tray__next">
<button type="button" class="tui-key tui-key--primary">Issue a key</button>
<a class="tui-link" href="/docs/keys">How keys work</a>
</div>
</div>
</section>Needs kit.css only, no script. How to install the kit.
A raised plate with a bed let into it: the rim is 6px and so is the bed’s corner, which makes the plate’s 12px concentric. The bed has deeper walls than the kit’s plain recess, because it is a tray and not a field. The shape is one SVG silhouette (a sheet with its corner turned, a key, a card with its chip) used twice as a mask: a lit copy a pixel and a half lower, which shows along the lower lip of the cut, and a dark copy that is deepest under its upper wall. The holes in the silhouette, the chip and the lines of print, are the floor showing through. So the cut is drawn with the same one light as everything else, and there is no image to load.
For a view that will hold one particular thing, and can say which.
5 rules in this file, with the foundations they rest on and the anti-patterns that break them. Full rules ship in the brain with the Pass.
What a view shows before it has anything: an empty tray with the outline of what goes in it printed on its floor, one sentence and one key.
Drop files here
An in-tray for files. A machined lip stands round a ribbed floor; the floor rises a little when a file is dragged over it, and a lamp on the lip lights. What goes in lands in the tray as a sheet of paper and is listed as printed rows, a refusal says why, and the key inside the tray is a real file input.
Rows in a rack: a mark, a title, a second line and a fact or a key at the end. Chosen rows sink into a recess with their check key latched; in a running order, a row lifts out of the rack on its skirt and slides past the others, from the keyboard or by its grip.