Skip to content

Commit

Permalink
Fix ambassador typing
Browse files Browse the repository at this point in the history
  • Loading branch information
ewels committed Mar 10, 2024
1 parent 1a24ca6 commit f9c41b6
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 7 deletions.
30 changes: 25 additions & 5 deletions src/components/AmbassadorCard.astro
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@ export interface Props {
img: string;
country: string;
github: string;
linkedin: string;
twitter: string;
linkedin?: string;
twitter?: string;
mastodon?: string;
}
const { name, img, country, github, linkedin, twitter } = Astro.props;
const { name, img, country, github, linkedin, twitter, mastodon } = Astro.props;
---

<div class="feature">
Expand All @@ -23,8 +24,27 @@ const { name, img, country, github, linkedin, twitter } = Astro.props;
<img src={`https://flagicons.lipis.dev/flags/4x3/${country}.svg`} class="ambassador" width="15" height="15" />
<br />
<a href={`https://github.com/${github}`} target="_blank"><i class="fa fa-github fa-lg fa-lg"></i></a>
<a href={`https://linkedin.com/in/${linkedin}`} target="_blank"><i class="fa fa-linkedin fa-lg fa-lg"></i></a>
<a href={`https://twitter.com/${twitter}`} target="_blank"><i class="fa fa-twitter fa-lg fa-lg"></i></a>
{
linkedin && (
<a href={`https://linkedin.com/in/${linkedin}`} target="_blank">
<i class="fa fa-linkedin fa-lg fa-lg" />
</a>
)
}
{
twitter && (
<a href={`https://twitter.com/${twitter}`} target="_blank">
<i class="fa fa-twitter fa-lg fa-lg" />
</a>
)
}
{
mastodon && (
<a href={mastodon} target="_blank">
<i class="fa fa-rss fa-lg fa-lg" />
</a>
)
}
<br />
</p>
</div>
Expand Down
9 changes: 8 additions & 1 deletion src/pages/our_ambassadors.astro
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,14 @@ import AmbassadorCard from "@components/AmbassadorCard.astro";
> member of <a href="https://nf-co.re/" target="_blank">nf-core</a>.
</AmbassadorCard>

<AmbassadorCard name="Friederike Hanssen" img="friederikehanssen.png" country="de" twitter="RikeHanssen">
<AmbassadorCard
name="Friederike Hanssen"
img="friederikehanssen.png"
country="de"
github="FriederikeHanssen"
linkedin="friederike-hanssen"
twitter="RikeHanssen"
>
Friederike Hanssen...
</AmbassadorCard>

Expand Down
2 changes: 1 addition & 1 deletion src/pages/podcasts/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const dateString = (d: Date) => {

<div class="timeline-info hidden-xs">
<img src="/img/coming-soon.png" class="blg-author future-show" alt="Coming soon" />
<img src={`/img/${post.data.icon}`} class="blg-author future-hide" alt={post.author} />
<img src={`/img/${post.data.icon}`} class="blg-author future-hide" alt={post.data.author} />
</div>
<ul class="text-muted list-inline blg-header">
<li>
Expand Down

0 comments on commit f9c41b6

Please sign in to comment.