style Accueil quote & review style recherche

pull/30/head
Maxime ROCHER 3 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;
font-size: 2em;
margin-top: 2em;
margin-bottom: 2em;
}
.quizCard {
background: var(--main-dark-gradient);
border-radius: 15px;
padding: 1em;
display: flex;
flex-direction: column;
align-items: center;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
h3{
text-align: center;
margin-left: 15px;
margin-right: 15px;
margin-top: -5px;
text-decoration: none;
}
a{
text-decoration: none;
}
.quizCard img {
border-radius: 15px 15px 0 0;
width: 100%;
height: auto;
.linkQuiz img{
width: 14vw;
height: 22vh;
object-fit: cover;
border-radius: 10px 10px 0px 0px;
margin : 10px;
}
.quizCard h3 {
margin: 1em 0 0;
font-size: 1.5em;
.quizCard{
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;
justify-content: center;
list-style: none;
padding: 0;
margin: 1em 0 0;
justify-content: start;
align-items: self-start;
gap: 2vw;
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 {
margin: 0 0.5em;
.light-mode .quiz-container {
background: #46BE73;
}

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

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

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