parent
37de485a71
commit
564fc00329
@ -1 +1,21 @@
|
||||
@import url(./style.css);
|
||||
|
||||
body.dark-mode .divQuote{
|
||||
background-color: black;
|
||||
width: 30%;
|
||||
margin-left: 2%;
|
||||
margin-top: 3%;
|
||||
border-radius: 25px;
|
||||
border: 2px solid transparent;
|
||||
}
|
||||
|
||||
body.dark-mode .imgQuote{
|
||||
border-radius: 15%;
|
||||
width: 60%;
|
||||
}
|
||||
|
||||
body.dark-mode .textQuote, .quote{
|
||||
font-family: "Lemon", serif;
|
||||
font-size: 20px;
|
||||
}
|
||||
|
||||
|
@ -1,74 +1,18 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="fr">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<link rel="stylesheet" type="text/css" href="../public/styles/styleProfil.css" media="screen">
|
||||
<title>Wiki Fantasy : Profil</title>
|
||||
<link id="favicon" rel="icon" href="../../images/iconeSombre.ico"> <!-- Par défaut sombre -->
|
||||
<link href="https://fonts.googleapis.com/css2?family=Lemon&display=swap" rel="stylesheet">
|
||||
<script defer src="../public/script/theme-toggle.js"></script>
|
||||
<script defer src="../public/script/changeData.js"></script>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
<div class="header">
|
||||
<div class="nav">
|
||||
<img src="../images/coeur.svg" alt="coeur" width="67px" height="67px" onmousedown="return false">
|
||||
<img id="theme-icon" src="../images/light.svg" alt="toggle theme" width="72px" height="37px" onmousedown="return false" onclick="toggleTheme()">
|
||||
<img src="../images/quizz.svg" alt="quizz" width="51px" height="82px" onmousedown="return false">
|
||||
</div>
|
||||
<div class="logo">
|
||||
<img src="../images/WIKIFANTASY.png" alt="Logo" width="227px" height="106px" onmousedown="return false" >
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="login">
|
||||
<h1>▶ Profil ◀</h1>
|
||||
|
||||
<?php
|
||||
include ('../src/Entity/userEntity.php');
|
||||
|
||||
echo "<img src='{$u->getImg()}' class='imageProfil' onmousedown='return false'/>";
|
||||
|
||||
// Nom d'utilisateur
|
||||
echo "<p id='username' class='infoProfil'>
|
||||
<strong>{$u->getUsername()}
|
||||
<img class='imgModify' src='../images/modify.svg' onclick='editFieldUsername(\"username\")'/>
|
||||
</strong>
|
||||
</p>";
|
||||
|
||||
// Email
|
||||
echo "<p id='email' class='infoProfil'>
|
||||
<strong>{$u->getEmail()}
|
||||
<img class='imgModify' src='../images/modify.svg' onclick='editFieldEmail(\"email\")'/>
|
||||
</strong>
|
||||
</p>";
|
||||
|
||||
// Mot de passe
|
||||
echo "<p id='passwd' class='infoProfil'>
|
||||
<strong>{$u->getHidenPasswd()}
|
||||
<img class='imgModify' src='../images/modify.svg' onclick='editFieldPassWd(\"passwd\")'/>
|
||||
</strong>
|
||||
</p>";
|
||||
?>
|
||||
|
||||
<div class="languageDiv">
|
||||
<p class="languageTitle">Language :</p>
|
||||
</div>
|
||||
<img class="languageImage" src="../images/drapeauFrance.png" onmousedown="return false"/>
|
||||
|
||||
<div class="createQuote">
|
||||
<a href="rien" class="createQuote">Ajouter une citation</a>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="buttonSudmiteDiv">
|
||||
<button class="buttonSudmite">Se déconnecter</button>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
<?php
|
||||
|
||||
// appele avec index.php ne pas mettre si controleur fonctionnel
|
||||
require __DIR__ . '/../vendor/autoload.php';
|
||||
|
||||
$loader = new \Twig\Loader\FilesystemLoader('templates');
|
||||
$twig = new \Twig\Environment($loader, [
|
||||
'cache' => false,
|
||||
]);
|
||||
//
|
||||
|
||||
echo $twig->render('profil.html', array(
|
||||
'srcUsername' => "Test User",
|
||||
'srcEmail' => "test@gmail.com",
|
||||
'srcPasswd' => "*****",
|
||||
'srcImg' => "../images/imageProfil.png",
|
||||
));
|
||||
?>
|
@ -1,36 +1,10 @@
|
||||
<html>
|
||||
<body>
|
||||
<div class="Quote_container">
|
||||
<img class="image_carac" src="{{ srcImg }}" alt="{{ nameCarac }}">
|
||||
<h1 class="quote_content">
|
||||
<strong>
|
||||
{{ quoteContent }}
|
||||
</strong>
|
||||
</h1>
|
||||
<ul>
|
||||
<li>
|
||||
{{ sourceName }}
|
||||
</li>
|
||||
<li>
|
||||
{{ nameCarac }}
|
||||
</li>
|
||||
<li>
|
||||
{{ dateSortie }}
|
||||
</li>
|
||||
</ul>
|
||||
<div class="like">
|
||||
<p>
|
||||
{{ nbLike }}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="Comment_Container">
|
||||
{% if comment|length > 0%} <div>
|
||||
{% for com in comment %}
|
||||
<p class="userCom">{{ com.user }}</p>
|
||||
<p class="com">{{ com.content }}</p>
|
||||
{% endfor %} </div>
|
||||
{% endif %}
|
||||
|
||||
<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…
Reference in new issue