-
-
Notifications
You must be signed in to change notification settings - Fork 301
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add implementation for subteams (#1428)
resolves #1420 (Please don#t merge this with the changes to moderation, this is just an example to preview the changes here, I'll remove them before merging since the commits get squashed anyway)
- Loading branch information
1 parent
471dc75
commit cf04255
Showing
3 changed files
with
129 additions
and
41 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,65 @@ | ||
--- | ||
const { title = "Members", isSubteam = false, members, contact, class: extraClasses } = Astro.props; | ||
const titleClasses = `text-3xl font-heading font-bold text-nix-blue`; | ||
--- | ||
|
||
<aside | ||
class:list={[ | ||
!isSubteam && "bg-nix-blue-extralight rounded-xl px-4 py-3 w-full", | ||
extraClasses]}> | ||
<h2 class={titleClasses}>{title}</h2> | ||
<ul class="mt-2 list-disc ml-4 font-light"> | ||
{ | ||
members.map((member) => ( | ||
<li class="mb-1 last:mb-0"> | ||
{member.name} | ||
{member.discourse && ( | ||
<> | ||
( | ||
<a | ||
href={ | ||
"https://discourse.nixos.org/u/" + | ||
member.discourse | ||
} | ||
> | ||
@{member.discourse} | ||
</a> | ||
) | ||
</> | ||
)} | ||
{member.github && ( | ||
<> | ||
( | ||
<a href={"https://github.com/" + member.github}> | ||
@{member.github} | ||
</a> | ||
) | ||
</> | ||
)} | ||
{member.title && ( | ||
<> | ||
— | ||
{member.title} | ||
</> | ||
)} | ||
</li> | ||
)) | ||
} | ||
</ul> | ||
{ | ||
contact && ( | ||
<> | ||
<h2 class="text-3xl font-heading font-bold text-nix-blue mt-4"> | ||
Contact | ||
</h2> | ||
<ul class="mt-2 list-disc ml-4"> | ||
{contact.map((contact) => ( | ||
<li class="mb-1 last:mb-0"> | ||
<a href={contact.href}>{contact.name}</a> | ||
</li> | ||
))} | ||
</ul> | ||
</> | ||
) | ||
} | ||
</aside> |
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
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