# Showcase

Shows the sites, products or people a page is proud of, each a link with its logo and its name, in a row that wraps.

### Known issues
LUZ ships no brand logos: everything it serves is MIT, and a logo is not. The logos are yours, and so is the right to show them.

### Copy the markup
A `<luz-showcase>` around a `<ul>` of links. Each link holds a decorative `<svg>` and the name in a `<span>`. Link `components/showcase.css` of `@luz-ds/catalog` after core.

Showcase markup
```html
<luz-showcase>
  <ul>
    <li>
      <a href="https://greenleaf.example/" title="Greenleaf: a gardening journal">
        <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5"
          stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false">…</svg>
        <span>Greenleaf</span>
      </a>
    </li>
    <!-- one li for each site -->
  </ul>
</luz-showcase>
```

To make it move, put it in a [`<luz-marquee>`](https://luzds.com/docs/catalog/marquee/).

### Variants and options
- `<luz-showcase>`: Around a native list of links. The links sit in a row that wraps, centred, in small bold sans text. A tag that no script defines: no class, no role of its own
- `title`: On a link, optional: the name and one line about the site. It is the browser’s tooltip and is not read as the name of the link

### How it works
CSS from `components/showcase.css` of `@luz-ds/catalog`. No JavaScript: `<luz-showcase>` is a tag that no script ever defines.

- The list is a native `<ul>`, so a screen reader says how many sites there are. The logo is an `<svg aria-hidden="true">` or an `<img alt="">` before the name, and the name is the name of the link.
- The logo is `1.5em` square and does not shrink. LUZ gives it a size, not a drawing: an `<svg>` sets its own `fill` or `stroke`, and with `currentColor` it takes the colour of the link.
- A link is quiet, in the secondary text colour, and takes the primary one under the pointer and with the keyboard focus. It never wraps its name: the row wraps between links.
- It does not move. To make it move, put it in a [marquee](https://luzds.com/docs/catalog/marquee/), written twice: the marquee holds the motion, and this tag only the row.

### Without JavaScript
Nothing changes: there is no script.

### Keyboard and ARIA
- **Tab:** moves through the links in source order, each once.
- **Enter:** follows the link, as any link.
- **Name:** the text of the `<span>`. The `<svg>` is `aria-hidden="true"`, and `title` is not read as the name.
- **Target:** a link is at least `--luz-control-md` (36 px) high, over WCAG 2.5.8’s 24 px.
- **Language:** a name in another language than the page carries its own `lang`, on its `<span>`.
- Not tested with a screen reader.

### When to use
Use it to show who uses, buys, sponsors or backs what the page is about, when the names are the proof: “Built with LUZ”, the customers of a product, the sponsors of an event, the partners of a school.

- Keep it still: every name can be read without waiting for it.
- To make it move, put it in a [marquee](https://luzds.com/docs/catalog/marquee/), only when the band is a decoration and every link is also elsewhere on the page.

### When not to use
Do not use it for the links of the site itself, for people’s profiles or for a gallery of work.

- For the site’s links, use [site-footer](https://luzds.com/docs/catalog/site-footer/) or the [navbar](https://luzds.com/docs/catalog/navbar/).
- For profiles and feeds, use [social links](https://luzds.com/docs/catalog/social/).
- For what customers say, in their words, use a [card](https://luzds.com/docs/components/card/) with a quote.
- Do not show a site, a company or a person that has not agreed to it.
