-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fe139da
commit 40c619f
Showing
7 changed files
with
85 additions
and
0 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,26 @@ | ||
<script lang="ts"> | ||
import ProfileCard from "./ProfileCard.svelte"; | ||
import type { OrgMember } from "./types.ts"; | ||
export let OrgMembers: OrgMember[]; | ||
</script> | ||
|
||
<section> | ||
<div class="container bg-blue-500"> | ||
<p class="text-4xl font-bold text-white">Members</p> | ||
<div class="inline-flex items-center justify-center"> | ||
<div class="profile-container"> | ||
{#if !OrgMembers ||OrgMembers.length === 0} | ||
<p>No Public Members found...</p> | ||
{:else} | ||
{#each OrgMembers as member} | ||
<ProfileCard | ||
username={member.login} | ||
avatarURL={member.avatar_url} | ||
profileURL={member.html_url} | ||
/> | ||
{/each} | ||
{/if} | ||
</div> | ||
</div> | ||
</div> | ||
</section> |
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,23 @@ | ||
<script lang="ts"> | ||
export let username: string; | ||
export let avatarURL: string; | ||
export let profileURL: string; | ||
</script> | ||
|
||
<div> | ||
<div class="m-2 inline-block"> | ||
<a class="no-underline" title={username} href={profileURL}> | ||
<div | ||
id="profile" | ||
class="rounded bg-[#232428] p-2 text-white hover:scale-110" | ||
> | ||
<div class="flex flex-row items-center"> | ||
<img alt={username} class="mr-3 rounded-full" src={avatarURL} /> | ||
<p class="text-sm"> | ||
@ {username} | ||
</p> | ||
</div> | ||
</div> | ||
</a> | ||
</div> | ||
</div> |
Empty file.
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,6 @@ | ||
import type { Endpoints } from "@octokit/types"; | ||
|
||
export type OrgMember = | ||
Endpoints["GET /orgs/{org}/public_members"]["response"]["data"][number]; | ||
|
||
export type GitHubUser = Pick<OrgMember, "avatar_url" | "login" | "html_url">; |
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