From 4e820c5722a7ed52ebfd0448ef3510e1612f28b5 Mon Sep 17 00:00:00 2001 From: zzzmlssqnzzz Date: Wed, 18 Jun 2025 23:20:37 -0400 Subject: [PATCH] council card base component --- src/components/CouncilCardBase.svelte | 76 +++++++++++++++++++++++++++ src/routes/council/+page.svelte | 61 +++++++++++++++++---- src/utils/schemas.ts | 16 +++--- 3 files changed, 134 insertions(+), 19 deletions(-) create mode 100644 src/components/CouncilCardBase.svelte diff --git a/src/components/CouncilCardBase.svelte b/src/components/CouncilCardBase.svelte new file mode 100644 index 0000000..a2c5c9e --- /dev/null +++ b/src/components/CouncilCardBase.svelte @@ -0,0 +1,76 @@ + + + + +
+
+ {#if image} + + {:else} + + {/if} +
+
+
{name}
+
{position}
+ View Profile +
+
+ + + diff --git a/src/routes/council/+page.svelte b/src/routes/council/+page.svelte index e18d4a7..d08ca5b 100644 --- a/src/routes/council/+page.svelte +++ b/src/routes/council/+page.svelte @@ -1,26 +1,65 @@ - ECSESS council

Meet the council!

-

Group picture!

- -
- {#each data.members as councilMember} - +
+
+ {#if president} + + {/if} +
+
+
+ {#each vps as councilMember} + + > {/each} + {#each ureps as councilMember} + + {/each} +
diff --git a/src/utils/schemas.ts b/src/utils/schemas.ts index b3a758c..592f756 100644 --- a/src/utils/schemas.ts +++ b/src/utils/schemas.ts @@ -1,8 +1,8 @@ -type CouncilMember = { - name: string, - email: string, - position: string, - positionDescription: string, - image: string, // URL - yearProgram: string -} \ No newline at end of file +export default interface CouncilMember { + name: string; + email: string; + position: string; + positionDescription: string; + image: string; // URL + yearProgram: string; +}