Skip to content

Commit 503ec0e

Browse files
authored
fix(submissions): correct logo cropping and remove duplicate category badge on submission card (#549)
- Logo overlay on banner uses object-contain so wordmark logos are not cropped - Render the category badge once instead of twice on the explore submissions card
1 parent f2d3f5c commit 503ec0e

1 file changed

Lines changed: 4 additions & 7 deletions

File tree

app/(landing)/hackathons/[slug]/components/tabs/contents/submissions/SubmissionCard.tsx

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ const SubmissionCard = ({ submission }: SubmissionCardProps) => {
113113
<img
114114
src={logo}
115115
alt={`${projectName} logo`}
116-
className='absolute bottom-3 left-3 h-12 w-12 rounded-lg border-2 border-[#0D0E10] bg-[#0D0E10] object-cover shadow-lg'
116+
className='absolute bottom-3 left-3 h-12 w-12 rounded-lg border-2 border-[#0D0E10] bg-[#0D0E10] object-contain shadow-lg'
117117
/>
118118
)}
119119
</div>
@@ -130,12 +130,9 @@ const SubmissionCard = ({ submission }: SubmissionCardProps) => {
130130

131131
{/* Tags/Categories */}
132132
<div className='flex flex-wrap gap-2 pt-2'>
133-
<span className='text-primary rounded-md bg-[#232B20]/50 px-2.5 py-1 text-[10px] font-bold tracking-wider uppercase'>
134-
{category}
135-
</span>
136-
{submission.category && (
137-
<span className='rounded-md bg-white/5 px-2.5 py-1 text-[10px] font-bold tracking-wider text-gray-400 uppercase'>
138-
{submission.category}
133+
{category && (
134+
<span className='text-primary rounded-md bg-[#232B20]/50 px-2.5 py-1 text-[10px] font-bold tracking-wider uppercase'>
135+
{category}
139136
</span>
140137
)}
141138
</div>

0 commit comments

Comments
 (0)