Composite

CaseStudyCard

A case study card: client, title link, excerpt and tags.

Basic

The client sits above the title. The title is the card’s one link.

basic
---
import CaseStudyCard from '@alfadormx/blocks/composite/CaseStudyCard.astro';
---

<div class="max-w-sm">
  <CaseStudyCard
    client="Example Jewellers"
    headline={{ title: 'A ring configurator that sells' }}
    href="/demos/portfolio/work/ring-configurator"
    description="A 3D configurator with shareable codes for an online jeweller."
    tags={['3d', 'e-commerce']}
    image={{
      src: '~/assets/images/content/solitaire-ring.jpg',
      alt: 'A gold solitaire ring with a round diamond',
    }}
  />
</div>

API Reference

PropTypeDefaultDescription
headlineHeadlineProps—Card title; the title text is the card's one link and its accessible name (default: htmlTag 'h3').
hrefstring—Entry URL; the whole card is one link.
descriptionstring—Excerpt under the title.
imageImageProps—Cover image above the title.
tagsstring[]—Tags in the card footer (default: []).
langCodestring—Language of the card's dates and UI strings (default: the site's default language).
classstring—Classes on the card root (`data-entry-card`).
eyebrowClassstring—Classes on the eyebrow line above the title (`data-entry-card-eyebrow`).
tagsClassstring—Classes on the tags list (`data-entry-card-tags`).
clientstring—Client name, shown above the title.
readMoreLabelstring—Visual "Read more" text; hidden from assistive tech, since the title is the link (default: per-language string).