added ot stats to team view
This commit is contained in:
@@ -672,6 +672,9 @@
|
||||
.grid-cols-3 {
|
||||
grid-template-columns: repeat(3, minmax(0, 1fr));
|
||||
}
|
||||
.grid-cols-4 {
|
||||
grid-template-columns: repeat(4, minmax(0, 1fr));
|
||||
}
|
||||
.grid-cols-7 {
|
||||
grid-template-columns: repeat(7, minmax(0, 1fr));
|
||||
}
|
||||
@@ -2174,9 +2177,9 @@
|
||||
grid-template-columns: repeat(3, minmax(0, 1fr));
|
||||
}
|
||||
}
|
||||
.lg\:grid-cols-6 {
|
||||
.lg\:grid-cols-8 {
|
||||
@media (width >= 64rem) {
|
||||
grid-template-columns: repeat(6, minmax(0, 1fr));
|
||||
grid-template-columns: repeat(8, minmax(0, 1fr));
|
||||
}
|
||||
}
|
||||
.lg\:items-end {
|
||||
|
||||
@@ -599,13 +599,15 @@ templ teamStatsSection(record *db.TeamRecord, playerStats []*db.AggregatedPlayer
|
||||
} else {
|
||||
<!-- Team Record Summary -->
|
||||
<div class="bg-surface0 border border-surface1 rounded-lg overflow-hidden mb-4">
|
||||
<div class="grid grid-cols-2 sm:grid-cols-4 lg:grid-cols-6 divide-x divide-surface1">
|
||||
<div class="grid grid-cols-4 sm:grid-cols-4 lg:grid-cols-8 divide-x divide-surface1">
|
||||
@statCell("Played", fmt.Sprint(record.Played), "")
|
||||
@statCell("Record", fmt.Sprintf("%d-%d-%d", record.Wins, record.Losses, record.Draws), "")
|
||||
@statCell("Wins", fmt.Sprint(record.Wins), "text-green")
|
||||
@statCell("Losses", fmt.Sprint(record.Losses), "text-red")
|
||||
@statCell("W", fmt.Sprint(record.Wins), "text-green")
|
||||
@statCell("OTW", fmt.Sprint(record.OvertimeWins), "text-teal")
|
||||
@statCell("OTL", fmt.Sprint(record.OvertimeLosses), "text-peach")
|
||||
@statCell("L", fmt.Sprint(record.Losses), "text-red")
|
||||
@statCell("GF", fmt.Sprint(record.GoalsFor), "")
|
||||
@statCell("GA", fmt.Sprint(record.GoalsAgainst), "")
|
||||
@statCell("PTS", fmt.Sprint(record.Points), "text-blue")
|
||||
</div>
|
||||
</div>
|
||||
<!-- Player Stats Leaderboard -->
|
||||
|
||||
Reference in New Issue
Block a user