mirror of
https://github.com/tabler/tabler.git
synced 2026-10-12 05:06:55 +04:00
25 lines
628 B
Plaintext
25 lines
628 B
Plaintext
---
|
|
import Avatar from '@ui/Avatar.astro'
|
|
import { people } from '@shared/lib/people'
|
|
import { requireIndex } from '@shared/lib/array'
|
|
import CardTitle from '@ui/CardTitle.astro'
|
|
|
|
interface Props {
|
|
personId?: number
|
|
}
|
|
|
|
const { personId = 0 } = Astro.props
|
|
const person = requireIndex(people, personId)
|
|
---
|
|
|
|
<div class="card">
|
|
<div class="card-body text-center">
|
|
<div class="mb-3">
|
|
<Avatar size="xl" person={person} />
|
|
</div>
|
|
<CardTitle class="mb-1">{person.full_name}</CardTitle>
|
|
<div class="text-secondary">{person.job_title}</div>
|
|
</div>
|
|
<a href="#" class="card-btn">View full profile</a>
|
|
</div>
|