Files
tabler/shared/components/cards/UserCardBig.astro

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>