Change interactive sum color
Make the sum's color red when it exceeds the target sum.
This commit is contained in:
parent
9f272d98ee
commit
ee4f62434e
1 changed files with 1 additions and 1 deletions
|
|
@ -133,7 +133,7 @@ const BinaryNumberGame: React.FC<BinaryNumberGameProps> = ({ showSocialShare = t
|
|||
<Card className="bg-secondary">
|
||||
<CardContent className="p-6 text-center">
|
||||
<h3 className="text-lg font-semibold text-muted-foreground mb-2">Current Sum</h3>
|
||||
<div className="text-4xl font-bold text-foreground">{currentSum}</div>
|
||||
<div className={`text-4xl font-bold ${currentSum > targetNumber ? "text-red-600" : "text-foreground"}`}>{currentSum}</div>
|
||||
</CardContent>
|
||||
</Card>
|
||||
<Card className="bg-primary/10 border-primary/20">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue