1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
|
<html>
<head>
<title>pybadges demo</title>
<link href="https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@400&display=swap" rel="stylesheet">
<style>
table {
font-family: 'Roboto Mono', monospace;
border-spacing: 1em;
text-align: left;
border-collapse: separate;
}
img {
padding-left: 5em;
}
</style>
</head>
<body>
<table>
<tbody>
{% for badge in badges %}
<tr>
<td>
<pre>
pybadges(left_text="{{ badge.left_text }}",
right_text="{{ badge.right_text }}",
left_color="{{ badge.left_color }}",
right_color="{{ badge.right_color}}",
logo={{ '"' ~ badge.logo ~ '"' if badge.logo else "None" }})
</pre>
</td>
<td><img src={{ badge.url }}></td>
</tr>
</tbody>
{% endfor %}
</table>
</body>
</html>
|