Commit 5cc6823a authored by Guus Hoekman's avatar Guus Hoekman

mobile homepage, fix for russia and belgium

parent 23b423cc
Pipeline #76877482 passed with stage
in 1 minute and 35 seconds
......@@ -24,18 +24,6 @@ layout: base
<img src="/img/flags/{{ page.code }}.svg" alt="{{ page.country }} flag">
<img src="/img/logos/{{ page.code }}.svg" alt="{{ page.competition }} logo">
</div>
<div class="legend has-text-centered">
<div class="team-box">
<span class="position">Pos</span><span class="name">Team name</span><span class="played">Played</span><span class="goal-difference equal">Goal dif</span>
</div>
<div class="qualifications">
<span class="legend-entry cl"><span class="square"></span>Champions League</span>
<span class="legend-entry el"><span class="square"></span>Europa League</span>
<span class="legend-entry el-playoffs hidden"><span class="square"></span>Europa League playoffs</span>
<span class="legend-entry relegation-playoffs hidden"><span class="square"></span>Relegation playoffs</span>
<span class="legend-entry relegation"><span class="square"></span>Relegation</span>
</div>
</div>
<table class="table is-fullwidth">
<tbody>
<tr>
......@@ -57,6 +45,19 @@ layout: base
<a class="button" target="_blank" href="{% if page.latest and page.api != false %}https://data.canntables.com/{{ page.code }}.js{% else %}/js/{{ page.season | replace: '/', '-' }}/{{ page.code }}.js{% endif %}"><span class="icon"><i class="fas fa-database"></i></span><span>Data</span></a>
<a class="button" href="mailto:[email protected]"><span class="icon"><i class="fas fa-exclamation-circle"></i></span><span>Correct a mistake</span></a>
</div>
<hr>
<div class="legend has-text-centered">
<div class="team-box">
<span class="position">Pos</span><span class="name">Team name</span><span class="played">Played</span><span class="goal-difference equal">Goal dif</span>
</div>
<div class="qualifications">
<span class="legend-entry cl"><span class="square"></span>Champions League</span>
<span class="legend-entry el"><span class="square"></span>Europa League</span>
<span class="legend-entry el-playoffs hidden"><span class="square"></span>Europa League playoffs</span>
<span class="legend-entry relegation-playoffs hidden"><span class="square"></span>Relegation playoffs</span>
<span class="legend-entry relegation"><span class="square"></span>Relegation</span>
</div>
</div>
</div>
</div>
<div class="column is-8-desktop">
......
......@@ -62,10 +62,10 @@ title: Home
<li><a data-tab="total">Total points</a></li>
</ul>
</div>
<div class="columns tables is-active per-game">
<div class="columns tables is-mobile is-active per-game">
</div>
<div class="columns tables total">
<div class="columns tables is-mobile total">
</div>
</div>
......
......@@ -4,7 +4,7 @@ var be = {
"source": "https://en.wikipedia.org/wiki/2018–19_Belgian_First_Division_A#League_table",
"teams": 16,
"cl": [1,2],
"el": [3,4,5],
"el": [3,5,6],
"relegation": [16],
"standings": [
{
......
......@@ -5,7 +5,7 @@ var ru = {
"teams": 16,
"cl": [1,2,3],
"el": [4,5,6],
"relegation": [13,14,15,16],
"relegation": [15,16],
"standings": [
{
"position": 1,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment