Skip to content

Commit

Permalink
add better styling to scoreboard
Browse files Browse the repository at this point in the history
  • Loading branch information
dannybunschoten committed Aug 29, 2024
1 parent 997c477 commit 7407bad
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion app/components/Item.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export function Item({ item, isWinning }: { item: Fruit; isWinning: boolean }) {
className={`flex items-center justify-center p-2 lg:p-4 ${isWinning ? "animate-[glow_0.7s_alternate_infinite]" : ""}`}
>
<Image
src={map[item]}
src={map[item] || seven}
alt={item}
className="h-[60px] w-[60px] rotate-180 lg:h-[96px] lg:w-[96px]"
priority
Expand Down
6 changes: 2 additions & 4 deletions app/components/ScoreList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,8 @@ export const ScoreList = async () => {
<ol className="list-inside list-decimal marker:text-black">
{highScores.map((score, index) => (
<li key={index} className="list-item text-3xl">
<div className="flex w-full items-center justify-between">
<span>{score.name}</span>
<span>{score.score}</span>
</div>
<span>{score.name || "Default User"}</span>
<span className="float-end">{score.score}</span>
</li>
))}
</ol>
Expand Down

0 comments on commit 7407bad

Please sign in to comment.