From 8d1ca4c52e1f3c0e57994d7af9240b3740252659 Mon Sep 17 00:00:00 2001 From: renatodellosso Date: Thu, 13 Feb 2025 15:59:56 -0500 Subject: [PATCH] White season covers instead of black ones --- lib/Types.ts | 3 +++ lib/games.ts | 4 ++++ pages/[teamSlug]/createSeason.tsx | 2 +- 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/lib/Types.ts b/lib/Types.ts index 257b111c..fab351ed 100644 --- a/lib/Types.ts +++ b/lib/Types.ts @@ -171,6 +171,7 @@ export class Game< fieldImagePrefix: string; coverImage: string; + coverImageClass: string; getBadges: ( pitData: Pitreport | undefined, @@ -201,6 +202,7 @@ export class Game< pitStatsLayout: PitStatsLayout, fieldImagePrefix: string, coverImage: string, + coverImageClass: string | undefined, getBadges: ( pitData: Pitreport | undefined, quantitativeReports: Report[] | undefined, @@ -234,6 +236,7 @@ export class Game< this.fieldImagePrefix = fieldImagePrefix; this.coverImage = coverImage; + this.coverImageClass = coverImageClass ?? ""; this.getBadges = getBadges; this.getAvgPoints = getAvgPoints; diff --git a/lib/games.ts b/lib/games.ts index 91db250b..fa6e6761 100644 --- a/lib/games.ts +++ b/lib/games.ts @@ -463,6 +463,7 @@ export namespace Crescendo { pitStatsLayout, "Crescendo", "https://www.firstinspires.org/sites/default/files/uploads/resource_library/frc/crescendo/crescendo.png", + "", getBadges, getAvgPoints, ); @@ -824,6 +825,7 @@ export namespace CenterStage { pitStatsLayout, "CenterStage", "https://www.firstinspires.org/sites/default/files/uploads/resource_library/ftc/centerstage/centerstage.png", + "", getBadges, getAvgPoints, ); @@ -1157,6 +1159,7 @@ export namespace IntoTheDeep { pitStatsLayout, "IntoTheDeep", "https://info.firstinspires.org/hubfs/Dive/into-the-deep.svg", + "invert", getBadges, getAvgPoints, ); @@ -1540,6 +1543,7 @@ namespace Reefscape { pitStatsLayout, "Reefscape", "https://info.firstinspires.org/hubfs/Dive/reef-scape.svg", + "invert", getBadges, getAvgPoints, ); diff --git a/pages/[teamSlug]/createSeason.tsx b/pages/[teamSlug]/createSeason.tsx index 52511d82..37caf01a 100644 --- a/pages/[teamSlug]/createSeason.tsx +++ b/pages/[teamSlug]/createSeason.tsx @@ -77,7 +77,7 @@ export default function CreateSeason(props: CreateSeasonProps) { {/* The following div pushes the create button to the bottom and vertically aligns the image to the middle of the remaining space */}
{game.name}