Hoppa till innehåll

Exercises and media

This page shows how exercises, recorded lectures, and diagrams are presented on the course site.


<Exercise> renders one exercise as an inline link with a difficulty badge — use it when a single exercise doesn’t warrant a full list, for example inline in a paragraph.

UppvärmningHello, World!Lösningsförslag

<ExerciseList> takes a list of exercises and shows each difficulty level as a labeled Badge:


<Youtube> embeds a YouTube video with a responsive 16:9 layout. An optional published prop (format YYYY-MM-DD, YouTube’s publish date — not necessarily the actual recording date) and an optional freeform duration prop (e.g. "1h 13m") show as a caption below the video:

4m

Here, a video is combined with a :::caution box to flag outdated material in the recording:

CCBY