<>
- {matches.map(tier => {
- let tierNum = tier[0].tier;
- return
+ {matches.map(tierMatches => {
+ let tierNum = tierMatches[0].tier;
+ return
})}
+
+
-
>
:
);
diff --git a/src/client/src/components/AsuraBar.js b/src/client/src/components/AsuraBar.js
index 2412f6e..a130daf 100644
--- a/src/client/src/components/AsuraBar.js
+++ b/src/client/src/components/AsuraBar.js
@@ -31,10 +31,10 @@ function LoggedInMenu(props) {
>
);
diff --git a/src/client/src/components/TournamentBar.js b/src/client/src/components/TournamentBar.js
index 06914a4..62afe4d 100644
--- a/src/client/src/components/TournamentBar.js
+++ b/src/client/src/components/TournamentBar.js
@@ -3,6 +3,11 @@ import { useParams } from "react-router-dom";
import { BrowserRouter as Router, Link, Route, Routes, History } from "react-router-dom";
import { Stack, Paper, Typography, Box, Button, Grid, Snackbar, IconButton } from "@mui/material"
import CloseIcon from '@mui/icons-material/Close';
+import MuiAlert from '@mui/material/Alert';
+
+const Alert = React.forwardRef(function Alert(props, ref) {
+ return
;
+});
function ClipboardButton(props) {
const [open, setOpen] = React.useState(false);
@@ -23,7 +28,11 @@ function ClipboardButton(props) {
return (
<>
-
+
+
+ {props.name + " copied to clipboard"}
+
+
>
);
}
diff --git a/src/client/src/components/tournamentBracket.css b/src/client/src/components/tournamentBracket.css
index 2823d19..193154f 100644
--- a/src/client/src/components/tournamentBracket.css
+++ b/src/client/src/components/tournamentBracket.css
@@ -6,7 +6,7 @@
flex-direction:row;
justify-content: center;
}
- .round{
+.round{
display:flex;
flex-direction:column;
justify-content:center;
@@ -14,13 +14,13 @@
list-style:none;
padding:0;
/* font-size: 1.5rem; */
- }
- .round .spacer{ flex-grow:1;}
- .round .spacer:first-child,
- .round .spacer:last-child{ flex-grow:.5; }
- .round .game-spacer{
- flex-grow:1;
- }
+}
+.round .spacer{ flex-grow:1;}
+.round .spacer:first-child,
+.round .spacer:last-child{ flex-grow:.5; }
+.round .game-spacer{
+ flex-grow:1;
+}
/*
* General Styles
@@ -32,26 +32,44 @@
line-height:1.4em;
} */
- li.game{
+li.game{
padding-left:20px;
- }
+}
- .winner{
- color:green;
- font-weight: bold;
- }
- .loser{
- color:grey;
- }
+.winner{
+ color:green;
+ font-weight: bold;
+}
+.loser{
+ color:grey;
+}
- li.game-top{ border-bottom:1px solid #aaa; }
+li.game-top{ border-bottom:1px solid #aaa; }
- li.game-spacer{
- border-right:1px solid #aaa;
- min-height:10vh;
- }
+li.game-spacer{
+ border-right:1px solid #aaa;
+ min-height:10vh;
+}
- li.game-bottom{
- border-top:1px solid #aaa;
- }
-
\ No newline at end of file
+li.game-bottom{
+ border-top:1px solid #aaa;
+}
+
+
+.winnerDisplay {
+ display:flex;
+ flex-direction:row;
+ align-items: center;
+ border: 2px solid gray;
+ border-radius: 15px;
+ min-height: 10vh;
+ max-height: 40vh;
+ margin: auto 5px;
+ padding: 10px;
+}
+.winnerDisplay.winner {
+ border: 2px solid green;
+}
+.winnerDisplay > h2 {
+ margin-right: 10px;
+}
\ No newline at end of file