mirror of
https://github.com/tabler/tabler.git
synced 2026-10-14 22:26:30 +04:00
30 lines
633 B
Plaintext
30 lines
633 B
Plaintext
---
|
|
import Avatar from '@ui/Avatar.astro'
|
|
import people from '@data/people.json'
|
|
|
|
interface Person {
|
|
full_name?: string
|
|
job_title?: string
|
|
photo?: string
|
|
[key: string]: unknown
|
|
}
|
|
|
|
interface Props {
|
|
personId?: number
|
|
}
|
|
|
|
const { personId = 0 } = Astro.props
|
|
const person = (people as Person[])[personId]
|
|
---
|
|
|
|
<div class="card">
|
|
<div class="card-body text-center">
|
|
<div class="mb-3">
|
|
<Avatar size="xl" person={person} />
|
|
</div>
|
|
<h3 class="card-title mb-1">{person.full_name}</h3>
|
|
<div class="text-secondary">{person.job_title}</div>
|
|
</div>
|
|
<a href="#" class="card-btn">View full profile</a>
|
|
</div>
|