diff --git a/config/config.php b/config/config.php index a351f18..322a129 100644 --- a/config/config.php +++ b/config/config.php @@ -12,7 +12,7 @@ $base = ''; $login = ''; $mdp = ''; -$racine='/~kekentin/WF/WF-Website'; +$racine='/~lebeaulato/WF-Website'; // /~kekentin/WF/WF-Website //Vues @@ -27,6 +27,7 @@ $vues['favorite'] = 'vue/favorits.php'; $vues['quiz'] = 'vue/quiz.php'; $vues['endQuiz'] = 'vue/endQuiz.php'; +$vues['submitQuote'] = 'vue/submitQuote.php'; //Style css diff --git a/public/styles/styleSubmitQuote.css b/public/styles/styleSubmitQuote.css index db65891..98ee5cd 100644 --- a/public/styles/styleSubmitQuote.css +++ b/public/styles/styleSubmitQuote.css @@ -25,26 +25,7 @@ body.light-mode h1, body.light-mode h2, body.light-mode p { /* ====== OTHER ====== */ -.header { - display: flex; - width: 100%; - height: 17%; - justify-content: space-between; - align-items: center; -} - -.nav img { - margin-right: 10px; -} - -.logo img { - display: block; - margin: 0 auto; -} -.user img { - margin-left: 10px; -} #form { diff --git a/src/Controleur/UserControler.php b/src/Controleur/UserControler.php index 98907b3..9a1ad92 100644 --- a/src/Controleur/UserControler.php +++ b/src/Controleur/UserControler.php @@ -214,7 +214,7 @@ class UserControler { public function changedata() : void { - global $vues; + global $vues, $racine; if ($_POST) { $newImage = $_POST['image'] ?? null; @@ -260,8 +260,8 @@ class UserControler { */ public function submit() : void { - global $twig; - echo $twig -> render("submitQuote.html.twig"); + global $vues; + require_once $vues['submitQuote']; } /** diff --git a/vue/submitQuote.php b/vue/submitQuote.php new file mode 100644 index 0000000..f36cb2c --- /dev/null +++ b/vue/submitQuote.php @@ -0,0 +1,18 @@ +render('head.html.twig', [ + 'title' => "Submit Quote", + 'style' => "public/styles/styleSubmitQuote.css", + 'scripts' => array("public/script/theme-toggle.js") +]); + + +// Rendu du bandeau +echo $twig->render('bandeau.html.twig'); + +echo $twig -> render("submitQuote.html.twig"); +?> + + diff --git a/vue/templates/profil.html.twig b/vue/templates/profil.html.twig index d9ac021..b46eaa7 100644 --- a/vue/templates/profil.html.twig +++ b/vue/templates/profil.html.twig @@ -23,7 +23,7 @@
diff --git a/vue/templates/submitQuote.html.twig b/vue/templates/submitQuote.html.twig index c403bba..e0df0c2 100644 --- a/vue/templates/submitQuote.html.twig +++ b/vue/templates/submitQuote.html.twig @@ -1,18 +1,3 @@ - - - - - -