diff --git a/assets/styles/app.css b/assets/styles/app.css index 08bac17..8a7ad86 100644 --- a/assets/styles/app.css +++ b/assets/styles/app.css @@ -159,4 +159,73 @@ html { background-size: calc(2*var(--s)) calc(9*var(--s)/4), calc(2*var(--s)) calc(3*var(--s)/4); - } \ No newline at end of file + } + + header { + background-color: #bda3b6; + padding: 4px; + border-radius: 10px; + border-style: solid; + border-color: #1a2c4c; + border-width: 2px; +} + +nav { + display: flex; + justify-content: space-between; + align-items: center; +} + +.nav-logo{ + text-decoration: none; + color: #333; + margin-left: 15px; +} + +.nav-link{ + text-decoration: none; + color: #333; + margin-right: 30px; +} + +nav img { + height: 40px; +} + +.nav-links { + display: flex; + align-items: center; +} + +.floating-button { + position: fixed; + bottom: 20px; + right: 20px; + width: 60px; + height: 60px; + background-color: #bda3b6; + border: none; + border-radius: 50%; + display: flex; + justify-content: center; + align-items: center; + font-size: 24px; + box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2); + cursor: pointer; + transition: background-color 0.3s; + border-style: solid; + border-color: #1a2c4c; + border-width: 4px; + padding-bottom: 10px; + font-size: 50px; + color: #1a2c4c; + +} + +.nav-links a:hover { + color: #494949; +} + +.floating-button:hover { + background-color: #72606d; +} \ No newline at end of file diff --git a/public/images/logo.jpg b/public/images/logo.jpg new file mode 100644 index 0000000..a4ae83e Binary files /dev/null and b/public/images/logo.jpg differ diff --git a/public/images/userFiller.png b/public/images/userFiller.png deleted file mode 100644 index 7b5068c..0000000 Binary files a/public/images/userFiller.png and /dev/null differ diff --git a/src/Controller/ProfilController.php b/src/Controller/ProfilController.php index 0540944..e1be9a0 100644 --- a/src/Controller/ProfilController.php +++ b/src/Controller/ProfilController.php @@ -21,7 +21,11 @@ class ProfilController extends AbstractController #[Route(path:"/profil", name:"profil_perso", methods: ["GET"])] public function baseProfil(): Response { - $this->denyAccessUnlessGranted('IS_AUTHENTICATED'); + try{ + $this->denyAccessUnlessGranted('IS_AUTHENTICATED'); + }catch (\Exception $e){ + return $this->redirectToRoute('app_login'); + } return $this->redirectToRoute('profil_show', ['id' => $this->getUser()->getId()]); } #[Route('/profil/{id}',name:'profil_show', requirements: ['page' => '\d+'])] diff --git a/templates/base.html.twig b/templates/base.html.twig index 3cda30f..d639b4b 100644 --- a/templates/base.html.twig +++ b/templates/base.html.twig @@ -12,6 +12,23 @@ {% endblock %}
+