Skip to content

Commit

Permalink
Use a component for ambassador cards
Browse files Browse the repository at this point in the history
  • Loading branch information
ewels committed Mar 10, 2024
1 parent b4338ca commit 413286b
Show file tree
Hide file tree
Showing 2 changed files with 562 additions and 965 deletions.
31 changes: 31 additions & 0 deletions src/components/AmbassadorCard.astro
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
---
export interface Props {
name: string;
img: string;
country: string;
github: string;
linkedin: string;
twitter: string;
}
const { name, img, country, github, linkedin, twitter } = Astro.props;
---

<div class="feature">
<div class="feature-body ambassadors">
<img src={`img/${img}`} class="ambassador" />
<h4>{name}</h4>
</div>
<div class="feature-hover border-color">
<p class="text-muted">
<slot />
<br />
<img src={`https://flagicons.lipis.dev/flags/4x3/${country}.svg`} class="ambassador" width="15" length="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>
<br />
</p>
</div>
</div>
Loading

0 comments on commit 413286b

Please sign in to comment.