From 8e8620616890b47b4a3648518d2f96de75d28bec Mon Sep 17 00:00:00 2001 From: unknown Date: Sat, 20 Aug 2022 23:13:40 -0700 Subject: [PATCH] Tidy up bracket SVG styles --- templates/bracket.svg | 772 ++++++++++++++++++++++-------------------- 1 file changed, 400 insertions(+), 372 deletions(-) diff --git a/templates/bracket.svg b/templates/bracket.svg index a5ece62..9e7104f 100644 --- a/templates/bracket.svg +++ b/templates/bracket.svg @@ -2,382 +2,408 @@ {{if eq .BracketType "double"}} - + {{else}} - - - - + + + + {{end}} + {{if eq .BracketType "double"}} - - - - - - - - - - - - - - - - W - L + + + + + + + + + + + - - - - W - L - - - - - W - L - - - - - W - L - - - - W - L - - - - - L - L - - - - W - L - - - - - L - L - - - - - W - L - - W - W - - - - - - - - - W - L - - - W - W - - - - - - - W - W - L - - - - L - - - - - - W - W - L - - - - L - - - - W - L - - - - W - W - - - - - - - - - W - W - W - L - - - - - - - W - W - W - - - - W - L - - L - - - - - - W - W + + + + + W + L + + + + + W + L + + + + + W + L + + + + + W + L + + + + W + L + + + + + L + L + + + + W + L + + + + + L + L + + + + + W + L + + W + W + + + + + + + + + W + L + + + W + W + + + + + + + W + W + L + + + + L + + + + + + W + W + L + + + + L + + + + W + L + + + + W + W + + + + + + + + + W + W + W + L + + + + + + + W + W + W + + + + W + L + + L + + + + + + W + W + {{else}} - + {{if index .Matchups "1_1"}}{{end}} {{if index .Matchups "1_2"}}{{end}} {{if index .Matchups "1_3"}}{{end}} @@ -404,6 +430,7 @@ {{if index .Matchups "3_2"}}{{end}} {{end}} + {{range $matchup := .Matchups}} {{template "matchup" index $matchup}} @@ -411,61 +438,62 @@ {{if eq .BracketType "double"}} - Round 1 - Round 2 - Round 3 - Round 4 - Round 5 - Finals - Best-of-3 + Round 1 + Round 2 + Round 3 + Round 4 + Round 5 + Finals + Best-of-3 {{else}} - - Round of 16 - Round of 16 - Quarterfinals - Quarterfinals - Semifinals - Semifinals - Finals + + Round of 16 + Round of 16 + Quarterfinals + Quarterfinals + Semifinals + Semifinals + Finals {{end}} {{end}} + {{define "matchup"}} - - - - - - - {{.SeriesStatus}} - {{.DisplayName}} + + + + + + + {{.SeriesStatus}} + {{.DisplayName}} {{if .RedAlliance}} - {{.RedAlliance.Id}} + {{.RedAlliance.Id}} {{if ge (len .RedAlliance.TeamIds) 3}} - {{index .RedAlliance.TeamIds 0}} - {{index .RedAlliance.TeamIds 1}} - {{index .RedAlliance.TeamIds 2}} + {{index .RedAlliance.TeamIds 0}} + {{index .RedAlliance.TeamIds 1}} + {{index .RedAlliance.TeamIds 2}} {{end}} {{if ge (len .RedAlliance.TeamIds) 4}} - {{index .RedAlliance.TeamIds 3}} + {{index .RedAlliance.TeamIds 3}} {{end}} {{else}} - {{.RedAllianceSource}} + {{.RedAllianceSource}} {{end}} {{if .BlueAlliance}} - {{.BlueAlliance.Id}} + {{.BlueAlliance.Id}} {{if ge (len .BlueAlliance.TeamIds) 3}} - {{index .BlueAlliance.TeamIds 0}} - {{index .BlueAlliance.TeamIds 1}} - {{index .BlueAlliance.TeamIds 2}} + {{index .BlueAlliance.TeamIds 0}} + {{index .BlueAlliance.TeamIds 1}} + {{index .BlueAlliance.TeamIds 2}} {{end}} {{if ge (len .BlueAlliance.TeamIds) 4}} - {{index .BlueAlliance.TeamIds 3}} + {{index .BlueAlliance.TeamIds 3}} {{end}} {{else}} - {{.BlueAllianceSource}} + {{.BlueAllianceSource}} {{end}} {{end}}