Skip to content

Commit

Permalink
flash message color changes
Browse files Browse the repository at this point in the history
  • Loading branch information
DogukanUrker committed Jan 20, 2024
1 parent e4bd7ca commit 144e0bd
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions templates/tailwindUI/flash.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,18 @@
rel="stylesheet"
href="{{ url_for('static', filename='css/flash.css') }}"
/>
<div id="flashContainer" class="absolute w-fit text-center text-xl select-none">
<div id="flashContainer" class="fixed w-fit text-center text-xl select-none">
{% with messages = get_flashed_messages(with_categories=true) %} {% if
messages %} {% for category, message in messages %} {% if category ==
"success" %}
<p id="flash" class="bg-green-500 rounded p-2">
<p
id="flash"
class="text-green-500 bg-green-200 rounded p-2 font-medium shadow"
>
{{ message }}
</p>
{% else %}
<p id="flash" class="bg-red-500 rounded p-2">
<p id="flash" class="text-red-500 bg-red-200 rounded p-2 font-medium shadow">
{{ message }}
</p>
{% endif %} {% endfor %} {% endif %} {% endwith %}
Expand Down

0 comments on commit 144e0bd

Please sign in to comment.