summaryrefslogtreecommitdiffstats
path: root/src/templates/main.template.html
blob: 32696c7815a0c5b143f391807583cb763b04621d (plain)
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
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
<div class="container-fluid">
    <div class="row align-items-end speedometertop">
        <div class="col-12">
            <span class="speed">
                {{ speed }}
            </span>
            MPH
        </div>
    </div>
    <div class="row mt-2">
        <div class="col-3 px-0">
            <div class="container px-0 tirePreassure mt-5">
                <div class="row">
                    <div class="col-12 no-gutters text-right">
                        <small>
                            LEFT FRONT TIRE
                        </small>
                    </div>
                </div>
                <div class="row value">
                    <div class="col-12 text-right">
                        <small class="text-success">
                            {{ tires.front.left }} PSI <i class="far fa-check-circle"></i>
                        </small>
                    </div>
                </div>
            </div>
            <div class="container px-0 tirePreassure mb-5 position-absolute" style="bottom: 0;">
                <div class="row">
                    <div class="col-12 no-gutters text-right">
                        <small>
                            LEFT REAR TIRE
                        </small>
                    </div>
                </div>
                <div class="row value">
                    <div class="col-12 text-right">
                        <small class="text-warning">
                            {{ tires.rear.left }} PSI <i class="fas fa-exclamation-circle"></i>
                        </small>
                    </div>
                </div>
            </div>
        </div>
        <div class="col-6 text-center car" onclick="app.simulate()">
            <img src="images/HMI_Dashboard_Car_720.png">
            {{ #isWarning }}
            <div class="warning text-danger position-absolute">
                <i class="fa-4x fas fa-exclamation-triangle"></i>
            </div>
            {{ /isWarning }}
        </div>
        <div class="col-3 px-0">
            <div class="container px-0 tirePreassure mt-5">
                <div class="row">
                    <div class="col-12 no-gutters text-left">
                        <small>
                            RIGHT FRONT TIRE
                        </small>
                    </div>
                </div>
                <div class="row value">
                    <div class="col-12 text-left">
                        <small class="text-danger">
                            <i class="far fa-times-circle"></i> {{ tires.front.right }} PSI
                        </small>
                    </div>
                </div>
            </div>
            <div class="container px-0 tirePreassure mb-5 position-absolute" style="bottom: 0;">
                <div class="row">
                    <div class="col-12 no-gutters text-left">
                        <small>
                            RIGHT REAR TIRE
                        </small>
                    </div>
                </div>
                <div class="row value">
                    <div class="col-12 text-left">
                        <small class="text-success">
                            <i class="far fa-check-circle"></i> {{ tires.rear.right }}  PSI
                        </small>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="row mt-5 inforow">
        <div class="col-6 offset-6">
            <div class="container">
                <div class="row align-items-center">
                    <div class="col-9 offset-3">
                        <div class="container">
                            <div class="row">
                                <small class="col-5 text-right">
                                    LEVEL:
                                </small>
                                <small class="col-7 px-0 text-left text-primary">
                                    {{ fuel.level }} GALLONS
                                </small>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="row inforow">
        <div class="col-6">
            <div class="container speedometerbottom">
                <div class="row align-items-center">
                    <div class="col-9 offset-3">
                        <div class="container">
                            <div class="row">
                                <small class="col-5 text-right">
                                    SPEED:
                                </small>
                                <small class="col-7 px-0 text-left text-primary">
                                    {{ speed }} MPH
                                </small>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="col-6 inforow">
            <div class="container">
                <div class="row align-items-center">
                    <div class="col-9 offset-3">
                        <div class="container">
                            <div class="row">
                                <small class="col-5 text-right">
                                    RANGE:
                                </small>
                                <small class="col-7 px-0 text-left text-primary">
                                    {{ fuel.range }} MI
                                </small>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="row inforow">
        <div class="col-6">
            <div class="container">
                <div class="row align-items-center">
                    <div class="col-9 offset-3">
                        <div class="container">
                            <div class="row">
                                <small class="col-5 text-right">
                                    RPM:
                                </small>
                                <small class="col-7 px-0 text-left text-primary">
                                    {{ rpm.value }}
                                </small>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="col-6">
            <div class="container">
                <div class="row align-items-center">
                    <div class="col-9 offset-3">
                        <div class="container">
                            <div class="row">
                                <small class="col-5 text-right">
                                    AVG:
                                </small>
                                <small class="col-7 px-0 text-left text-primary">
                                    {{ fuel.avg }} MPG
                                </small>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="row">
        <div class="col-6">
            <div class="container">
                <div class="row align-items-center">
                    <div class="col-3">
                        <i class="fa-2x fas fa-tachometer-alt"></i>
                    </div>
                    <div class="col-9">
                        <div class="progress">
                            <div class="progress-bar" role="progressbar" style="width: {{ rpm.percent }}%" aria-valuenow="25" aria-valuemin="0" aria-valuemax="100"></div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="col-6">
            <div class="container">
                <div class="row align-items-center">
                    <div class="col-3">
                        <i class="fa-2x fas fa-gas-pump"></i>
                    </div>
                    <div class="col-9">
                        <div class="progress">
                            <div class="progress-bar" role="progressbar" style="width: {{ fuel.percent }}%" aria-valuenow="25" aria-valuemin="0" aria-valuemax="100"></div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>