|
<!doctype html> |
|
<html lang="fr"> |
|
<head> |
|
<meta charset="UTF-8"> |
|
<meta name="viewport" content="width=device-width, initial-scale=1.0"> |
|
<title>{% block title %}Forum Anonyme{% endblock %}</title> |
|
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/tailwind.min.css" rel="stylesheet"> |
|
|
|
<style> |
|
.quoted-text { |
|
background-color: #f0f4f8; |
|
border-left: 4px solid #60a5fa; |
|
padding: 0.5rem 1rem; |
|
margin-bottom: 0.5rem; |
|
font-style: italic; |
|
} |
|
.quoted-message-id{ |
|
font-size: 0.8em; |
|
color: #4a5568; |
|
margin-bottom: 0.25rem; |
|
} |
|
</style> |
|
</head> |
|
<body class="bg-gray-100 font-sans"> |
|
<div class="container mx-auto p-4 md:p-8"> |
|
<header class="mb-6"> |
|
<h1 class="text-3xl font-bold text-blue-800 mb-2"> |
|
<a href="{{ url_for('index') }}" class="hover:text-blue-600 transition-colors duration-200">Forum Anonyme</a> |
|
</h1> |
|
<nav class="flex flex-wrap items-center space-x-4 md:space-x-6 text-blue-700"> |
|
<a href="{{ url_for('new_thread') }}" class="hover:text-blue-500 transition-colors duration-200">Nouveau fil</a> |
|
<a href="{{ url_for('moderate') }}" class="hover:text-blue-500 transition-colors duration-200">Modération</a> |
|
</nav> |
|
<form action="{{ url_for('search') }}" method="GET" class="mt-4"> |
|
<div class="flex"> |
|
<input type="text" name="q" placeholder="Recherche..." required |
|
class="flex-grow p-2 border border-gray-300 rounded-l-md focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent"> |
|
<button type="submit" |
|
class="bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded-r-md transition-colors duration-200"> |
|
Chercher |
|
</button> |
|
</div> |
|
</form> |
|
</header> |
|
|
|
{% with messages = get_flashed_messages(with_categories=true) %} |
|
{% if messages %} |
|
<div class="mb-6"> |
|
{% for category, message in messages %} |
|
<div class="flash {{ category }} p-4 rounded-md mb-2 |
|
{% if category == 'error' %}bg-red-100 border border-red-400 text-red-700 |
|
{% elif category == 'success' %}bg-green-100 border border-green-400 text-green-700 |
|
{% else %}bg-blue-100 border border-blue-400 text-blue-700 |
|
{% endif %}"> |
|
{{ message }} |
|
</div> |
|
{% endfor %} |
|
</div> |
|
{% endif %} |
|
{% endwith %} |
|
|
|
{% block content %}{% endblock %} |
|
</div> |
|
</body> |
|
</html> |