Skip to content

Commit 5d96e88

Browse files
authored
merg to prod (#508)
* feat: enhance submission grading modal with improved UI, detailed score breakdown, and submission-centric scoring. * chore: Update `package-lock.json` to reflect dependency changes. * feat: Display winner's logo in `TopWinnerCard` by updating its source and adding a `logo` field to the `HackathonWinner` interface.
1 parent c964bf0 commit 5d96e88

16 files changed

Lines changed: 1514 additions & 672 deletions

File tree

app/(landing)/hackathons/[slug]/components/tabs/contents/winners/TopWinnerCard.tsx

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,18 @@ interface TopWinnerCardProps {
1111
}
1212

1313
export const TopWinnerCard = ({ winner, submission }: TopWinnerCardProps) => {
14-
const bannerUrl = submission?.logo || '/images/default-project-banner.png'; // Fallback to logo or default
14+
const bannerUrl = winner?.logo || '/images/default-project-banner.png'; // Fallback to logo or default
1515

1616
return (
1717
<div className='relative w-full overflow-hidden rounded-2xl border border-white/5 bg-[#0A0A0A] p-6 transition-all hover:border-white/10'>
1818
<div className='flex flex-col gap-8 md:flex-row'>
19-
{/* Project Visual */}
2019
<div className='relative aspect-4/3 w-full shrink-0 overflow-hidden rounded-xl bg-linear-to-br from-indigo-500/20 to-purple-500/20 md:w-[240px] lg:w-[280px]'>
21-
{submission?.logo ? (
20+
{bannerUrl ? (
2221
<Image
23-
src={submission.logo}
22+
src={bannerUrl}
2423
alt={winner.projectName}
2524
fill
25+
sizes='(max-width: 768px) 100vw, (max-width: 1200px) 50vw, 33vw'
2626
className='object-cover'
2727
/>
2828
) : (
@@ -32,7 +32,6 @@ export const TopWinnerCard = ({ winner, submission }: TopWinnerCardProps) => {
3232
)}
3333
</div>
3434

35-
{/* Project Info */}
3635
<div className='flex flex-1 flex-col py-1'>
3736
<div className='mb-6 flex flex-col gap-6 sm:flex-row sm:items-start sm:justify-between lg:mb-2'>
3837
<div className='space-y-1'>

0 commit comments

Comments
 (0)