merge new front-end #3

Merged
sherl merged 8 commits from frontend into master 2025-06-05 10:30:28 +02:00
3 changed files with 29 additions and 25 deletions
Showing only changes of commit 3dfc40cdb0 - Show all commits

View File

@@ -72,9 +72,9 @@ def clubs():
selected_club = request.args.get("club","FC Barcelona") selected_club = request.args.get("club","FC Barcelona")
clubs = [ clubs = [
{'club': 'FC Barcelona', 'goals': 22,'assist':12}, {'club': 'FC Barcelona', 'goals': 22,'assist':12},
{'club': 'Bayern Monachium', 'goals': 132}, {'club': 'Bayern Monachium', 'goals': 132,'assist':12},
{'club': 'Borussia Dortmund', 'goals': 132}, {'club': 'Borussia Dortmund', 'goals': 132,'assist':12},
{'club': 'Lech Poznan', 'goals': 132}, {'club': 'Lech Poznan', 'goals': 132,'assist':12},
] ]
return render_template('club.html', clubs=clubs, selected_club=selected_club) 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, ) return render_template('compare.html',player2=player2, selected_player=selected_player,**lewy, )
def trophies(): def trophies():
trophy = { trophy = [
'name': 'asdasd' {'name': 'asdasd', 'year': 2023},
} {'name': 'ssss', 'sezon': '2022/2023'},
]
return render_template('trophies.html',trophy=trophy) return render_template('trophies.html',trophy=trophy)
def toggle_dark_mode(): def toggle_dark_mode():

View File

@@ -315,12 +315,12 @@ header button {
position: absolute; position: absolute;
flex-direction: column; flex-direction: column;
top: 57px; top: 57px;
right: 40px; right: 0px;
padding: 0rem; padding: 0rem;
gap: 0; gap: 0;
height: auto; height: auto;
backdrop-filter: blur(4px); backdrop-filter: blur(4px);
width: 20%; width: 30%;
justify-content: center; justify-content: center;
box-shadow: 0px 0px 5px 5px rgba(0, 0, 0, 0.105); 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; color: white;
} }
body.poland-mode .nav-links li a:hover { body.poland-mode .nav-links li a:hover {
color: #220000; color: #220000;
background-color: white; background-color: white;

View File

@@ -3,22 +3,26 @@
{% block title %}Statystyki{% endblock %} {% block title %}Statystyki{% endblock %}
{% block content %} {% block content %}
<section class="section-stats"> <section class="section__matches">
<h2>Ogólne statystyki</h2> <h2>📅 Trofea</h2>
<div class="stats"> <table>
<div class="stat-box"> <tr>
<h3>{{ trophy.name}}</h3> <th>Nazwa</th>
<p>Gole</p> <th>Data/Sezon</th>
</div> </tr>
<div class="stat-box"> {% for trophy in trophy %}
<h3>{{ trophy.name }}</h3>
<p>Asysty</p> <tr>
</div> <td>{{ trophy.name }}</td>
<div class="stat-box"> {% if trophy.year == NULL %}
<h3>{{ trophy.name }}</h3> <td>{{ trophy.sezon }}</td>
<p>Występy</p> {% endif %}
</div> {% if trophy.sezon == NULL %}
</div> <td>{{ trophy.year }}</td>
{% endif %}
</tr>
{% endfor %}
</table>
</section> </section>
{% endblock %} {% endblock %}