---importtype { CategoryDef } from'../lib/taxonomy';
import { url } from'../lib/url';
import Icon from'./Icon.astro';
interface Props { cat:CategoryDef; count:number; n:string }
const { cat, count, n } = Astro.props;
/** * One of the twelve domains, as a tile. * * The hue lives on the top edge and nowhere else. Twelve fully-coloured * cards would be a paint chart, and the colour is here to key the domain * against the masthead and the marquee, not to fill the grid. * * The tiles carry no gutters — the grid draws 1px rules between them * (`.grid-plates`) so the twelve read as one ruled table rather than as * twelve floating objects. */---<aclass="plate-tile corners"href={url(cat.slug)} style={`--acc: var(--${cat.accent});`}>
<spanclass="plate-tile__head">
<spanclass="plate-tile__tag">{cat.tag}</span>
<spanclass="plate-tile__n">{n}</span>
</span>
<h3class="plate-tile__title">{cat.title}</h3>
<pclass="plate-tile__blurb">{cat.blurb}</p>
<spanclass="plate-tile__meta">
<span>{count} {count ===1?'sheet':'sheets'}</span>
<spanclass="plate-tile__arrow"><Iconname="arrow" /></span>
</span>
</a>