# Demos

Every demo is a folder of [`examples/`](https://github.com/vguerand/recit/tree/main/examples) you
can run locally. Click a card to read its page (features, source code, interactive deck), or open
the demo fullscreen from there.

<StoryGallery
  decks={["presentation/starter", "presentation/tech-talk", "presentation/showcase", "presentation/pitch", "presentation/course", "presentation/mdx", "presentation/data", "presentation/site"]}
  links={{
    "presentation/starter": "/presentation/demos/starter",
    "presentation/tech-talk": "/presentation/demos/tech-talk",
    "presentation/showcase": "/presentation/demos/showcase",
    "presentation/pitch": "/presentation/demos/pitch",
    "presentation/course": "/presentation/demos/course",
    "presentation/mdx": "/presentation/demos/mdx",
    "presentation/data": "/presentation/demos/data",
    "presentation/site": "/presentation/demos/site",
  }}
  slides={{
    "presentation/starter": 2,
    "presentation/tech-talk": 2,
    "presentation/showcase": 5,
    "presentation/pitch": 2,
    "presentation/course": 4,
    "presentation/data": 2,
    "presentation/site": 2,
  }}
/>

## Which example for which need?

| Demo                                       | Level        | What it shows                                            |
| ------------------------------------------ | ------------ | -------------------------------------------------------- |
| [Starter](/presentation/demos/starter)     | Beginner     | the minimum: plain Markdown, no configuration            |
| [Tech talk](/presentation/demos/tech-talk) | Beginner     | cards, quote, Mermaid diagram, speaker notes             |
| [Showcase](/presentation/demos/showcase)   | Intermediate | every layout, the full configuration, a custom component |
| [Pitch](/presentation/demos/pitch)         | Intermediate | 4:3 format, light theme, brand colors, fade transitions  |
| [Course](/presentation/demos/course)       | Intermediate | math, table, tabbed code, quiz with steps                |
| [MDX](/presentation/demos/mdx)             | Advanced     | stateful React components, expressions, imports          |
| [Data](/presentation/demos/data)           | Advanced     | `::chart`, `:value`, ready charts and maps, light & dark |
| [Site](/presentation/demos/site)           | Advanced     | publishing stories inside a Récit site                   |

## Run an example

```bash
pnpm install
pnpm build
pnpm --filter recit-example-deck-showcase dev
```

Every deck example also provides `build`, `export` (PDF) and `export:html`. Want to start from one?
See [Templates](/presentation/templates).
