engage_earn_api/templates/report.html
Mitchell Marino 9c10def7d2 report work
2023-04-14 20:12:37 -05:00

75 lines
1.7 KiB
HTML

<!DOCTYPE html>
<html>
<head>
<title>Student Point Report Grade {{ grade }}</title>
<style>
/* color theme */
:root {
--primary-color: #9aedf4;
--secondary-color: #f2f2f2;
--text-color: #333;
}
/* zebra striping */
tr:nth-child(even) {
background-color: var(--secondary-color);
}
/* table styling */
table {
border-collapse: collapse;
width: 100%;
margin: 20px 0;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
font-family: Arial, sans-serif;
color: var(--text-color);
}
th, td {
text-align: left;
padding: 12px;
border: 1px solid #ddd;
}
th {
background-color: var(--primary-color);
color: white;
font-weight: normal;
}
/* header styling */
header {
background-color: var(--primary-color);
color: white;
padding: 30px 20px;
display: flex;
justify-content: space-between;
align-items: center;
font-family: Arial, sans-serif;
}
h1 {
margin: 0;
font-size: 32px;
font-weight: normal;
}
</style>
</head>
<body>
<header>
<h1>Student Point Report Grade {{ grade }}</h1>
<p style="margin: 0;">{{ date }}</p>
</header>
<table>
<thead>
<tr>
<th>Name</th>
<th>Points</th>
</tr>
</thead>
<tbody>
{% for user in users %}
<tr>
<td>{{ user.username }}</td>
<td>{{ user.points }}</td>
</tr>
{% endfor %}
</tbody>
</table>
</body>
</html>