Update templates/base.html
Browse files1 unmodified line234567891011121314151617181920212223242526272829303132331 unmodified line<html lang="fr"><head><meta charset="UTF-8"><title>{% block title %}Forum Anonyme{% endblock %}</title><link rel="stylesheet" href="{{ url_for('static', filename='styles.css') }}"></head><body><div class="container"><header><h1><a href="{{ url_for('index') }}">Forum Anonyme</a></h1><nav><a href="{{ url_for('new_thread') }}">Nouveau fil</a> |<a href="{{ url_for('moderate') }}">Modération</a></nav><form action="{{ url_for('search') }}" method="GET"><input type="text" name="q" placeholder="Recherche..." required><button type="submit">Chercher</button></form></header>{% with messages = get_flashed_messages(with_categories=true) %}{% if messages %}<ul class="flashes">{% for category, message in messages %}<li class="flash {{ category }}">{{ message }}</li>{% endfor %}</ul>{% endif %}{% endwith %}{% block content %}{% endblock %}</div></body></html>1 unmodified line2345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364651 unmodified line<html lang="fr"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"> <!-- Important pour le responsive --><title>{% block title %}Forum Anonyme{% endblock %}</title><link href="https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css" rel="stylesheet"><!-- <link rel="stylesheet" href="{{ url_for('static', filename='styles.css') }}"> --> <!-- Plus besoin de ce fichier --><style>.quoted-text {background-color: #f0f4f8; /* Couleur de fond légère pour le texte cité */border-left: 4px solid #60a5fa; /* Barre verticale bleue */padding: 0.5rem 1rem; /* Espacement intérieur */margin-bottom: 0.5rem; /* Marge en dessous */font-style: italic; /* Texte en italique */}.quoted-message-id{font-size: 0.8em; /* Taille de police plus petite */color: #4a5568; /* Couleur de texte discrète */margin-bottom: 0.25rem; /* Petite marge en dessous */}</style></head><body class="bg-gray-100 font-sans"> <!-- Fond gris clair, police sans-serif --><div class="container mx-auto p-4 md:p-8"> <!-- Conteneur principal, marges auto, padding --><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> <!-- Lien principal, effet hover --></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"> <!-- Marge en haut --><div class="flex"> <!--Utilisation flexbox pour bien aligner la barre et le bouton--><input type="text" name="q" placeholder="Recherche..." requiredclass="flex-grow p-2 border border-gray-300 rounded-l-md focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent"> <!-- Input de recherche --><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"> <!-- Marge en bas -->{% 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 %}"> <!-- Couleurs conditionnelles -->{{ message }}</div>{% endfor %}</div>{% endif %}{% endwith %}{% block content %}{% endblock %}</div></body></html>
templates/base.html+47-15