-
Notifications
You must be signed in to change notification settings - Fork 2
/
header.js
47 lines (45 loc) · 1.43 KB
/
header.js
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
import { html } from "./html.js";
import { Container } from "./container.js";
import { initialState } from "./state.js";
import { fetchReport } from "./fetch.js";
const ResetState = _ => [initialState, [fetchReport]];
export const header = html`
<${Container} class="bg-primary">
<header>
<div class="navbar">
<section class="navbar-section">
<span class="navbar-brand text-bold text-light mt-2"
>COVID Reports</span
>
</section>
<section class="navbar-section">
<a
href="https://github.com/kwasniew/covid.reports"
class="btn btn-link text-light"
>GitHub</a
>
</section>
</div>
<div class="hero hero-sm">
<div onclick=${ResetState} class="c-hand hero-body columns">
<div class="column col-auto">
<figure
class="avatar avatar-xl badge"
data-badge="19"
data-initial="YZ"
>
<img
src="https://picturepan2.github.io/spectre/img/avatar-1.png"
/>
</figure>
</div>
<div class="column column-center">
<kbd class="text-large"
>Coronavirus trends comparison by country</kbd
>
</div>
</div>
</div>
</header>
</${Container}>
`;