Initial commit
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
export const ResultTile = (props: { home?: number; away?: number }) => {
|
||||
return (
|
||||
<div class="flex flex-col items-center justify-center bg-gray-900/60 p-2 rounded-lg border border-gray-700">
|
||||
<div class="flex items-center gap-1 font-mono text-xs font-bold">
|
||||
<span
|
||||
class={props.home > props.away ? "text-emerald-400" : "text-gray-300"}
|
||||
>
|
||||
{props.home ?? "-"}
|
||||
</span>
|
||||
<span class="text-gray-600">:</span>
|
||||
<span
|
||||
class={props.away > props.home ? "text-emerald-400" : "text-gray-300"}
|
||||
>
|
||||
{props.away ?? "-"}
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
Reference in New Issue
Block a user