Skip to content

Commit

Permalink
White season covers instead of black ones
Browse files Browse the repository at this point in the history
  • Loading branch information
renatodellosso committed Feb 13, 2025
1 parent 896165d commit 8d1ca4c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
3 changes: 3 additions & 0 deletions lib/Types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ export class Game<

fieldImagePrefix: string;
coverImage: string;
coverImageClass: string;

getBadges: (
pitData: Pitreport<TPitData> | undefined,
Expand Down Expand Up @@ -201,6 +202,7 @@ export class Game<
pitStatsLayout: PitStatsLayout<TPitData, TQuantData>,
fieldImagePrefix: string,
coverImage: string,
coverImageClass: string | undefined,
getBadges: (
pitData: Pitreport<TPitData> | undefined,
quantitativeReports: Report<TQuantData>[] | undefined,
Expand Down Expand Up @@ -234,6 +236,7 @@ export class Game<

this.fieldImagePrefix = fieldImagePrefix;
this.coverImage = coverImage;
this.coverImageClass = coverImageClass ?? "";

this.getBadges = getBadges;
this.getAvgPoints = getAvgPoints;
Expand Down
4 changes: 4 additions & 0 deletions lib/games.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
);
Expand Down Expand Up @@ -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,
);
Expand Down Expand Up @@ -1157,6 +1159,7 @@ export namespace IntoTheDeep {
pitStatsLayout,
"IntoTheDeep",
"https://info.firstinspires.org/hubfs/Dive/into-the-deep.svg",
"invert",
getBadges,
getAvgPoints,
);
Expand Down Expand Up @@ -1540,6 +1543,7 @@ namespace Reefscape {
pitStatsLayout,
"Reefscape",
"https://info.firstinspires.org/hubfs/Dive/reef-scape.svg",
"invert",
getBadges,
getAvgPoints,
);
Expand Down
2 changes: 1 addition & 1 deletion pages/[teamSlug]/createSeason.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 */}
<div className="grow flex items-center">
<img
className="w-fit h-auto"
className={`w-fit h-auto ${game.coverImageClass}`}
src={game.coverImage}
alt={game.name}
/>
Expand Down

0 comments on commit 8d1ca4c

Please sign in to comment.