Flag added to league header
This commit is contained in:
@@ -38,6 +38,13 @@
|
|||||||
|
|
||||||
#league-title {
|
#league-title {
|
||||||
transform: skewX(20deg); /* Skew the banner to create a triangular side */
|
transform: skewX(20deg); /* Skew the banner to create a triangular side */
|
||||||
|
margin-right: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#league-flag {
|
||||||
|
|
||||||
|
transform: skewX(20deg); /* Skew the banner to create a triangular side */
|
||||||
|
height: 20px;
|
||||||
margin-right: 200px;
|
margin-right: 200px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -18,6 +18,9 @@ const fetchLeaguesData = async (req, res, next) => {
|
|||||||
|
|
||||||
// Attach the data to res.locals
|
// Attach the data to res.locals
|
||||||
res.locals.league = {
|
res.locals.league = {
|
||||||
|
area: {
|
||||||
|
league_flag: leagueData.area.flag,
|
||||||
|
},
|
||||||
competition: {
|
competition: {
|
||||||
league_id: leagueData.competition.id,
|
league_id: leagueData.competition.id,
|
||||||
league_name: leagueData.competition.name,
|
league_name: leagueData.competition.name,
|
||||||
|
|||||||
@@ -4,6 +4,7 @@
|
|||||||
<div class="container" id="league-information-container">
|
<div class="container" id="league-information-container">
|
||||||
<img id="league-logo" src="{{league.competition.league_emblem}}" alt="{{league.competition.league_name}} Emblem">
|
<img id="league-logo" src="{{league.competition.league_emblem}}" alt="{{league.competition.league_name}} Emblem">
|
||||||
<h1 id="league-title">{{league.competition.league_name}}</h2>
|
<h1 id="league-title">{{league.competition.league_name}}</h2>
|
||||||
|
<img id="league-flag" src="{{league.area.league_flag}}" alt="{{league.competition.league_name}} Flag">
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Container to display all stats for league <- bottom rest of the container -->
|
<!-- Container to display all stats for league <- bottom rest of the container -->
|
||||||
|
|||||||
Reference in New Issue
Block a user