From 2a91d9e5bf213e1e2e97c400848c0c810c46fb1f Mon Sep 17 00:00:00 2001 From: Antoine Phan Date: Mon, 9 Feb 2026 17:36:30 -0500 Subject: [PATCH] Finishing updating the new council page --- src/components/council/CouncilAvatar.svelte | 4 +--- src/components/council/CouncilCard.svelte | 18 +++++++++--------- src/components/council/CouncilCardPopUp.svelte | 5 ++++- src/routes/council/+page.svelte | 14 ++++++-------- 4 files changed, 20 insertions(+), 21 deletions(-) diff --git a/src/components/council/CouncilAvatar.svelte b/src/components/council/CouncilAvatar.svelte index 0f19a3d..985df74 100644 --- a/src/components/council/CouncilAvatar.svelte +++ b/src/components/council/CouncilAvatar.svelte @@ -16,9 +16,7 @@ } -
+
{#if src && !imageError}
{#if tag} {tag} {/if} - +
{#if image && !imageError} -

+

{name}

-

{position}

+

{position}

@@ -74,7 +74,7 @@
diff --git a/src/components/council/CouncilCardPopUp.svelte b/src/components/council/CouncilCardPopUp.svelte index c721e81..6fcff5f 100644 --- a/src/components/council/CouncilCardPopUp.svelte +++ b/src/components/council/CouncilCardPopUp.svelte @@ -14,7 +14,10 @@ function getInitials(name: string | null | undefined): string { if (name == null || typeof name !== 'string') return ''; const words = name.trim().split(/\s+/).filter(Boolean); - return words.slice(0, 3).map((w) => w.charAt(0).toUpperCase()).join(''); + return words + .slice(0, 3) + .map((w) => w.charAt(0).toUpperCase()) + .join(''); } import { scale } from 'svelte/transition'; diff --git a/src/routes/council/+page.svelte b/src/routes/council/+page.svelte index 5b42263..9ee4159 100644 --- a/src/routes/council/+page.svelte +++ b/src/routes/council/+page.svelte @@ -100,12 +100,10 @@ {#if president} -
+
-

- President -

+

President

@@ -121,10 +119,10 @@ {/if} -
+
-

+

Vice Presidents

@@ -142,10 +140,10 @@
-
+
-

+

Year Representatives