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 @@ + + +
+ Foto + +
+

{name}

+

{role}

+
+ +
+ + {#each socialMedia as media} + + + + {#if media.nombre === "linkedin"} + LinkedIn + {:else if media.nombre === "github"} + Github + {:else if media.nombre === "link"} + Link + {/if} + + + + {/each} +
+
\ 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