commit
ca81cd84bf
Before Width: | Height: | Size: 5.2 KiB After Width: | Height: | Size: 28 KiB |
Binary file not shown.
Binary file not shown.
@ -0,0 +1,42 @@
|
|||||||
|
@import url(./style.css); /* Import de style.css */
|
||||||
|
|
||||||
|
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);
|
||||||
|
}
|
||||||
|
|
||||||
|
.quizCard img {
|
||||||
|
border-radius: 15px 15px 0 0;
|
||||||
|
width: 100%;
|
||||||
|
height: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.quizCard h3 {
|
||||||
|
margin: 1em 0 0;
|
||||||
|
font-size: 1.5em;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.quizCard ul {
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
list-style: none;
|
||||||
|
padding: 0;
|
||||||
|
margin: 1em 0 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.quizCard ul li {
|
||||||
|
margin: 0 0.5em;
|
||||||
|
}
|
@ -1,120 +0,0 @@
|
|||||||
/* Conteneur pour les suggestions en deux colonnes */
|
|
||||||
.suggestions-container {
|
|
||||||
display: flex;
|
|
||||||
flex-wrap: wrap;
|
|
||||||
justify-content: space-around;
|
|
||||||
width: 100%;
|
|
||||||
margin: 0 auto;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
a.link-citation {
|
|
||||||
text-decoration: none;
|
|
||||||
color: white;
|
|
||||||
width: 47.5%;
|
|
||||||
height: 100%;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Citations */
|
|
||||||
.citation-container {
|
|
||||||
background: linear-gradient(to right, #4a148c, #7b1fa2);
|
|
||||||
border-radius: 12px;
|
|
||||||
color: white;
|
|
||||||
display: flex;
|
|
||||||
width: 100%;
|
|
||||||
align-items: flex-start;
|
|
||||||
box-sizing: border-box;
|
|
||||||
padding: 0;
|
|
||||||
height: 150px;
|
|
||||||
overflow: hidden;
|
|
||||||
margin-bottom: 20px;
|
|
||||||
word-wrap: break-word; /* Permet de couper les mots trop longs */
|
|
||||||
word-break: break-word;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Fixe la taille pour s'assurer que toutes les citations restent cohérentes */
|
|
||||||
.citation-container .text-content {
|
|
||||||
flex-grow: 1;
|
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
justify-content: center;
|
|
||||||
height: 150px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.quote {
|
|
||||||
padding: 0;
|
|
||||||
overflow: hidden;
|
|
||||||
}
|
|
||||||
|
|
||||||
.citation-image {
|
|
||||||
width: 150px;
|
|
||||||
height: 100%;
|
|
||||||
object-fit: cover;
|
|
||||||
margin: 0;
|
|
||||||
border-radius: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.text-content {
|
|
||||||
flex: 1;
|
|
||||||
padding: 10px;
|
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
justify-content: center; /* Centre verticalement le texte */
|
|
||||||
word-wrap: break-word; /* Permet de couper les mots trop longs */
|
|
||||||
word-break: break-word;
|
|
||||||
}
|
|
||||||
|
|
||||||
.quoteContent {
|
|
||||||
font-size: 1.2em;
|
|
||||||
margin-bottom: 10px;
|
|
||||||
font-style: italic;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
.citation .movie, .character, .year {
|
|
||||||
margin-bottom: 5px;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Mode sombre */
|
|
||||||
body.dark-mode .quote {
|
|
||||||
background: linear-gradient(45deg, #4a148c, #7b1fa2);
|
|
||||||
color:white;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Mode clair */
|
|
||||||
body.light-mode .quote {
|
|
||||||
background-image: linear-gradient(-28deg, #f3e7e9 0%, #e3eeff 99%, #e3eeff 100%);
|
|
||||||
color:black; /* Changer le texte en noir pour le mode clair */
|
|
||||||
}
|
|
||||||
|
|
||||||
body.light-mode .citation,
|
|
||||||
body.light-mode .movie,
|
|
||||||
body.light-mode .character,
|
|
||||||
body.light-mode .year {
|
|
||||||
color: black; /* Forcer le texte en noir pour le mode clair */
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Responsive design */
|
|
||||||
@media (max-width: 768px) {
|
|
||||||
.suggestions-container {
|
|
||||||
flex-direction: column;
|
|
||||||
width: 100%;
|
|
||||||
}
|
|
||||||
|
|
||||||
.citation-container {
|
|
||||||
width: 100%; /* Chaque citation prend toute la largeur sur mobile */
|
|
||||||
max-width: 100%;
|
|
||||||
height: 100px; /* Supprimer la hauteur fixe sur mobile */
|
|
||||||
}
|
|
||||||
|
|
||||||
.citation-image {
|
|
||||||
width: 100px;
|
|
||||||
height: 100px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.quote {
|
|
||||||
font-size: 1em;
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,108 +0,0 @@
|
|||||||
/* header.css */
|
|
||||||
|
|
||||||
/* Styles généraux */
|
|
||||||
* {
|
|
||||||
margin: 0;
|
|
||||||
padding: 0;
|
|
||||||
box-sizing: border-box;
|
|
||||||
}
|
|
||||||
|
|
||||||
body {
|
|
||||||
background-color: #120b1d;
|
|
||||||
font-family: "Lemon", serif;
|
|
||||||
margin-top: 200px;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Header */
|
|
||||||
.header {
|
|
||||||
display: flex;
|
|
||||||
position: fixed;
|
|
||||||
background-color: #000000;
|
|
||||||
right: 0;
|
|
||||||
top: 0;
|
|
||||||
width: 100%;
|
|
||||||
text-align: center;
|
|
||||||
padding: 20px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.nav {
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
vertical-align: center;
|
|
||||||
gap: 30px;
|
|
||||||
width: 40%;
|
|
||||||
}
|
|
||||||
|
|
||||||
.logo {
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
justify-content: center;
|
|
||||||
width: 20%;
|
|
||||||
}
|
|
||||||
|
|
||||||
.user {
|
|
||||||
display: flex;
|
|
||||||
flex-direction: row;
|
|
||||||
justify-content: flex-end;
|
|
||||||
align-items: center;
|
|
||||||
vertical-align: center;
|
|
||||||
gap: 30px;
|
|
||||||
width: 40%;
|
|
||||||
}
|
|
||||||
|
|
||||||
.search {
|
|
||||||
display: flex;
|
|
||||||
flex-direction: row;
|
|
||||||
justify-content: center;
|
|
||||||
align-items: center;
|
|
||||||
vertical-align: center;
|
|
||||||
margin: 10px;
|
|
||||||
width: 70px;
|
|
||||||
height: 70px;
|
|
||||||
border-radius: 50%;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/* Mode sombre */
|
|
||||||
body.dark-mode {
|
|
||||||
background-color: #120B1D;
|
|
||||||
color: #ffffff;
|
|
||||||
}
|
|
||||||
|
|
||||||
body.dark-mode .header {
|
|
||||||
background-color: #000;
|
|
||||||
}
|
|
||||||
|
|
||||||
body.dark-mode .header img {
|
|
||||||
filter: invert(0%);
|
|
||||||
}
|
|
||||||
|
|
||||||
body.dark-mode .nav img:hover {
|
|
||||||
filter: invert(59%) sepia(96%) saturate(6733%) hue-rotate(275deg) brightness(112%) contrast(122%);
|
|
||||||
}
|
|
||||||
|
|
||||||
body.dark-mode .search {
|
|
||||||
background: white;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Mode clair */
|
|
||||||
body.light-mode {
|
|
||||||
background-color: #ffffff;
|
|
||||||
color: #000000;
|
|
||||||
}
|
|
||||||
|
|
||||||
body.light-mode .header {
|
|
||||||
background-color: #F4F1DE;
|
|
||||||
}
|
|
||||||
|
|
||||||
body.light-mode .header img {
|
|
||||||
filter: invert(100%);
|
|
||||||
}
|
|
||||||
|
|
||||||
body.light-mode .nav img:hover {
|
|
||||||
filter: invert(22%) sepia(6%) saturate(2269%) hue-rotate(193deg) brightness(98%) contrast(106%);
|
|
||||||
}
|
|
||||||
|
|
||||||
body.light-mode .search {
|
|
||||||
background: black;
|
|
||||||
}
|
|
@ -0,0 +1,17 @@
|
|||||||
|
<?php
|
||||||
|
global $twig;
|
||||||
|
|
||||||
|
|
||||||
|
echo $twig->render('head.html.twig', [
|
||||||
|
'title' => "Quiz",
|
||||||
|
'style' => "public/styles/styleAccueilQuiz.css",
|
||||||
|
'scripts' => array("public/script/theme-toggle.js")
|
||||||
|
]);
|
||||||
|
|
||||||
|
echo $twig->render('bandeau.html.twig');
|
||||||
|
|
||||||
|
echo $twig->render('accueilQuiz.html.twig', [
|
||||||
|
'quiz' => $quizs,
|
||||||
|
'titre' => "Quiz"
|
||||||
|
]);
|
||||||
|
?>
|
@ -0,0 +1,19 @@
|
|||||||
|
<h2>Liste des Quiz</h2>
|
||||||
|
<ul>
|
||||||
|
{% for quiz in quizzes %}
|
||||||
|
<li>
|
||||||
|
<div class="quizCard">
|
||||||
|
{#
|
||||||
|
<a href="{{ path('quiz_show', {'id': quiz.id}) }}">
|
||||||
|
<img src="{{ quiz.image }}" alt="Image du quiz {{ quiz.title }}">
|
||||||
|
<h3>{{ quiz.title }}</h3>
|
||||||
|
</a>
|
||||||
|
#}
|
||||||
|
<p>ID du quiz: {{ quiz.id }}</p> </div>
|
||||||
|
</li>
|
||||||
|
{% else %}
|
||||||
|
<li>Aucun quiz disponible pour le moment.</li>
|
||||||
|
{% endfor %}
|
||||||
|
</ul>
|
||||||
|
</body>
|
||||||
|
</html>
|
@ -1,9 +0,0 @@
|
|||||||
<div class="citation-container suggestion">
|
|
||||||
<img src="{{ imagePath }}" alt="{{ movie }}" class="citation-image">
|
|
||||||
<div class="text-content">
|
|
||||||
<p class="quote">"{{ quote }}"</p>
|
|
||||||
<p class="movie">- {{ movie }}</p>
|
|
||||||
<p class="character">Personnage : {{ character }}</p>
|
|
||||||
<p class="year">Année : {{ year }}</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
Loading…
Reference in new issue