Update main.py and history.html; add new templates

This commit is contained in:
root
2025-07-07 14:51:10 +02:00
parent 137f8c1c93
commit 9fe99f0cde
8 changed files with 942 additions and 9 deletions

View File

@ -1,15 +1,44 @@
<!DOCTYPE html>
<html>
<html lang="pl">
<head>
<title>Historia pogody - {{ city }}</title>
<meta charset="UTF-8">
<title>Historia zapytan o {{ city }}</title>
<style>
body { font-family: Arial; padding: 20px; }
table { border-collapse: collapse; width: 100%; }
th, td { padding: 10px; border: 1px solid #ddd; text-align: left; }
body {
font-family: Arial, sans-serif;
background-color: #eef2f3;
color: #333;
margin: 20px;
}
h1 {
color: #2a6ebb;
}
.error {
color: red;
font-weight: bold;
}
table {
border-collapse: collapse;
width: 60%;
margin-top: 20px;
}
th, td {
border: 1px solid #aaa;
padding: 8px 12px;
text-align: center;
}
th {
background-color: #2a6ebb;
color: #fff;
}
tr:nth-child(even) {
background-color: #d9e1ec;
}
</style>
</head>
<body>
<h2>Historia pogody {{ city }}</h2>
<h1>Historia zapytan o {{ city }}</h1>
<table>
<tr>
<th>Data</th>