File size: 3,610 Bytes
f631d90
 
 
 
cb050e0
f631d90
cb050e0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
f631d90
cb050e0
 
 
 
 
 
 
 
 
f631d90
cb050e0
 
 
 
 
 
 
 
 
f631d90
 
cb050e0
f631d90
 
cb050e0
f631d90
cb050e0
 
 
 
 
 
 
f631d90
cb050e0
f631d90
 
cb050e0
f631d90
 
 
cb050e0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
<!doctype html>
<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/[email protected]/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..." 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"> <!-- 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>