public inbox for [email protected]
 help / color / mirror / Atom feed
From: Muhammad Rizki <[email protected]>
To: Ammar Faizi <[email protected]>
Cc: Muhammad Rizki <[email protected]>,
	Alviro Iskandar Setiawan <[email protected]>,
	Irvan Malik Azantha <[email protected]>,
	Memet Zx <[email protected]>,
	GNU/Weeb Mailing List <[email protected]>
Subject: [PATCH v2 09/14] feat(components): add <OrganizationMembers/> component
Date: Sat,  7 Oct 2023 12:44:41 +0700	[thread overview]
Message-ID: <[email protected]> (raw)
In-Reply-To: <[email protected]>

This component UI will display GitHub organization members.

Signed-off-by: Muhammad Rizki <[email protected]>
---
 src/lib/components/OrganizationMembers.svelte | 41 +++++++++++++++++++
 1 file changed, 41 insertions(+)
 create mode 100644 src/lib/components/OrganizationMembers.svelte

diff --git a/src/lib/components/OrganizationMembers.svelte b/src/lib/components/OrganizationMembers.svelte
new file mode 100644
index 0000000..2443378
--- /dev/null
+++ b/src/lib/components/OrganizationMembers.svelte
@@ -0,0 +1,41 @@
+<script lang="ts">
+  import type { GitHubOrgsAPIResponseType } from "$types";
+
+  export let data: GitHubOrgsAPIResponseType[];
+</script>
+
+
+<div
+  class="border border-neutral-800 rounded-xl overflow-hidden
+        max-w-xs md:max-w-lg lg:max-w-3xl xl:w-[20rem]"
+>
+  <div class="flex px-5 py-2 border-b border-neutral-800 justify-between items-center">
+    <h1 class="text-lg font-bold text-center w-full">Member List</h1>
+  </div>
+  <div class="px-3 py-2 space-y-1 text-sm max-h-[300px] overflow-y-auto">
+    {#each data as member}
+      <a
+        href={member.html_url}
+        class="flex items-center space-x-3 p-1 rounded-lg hover:bg-neutral-800"
+      >
+        <img
+          src={member.avatar_url}
+          alt="{member.login} | Organization Member"
+          class="rounded-full w-10"
+        >
+        <div class="truncate text-sky-500">@{member.login}</div>
+      </a>
+    {/each}
+  </div>
+  <a href="https://github.com/orgs/gnuweeb/people" draggable="false" target="_blank">
+    <div
+      class="p-3 border-t border-neutral-800 hover:bg-neutral-800
+            flex justify-center items-center w-full"
+    >
+      <span class="select-none font-semibold text-sky-500 mr-1">View on GitHub</span>
+      <svg class="w-3 h-3 text-neutral-500" fill="currentColor" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48">
+        <path d="M 40.960938 4.9804688 A 2.0002 2.0002 0 0 0 40.740234 5 L 28 5 A 2.0002 2.0002 0 1 0 28 9 L 36.171875 9 L 22.585938 22.585938 A 2.0002 2.0002 0 1 0 25.414062 25.414062 L 39 11.828125 L 39 20 A 2.0002 2.0002 0 1 0 43 20 L 43 7.2460938 A 2.0002 2.0002 0 0 0 40.960938 4.9804688 z M 12.5 8 C 8.3826878 8 5 11.382688 5 15.5 L 5 35.5 C 5 39.617312 8.3826878 43 12.5 43 L 32.5 43 C 36.617312 43 40 39.617312 40 35.5 L 40 26 A 2.0002 2.0002 0 1 0 36 26 L 36 35.5 C 36 37.446688 34.446688 39 32.5 39 L 12.5 39 C 10.553312 39 9 37.446688 9 35.5 L 9 15.5 C 9 13.553312 10.553312 12 12.5 12 L 22 12 A 2.0002 2.0002 0 1 0 22 8 L 12.5 8 z"></path>
+      </svg>
+    </div>
+  </a>
+</div>
-- 
Muhammad Rizki


  parent reply	other threads:[~2023-10-07  5:45 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-10-07  5:44 [PATCH v2 00/14] GNU/Weeb Web Migration to SvelteKit Muhammad Rizki
2023-10-07  5:44 ` [PATCH v2 01/14] refactor: migrate: migrate to sveltekit framework Muhammad Rizki
2023-10-07  5:44 ` [PATCH v2 02/14] feat(layout): add +layout.ts Muhammad Rizki
2023-10-07  5:44 ` [PATCH v2 03/14] feat(app): add app types file Muhammad Rizki
2023-10-07  5:44 ` [PATCH v2 04/14] feat(lib): add API_URL and STORAGE_URL constant variable Muhammad Rizki
2023-10-07  5:44 ` [PATCH v2 05/14] feat(lib): add lib functions file Muhammad Rizki
2023-10-07  5:44 ` [PATCH v2 06/14] feat(lib): add newly created lib constants variables and functions Muhammad Rizki
2023-10-07  5:44 ` [PATCH v2 07/14] feat(lib/functions): add getRepliedMessage() function Muhammad Rizki
2023-10-07  5:44 ` [PATCH v2 08/14] feat(lib/functions): add dateFormat() function Muhammad Rizki
2023-10-07  5:44 ` Muhammad Rizki [this message]
2023-10-07  5:44 ` [PATCH v2 10/14] feat(components): add <RecentMessages/> component Muhammad Rizki
2023-10-07  5:44 ` [PATCH v2 11/14] feat(routes): add +page.ts Muhammad Rizki
2023-10-07  5:44 ` [PATCH v2 12/14] feat(routes/page): add +page.svelte Muhammad Rizki
2023-10-07  5:44 ` [PATCH v2 13/14] chore(README): update README.md Muhammad Rizki
2023-10-07  5:44 ` [PATCH v2 14/14] chore: remove unused files Muhammad Rizki
2023-10-09 21:22 ` [PATCH v2 00/14] GNU/Weeb Web Migration to SvelteKit Ammar Faizi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    [email protected] \
    [email protected] \
    [email protected] \
    [email protected] \
    [email protected] \
    [email protected] \
    [email protected] \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox