diff --git a/src/Python/flask/web/static/style.css b/src/Python/flask/web/static/style.css index 1c989b5..b001428 100644 --- a/src/Python/flask/web/static/style.css +++ b/src/Python/flask/web/static/style.css @@ -73,47 +73,51 @@ body { transition: transform 0.2s ease, background-color 0.2s ease; } -/* Middenknop */ -.btn:nth-child(1) { +/* Direction buttons */ +.btn:nth-child(1) { /* Left */ top: 50%; left: 50%; - transform: translate(-125%, -50%); + transform: translate(-160%, -50%); } -/* Knop boven */ -.btn:nth-child(2) { +.btn:nth-child(2) { /* Up */ top: 0; left: 50%; - transform: translateX(-50%); + transform: translate(-50%, -35%); } -/* Knop rechts */ -.btn:nth-child(3) { +.btn:nth-child(3) { /* Right */ top: 50%; right: 0; - transform: translateY(-50%); + transform: translate(35%,-50%); } -/* Knop onder */ -.btn:nth-child(4) { +.btn:nth-child(4) { /* Down */ bottom: 0; left: 50%; - transform: translateX(-50%); + transform: translate(-50%, 35%); } -/* Knop links */ -.btn:nth-child(5) { +.btn:nth-child(5) { /* Stop Button */ top: 50%; - left: 0; - transform: translateY(-50%); + left: 50%; + transform: translate(-50%, -50%); + background-color: red; /* Distinct color for the stop button */ + width: 60px; /* Slightly larger for emphasis */ + height: 60px; /* Slightly larger for emphasis */ + line-height: 60px; /* Center text vertically */ } +/* Hover effects */ .btn:hover { background-color: #0056b3; - /* transform: scale(1.1); */ } .btn:active { background-color: #004494; } + +.stop-button:hover { + background-color: darkred; /* Different hover color for the stop button */ +} \ No newline at end of file diff --git a/src/Python/flask/web/templates/index.html b/src/Python/flask/web/templates/index.html index d92042a..eccf147 100644 --- a/src/Python/flask/web/templates/index.html +++ b/src/Python/flask/web/templates/index.html @@ -1,10 +1,15 @@ -{%extends 'base.html'%} {%block head%} {%endblock%} {%block content%} +{% extends 'base.html' %} +{% block head %} + +{% endblock %} +{% block content %} Kobuki +
@@ -12,12 +17,12 @@ Kobuki Robot
-
+ - +
@@ -27,5 +32,4 @@ - -{%endblock%} +{% endblock %}