forked from lucaspatenaude/ScoreSpot
Table data implemented
This commit is contained in:
@@ -42,6 +42,7 @@
|
||||
}
|
||||
|
||||
#league-stats-container {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
#league-table-container {
|
||||
|
||||
flex: 1;
|
||||
width: 60%;
|
||||
background-color: #eaeaea; /* Example background color */
|
||||
margin: 10px;
|
||||
|
||||
border: 1px solid gray;
|
||||
border-radius: 8px;
|
||||
|
||||
@@ -30,7 +30,13 @@ const fetchLeaguesData = async (req, res, next) => {
|
||||
team_name: team.team.name,
|
||||
team_crest: team.team.crest
|
||||
},
|
||||
})),
|
||||
games_played: team.playedGames,
|
||||
wins: team.won,
|
||||
losses: team.lost,
|
||||
draws: team.draw,
|
||||
goal_difference: team.goalDifference,
|
||||
points: team.points
|
||||
}))
|
||||
};
|
||||
next();
|
||||
} catch (error) {
|
||||
|
||||
Reference in New Issue
Block a user