added symbols on cards

This commit is contained in:
Simon Pirkelmann 2020-09-26 09:01:16 +02:00
parent 758cb87b26
commit d24b2c9752
8 changed files with 12 additions and 1 deletions

BIN
static/backward.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 895 B

BIN
static/forward x2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

BIN
static/forward x3.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

BIN
static/forward.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 846 B

BIN
static/turn around.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

BIN
static/turn left.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

BIN
static/turn right.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

View File

@ -22,7 +22,18 @@
<div class="row top-buffer"> <div class="row top-buffer">
<div class="main-canvas"> <div class="main-canvas">
{% for i in range(0,9) %} {% for i in range(0,9) %}
<div class="box card{{ i }}" name="{{ cmds[i].number }}" >{{ cmds[i].action }} {% if 'forward' in cmds[i].action %}
<div class="box card{{ i }}" name="{{ cmds[i].number }}" style="background-color: #28a745">
{% elif 'backward' in cmds[i].action %}
<div class="box card{{ i }}" name="{{ cmds[i].number }}" style="background-color: #E74C3C">
{% elif 'left' in cmds[i].action %}
<div class="box card{{ i }}" name="{{ cmds[i].number }}" style="background-color: #f3d500">
{% elif 'right' in cmds[i].action %}
<div class="box card{{ i }}" name="{{ cmds[i].number }}" style="background-color: #2832ad">
{% else %}
<div class="box card{{ i }}" name="{{ cmds[i].number }}" style="background-color: rgba(128,116,109,0.55)">
{% endif %}
<img src="static/{{ cmds[i].action }}.png">
<p style="font-size: 10px">{{ cmds[i].priority }}</p> <p style="font-size: 10px">{{ cmds[i].priority }}</p>
</div> </div>
{% endfor %} {% endfor %}