Skip to content

Commit

Permalink
Merge pull request #1102 from hackclub/malted/gold
Browse files Browse the repository at this point in the history
Add gold background to YSWS-approved projects
  • Loading branch information
malted authored Jan 14, 2025
2 parents 3be8cd7 + 2477d90 commit f2a510d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/app/harbor/shipyard/ships.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,14 @@ export default function Ships({
onClick={() => setSelectedShip(s)}
className="cursor-pointer"
>
<Card className="flex flex-col sm:gap-2 sm:flex-row items-start sm:items-center p-4 hover:bg-gray-100 transition-colors duration-200">
<Card
className="flex flex-col sm:gap-2 sm:flex-row items-start sm:items-center p-4 hover:bg-gray-100 transition-colors duration-200"
style={
latestShip.isInYswsBase
? { border: '1.5px solid gold', background: '#FFFCEB' }
: {}
}
>
<div className="flex gap-4 items-center">
<div className="w-16 h-16 relative mb-4 sm:mb-0 sm:mr-4 flex-shrink-0">
<img
Expand Down
2 changes: 2 additions & 0 deletions src/app/utils/data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ export interface Ship extends EditableShipFields {
paidOut: boolean
yswsType: YswsType
feedback: string | null
isInYswsBase: boolean
}
export interface EditableShipFields {
title: string
Expand Down Expand Up @@ -139,6 +140,7 @@ export async function fetchShips(
paidOut: Boolean(r.fields.paid_out),
yswsType: r.fields.yswsType,
feedback: r.fields.ai_feedback_summary,
isInYswsBase: Boolean(r.fields.has_ysws_submission_id),
}

return ship
Expand Down

0 comments on commit f2a510d

Please sign in to comment.