Skip to content

Commit b7a8b33

Browse files
committed
Add position to ProfileCard
1 parent 203f008 commit b7a8b33

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/components/profile/ProfileCard.astro

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
const {name, slug, url, avatar, company} = Astro.props;
2+
const {name, slug, url, avatar, company, position=""} = Astro.props;
33
const defaultAltText = `Profile photo of ${name}`;
44
55
const link = url? url:`/speaker/${slug}`
@@ -18,7 +18,8 @@ const isExternal = Boolean(url);
1818
class="profile-image"
1919
/>
2020
<span class="profile-text">{name}</span>
21-
<span class="text-sm">{company}</span>
21+
{position && <span class="text-sm">{position}</span>}
22+
{company && <span class="text-sm">@ {company}</span>}
2223
</div>
2324
</a>
2425

src/content/pages/beginners-day-unconference.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ Whether you're switching careers or just starting out, this is your chance to le
6262
<div class="speakers-grid">
6363
<ProfileCard
6464
name="Jana Moudrá"
65+
position="CEO"
6566
company="Juicymo"
6667
avatar="/beginners-day-unconference/jana_moudra.jpg"
6768
url="https://www.linkedin.com/in/janamoudra/"

0 commit comments

Comments
 (0)