From 20227fe513c31440dc1b13970a86020a17cb74a5 Mon Sep 17 00:00:00 2001 From: Alexander Goussas Date: Sun, 22 Sep 2024 21:51:26 -0500 Subject: [PATCH] chore: Apply formatting --- src/lib/components/Member.svelte | 79 +++++++------ src/lib/components/Members_home.svelte | 14 ++- src/lib/data/members.json | 147 +++++++++++-------------- src/routes/+page.svelte | 4 +- src/routes/members/+page.svelte | 40 ++++--- src/routes/members/+page.ts | 4 +- 6 files changed, 141 insertions(+), 147 deletions(-) diff --git a/src/lib/components/Member.svelte b/src/lib/components/Member.svelte index 4dea8dd..8c96bf0 100644 --- a/src/lib/components/Member.svelte +++ b/src/lib/components/Member.svelte @@ -1,42 +1,49 @@ -
- Foto - -
-

{name}

-

{role}

-
- - -
\ No newline at end of file +
+ Foto + +
+

{name}

+

{role}

+
+ + +
diff --git a/src/lib/components/Members_home.svelte b/src/lib/components/Members_home.svelte index 81ccd00..1a54fae 100644 --- a/src/lib/components/Members_home.svelte +++ b/src/lib/components/Members_home.svelte @@ -1,15 +1,17 @@ -
+
{#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 index d2f6835..cda2bde 100644 --- a/src/lib/data/members.json +++ b/src/lib/data/members.json @@ -1,84 +1,65 @@ [ - { - "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 + { + "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" }] + } +] diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index 8c03fae..cd46abf 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -30,5 +30,5 @@ - - \ No newline at end of file + + diff --git a/src/routes/members/+page.svelte b/src/routes/members/+page.svelte index e226efe..345c9d2 100644 --- a/src/routes/members/+page.svelte +++ b/src/routes/members/+page.svelte @@ -1,32 +1,36 @@ -

Directiva

-
+

Directiva

+
{#each data.members as member} {#if member.directiva === "si"} - + {/if} {/each}
-

Miembros

-
+

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 index 2ff0abc..dffe6c6 100644 --- a/src/routes/members/+page.ts +++ b/src/routes/members/+page.ts @@ -1,5 +1,5 @@ import type { PageLoad } from "./$types"; -import members from "$lib/data/members.json" +import members from "$lib/data/members.json"; export const load = (async () => { return { title: "Chocomiembros", @@ -7,4 +7,4 @@ export const load = (async () => { description: "Miembros del club Kokoa", members, }; -}) satisfies PageLoad; \ No newline at end of file +}) satisfies PageLoad;