diff --git a/src/assets/profile_pictures/Rowel_Sabahat.png b/src/assets/profile_pictures/Rowel_Sabahat.png new file mode 100644 index 0000000..7417adb Binary files /dev/null and b/src/assets/profile_pictures/Rowel_Sabahat.png differ diff --git a/src/components/ProfileCard.vue b/src/components/ProfileCard.vue index 793bd7a..e45687a 100644 --- a/src/components/ProfileCard.vue +++ b/src/components/ProfileCard.vue @@ -17,6 +17,19 @@ const handleImgErr = (e: Event) => { const target = e.target as HTMLImageElement target.src = emptyPic } + +const turnOrdinal = (year : number) => { + switch(year % 10) { + case 1: + return year + 'st' + case 2: + return year + 'nd' + case 3: + return year + 'rd' + default: + return year + 'th' + } +}