-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use a component for ambassador cards
- Loading branch information
Showing
2 changed files
with
562 additions
and
965 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
Oops, something went wrong.