This commit is contained in:
Pc
2025-04-08 22:51:31 +02:00
parent acb68496fd
commit 29f6186e8c
10 changed files with 150 additions and 242 deletions

View File

@@ -1,10 +0,0 @@
{% extends "layout.html" %}
{% block content %}
<h2>{{ title }}.</h2>
<h3>{{ message }}</h3>
<p>Use this area to provide additional information.</p>
{% endblock %}

View File

@@ -1,20 +0,0 @@
{% extends "layout.html" %}
{% block content %}
<h2>{{ title }}.</h2>
<h3>{{ message }}</h3>
<address>
One Microsoft Way<br />
Redmond, WA 98052-6399<br />
<abbr title="Phone">P:</abbr>
425.555.0100
</address>
<address>
<strong>Support:</strong> <a href="mailto:Support@example.com">Support@example.com</a><br />
<strong>Marketing:</strong> <a href="mailto:Marketing@example.com">Marketing@example.com</a>
</address>
{% endblock %}

View File

@@ -1,33 +1,14 @@
{% extends "layout.html" %}
{% extends "base.html" %}
{% block title %}Strona Główna{% endblock %}
{% block content %}
<div class="jumbotron">
<h1>Flask</h1>
<p class="lead">Flask is a free web framework for building great Web sites and Web applications using HTML, CSS and JavaScript.</p>
<p><a href="http://flask.pocoo.org/" class="btn btn-primary btn-large">Learn more &raquo;</a></p>
<h2>Witaj na stronie poświęconej statystykom Roberta Lewandowskiego!</h2>
<p>Tu znajdziesz najnowsze informacje o meczach, golach, asystach i innych statystykach.</p>
<div>
<h3>Ogólne statystyki:</h3>
<p>Gole: {{ goals }}</p>
<p>Asysty: {{ assists }}</p>
<p>Liczba meczów: {{ matches }}</p>
</div>
<div class="row">
<div class="col-md-4">
<h2>Getting started</h2>
<p>
Flask gives you a powerful, patterns-based way to build dynamic websites that
enables a clean separation of concerns and gives you full control over markup
for enjoyable, agile development.
</p>
<p><a class="btn btn-default" href="http://flask.pocoo.org/docs/">Learn more &raquo;</a></p>
</div>
<div class="col-md-4">
<h2>Get more libraries</h2>
<p>The Python Package Index is a repository of software for the Python programming language.</p>
<p><a class="btn btn-default" href="https://pypi.python.org/pypi">Learn more &raquo;</a></p>
</div>
<div class="col-md-4">
<h2>Microsoft Azure</h2>
<p>You can easily publish to Microsoft Azure using Visual Studio. Find out how you can host your application using a free trial today.</p>
<p><a class="btn btn-default" href="http://azure.microsoft.com">Learn more &raquo;</a></p>
</div>
</div>
{% endblock %}

View File

@@ -1,118 +0,0 @@
<!DOCTYPE html>
<html lang="pl">
<head>
<meta charset="UTF-8">
<title>Statystyki Roberta Lewandowskiego</title>
<link href="https://fonts.googleapis.com/css2?family=Roboto&display=swap" rel="stylesheet">
<style>
body {
font-family: 'Roboto', sans-serif;
background-color: #f2f2f2;
margin: 0;
padding: 20px;
}
.container {
max-width: 960px;
margin: auto;
background-color: white;
padding: 30px;
border-radius: 15px;
box-shadow: 0 0 15px rgba(0,0,0,0.1);
}
h1 {
text-align: center;
color: #d32f2f;
}
.profile {
text-align: center;
}
.profile img {
border-radius: 50%;
width: 180px;
height: 180px;
object-fit: cover;
}
.stats {
display: flex;
justify-content: space-around;
margin-top: 20px;
}
.stat {
text-align: center;
}
.stat h2 {
color: #333;
margin: 5px 0;
}
table {
width: 100%;
margin-top: 30px;
border-collapse: collapse;
}
th, td {
padding: 12px;
border-bottom: 1px solid #ccc;
text-align: center;
}
th {
background-color: #e53935;
color: white;
}
</style>
</head>
<body>
<div class="container">
<h1>Statystyki Roberta Lewandowskiego</h1>
<div class="profile">
<img src="{{ url_for('static', filename='lewandowski.jpg') }}" alt="Robert Lewandowski">
<p><strong>Napastnik</strong> - FC Barcelona / Polska Reprezentacja</p>
</div>
<div class="stats">
<div class="stat">
<h2>{{ goals }}</h2>
<p>Gole</p>
</div>
<div class="stat">
<h2>{{ assists }}</h2>
<p>Asysty</p>
</div>
<div class="stat">
<h2>{{ matches }}</h2>
<p>Mecze</p>
</div>
</div>
<h2 style="margin-top: 40px;">Szczegóły Meczy</h2>
<table>
<tr>
<th>Data</th>
<th>Przeciwnik</th>
<th>Gole</th>
<th>Asysty</th>
<th>Minuty</th>
</tr>
{% for match in matches %}
<tr>
<td>{{ match.date }}</td>
<td>{{ match.opponent }}</td>
<td>{{ match.goals }}</td>
<td>{{ match.assists }}</td>
<td>{{ match.minutes }}</td>
</tr>
{% endfor %}
</table>
</div>
</body>
</html>

View File

@@ -1,7 +1,9 @@
{% extends 'base.html' %}
{% block title %}Historia meczów{% endblock %}
{% block title %}Lista meczów{% endblock %}
{% block content %}
<h2>Historia ostatnich meczów</h2>
<h2>📅 Mecze Roberta</h2>
<table>
<tr>
<th>Data</th>

View File

@@ -3,10 +3,10 @@
{% block title %}Statystyki{% endblock %}
{% block content %}
<h2>Statystyki Roberta Lewandowskiego</h2>
<ul>
<li>Gole: {{ stats.goals }}</li>
<li>Asysty: {{ stats.assists }}</li>
<li>Mecze: {{ stats.matches }}</li>
</ul>
<h2>Statystyki Roberta Lewandowskiego</h2>
<ul>
<li>Gole: {{ stats.goals }}</li>
<li>Asysty: {{ stats.assists }}</li>
<li>Mecze: {{ stats.matches }}</li>
</ul>
{% endblock %}