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; +}