diff --git a/public/styles/styleQuote.css b/public/styles/styleQuote.css index e0e9625..5eedd8c 100644 --- a/public/styles/styleQuote.css +++ b/public/styles/styleQuote.css @@ -1 +1,21 @@ -@import url(./style.css); \ No newline at end of file +@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; +} + diff --git a/src/Model/userModel.php b/src/Model/userModel.php index 7300c4d..adc7012 100644 --- a/src/Model/userModel.php +++ b/src/Model/userModel.php @@ -33,7 +33,7 @@ public function getDataUser(int $id){ $res = $this->gateway->findDataUser($id); foreach($res as $sources){ - $src[] = new sourceEntity( + $src[] = new User( $sources['id_user'], $sources['username'], $sources['pssword'], @@ -47,28 +47,28 @@ public function setUsername(int $id, string $newUsername){ $res = $this->gateway->updateUsername($id,$newUsername); - $src[] = new sourceEntity($res[0]['username']); + $src[] = $res[0]['username']; return $src; } public function setEmail(int $id, string $newEmail){ $res = $this->gateway->updateEmail($id,$newEmail); - $src[] = new sourceEntity($res[0]['email']); + $src[] = $res[0]['email']; return $src; } public function setImg(int $id, int $newImg){ $res = $this->gateway->updateImg($id,$newImg); - $src[] = new sourceEntity($res[0]['img']); + $src[] = $res[0]['img']; return $src; } public function setPassWd(int $id, string $newPassWd){ $res = $this->gateway->updatePasswd($id,$newPassWd); - $src[] = new sourceEntity($res[0]['pssword']); + $src[] = $res[0]['pssword']; return $src; } diff --git a/vue/profil.php b/vue/profil.php index 0c2efc8..9e338bf 100644 --- a/vue/profil.php +++ b/vue/profil.php @@ -1,74 +1,18 @@ - - -
- - - -
- {$u->getUsername()}
-
-
-
- {$u->getEmail()}
-
-
-
- {$u->getHidenPasswd()}
-
-
-
Language :
- Tyler De Dordogne
{{ srcUsername }}
user@wikiFantasy.com
{{ srcEmail }}
*********
{{ srcPasswd }}
- {{ nbLike }} -
-{{ com.user }}
-{{ com.content }}
- {% endfor %}"Je suis ton père"
+Star Wars V : L'Empire contre-attaque (1h45)
+Dark Vador
+1980