Skip to content

Commit

Permalink
Show a list of clubs
Browse files Browse the repository at this point in the history
Refs #76
  • Loading branch information
thewilkybarkid committed Jul 30, 2024
1 parent b66ab50 commit 76a1926
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions src/clubs.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
---
theme: dashboard
title: Clubs
toc: false
---

# Clubs ♣️

```js
const allClubs = FileAttachment('./data/clubs.json')
.json()
.then(data => Object.entries(data).map(([id, name]) => ({ id, name })))
```

```js
const clubs = Inputs.table(allClubs, {
columns: ['name'],
header: { name: 'Name' },
sort: 'name',
required: false,
rows: 30,
})
```

<div class="grid grid-cols-1">
<div class="card">
${clubs}
</div>
</div>

0 comments on commit 76a1926

Please sign in to comment.