From b8c346c37a47d33da452ca2911ba1c05f495e48d Mon Sep 17 00:00:00 2001 From: FractalParadigm Date: Sat, 15 Mar 2025 11:19:43 -0400 Subject: [PATCH] Tournament Display now pulls information from the database and displays it --- styles/primary.css | 14 ++++++++++ styles/tourney_display.css | 39 ++++++++++++++++++++++++--- tournament/tournament.php | 55 +++++++++++++++++++++++++++++++------- 3 files changed, 95 insertions(+), 13 deletions(-) diff --git a/styles/primary.css b/styles/primary.css index 74f9cbb..5c51cf6 100644 --- a/styles/primary.css +++ b/styles/primary.css @@ -28,6 +28,10 @@ line-height: 0.25em; } +.largerText { + font-size: 1.25em; +} + .underlined { text-decoration-line: underline; } @@ -40,6 +44,16 @@ font-size: 1.25em; } +.regularLine { + border: 1px solid black; + width: 100%; +} + +.halfLine { + border: 1px solid black; + width: 50%; +} + .backgroundImage { position: absolute; margin-left: auto; diff --git a/styles/tourney_display.css b/styles/tourney_display.css index e94a2ee..4dfbe82 100644 --- a/styles/tourney_display.css +++ b/styles/tourney_display.css @@ -1,12 +1,43 @@ -#tournamentDisplay { +#contentFrame h1, h2, h3, h4, h5, h6 { + padding-bottom: 0 !important; + margin: auto; +} + +#tournamentDisplayPanel { display: flex; flex-direction: row; flex-wrap: wrap; justify-content: center; - border: 1px solid black; - border-radius: 7px; - width: 80%; + width: 90%; margin: auto; + flex-grow: 1; + flex-shrink: 1; + border-top: 2px solid black; + border-bottom: 2px solid black; + padding-bottom: 2%; + margin-bottom: 2%; +} + +.tournamentDisplay { + width: 62%; + padding: 1%; + border-right: 1px solid black; + +} + +.tournamentDisplay p { + margin: auto; + text-align: center; +} + +.gameDisplay { + width:33%; + padding: 1%; + border-left: 1px solid black; +} + +.noTourney { + text-align: center; } /*// MOBILE //// diff --git a/tournament/tournament.php b/tournament/tournament.php index adc50d8..cebffa3 100644 --- a/tournament/tournament.php +++ b/tournament/tournament.php @@ -62,34 +62,71 @@ if (isset($tourneyResults)) {

-
+

Tournament Information

+

+
format('M j, Y'); - - echo ("THIS TOURNAMENT EXISTS - DETAILS COMING"); - } else { - echo "
"; - echo "

TOURNAMENT NOT FOUND!

"; - echo "

Double-check your link.

"; - echo "

Sorry!

"; + echo "
"; + echo "

Details

"; + echo "
"; + echo "

$tourneyName

"; echo "

 

"; + echo "

$division Division

"; + echo "

" . $numPlayers . "v" . $numPlayers . " — Best of $bestOf

"; + echo "

$tourneyDate

"; + echo "
"; + echo "

Winning Team

"; + echo "

$winningTeamName

"; + echo "

 

"; + echo "

$winner1

"; + if ($numPlayers >= 2) { + echo "

$winner2

"; + } + if ($numPlayers >= 3) { + echo "

$winner3

"; + } + if ($numPlayers == 4) { + echo "

$winner4

"; + } + echo "

 

"; + echo "

 

"; + if ($notes != "" || $notes != NULL) { + echo "

Notes:

"; + echo "

$notes

"; + } + echo "
"; + + echo "
"; + echo "

Games

"; + echo "
"; + echo "

Coming soon!

"; + + + } else { + echo "
"; + echo "
"; + echo "

TOURNAMENT NOT FOUND

"; echo "
"; } ?>
-

+
+