flask_irinal / contacts1.html
DmitrMakeev's picture
Update contacts1.html
101cd96 verified
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>Contacts</title>
<style>
body {
display: flex;
flex-direction: column;
align-items: center;
justify-content: flex-start; /* Изменено с center на flex-start */
height: 100vh;
margin: 0;
background-color: #4CAF50; /* Зеленоватый фон */
}
h1 {
text-align: center; /* Центрирование текста заголовка */
margin-top: 20px; /* Добавлено небольшое расстояние сверху */
color: white; /* Белый цвет текста для контраста */
}
table {
width: 70%;
border-collapse: collapse;
border: 2px solid #2E7D32; /* Темно-зеленая рамка */
margin-top: 20px; /* Добавлено небольшое расстояние сверху */
}
th, td {
border: 1px solid #2E7D32; /* Темно-зеленая рамка для ячеек */
padding: 8px;
text-align: left;
}
th {
background-color: #81C784; /* Светло-зеленый фон для заголовков */
color: black; /* Черные надписи */
}
td {
background-color: white; /* Белый фон для ячеек */
color: black; /* Черные надписи */
}
</style>
</head>
<body>
<h1>Contacts1</h1>
<table>
<tr>
<th>Name</th>
<th>Email</th>
<th>Phone</th>
<th>PR1</th>
<th>PR2</th>
<th>PR3</th>
<th>PR4</th>
<th>PR5</th>
<th>Date</th>
<th>Time</th>
</tr>
{% for contact in contacts %}
<tr>
<td>{{ contact[0] }}</td>
<td>{{ contact[1] }}</td>
<td>{{ contact[2] }}</td>
<td>{{ contact[3] }}</td>
<td>{{ contact[4] }}</td>
<td>{{ contact[5] }}</td>
<td>{{ contact[6] }}</td>
<td>{{ contact[7] }}</td>
<td>{{ contact[8] }}</td>
<td>{{ contact[9] }}</td>
</tr>
{% endfor %}
</table>
</body>
</html>