
Larkspur Ceramics
LarkspurBrand · Web
A shop for a two-person pottery studio, built around the kiln schedule.
Data displayWorkCard
Searchastronomic.dev# WorkCard
For one project in a Work section: its photo, year, title, client, services and summary. The work recipes use it for you.
Static: no JavaScript.
## Usage
```astro
import WorkCard from "@astronomic/ui-pro/components/WorkCard.astro";
```
## Examples
### One project
The photo with the year on its corner, the numbered title (the card's one link), the client and services at the title row's end, and the summary under it. The Work recipes render it for you.
```astro
---
import WorkCard from "@astronomic/ui-pro/components/WorkCard.astro";
// Your own photo.
import shelves from "../../photos/studio-shelves.webp";
---
<!-- One project: the photo with its year, the numbered title (the card's one link), the client and services, and the summary. -->
<div class="mx-auto max-w-md">
<WorkCard
title="Larkspur Ceramics"
href="#larkspur"
client="Larkspur"
year="2026"
services={["Brand", "Web"]}
summary="A shop for a two-person pottery studio, built around the kiln schedule."
image={{ src: shelves, alt: "Plates and bowls on white shelves." }}
headingTag="h3"
number={1}
/>
</div>
```
### With a view pill
viewText: a pill on the photo's bottom start corner, shown while the card is hovered or focus is within it. One line: a long text ends in an ellipsis inside the photo. It rises in only when motion is allowed, and it is hidden from screen readers: the title stays the link's name.
```astro
---
import WorkCard from "@astronomic/ui-pro/components/WorkCard.astro";
// Your own photo.
import shelves from "../../photos/studio-shelves.webp";
---
<!-- Hover the card, or Tab to its title: a "View case study" pill shows on the photo. It is decorative; the title is the link. -->
<div class="mx-auto max-w-md">
<WorkCard
title="Larkspur Ceramics"
href="#larkspur"
client="Larkspur"
year="2026"
services={["Brand", "Web"]}
image={{ src: shelves, alt: "Plates and bowls on white shelves." }}
headingTag="h3"
viewText="View case study"
/>
</div>
```
## Props
### WorkCard
| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `title` | `string` | None | Required. The project's name: the card's one link. |
| `href` | `string` | None | Required. The project's page (its case study). |
| `image` | `MediaImage` | None | Required. { src, alt, width?, height?, ratio?, focalPoint?, loading? }: write its alt. The ratio defaults to 4/3. |
| `client` | `string` | None | The client's name, at the title row's end. |
| `year` | `string` | None | The year as you want it shown, such as "2026": a small pill on the photo's top end corner. |
| `services` | `string[]` | None | Short labels, such as ["Brand", "Web"], shown as one dot-separated line (not chips). |
| `summary` | `string` | None | One or two sentences under the title, muted. |
| `transitionName` | `string` | None | For your view transition into the case study, such as "work-larkspur": set as --vt-name on the photo, which takes it as its view-transition-name only when motion is allowed. Give the case study's CaseHero the same name. |
| `headingTag` | `"h2" \| "h3" \| "h4" \| "h5"` | None | Required. The title element; the shell gives it (childHeadingTag in lib/heading.ts). |
| `number` | `number` | None | The card's place from 1, shown as "(01)" before the title, hidden from screen readers. |
| `numberFormat` | `"paren" \| "slash"` | `"paren"` | How the number shows: paren, "(01)", or slash, "01 /" (the slash in the number's own quiet type, in normal letter spacing so its space reads inside the title's tracking). Off without number. |
| `grayscale` | `boolean` | `false` | Black and white, in color on hover and on focus inside the card (a 0.4s fade only when motion is allowed). |
| `viewText` | `string` | None | A pill on the photo's bottom start corner, such as "View case study", in the surface colors, shown on hover (on a device that hovers) and when focus is within the card. One line, never wider than the photo: a long text ends in an ellipsis. Decorative: hidden from screen readers and from the pointer. It fades and rises a step only when motion is allowed. |
| `imageComponent` | `ImageComponent` | None | Your image component: Astro's <Image>, or a small wrapper for your CMS. |
| `imageSizes` | `string` | None | How wide the photo shows, as the sizes attribute, for your component's srcset. |
| `ratioClass` | `string` | None | For recipes. The photo's shape in place of its ratio, such as aspect-[4/5]. |
| `class` | `string` | None | More classes for the <article>, merged with cn(). |
Any other attribute goes on the <article>.
## Accessibility
- With a heading, renders a <section> named by it, so it is a region landmark. Without one, a plain <div>: put your own heading above it.
- The projects are one list (<ul role="list">). Each project is one link, its title, which sits one level under the section heading (h2 gives h3).
- With numbered, "(01)" sits before each title, hidden from screen readers, so the link's name is the title alone.
- The year on the photo is plain text in the scrim colors, not a control.
- grayscale turns a photo to color on hover and on focus inside the card, so a keyboard reader sees it too. The fade runs only when motion is allowed: under reduced motion or a calm theme the photo changes at once.
- viewText's pill ("View case study", on a card's photo) is hidden from screen readers and takes no pointer: the link's name stays the title. It shows on hover and when focus is within the card; it fades in only when motion is allowed. WorkList ignores viewText.
- transitionName names the photo for your view transition only when motion is allowed.
For one project in a Work section: its photo, year, title, client, services and summary. The work recipes use it for you.
Drag the orange handle to set the width. Frames get real breakpoints.
The photo with the year on its corner, the numbered title (the card's one link), the client and services at the title row's end, and the summary under it. The Work recipes render it for you.

LarkspurBrand · Web
A shop for a two-person pottery studio, built around the kiln schedule.
examples/workcard/main.astro
---
import WorkCard from "@astronomic/ui-pro/components/WorkCard.astro";
// Your own photo.
import shelves from "../../photos/studio-shelves.webp";
---
<!-- One project: the photo with its year, the numbered title (the card's one link), the client and services, and the summary. -->
<div class="mx-auto max-w-md">
<WorkCard
title="Larkspur Ceramics"
href="#larkspur"
client="Larkspur"
year="2026"
services={["Brand", "Web"]}
summary="A shop for a two-person pottery studio, built around the kiln schedule."
image={{ src: shelves, alt: "Plates and bowls on white shelves." }}
headingTag="h3"
number={1}
/>
</div>viewText: a pill on the photo's bottom start corner, shown while the card is hovered or focus is within it. One line: a long text ends in an ellipsis inside the photo. It rises in only when motion is allowed, and it is hidden from screen readers: the title stays the link's name.
This preview did not load.
examples/workcard/view-text.astro
---
import WorkCard from "@astronomic/ui-pro/components/WorkCard.astro";
// Your own photo.
import shelves from "../../photos/studio-shelves.webp";
---
<!-- Hover the card, or Tab to its title: a "View case study" pill shows on the photo. It is decorative; the title is the link. -->
<div class="mx-auto max-w-md">
<WorkCard
title="Larkspur Ceramics"
href="#larkspur"
client="Larkspur"
year="2026"
services={["Brand", "Web"]}
image={{ src: shelves, alt: "Plates and bowls on white shelves." }}
headingTag="h3"
viewText="View case study"
/>
</div>