Page Quote (revoir le CSS) mis en place du twig

pull/17/head
Leni BEAULATON 6 months ago
parent 564fc00329
commit d79bd33d8e

@ -122,7 +122,7 @@ body.light-mode .connexion{
} }
/* ====== OTHER ====== */ /* ====== DEFAULT ====== */
.buttonSudmiteDiv{ .buttonSudmiteDiv{
text-align: center; text-align: center;
} }

@ -1,21 +1,110 @@
@import url(./style.css); @import url(./style.css);
body.dark-mode .divQuote{ /* ====== DARK MODE ====== */
body.dark-mode .card {
position: relative;
background-color: black; background-color: black;
width: 30%; border-radius: 15px;
margin-left: 2%; width: 60%;
margin-top: 3%; display: flex;
border-radius: 25px; margin-left: 5%;
border: 2px solid transparent; border: 2px solid transparent;
} }
body.dark-mode .imgQuote{
border-radius: 15%; body.dark-mode .card-content {
color: white;
margin-left: 20px;
flex: 1;
}
body.dark-mode .likes {
margin-left: 85%;
font-size: 20px;
color: #fff;
}
body.dark-mode .like-icon {
position: absolute;
top: 10px;
right: 10px;
font-size: 35px;
color: #fff;
cursor: pointer;
}
body.dark-mode .share-icon {
position: absolute;
top: 70px;
right: 10px;
font-size: 35px;
color: #fff;
cursor: pointer;
}
/* ====== LIGHT MODE ====== */
body.light-mode .card {
position: relative;
background-color: white;
border-radius: 15px;
width: 60%; width: 60%;
display: flex;
margin-left: 5%;
border: 2px solid black;
}
body.light-mode .card-content {
color: black;
margin-left: 20px;
flex: 1;
} }
body.dark-mode .textQuote, .quote{
font-family: "Lemon", serif; body.light-mode .likes {
margin-left: 85%;
font-size: 20px; font-size: 20px;
color: black;
}
body.light-mode .like-icon {
position: absolute;
top: 10px;
right: 10px;
font-size: 35px;
color: black;
cursor: pointer;
} }
body.light-mode .share-icon {
position: absolute;
top: 70px;
right: 10px;
font-size: 35px;
color: black;
cursor: pointer;
}
/* ====== DEFAULT ====== */
.infoQuote {
list-style: none;
font-size: 25px;
line-height: 40px;
margin-top: 35%;
margin-left: -45%;
margin-bottom: 20px;
}
.card-image {
border-radius: 10px;
width: 310px;
height: 270px;
}
.quote {
margin-top: 10px;
font-size: 35px;
font-weight: bold;
font-style: italic;
margin-bottom: 15px;
}

@ -14,21 +14,14 @@
)); ));
echo $twig->render('bandeau.html.twig'); echo $twig->render('bandeau.html.twig');
echo $twig->render('quote.html.twig', array( echo $twig->render('quote.html', array(
'srcImg' => "../default.jpg", 'srcImg' => "../public/images/Dark_Vador.jpg",
'nameCarac' => "default", 'nameCarac' => "Dark Vador",
'quoteContent' => "je test la page", 'quoteContent' => "Je suis ton père",
'sourceName' => "une source", 'sourceName' => "Star Wars V : LEmpire contre-attaque",
'dateSortie' => "1999", 'dateSortie' => "1980",
'nbLike' => "0", 'nbLike' => "173000",
'comment'=> array( 'timeCode' =>"1h45",
array(
'user'=>'toto', ));
'content'=>'12345674fkjgvhgtfoidshfziutgfos'
),
array(
'user'=> 'tata',
'content'=>'azertyuiopqsdfghjklmwxcvbn'
)
)));
?> ?>

@ -6,6 +6,6 @@
<title>{{ title }}</title> <title>{{ title }}</title>
<link rel="stylesheet" href="{{ style }}"> <link rel="stylesheet" href="{{ style }}">
<link id="favicon" rel="icon" href="../../public/images/iconeSombre.ico" /> <link id="favicon" rel="icon" href="../../public/images/iconeSombre.ico" />
<script src="./../../public/script/theme-toggle.js"></script> <script src="../public/script/theme-toggle.js"></script>
</head> </head>

@ -0,0 +1,23 @@
<div class="card">
<img class="card-image" src="{{ srcImg }}" >
<div class="card-content">
<h2 class="quote">“{{quoteContent}}”</h2>
<ul class="infoQuote">
<li>- {{sourceName}} ({{timeCode}})</li>
<li>- {{nameCarac}}</li>
<li>- {{dateSortie}}</li>
</ul>
<div class="likes">
<p>{{nbLike}} ❤️</p>
</div>
</div>
<div class="like-icon">❤️</div>
<div class="share-icon">🔗</div>
</div>
</body>
</html>

@ -1,10 +0,0 @@
<div class="divQuote">
<img class="imgQuote" src="../../images/vador.webp"/>
<p class="quote"> <strong>"Je suis ton père"</strong></p>
<p class="textQuote"> Star Wars V : L'Empire contre-attaque (1h45)</p>
<p class="textQuote">Dark Vador</p>
<p class="textQuote">1980</p>
</div>
</body>
</html>
Loading…
Cancel
Save