Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 210304d

Browse files
committed
feat: visual improvements
1 parent 9caf90d commit 210304d

File tree

1 file changed

+15
-7
lines changed

1 file changed

+15
-7
lines changed

layout/Sponsor/Visitors/Visitors.tsx

+15-7
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,10 @@ const SponsorVisitors: React.FC = () => {
6565
<div className="mt-5 h-screen text-white">
6666
{visitors.filter((v) => v.cv != null).length > 0 && (
6767
<button
68-
className="m-auto mb-5 block select-none rounded-full bg-quinary px-5 py-2 font-ibold text-2xl text-white"
68+
className="font-terminal-uppercase m-auto mb-5 block select-none rounded-full bg-quinary px-5 py-2 text-2xl text-white"
6969
onClick={downloadCVs}
7070
>
71-
{downloading ? "Downloading" : "Download All CV's"}
71+
{downloading ? "Downloading" : "Download All CVs"}
7272
</button>
7373
)}
7474
<div className="grid grid-cols-1 lg:grid-cols-4">
@@ -77,11 +77,19 @@ const SponsorVisitors: React.FC = () => {
7777
key={visitor.id}
7878
className="hover:b-4 m-2 mb-4 flex flex-col items-center justify-center rounded-lg p-2 hover:border-blue-500"
7979
>
80-
<img
81-
alt={visitor.name}
82-
src={visitor.avatar}
83-
className="mb-2 h-40 w-40 select-none rounded-full border-2 border-white object-cover hover:border-pink-500"
84-
/>
80+
{visitor.avatar ? (
81+
<img
82+
alt={visitor.name}
83+
src={visitor.avatar}
84+
className="mb-2 h-40 w-40 select-none rounded-full border-2 border-white object-cover"
85+
/>
86+
) : (
87+
<img
88+
alt={visitor.name}
89+
src="/images/mascot-head.png"
90+
className="mb-2 h-40 w-40 select-none rounded-full border-2 border-white object-cover"
91+
/>
92+
)}
8593
<p className="text-center">{visitor.name}</p>
8694
<p className="text-center">{visitor.email}</p>
8795
{visitor.cv ? (

0 commit comments

Comments
 (0)