폰트 개선
This commit is contained in:
parent
6e7eb8893c
commit
fc98f3c84d
@ -120,3 +120,7 @@
|
|||||||
@apply bg-background text-foreground;
|
@apply bg-background text-foreground;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.chess-piece {
|
||||||
|
font-family: 'GeistSans', 'GeistSans Fallback', sans-serif;
|
||||||
|
}
|
||||||
|
|||||||
@ -27,7 +27,7 @@ export default function ChessSquare({ piece, position, isLight, isSelected, isVa
|
|||||||
{piece && (
|
{piece && (
|
||||||
<span
|
<span
|
||||||
className={cn(
|
className={cn(
|
||||||
"select-none",
|
"select-none chess-piece",
|
||||||
piece.color === "white" ? "text-white drop-shadow-[0_0_1px_rgba(0,0,0,0.8)]" : "text-black",
|
piece.color === "white" ? "text-white drop-shadow-[0_0_1px_rgba(0,0,0,0.8)]" : "text-black",
|
||||||
)}
|
)}
|
||||||
>
|
>
|
||||||
|
|||||||
@ -87,7 +87,7 @@ export default function GameInfo({ currentPlayer, gameStatus, moveHistory, captu
|
|||||||
<div className="flex flex-wrap gap-1">
|
<div className="flex flex-wrap gap-1">
|
||||||
{capturedPieces[PieceColor.BLACK].length > 0 ? (
|
{capturedPieces[PieceColor.BLACK].length > 0 ? (
|
||||||
capturedPieces[PieceColor.BLACK].map((piece, i) => (
|
capturedPieces[PieceColor.BLACK].map((piece, i) => (
|
||||||
<span key={i} className="text-xl text-black">
|
<span key={i} className="text-xl text-black chess-piece">
|
||||||
{getPieceSymbol(piece)}
|
{getPieceSymbol(piece)}
|
||||||
</span>
|
</span>
|
||||||
))
|
))
|
||||||
@ -104,7 +104,7 @@ export default function GameInfo({ currentPlayer, gameStatus, moveHistory, captu
|
|||||||
<div className="flex flex-wrap gap-1">
|
<div className="flex flex-wrap gap-1">
|
||||||
{capturedPieces[PieceColor.WHITE].length > 0 ? (
|
{capturedPieces[PieceColor.WHITE].length > 0 ? (
|
||||||
capturedPieces[PieceColor.WHITE].map((piece, i) => (
|
capturedPieces[PieceColor.WHITE].map((piece, i) => (
|
||||||
<span key={i} className="text-xl text-white">
|
<span key={i} className="text-xl text-white chess-piece">
|
||||||
{getPieceSymbol(piece)}
|
{getPieceSymbol(piece)}
|
||||||
</span>
|
</span>
|
||||||
))
|
))
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user