-
Notifications
You must be signed in to change notification settings - Fork 0
/
header.html
134 lines (122 loc) · 4.34 KB
/
header.html
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
<section class="hero is-small is-light">
<div class="hero-body">
<div class="container">
<div class="level">
<div class="level-left">
<h1 class="title is-1"> {{ site.title }}</h1>
</div>
</div>
<p class="subtitle is-1"> {{ site.description }} </p>
<div class="field is-grouped is-grouped-multiline">
{% if site.project.power %}
<div class="control">
<div class="tags has-addons">
<span class="tag is-medium is-dark">
<span class="icon is-large">
<i class="fas fa-battery-half"></i>
</span>
power</span>
<span class="tag is-medium is-white">{{ site.project.power }}</span>
</div>
</div>
{% endif %}
{% if site.project.wireless %}
<div class="control">
<div class="tags has-addons">
<span class="tag is-medium is-dark">
<span class="icon is-large">
<i class="fas fa-wifi"></i>
</span>
wireless
</span>
<span class="tag is-medium is-white">{{ site.project.wireless }}</span>
</div>
</div>
{% endif %}
{% if site.project.sensor %}
<div class="control">
<div class="tags has-addons">
<span class="tag is-medium is-dark">
<span class="icon is-large">
<i class="fas fa-eye"></i>
</span>
sensor
</span>
<span class="tag is-medium is-white">{{ site.project.sensor }}</span>
</div>
</div>
{% endif %}
{% if site.project.mcu %}
<div class="control">
<div class="tags has-addons">
<span class="tag is-medium is-dark">
<span class="icon is-large">
<i class="fas fa-microchip"></i>
</span>
mcu
</span>
<span class="tag is-medium is-white">{{ site.project.mcu }}</span>
</div>
</div>
{% endif %}
{% if site.project.ota %}
<div class="control">
<div class="tags has-addons">
<span class="tag is-medium is-dark">ota?</span>
<span class="tag is-medium is-white">{{ site.project.ota }}</span>
</div>
</div>
{% endif %}
{% if site.project.battery-life %}
<div class="control">
<div class="tags has-addons">
<span class="tag is-medium is-dark">battery life</span>
<span class="tag is-medium is-white">{{ site.project.battery-life }}</span>
</div>
</div>
{% endif %}
</div>
<div class="field is-grouped is-grouped-multiline">
{% if site.project.bom-total %}
<div class="control">
<div class="tags has-addons">
<span class="tag is-medium is-white">bom items</span>
<span class="tag is-medium">{{ site.project.bom-total }}</span>
</div>
</div>
{% endif %}
{% if site.project.bom-cost-usd %}
<div class="control">
<div class="tags has-addons">
<span class="tag is-medium is-white">bom cost</span>
<span class="tag is-medium">USD ${{ site.project.bom-cost-usd }}</span>
</div>
</div>
{% endif %}
{% if site.project.vendors %}
<div class="control">
<div class="tags has-addons">
<span class="tag is-medium is-white">vendors</span>
<span class="tag is-medium">{{ site.project.vendors }}</span>
</div>
</div>
{% endif %}
{% if site.project.status %}
<div class="control">
{% if site.project.status == "completed" %}
<div class="tags has-addons">
<span class="tag is-medium is-white">{{ site.project.status }}</span>
<span class="tag is-medium is-light is-success">{{ site.project.completion }}</span>
</div>
{% else %}
<div class="tags has-addons">
<span class="tag is-medium is-white">{{ site.project.status }}</span>
<span class="tag is-medium is-light is-warning">since {{ site.project.started }}</span>
</div>
{% endif %}
</div>
</div>
{% endif %}
</div>
</div>
</section>