-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html.jinja
63 lines (58 loc) · 3.5 KB
/
index.html.jinja
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.5.3/dist/css/bootstrap.min.css"
integrity="sha384-TX8t27EcRE3e/ihU7zmQxVncDAy5uIKz4rEkgIXeMed4M0jlfIDPvg6uqKI2xXr2" crossorigin="anonymous">
<title>VacTrend: COVID-19 Vaccination History and Trends for UK and Germany</title>
<script async defer data-domain="lambdapioneer.github.io/vactrend" src="https://plausible.io/js/plausible.js"></script>
</head>
<body class="bg-light">
<div class="container-md mt-4">
<div class="row">
<div class="col-12">
<h1>COVID-19 Vaccination Trends</h1>
<p class="lead">
This chart shows historical data from the United Kingdom and Germany.
Additionally, it displays extrapolations based on the last {{curve_fitting_window}} days for a <i>dynamic model</i> and a <i>linear model</i>.
The dynamic model assumes that the vaccination rate continues to change — i.e., we
fitted a polynomial of degree two.
The linear case assumes that the rate of vaccination remains the same.
</p>
<p class="text-muted">The data is sourced from the <a href="https://ourworldindata.org/">Our World in
Data</a> project. Last update: {{last_update.strftime('%d %B %Y')}}.</p>
</div>
</div>
<a href="vactrend.png">
<img src="vactrend.png" class="img img-fluid border rounded mt-2"
alt="Chart with COVID vaccination history and trends for the UK and Germany" />
</a>
<div class="row mt-4">
{% for country in countries %}
<div class="col-md-6 mb-4">
<div class="card">
<div class="card-header">{{country.emoji}} {{country.name}}</div>
<div class="card-body">
<h3 class="font-weight-bold" style="color: {{country.color}}">{{data_per_country[country.iso]['curr']}} <small>({{data_per_country[country.iso]['daily_rate']}}/d)</small></h3>
<p class="mt-n2">Vaccinations per 100 adults</p>
<h3 class=" font-weight-bold">{{data_per_country[country.iso]['optimistic_date_100'].strftime('%d %B %Y')}}</h3>
<p class="mt-n2">Earliest day: 100 vacc. per 100 adults</p>
<h3 class=" font-weight-bold">{{data_per_country[country.iso]['optimistic_date_200'].strftime('%d %B %Y')}}</h3>
<p class="mt-n2">Earliest day: 200 vacc. per 100 adults</p>
<p class="card-text"><small class="text-muted">Last data from {{data_per_country[country.iso]['last_update'].strftime('%d %B %Y')}}.</small></p>
</div>
</div>
</div>
{% endfor %}
</div>
<div class="row">
<div class="col-12">
<p class="text-muted">Project source code on GitHub: <a
href="https://github.com/lambdapioneer/vactrend">https://github.com/lambdapioneer/vactrend</a></p>
</div>
</div>
</div>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta2/dist/js/bootstrap.min.js" integrity="sha384-nsg8ua9HAw1y0W1btsyWgBklPnCUAFLuTMS2G72MMONqmOymq585AcH49TLBQObG" crossorigin="anonymous"></script>
</body>
</html>