From 5bb57b1f8411346b61455d67b40e221b5716bcb3 Mon Sep 17 00:00:00 2001
From: Melissa Ayllon <116417470+MelissaAyllon@users.noreply.github.com>
Date: Sun, 22 Sep 2024 21:49:45 -0500
Subject: [PATCH] Chocomiembros (#63)
* skeleton member component
* member component
* members route & membershome
* responsive layout & updated json members
---------
Co-authored-by: Alexander Goussas <84427521+aloussase@users.noreply.github.com>
---
src/lib/assets/icons/bx-link.svg | 3 +
src/lib/assets/icons/linkedin.svg | 4 ++
src/lib/components/Member.svelte | 42 +++++++++++++
src/lib/components/Members_home.svelte | 15 +++++
src/lib/data/members.json | 84 ++++++++++++++++++++++++++
src/routes/+page.svelte | 5 +-
src/routes/members/+page.svelte | 32 ++++++++++
src/routes/members/+page.ts | 10 +++
8 files changed, 193 insertions(+), 2 deletions(-)
create mode 100644 src/lib/assets/icons/bx-link.svg
create mode 100644 src/lib/assets/icons/linkedin.svg
create mode 100644 src/lib/components/Member.svelte
create mode 100644 src/lib/components/Members_home.svelte
create mode 100644 src/lib/data/members.json
create mode 100644 src/routes/members/+page.svelte
create mode 100644 src/routes/members/+page.ts
diff --git a/src/lib/assets/icons/bx-link.svg b/src/lib/assets/icons/bx-link.svg
new file mode 100644
index 0000000..debd8db
--- /dev/null
+++ b/src/lib/assets/icons/bx-link.svg
@@ -0,0 +1,3 @@
+
+
+
\ No newline at end of file
diff --git a/src/lib/assets/icons/linkedin.svg b/src/lib/assets/icons/linkedin.svg
new file mode 100644
index 0000000..5a67441
--- /dev/null
+++ b/src/lib/assets/icons/linkedin.svg
@@ -0,0 +1,4 @@
+
+LinkedIn
+
+
\ No newline at end of file
diff --git a/src/lib/components/Member.svelte b/src/lib/components/Member.svelte
new file mode 100644
index 0000000..4dea8dd
--- /dev/null
+++ b/src/lib/components/Member.svelte
@@ -0,0 +1,42 @@
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/lib/components/Members_home.svelte b/src/lib/components/Members_home.svelte
new file mode 100644
index 0000000..81ccd00
--- /dev/null
+++ b/src/lib/components/Members_home.svelte
@@ -0,0 +1,15 @@
+
+
+
+ {#each members as member}
+
+ {/each}
+
\ No newline at end of file
diff --git a/src/lib/data/members.json b/src/lib/data/members.json
new file mode 100644
index 0000000..d2f6835
--- /dev/null
+++ b/src/lib/data/members.json
@@ -0,0 +1,84 @@
+[
+ {
+ "name": "Alina Carpio",
+ "role": "Presidente",
+ "photo": "https://avatars.githubusercontent.com/u/72272077?v=4",
+ "directiva": "si",
+ "socialMedia": [
+ { "nombre": "github", "link": "https://github.com/alicarpio" }
+ ]
+ },
+ {
+ "name": "Melissa Ayllon",
+ "role": "Vicepresidente",
+ "photo": "https://avatars.githubusercontent.com/u/116417470?v=4",
+ "directiva": "si",
+ "socialMedia": [
+ { "nombre": "github", "link": "https://github.com/MelissaAyllon" }
+ ]
+ },
+ {
+ "name": "Michael Estrada",
+ "role": "Secretario",
+ "photo": "https://avatars.githubusercontent.com/u/98861990?v=4",
+ "directiva": "si",
+ "socialMedia": [
+ { "nombre": "github", "link": "https://github.com/BryanEstrada003" }
+ ]
+ },
+ {
+ "name": "Adrian Delgado",
+ "role": "Miembro",
+ "photo": "https://avatars.githubusercontent.com/u/11708972?v=4",
+ "directiva": "no",
+ "socialMedia": [
+ { "nombre": "github", "link": "https://github.com/adriandelgado" }
+ ]
+ },
+ {
+ "name": "Braulio Rivas",
+ "role": "Miembro",
+ "photo": "https://avatars.githubusercontent.com/u/61257604?v=4",
+ "directiva": "no",
+ "socialMedia": [
+ { "nombre": "github", "link": "https://github.com/brauliorivas" }
+ ]
+ },
+ {
+ "name": "Daniel Cortez",
+ "role": "Miembro",
+ "photo": "https://avatars.githubusercontent.com/u/112514991?v=4",
+ "directiva": "no",
+ "socialMedia": [
+ { "nombre": "github", "link": "https://github.com/DanRCM" }
+ ]
+ },
+ {
+ "name": "Adair Abrigo",
+ "role": "Miembro",
+ "photo": "https://avatars.githubusercontent.com/u/93391519?v=4",
+ "directiva": "no",
+ "socialMedia": [
+ { "nombre": "github", "link": "https://github.com/adairaxe" }
+ ]
+ },
+ {
+ "name": "Anthony Herrera",
+ "role": "Miembro",
+ "photo": "https://avatars.githubusercontent.com/u/137233273?v=4",
+ "directiva": "no",
+ "socialMedia": [
+ { "nombre": "github", "link": "https://github.com/AnthonyyHL" }
+ ]
+ },
+ {
+ "name": "John CaƱarte",
+ "role": "Miembro",
+ "photo": "https://avatars.githubusercontent.com/u/70679514?v=4",
+ "directiva": "no",
+ "socialMedia": [
+ { "nombre": "github", "link": "https://github.com/Jecanart" }
+ ]
+ }
+ ]
+
\ No newline at end of file
diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte
index 607b780..8c03fae 100644
--- a/src/routes/+page.svelte
+++ b/src/routes/+page.svelte
@@ -1,8 +1,8 @@
+
+Directiva
+
+ {#each data.members as member}
+ {#if member.directiva === "si"}
+
+ {/if}
+ {/each}
+
+
+Miembros
+
+ {#each data.members as member}
+ {#if member.directiva === "no"}
+
+ {/if}
+ {/each}
+
\ No newline at end of file
diff --git a/src/routes/members/+page.ts b/src/routes/members/+page.ts
new file mode 100644
index 0000000..2ff0abc
--- /dev/null
+++ b/src/routes/members/+page.ts
@@ -0,0 +1,10 @@
+import type { PageLoad } from "./$types";
+import members from "$lib/data/members.json"
+export const load = (async () => {
+ return {
+ title: "Chocomiembros",
+ // TODO: fetch from API
+ description: "Miembros del club Kokoa",
+ members,
+ };
+}) satisfies PageLoad;
\ No newline at end of file