style Accueil quote & review style recherche

pull/30/head
Maxime ROCHER 6 months ago
parent 37f0c11f4c
commit f61062ae8a

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 152 KiB

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 152 KiB

After

Width:  |  Height:  |  Size: 28 KiB

@ -4,39 +4,72 @@ h2{
text-align: center; text-align: center;
font-size: 2em; font-size: 2em;
margin-top: 2em; margin-top: 2em;
margin-bottom: 2em;
} }
.quizCard { h3{
background: var(--main-dark-gradient); text-align: center;
border-radius: 15px; margin-left: 15px;
padding: 1em; margin-right: 15px;
display: flex; margin-top: -5px;
flex-direction: column; text-decoration: none;
align-items: center; }
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
a{
text-decoration: none;
} }
.quizCard img { .linkQuiz img{
border-radius: 15px 15px 0 0; width: 14vw;
width: 100%; height: 22vh;
height: auto; object-fit: cover;
border-radius: 10px 10px 0px 0px;
margin : 10px;
} }
.quizCard h3 { .quizCard{
margin: 1em 0 0;
font-size: 1.5em;
text-align: center; text-align: center;
border-radius: 15px;
box-shadow: 0px 0px 10px 0px rgba(0,0,0,0.2);
} }
.quizCard ul { .quiz-container{
margin-left: auto;
margin-right: auto;
display: flex; display: flex;
justify-content: center; justify-content: start;
list-style: none; align-items: self-start;
padding: 0; gap: 2vw;
margin: 1em 0 0; margin-top: 2em;
min-height: 68vh;
width: 95vw;
padding: 15px;
border-radius: 15px;
}
/* Dark mode */
.dark-mode h3 {
color: white;
}
.dark-mode .quizCard {
background: var(--main-dark-gradient);
}
.dark-mode .quiz-container {
background: black;
}
/* Light mode */
.light-mode h3 {
color: black;
}
.light-mode .quizCard {
background: var(--main-light-gradient);
} }
.quizCard ul li { .light-mode .quiz-container {
margin: 0 0.5em; background: #46BE73;
} }

@ -117,6 +117,13 @@ body.dark-mode .filtre label {
body.light-mode .search-container { body.light-mode .search-container {
background: #ccc; background: #ccc;
} }
.light-mode form {
background-color: #fff;
margin-top: -30px;
padding-top: 35px;
}
body.light-mode .search-container input[type="search"] { body.light-mode .search-container input[type="search"] {
color: #000; color: #000;
} }

@ -1,17 +1,15 @@
<h2>Liste des Quiz</h2> <h2>Liste des Quiz</h2>
<ul> <div class="quiz-container">
{% for quiz in quizs %} {% for quiz in quizs %}
<li>
<div class="quizCard"> <div class="quizCard">
<a href="{{ racine }}/quiz/{{ quiz.id_quiz }}" class="linkQuiz"> <a href="{{ racine }}/quiz/{{ quiz.id_quiz }}" class="linkQuiz">
<img src="{{ quiz.imgPath }}" alt="Image du quiz {{ quiz.title }}"> <img src="{{ quiz.imgPath }}" alt="Image du quiz {{ quiz.title }}">
<h3>{{ quiz.title }} ({{ quiz.nb_quest }} questions)</h3> <h3>{{ quiz.title }} ({{ quiz.nb_quest }} questions)</h3>
</a> </a>
</div> </div>
</li>
{% else %} {% else %}
<li>Aucun quiz disponible pour le moment.</li> <h3>Aucun quiz disponible pour le moment.</h3>
{% endfor %} {% endfor %}
</ul> </div>
</body> </body>
</html> </html>

@ -1,3 +1,4 @@
<div class="content">
<form action="{{racine}}/search" method="post"> <form action="{{racine}}/search" method="post">
<div class="search-container"> <div class="search-container">
<input type="search" placeholder="Recherche" id="filtre" name="search" value="{{ search }}"/> <input type="search" placeholder="Recherche" id="filtre" name="search" value="{{ search }}"/>
@ -44,3 +45,4 @@
--> -->
</form> </form>
</div>
Loading…
Cancel
Save