Moved podium and fixed create button
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
import { useEffect, useRef, useState } from 'react';
|
import { useEffect, useRef, useState } from 'react';
|
||||||
import MatchCard from "./MatchCard";
|
import MatchCard from "./MatchCard";
|
||||||
import Podium from './Podium';
|
import Podium from "../Tournament/Podium";
|
||||||
|
|
||||||
export default function BracketView({ matches, onMatchClick }) {
|
export default function BracketView({ matches, onMatchClick }) {
|
||||||
const containerRef = useRef(null);
|
const containerRef = useRef(null);
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ export default function Layout({ darkMode, setDarkMode }) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="absolute inset-0 bg-zinc-50 dark:bg-zinc-950 text-zinc-900 dark:text-zinc-100 transition-colors selection:bg-orange-500/30 flex flex-col overflow-hidden print:static print:overflow-visible print:h-auto print:bg-white print:text-black">
|
<div className="fixed inset-0 bg-zinc-50 dark:bg-zinc-950 text-zinc-900 dark:text-zinc-100 transition-colors selection:bg-orange-500/30 flex flex-col overflow-hidden print:static print:overflow-visible print:h-auto print:bg-white print:text-black">
|
||||||
<div className="print:hidden shrink-0">
|
<div className="print:hidden shrink-0">
|
||||||
<Navbar
|
<Navbar
|
||||||
title={navTitle}
|
title={navTitle}
|
||||||
|
|||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
// frontend/src/components/Bracket/Podium.jsx
|
// frontend/src/components/Tournament/Podium.jsx
|
||||||
|
|
||||||
import { Trophy } from 'lucide-react';
|
import { Trophy } from 'lucide-react';
|
||||||
|
|
||||||
@@ -87,13 +87,13 @@ export default function Dashboard() {
|
|||||||
<div className="container mx-auto max-w-5xl px-4 space-y-12">
|
<div className="container mx-auto max-w-5xl px-4 space-y-12">
|
||||||
|
|
||||||
{/* Create Button */}
|
{/* Create Button */}
|
||||||
<div className="flex justify-center md:justify-end">
|
|
||||||
{isAdmin && (
|
{isAdmin && (
|
||||||
|
<div className="flex justify-center md:justify-end">
|
||||||
<button onClick={() => { setEditTarget(null); setShowSettings(true); }} className="bg-orange-600 hover:bg-orange-500 text-white px-5 py-2.5 rounded-xl flex items-center gap-2 text-[10px] font-black uppercase tracking-wider shadow-xl shadow-orange-600/20 active:scale-95 transition">
|
<button onClick={() => { setEditTarget(null); setShowSettings(true); }} className="bg-orange-600 hover:bg-orange-500 text-white px-5 py-2.5 rounded-xl flex items-center gap-2 text-[10px] font-black uppercase tracking-wider shadow-xl shadow-orange-600/20 active:scale-95 transition">
|
||||||
<Plus size={16} strokeWidth={4} /> Create
|
<Plus size={16} strokeWidth={4} /> Create
|
||||||
</button>
|
</button>
|
||||||
)}
|
|
||||||
</div>
|
</div>
|
||||||
|
)}
|
||||||
|
|
||||||
{groups.live.length > 0 && (
|
{groups.live.length > 0 && (
|
||||||
<section>
|
<section>
|
||||||
|
|||||||
Reference in New Issue
Block a user