Skip to content

Content

CaseTeaser

Case teaser as on free-lenz.net: a terracotta row that turns ink on hover while the device mockup slides in.

  • Experimental
  • Keyboard not tested yet
  • Screen reader not tested yet

Playground

Change the props. The controls come from the documented props.
DB Navigator Quick Booking on a phone: one swipe buys the ticket

Deutsche Bahn

A reflex that replaces six screens.

Mobile UX & interaction design — Quick Booking in DB Navigator, 42M+ downloads (2019).

2017–2019

Read the case: Deutsche Bahn
tsx
<CaseTeaser
  brand="Deutsche Bahn"
  period="2017–2019"
  claim="A reflex that replaces six screens."
  summary="Mobile UX & interaction design — Quick Booking in DB Navigator, 42M+ downloads (2019)."
  media={{
    src: "/portfolio/cases/db-navigator-quick-booking.webp",
    alt: "DB Navigator Quick Booking on a phone: one swipe buys the ticket",
    width: 700,
    height: 1198,
  }}
  href="#case"
/>

Usage

When to use

Use a case teaser for each featured case on an overview: two to four rows, one under the other, that each lead to their own page.

When not to use

  • For a case without its own page: use IndustrialCard.
  • For a long list of smaller projects: use ProjectList.

How it works

A terracotta row with white type, as on free-lenz.net: the brand as heading, the claim, a one-sentence summary and the period. On hover or keyboard focus the row turns ink, the claim's full stop takes the accent, the arrow turns, and the device mockup slides in from the right, rising above the row. With href, the arrow link's hit area covers the whole row: one link, one accessible name. Touch screens have no hover, so on small screens the mockup stands still above the text; with reduced motion it appears without moving.

Content guidelines

The brand leads, the claim says what changed in one line (“A reflex that replaces six screens.”), the summary names discipline and context. The link has no visible text; its accessible name is “Read the case” plus the brand.

Do and don’t

Do
  • Stack teasers in one column, a small gap apart.
  • Use trimmed mockups on transparent ground, so they can rise above the row.
Don’t
  • Don't add a second link or button; the teaser has one target.
  • Don't use it without a case page behind it; use IndustrialCard for static content.

Anatomy

The parts of the component and what each one does, as in the playground above.
  1. containerRow on the accent surface (terracotta, white type); the inverse surface on hover and focus.
  2. titleThe brand as a heading.
  3. bodyClaim in body type, summary in small type.
  4. metaPeriod in small tracked type.
  5. linkArrow link; its hit area covers the row, it turns and takes the accent on hover.
  6. mediaDevice mockup: above the text on small screens, from medium screens hidden until hover or focus.

Examples

Type-checked, and the same code goes into the AI manifest. Import: import { CaseTeaser } from "@/ds";
DB Navigator Quick Booking on a phone: one swipe buys the ticket

Deutsche Bahn

A reflex that replaces six screens.

Mobile UX & interaction design — Quick Booking in DB Navigator, 42M+ downloads (2019).

2017–2019

Read the case: Deutsche Bahn

Props

Checked against the component's TypeScript type on every build.
CaseTeaser props
NameTypeDefaultDescription
brand (required)string–Client or product; the heading.
claim (required)string–The claim of the case in one line; its full stop takes the accent on hover.
summary (required)string–Discipline and context in one sentence.
periodstring–Timeframe, e.g. 2017–2019.
media{ src, alt, width, height }–Trimmed device mockup; slides in on hover and focus from medium screens.
hrefstring–Case page; the whole teaser becomes the hit area of one link.
linkLabelstring"Read the case"Accessible text of the arrow link; the brand is added.
as"h2" | "h3" | "h4""h3"Heading level of the brand.

Tokens used

Derived from the utility classes in the component's source. Copy a class with one click.
Tokens used by CaseTeaser
TokenTierValueUtility
button.radiuscomponent9999px
card.paddingcomponent32px
card.radiuscomponent16px
eyebrow.trackingcomponent0.18em
accent.defaultsemantic#C6492E
motion.duration.basesemantic250ms
motion.ease.outsemanticcubic-bezier(0.16, 1, 0.3, 1)
spacing.0semantic0px
spacing.1semantic4px
spacing.12semantic48px
spacing.2semantic8px
spacing.4semantic16px
spacing.6semantic24px
spacing.8semantic32px
text.primarysemantic#0A0A0B
text.secondarysemantic#555555
type.body.sizesemantic16px
type.meta.sizesemantic13px
type.small.sizesemantic14px

Accessibility

What is checked automatically on every build, and what a person has tested. Nothing is marked as tested unless it was.
Testing status by check
CheckHowStatus
axe-core rulesAutomated on every npm run check, at desktop and mobile widthRuns on every build
KeyboardAutomated Playwright test (scripts/keyboard.mjs)Not tested yet
Screen readerManualNot tested yet

Keyboard

CaseTeaser keyboard interactions
KeyAction
TabMoves to the teaser's link; Enter opens the case.

Semantics and focus

  • One link per teaser; its accessible name is the link text plus the brand.
  • The card-wide hit area comes from the link itself, so there is no click handler on the card.