From 694235264e8db6c82b810b3e985197548c605462 Mon Sep 17 00:00:00 2001 From: Amphi <6633287021@student.chula.ac.th> Date: Fri, 20 Sep 2024 21:37:45 +0700 Subject: [PATCH] fix: use Fa icon and add organizations.ts --- .../OrganizationCard/OrganizationCard.svelte | 33 ++++--------------- src/lib/constant/organizations.ts | 22 +++++++++++++ 2 files changed, 28 insertions(+), 27 deletions(-) create mode 100644 src/lib/constant/organizations.ts diff --git a/src/lib/components/OrganizationCard/OrganizationCard.svelte b/src/lib/components/OrganizationCard/OrganizationCard.svelte index 712a7b2..787e8b8 100644 --- a/src/lib/components/OrganizationCard/OrganizationCard.svelte +++ b/src/lib/components/OrganizationCard/OrganizationCard.svelte @@ -1,30 +1,9 @@
@@ -58,7 +37,7 @@
- arrowRight +
@@ -90,8 +69,8 @@ > {organization.orgName} -
- arrowCircleRight +
+
{/each} diff --git a/src/lib/constant/organizations.ts b/src/lib/constant/organizations.ts new file mode 100644 index 0000000..03aceda --- /dev/null +++ b/src/lib/constant/organizations.ts @@ -0,0 +1,22 @@ +import sapanisit from '../assets/images/sapanisit.png'; +import smo from '../assets/images/smo.png'; +import sgcu from '../assets/images/sgcu.png'; + +export const organizations = [ + { + imageURL: smo, + orgName: 'สโมสรนิสิต \n จุฬาลงกรณ์มหาวิทยาลัย', + linkHref: 'https://www.google.com' + }, + { + imageURL: sgcu, + orgName: 'องค์การบริหารสโมสรนิสิต จุฬาลงกรณ์มหาวิทยาลัย (อบจ.)', + linkHref: 'https://www.chula.ac.th/academics/academic-units/sgcu/' + }, + { + imageURL: sapanisit, + orgName: 'สภานิสิต \n จุฬาลงกรณ์มหาวิทยาลัย', + linkHref: + 'https://www.sa.chula.ac.th/%E0%B8%AA%E0%B8%A0%E0%B8%B2%E0%B8%99%E0%B8%B4%E0%B8%AA%E0%B8%B4%E0%B8%95/' + } +]; \ No newline at end of file