"{{ quote }}"
- {{ movie }}
@@ -8,3 +9,4 @@Année : {{ year }}
diff --git a/public/styles/styleQuoteLittle.css b/public/styles/styleQuoteLittle.css index abb308f..32f3c67 100644 --- a/public/styles/styleQuoteLittle.css +++ b/public/styles/styleQuoteLittle.css @@ -13,8 +13,8 @@ border-radius: 12px; color: white; display: flex; + width: 100%; align-items: flex-start; - width: 49%; /* Chaque citation occupe 45% de la largeur pour laisser 5% d'espace */ box-sizing: border-box; padding: 0; height: 150px; @@ -32,6 +32,7 @@ justify-content: center; height: 150px; } + .quote { padding: 0; overflow: hidden; diff --git a/vue/accueil.php b/vue/accueil.php index 96f2d0b..f76183f 100644 --- a/vue/accueil.php +++ b/vue/accueil.php @@ -19,23 +19,17 @@ if (!empty($citationDuJour)) { 'movie' => $citationDuJour['title'], 'character' => $citationDuJour['caracter'], 'year' => $citationDuJour['dates'], - 'imagePath' => $citationDuJour['imgpath'] + 'imagePath' => $citationDuJour['imgpath'], + 'id' => $citationDuJour['id_quote'], ]); } else { echo "
Aucune citation du jour n'a été trouvée.
"; } // Affichage des suggestions de citations -echo "Vous n'avez pas encore de favorits
"; -} ?> diff --git a/vue/templates/citation_du_jour.html.twig b/vue/templates/citation_du_jour.html.twig index 940d013..d0185ee 100644 --- a/vue/templates/citation_du_jour.html.twig +++ b/vue/templates/citation_du_jour.html.twig @@ -1,6 +1,7 @@"{{ quote }}"
- {{ movie }}
@@ -8,3 +9,4 @@Année : {{ year }}
{{ quoteContent }}
-- {{ sourceName }}
-Personnage : {{ nameCarac }}
-Année : {{ dateSortie }}
-"{{ quote.content }}"
+- {{ quote.title }}
+Personnage : {{ quote.caracter }}
+Année : {{ quote.dates }}
+Aucune {{ titre }} n'a été trouvée.
+{% endif %} \ No newline at end of file