Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions app/(pages)/judges/(app)/_components/Projects/EmptyState.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,11 @@ import twoStars from '/public/judges/projects/two_stars.svg';
export default function ProjectsEmptyState({
title,
subtitle,
feedbackLink,
}: {
title: string;
subtitle: string;
feedbackLink?: string;
}) {
return (
<div className="flex flex-col items-center text-center">
Expand All @@ -19,6 +21,16 @@ export default function ProjectsEmptyState({
</span>
<span className="text-[16px] font-[500] text-[#000000]">{subtitle}</span>
<Image src={projectCow} alt="Project Cow" />
{feedbackLink && (
<a
href={feedbackLink}
target="_blank"
rel="noreferrer"
className="mt-[24px] px-[20px] py-[10px] bg-black text-white rounded-full text-[14px] font-semibold hover:opacity-90 transition-opacity"
>
Share Feedback
</a>
)}
</div>
);
}
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ export default function UnscoredPage({
<EmptyState
title="You're Done!"
subtitle={"You've judged all your projects.\n Thank you so much!"}
feedbackLink="https://forms.gle/kdRHdEp6u4y4Cc5S6"
/>
);
}
Expand Down
Loading