Fixed colours

This commit is contained in:
2026-02-22 19:41:26 +01:00 Verified
parent f5dac3b1c8
commit ea711b033d
10 changed files with 38 additions and 36 deletions
@@ -1,6 +1,7 @@
// frontend/src/components/Tournament/Podium.jsx
import { Trophy } from 'lucide-react';
import { printName } from '../../utils/helpers';
export default function Podium({ matches }) {
const isDoubleElim = matches.some(m => m.bracket === 'Loser');
@@ -73,14 +74,6 @@ export default function Podium({ matches }) {
}
}
// Helper for rendering print strings (Takes "Winner of #7" -> "W#7: _______")
const printName = (name) => {
if (!name) return '';
if (name.startsWith('Winner of #')) return name.replace('Winner of #', 'W#') + ': _______';
if (name.startsWith('Loser of #')) return name.replace('Loser of #', 'L#') + ': _______';
return name;
};
return (
<div className="bg-white dark:bg-zinc-900 print:!bg-white border border-zinc-200 dark:border-zinc-800 print:!border-zinc-400 rounded-xl shadow-sm w-64 overflow-hidden z-10 print:!shadow-none">
<div className="bg-zinc-50 dark:bg-zinc-900/50 print:!bg-transparent p-3 border-b border-zinc-200 dark:border-zinc-800 print:!border-zinc-400">