Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

The multisport Game Tracker is a unique widget that has the capability to be used in different sports, so far and at the time of the creation of this document it has support for Football, Basketball and American Football.

This is possible because using the fixtureId (match identifier) the widget can identify the sport to display.

...

Table of contents:

Table of Contents
stylenone

Components

Our game trackers have different shared components that will allow our customers to access different types of information, these can also be used independently as required by the customer.

Component

Description

Image

Scoreboard

The scoreboard is a component that allows us to visualize the state of the match in real time, we can obtain information related to:

  • The scores of each team.

  • An image representing the team (shield, logo, flags or alternative image).

  • Venue where the match is played.

  • Status of the match (pre-match, live or post-match/final).

  • Team names, in case the team name is too large, it will be displayed in a short version.

  • Additional information, depending on the sport relevant information can be displayed.
    In football for example, penalties are rendered as additional information

Tabs

The tabs are components that allow us to navigate through the different pieces of content that the widget has available in a particular sport.

Court/Pitch

The court is the component that displays the different playing fields and the main actions occurring in the matches.

These are displayed as real-time animations.

Team Stats

Team stats is a component that is responsible for displaying a series of cards with content related to statistics of the teams in the match, you can find information such as (in football GT):

  • Fouls

  • Attacks

  • Cards etc.

  • Substitutions

  • Possessions

  • Free kicks

Note: According to the sport this information may change

Lineups

It is a component that is responsible for displaying the players of both teams with their respective positions, you can also find information like:

  • T-shirt number

  • Player name

  • Player position

  • Player image

Depending on the sport the component displays the list of players who started playing the game and those who started on the bench.

Play By Play

It is a component that is responsible for displaying the most important plays minute by minute, where the user can navigate through the different stages of the match and has the ability to view the highlights of the entire match.

Styling

Our components have been developed using material UI tools, this has allowed us to create a theme that groups the most important styles of the component and makes it easy to make changes in the style of the widget such as:

...

As you could see above, the game tracker in light and dark version looks amazing, however we know that for our customers it is important that each Game Tracker matches the look and feel of the parent site, for this reason we have a series of attributes ready to be modified according to the interest of each customer.

All code related documentation is reference for developers.

Background Color

To change the background color, we use the attribute in the partialTheme, inside background with the name default, for example we will change the background to a gray color.

Code Block
languagejson
       "partialTheme": {
            "background": {
              "default": "#424949"
            }
        }

The result is as follows

...

Text

To change the text color, we use the attribute in the partialTheme, inside text with the name primary, for example we will change the text color to a pink color.

Code Block
languagejson
       "partialTheme": {
            "text": {
              "primary": "#151B34"
            }
        }

The result is as follows

...

Primary Color

To change the primary color we use the attribute in the partialTheme, inside primary with the name main, for example we will change the primary color to a cyan color, (focus on tabs)

Code Block
languagejson
       "partialTheme": {
            "primary": {
              "main": "#52F9E5"
            }
        }

The result is as follows

...

Typography

To change the primary color we use the attribute in the partialTheme, inside typography with the name fontFamily, for example we will change the font family to Roboto Condensed

Code Block
languagejson
       "partialTheme": {
          "typography": {
            "fontFamily": "Roboto Condensed"
          }
        }

The result is as follows

...

Customization for sports or competition

In order to allow customers to configure the multisport game tracker for sports or competitions we have created a new standard that has the following structure.

...

  1. competitionIds

  2. sportIds

  3. default

Supported components

This structure is recent and our goal is that all our components can have this configuration option, we will talk about the components that we have enabled with their respective examples.

...

  • Basketball: “4”

  • Football (soccer): “10”

  • American Football: “17”

Show/Hide team logos

Default configuration:

Code Block
languagejson
          "showTeamLogos":{
            "defaultBehavior": [
              {
                "sportIds": [],
                "competitionIds": [],
                "props": {
                  "value": true
                },
                "default": true
              }
            ],
            "override": []
          }

...

Code Block
languagejson
          "showTeamLogos":{
            "defaultBehavior": [
              {
                "sportIds": [],
                "competitionIds": [],
                "props": {
                  "value": true
                },
                "default": true
              }
            ],
            "override": [
              {
                "sportIds": [],
                "competitionIds": [],
                "props": {
                  "value": true  <--- enabling the logos
                },
                "default": true  <--- defines its default object
              },
              {
                "sportIds": ["10"], <--- restricted sport (Football/Soccer)
                "competitionIds": ["1035"], <--- restricted competition (CFL)
                "props": {
                  "value": false  <--- disable the logos
                },
                "default": false <--- Only one object can exist by default
              }
            ]
          }

Change the Basketball court color

Although the Basketball court color can be customized, we always recommend consulting first on what clients want to do to maintain the product integrity.

Code Block
languagejson
"partialTheme": {
                    "palette": {
                        "mode": "dark",
                        "background": {
                            "default": "#000000"
                        }
                    },
                    "components": {
                        "GameTrackerBasketballCourt": { <--- this will change the basketball court color only
                            "styleOverrides": {
                                "basketballCourtSVG": {
                                    "color": "rgb(116, 86, 55)"
                                }
                            }
                        }
                    }
                },

Is the away team first

Default configuration:

Code Block
languagejson
        "components": {
          "isAwayTeamFirstBySport": {
            "defaultBehavior": [
              {
                "sportIds": [],       <--- It is not necessary to put sports and competitions
                "competitionIds": [], <--- in the default because this approach works as a
                "props": {                 black list.
                  "value": false
                },
                "default": true
              },
              {
                "sportIds": ["17"], <--- By default American football has this set to true
                "competitionIds": [],
                "props": {
                  "value": true
                }
              }
            ],
            "override": []
          }
        }

...

Code Block
languagejson
          "showTeamLogos":{
            "defaultBehavior": [
              {
                "sportIds": [],
                "competitionIds": [],
                "props": {
                  "value": false
                },
                "default": true
              },
              {
                "sportIds": ["17"],
                "competitionIds": [],
                "props": {
                  "value": true
                }
              }
            ],
            "override": [
              {
                "sportIds": [],
                "competitionIds": [],
                "props": {
                  "value": false  <--- do not show the away first
                },
                "default": true  <--- defines its default object
              },
              {
                "sportIds": ["10"], <--- show away first sport (Football/Soccer)
                "competitionIds": ["1035"], <--- show away first competition (CFL)
                "props": {
                  "value": true  <--- enable away firts
                },
                "default": false <--- Only one object can exist by default
              }
            ]
          }

Teams Colors

In the configuration you will find the following values that will allow you to define the colors that will be displayed on the teams, giving the possibility that the customer can always display the same colors for the home and the away team.

Code Block
            "properties": {
                "components": {
                    "alwaysUseThemeTeamColors": true, <- force to use custom colors
                },
                "partialTheme": {
                    "palette": {
                        "custom": {
                            "awayTeam": "#FAF",  <-  color defined for away team
                            "homeTeam": "#555"  <- color defined for home team
                        }
                    }
                },
            },

...

Default configuration

Some teams bring colors configured within an object that comes from our data services, when we can not get the colors from the data we use the following default colors:

Team

Color

Home

#6383D6

Away

#F93939

Customization

We have added a section from the configuration manager to facilitate the customization of these colors.

...

Fallback

When a customer wants to configure the colors of the teams he can assign the values in the theme home team color and the theme away team color, these colors will be shown as a second option when the colors are not found in the received data.

Mandatory

If the customer wants to force all teams to show the configured colors, he must activate the option "Always use the teams colors".

Advanced customization

Note: this kind of customizations must be approved by the UX team to preserve the essence of our Game Tracker.

If the customer requires an advanced customization, please consult the following link.

...