diff options
| author | Joe Carstairs <65492573+Sycamost@users.noreply.github.com> | 2023-08-14 21:07:58 +0100 |
|---|---|---|
| committer | Joe Carstairs <65492573+Sycamost@users.noreply.github.com> | 2023-08-14 21:11:30 +0100 |
| commit | 442adaa1e8d778e367c83bcb335ff308cbcbfc72 (patch) | |
| tree | 1ffaf1fab5c7376517e770ae78d7a4026e2aacb4 /src/components | |
| parent | 4bc2c40e5f139e8b2ff29c8abffec79798c96c7b (diff) | |
Defines Schedule component
Diffstat (limited to 'src/components')
| -rw-r--r-- | src/components/Schedule.astro | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/components/Schedule.astro b/src/components/Schedule.astro new file mode 100644 index 0000000..6b7c405 --- /dev/null +++ b/src/components/Schedule.astro @@ -0,0 +1,18 @@ +--- +interface Props { + entries: { time: string; description: string }[]; +} + +const { entries } = Astro.props; +--- + +<dl class="schedule"> + { + entries.map((entry) => ( + <> + <dt>{entry.time}</dt> + <dd>{entry.description}</dd> + </> + )) + } +</dl> |
