trophies update and hamburger fix
This commit is contained in:
@@ -72,9 +72,9 @@ def clubs():
|
||||
selected_club = request.args.get("club","FC Barcelona")
|
||||
clubs = [
|
||||
{'club': 'FC Barcelona', 'goals': 22,'assist':12},
|
||||
{'club': 'Bayern Monachium', 'goals': 132},
|
||||
{'club': 'Borussia Dortmund', 'goals': 132},
|
||||
{'club': 'Lech Poznan', 'goals': 132},
|
||||
{'club': 'Bayern Monachium', 'goals': 132,'assist':12},
|
||||
{'club': 'Borussia Dortmund', 'goals': 132,'assist':12},
|
||||
{'club': 'Lech Poznan', 'goals': 132,'assist':12},
|
||||
]
|
||||
return render_template('club.html', clubs=clubs, selected_club=selected_club)
|
||||
|
||||
@@ -93,9 +93,10 @@ def compare():
|
||||
]
|
||||
return render_template('compare.html',player2=player2, selected_player=selected_player,**lewy, )
|
||||
def trophies():
|
||||
trophy = {
|
||||
'name': 'asdasd'
|
||||
}
|
||||
trophy = [
|
||||
{'name': 'asdasd', 'year': 2023},
|
||||
{'name': 'ssss', 'sezon': '2022/2023'},
|
||||
]
|
||||
return render_template('trophies.html',trophy=trophy)
|
||||
|
||||
def toggle_dark_mode():
|
||||
|
||||
@@ -315,12 +315,12 @@ header button {
|
||||
position: absolute;
|
||||
flex-direction: column;
|
||||
top: 57px;
|
||||
right: 40px;
|
||||
right: 0px;
|
||||
padding: 0rem;
|
||||
gap: 0;
|
||||
height: auto;
|
||||
backdrop-filter: blur(4px);
|
||||
width: 20%;
|
||||
width: 30%;
|
||||
justify-content: center;
|
||||
box-shadow: 0px 0px 5px 5px rgba(0, 0, 0, 0.105);
|
||||
}
|
||||
@@ -602,7 +602,6 @@ body.poland-mode .nav-links li a {
|
||||
color: white;
|
||||
}
|
||||
|
||||
|
||||
body.poland-mode .nav-links li a:hover {
|
||||
color: #220000;
|
||||
background-color: white;
|
||||
|
||||
@@ -3,22 +3,26 @@
|
||||
{% block title %}Statystyki{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<section class="section-stats">
|
||||
<h2>Ogólne statystyki</h2>
|
||||
<div class="stats">
|
||||
<div class="stat-box">
|
||||
<h3>{{ trophy.name}}</h3>
|
||||
<p>Gole</p>
|
||||
</div>
|
||||
<div class="stat-box">
|
||||
<h3>{{ trophy.name }}</h3>
|
||||
<p>Asysty</p>
|
||||
</div>
|
||||
<div class="stat-box">
|
||||
<h3>{{ trophy.name }}</h3>
|
||||
<p>Występy</p>
|
||||
</div>
|
||||
</div>
|
||||
<section class="section__matches">
|
||||
<h2>📅 Trofea</h2>
|
||||
<table>
|
||||
<tr>
|
||||
<th>Nazwa</th>
|
||||
<th>Data/Sezon</th>
|
||||
</tr>
|
||||
{% for trophy in trophy %}
|
||||
|
||||
<tr>
|
||||
<td>{{ trophy.name }}</td>
|
||||
{% if trophy.year == NULL %}
|
||||
<td>{{ trophy.sezon }}</td>
|
||||
{% endif %}
|
||||
{% if trophy.sezon == NULL %}
|
||||
<td>{{ trophy.year }}</td>
|
||||
{% endif %}
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</table>
|
||||
</section>
|
||||
|
||||
{% endblock %}
|
||||
|
||||
Reference in New Issue
Block a user