Website slides: feature showcase
Use your browser’s Print or Save as PDF command to print this handout.
1 / 10
Welcome to website slides
A burgundy-native deck authored in MDX. Read is the canonical long-form view, Present adds navigation when requested, and Print is a static browser-print handout.
| View | Best for |
|---|---|
| Read | Links and careful reading |
| Present | A live talk |
| Browser Print or Save as PDF |
2 / 10
One source, three views
The compiler, syntax highlighting, and diagrams stay on the server. Only Present opts into reveal.js behavior.
3 / 10
Markdown and MDX
Ordinary document structure
The website uses normal headings and links, while this small table remains readable in every view.
| Author | Result |
|---|---|
| Markdown | Structure and links |
| MDX | Deliberate components |
4 / 10
CodeHike annotations
Filename, line numbers, marks, diffs, and folds remain useful static evidence in Read and Print.
export function chooseView(requested: 'read' | 'present' | 'print') {const serverRendered = truereturn { serverRendered, runtime: 'always' }return { serverRendered, runtime: requested === 'present' ? 'reveal.js' : 'none' }// Internal implementation details stay expanded in static views.}
5 / 10
Multiple examples
export const views = ['read', 'present', 'print'] as const
<SlideFragment>Visible immediately outside Present.</SlideFragment>
yarn add reveal.js
pnpm add reveal.js
npm install reveal.js
Static views label every tab and package-manager command variant instead of relying on an active control.
6 / 10
Theme integration
primary.basebackground.pagesecondary.baseThe slides family supplies burgundy surfaces and accents through the existing light, dark, and system theme selection controls. CodeHike syntax colors remain CSS-driven light/dark palettes.
7 / 10
Layouts and diagrams
Two columns
Use columns for complementary ideas, not dense text. The reading view stacks them when space is limited.
8 / 10
Progressive enhancement
First idea: every slide is visible in Read and Print.
Then: Present reveals selected fragments in speaking order.
No essential explanation is hidden behind a fragment: static visitors and printed handouts see both statements.
9 / 10
Interactive MDX
The small counter accepts interaction only in Present. Its static label makes the state and purpose understandable without client-side demo code.
10 / 10
Presenting and sharing
Each slide keeps the anchor emitted by the MDX heading pipeline, so a Read URL with that fragment can identify a specific slide. Present includes speaker notes; Read and Print intentionally do not.
For a handout, open Print and use the browser's Print or Save as PDF command. This deck does not create or download a PDF.