diff options
| author | Jfriedli | 2021-03-21 16:48:48 +0100 |
|---|---|---|
| committer | Jfriedli | 2021-03-21 16:48:48 +0100 |
| commit | ce80bc7816884cace742e8d4d81931c1ebe9a945 (patch) | |
| tree | 6643358b09fe99d9f6f22bd4bc534e4ce8b9e273 | |
| parent | ac67c59fe283bf167521d9f088f02ecc2e15c4ce (diff) | |
improve accesibility
| -rw-r--r-- | templates/base.html | 4 | ||||
| -rw-r--r-- | templates/index.html | 3 |
2 files changed, 4 insertions, 3 deletions
diff --git a/templates/base.html b/templates/base.html index c17fc77..d3a3891 100644 --- a/templates/base.html +++ b/templates/base.html | |||
| @@ -38,7 +38,7 @@ | |||
| 38 | </a> | 38 | </a> |
| 39 | </header> | 39 | </header> |
| 40 | 40 | ||
| 41 | <section class="mb-auto mt-12 pt-8"> | 41 | <main class="mb-auto mt-12 pt-8"> |
| 42 | {% with messages = get_flashed_messages() %} | 42 | {% with messages = get_flashed_messages() %} |
| 43 | {% if messages %} | 43 | {% if messages %} |
| 44 | {% for message in messages %} | 44 | {% for message in messages %} |
| @@ -52,7 +52,7 @@ | |||
| 52 | {% endwith %} | 52 | {% endwith %} |
| 53 | 53 | ||
| 54 | {% block content %}{% endblock %} | 54 | {% block content %}{% endblock %} |
| 55 | </section> | 55 | </main> |
| 56 | 56 | ||
| 57 | <footer class="h-10 flex justify-center"> | 57 | <footer class="h-10 flex justify-center"> |
| 58 | <a class="flex justify-center" target="_blank" rel="noreferrer" href="https://0xacab.org/jvoisin/mat2-web" class="text-blue-dark"> | 58 | <a class="flex justify-center" target="_blank" rel="noreferrer" href="https://0xacab.org/jvoisin/mat2-web" class="text-blue-dark"> |
diff --git a/templates/index.html b/templates/index.html index addf868..70aa259 100644 --- a/templates/index.html +++ b/templates/index.html | |||
| @@ -12,7 +12,8 @@ | |||
| 12 | <div class="w-50 rounded overflow-hidden shadow-lg pb-4"> | 12 | <div class="w-50 rounded overflow-hidden shadow-lg pb-4"> |
| 13 | <div class="px-6 pt-4 pb-2 grid grid-rows-1"> | 13 | <div class="px-6 pt-4 pb-2 grid grid-rows-1"> |
| 14 | <form method="post" enctype="multipart/form-data" class="grid grid-rows-1"> | 14 | <form method="post" enctype="multipart/form-data" class="grid grid-rows-1"> |
| 15 | <input class="border rounded" type="file" name="file" id="upload_file" accept="{{ mimetypes | join(', ') }}"> | 15 | <label class="text-gray-700 text-sm text-opacity-80 mb-2" for="upload_file">Choose your file to clean</label> |
| 16 | <input class="border rounded" aria-label="" type="file" name="file" id="upload_file" accept="{{ mimetypes | join(', ') }}"> | ||
| 16 | <button | 17 | <button |
| 17 | class="w-full mt-4 bg-blue-dark hover:bg-blue-700 text-white py-2 px-4 rounded flex justify-center" | 18 | class="w-full mt-4 bg-blue-dark hover:bg-blue-700 text-white py-2 px-4 rounded flex justify-center" |
| 18 | type="submit" | 19 | type="submit" |
