League table imported in

This commit is contained in:
Lucas Patenaude
2024-04-13 17:11:28 -06:00
parent c35f242d27
commit 333d23db78
2 changed files with 55 additions and 14 deletions

View File

@@ -2,8 +2,8 @@
<!-- Container for all league information (logo, name, country, etc. ) <- top 100px -->
<div class="container" id="league-information-container">
<img src="{{league.competition.league_emblem}}" alt="{{league.competition.league_name}} Emblem">
<h2>{{league.competition.league_name}}</h2>
<img id="league-logo" src="{{league.competition.league_emblem}}" alt="{{league.competition.league_name}} Emblem">
<h1 id="league-title">{{league.competition.league_name}}</h2>
</div>
<!-- Container to display all stats for league <- bottom rest of the container -->
@@ -13,15 +13,24 @@
<div class="container" id="league-table-container">
<h3>Standings</h3>
<ol>
{{#each league.standings}}
<li>
<span>Position: {{table.league_position}}</span>
<span>Team Name: {{table.team_name}}</span>
<img src="{{table.team_crest}}" alt="{{table.team_name}} Crest">
</li>
{{/each}}
</ol>
<table id="standings-table">
<thead>
<tr>
<th>#</th>
<th></th>
<th>Club</th>
</tr>
</thead>
<tbody>
{{#each league.standings}}
<tr>
<td>{{table.league_position}}</td>
<td><img src="{{table.team_crest}}" alt="{{table.team_name}} Crest" id="table-logo"></td>
<td>{{table.team_name}}</td>
</tr>
{{/each}}
</tbody>
</table>
</div>
@@ -31,4 +40,4 @@
</div>
</div>
</div>
</div>