Files
ScoreSpot/ProjectSourceCode/src/views/pages/leagues-page.hbs

89 lines
4.0 KiB
Handlebars
Raw Normal View History

2024-04-14 20:07:38 -06:00
<div id="league-page-body" class="page-container">
2024-04-15 16:02:19 -06:00
2024-04-13 15:58:02 -06:00
<!-- Container for all league information (logo, name, country, etc. ) <- top 100px -->
2024-04-14 20:07:38 -06:00
<div id="league-information-container" class="information-container">
2024-04-13 17:11:28 -06:00
<img id="league-logo" src="{{league.competition.league_emblem}}" alt="{{league.competition.league_name}} Emblem">
<h1 id="league-title">{{league.competition.league_name}}</h2>
2024-04-13 18:45:55 -06:00
<img id="league-flag" src="{{league.area.league_flag}}" alt="{{league.competition.league_name}} Flag">
2024-04-13 15:58:02 -06:00
</div>
<!-- Container to display all stats for league <- bottom rest of the container -->
<div id="table-and-top-scorers-containers" class="stats-container">
2024-04-13 15:58:02 -06:00
<!-- Container to display league table <- split 50% -->
<div id="league-table-container" class="stats-container">
2024-04-13 15:58:02 -06:00
<!-- Put header above table container -->
2024-04-14 15:47:07 -06:00
<div id="table-header-container" class="header">
<h2>Table</h2>
</div>
<!-- Container containing all league table stats -->
<div id="table-stats-container" class="stats-container">
2024-04-15 16:02:19 -06:00
<table id="standings-table">
2024-04-14 15:47:07 -06:00
<thead>
<tr>
<th>#</th>
<th></th>
<th>Club</th>
<th>GP</th>
<th>W</th>
<th>L</th>
<th>D</th>
<th>GD</th>
<th>Pts</th>
</tr>
</thead>
<tbody>
{{#each league.standings}}
<tr>
<td>{{table.league_position}}</td>
<td id="club-logo-column"><img id="table-club-logo" clubID="{{table.team_id}}" src="{{table.team_crest}}" alt="{{table.team_name}} Crest"></td>
2024-04-14 21:52:31 -06:00
<td><span id="club-name-column" clubID="{{table.team_id}}">{{table.team_name}}</span></td>
2024-04-14 15:47:07 -06:00
<td>{{games_played}}</td>
<td>{{wins}}</td>
<td>{{losses}}</td>
<td>{{draws}}</td>
<td id="goal-difference-column">{{goal_difference}}</td>
2024-04-14 17:30:20 -06:00
<td id="points-column">{{points}}</td>
2024-04-14 15:47:07 -06:00
</tr>
{{/each}}
</tbody>
</table>
</div>
2024-04-13 15:58:02 -06:00
</div>
<!-- Container to display top scorers for league <- Split 50% -->
<div id="top-scorers-container" class="stats-container">
2024-04-14 16:46:48 -06:00
<div id="top-scorers-header-container" class="header">
<h2>Top Scorers</h2>
</div>
<div id="top-scorers-stats-container" class="stats-container">
2024-04-14 16:46:48 -06:00
<table>
<thead>
<tr>
2024-04-14 17:39:40 -06:00
<th>Goals</th>
2024-04-14 16:46:48 -06:00
<th></th>
<th>Name</th>
<th>Club</th>
2024-04-14 17:39:40 -06:00
<th>GP</th>
2024-04-14 16:46:48 -06:00
</tr>
</thead>
<tbody>
{{#each topScorers.scorers}}
<tr id="top-scorers-row">
2024-04-14 17:39:40 -06:00
<td id="goals-column">{{goals}}</td>
<td><img id="top-scorers-logo" clubID="{{team.team_id}}" src="{{team.team_crest}}" alt="{{table.team_name}} Crest"></img></td>
<td id="player-name-column">{{player.player_name}}</td>
<td id="club-name-column" clubID="{{team.team_id}}">{{team.team_name}}</td>
2024-04-14 16:46:48 -06:00
<td>{{games_played}}</td>
</tr>
{{/each}}
</tbody>
</table>
</div>
2024-04-13 15:58:02 -06:00
</div>
</div>
2024-04-15 16:02:19 -06:00
</div>