From b601455ccfa95c0803c05fd1580e94583a0b8e8f Mon Sep 17 00:00:00 2001 From: jleroy2023 Date: Tue, 19 Nov 2024 10:34:13 +0100 Subject: [PATCH] set admin V1 --- assets/styles/app.css | 2 +- public/img/burger-menu.svg | 14 +++++++++++++- public/img/logo.svg | 2 +- src/Controller/AdminController.php | 25 +++++++++++++++++++++++++ src/Controller/HomeController.php | 18 ------------------ templates/admin/index.html.twig | 13 +++++++++++++ templates/admin/sidebar.html.twig | 30 ++++++++++++++++++++++++++++++ templates/home/index.html.twig | 20 -------------------- templates/main/base.html.twig | 3 ++- templates/main/footer.html.twig | 5 ++--- templates/main/header.html.twig | 6 ++---- templates/main/index.html.twig | 1 - 12 files changed, 89 insertions(+), 50 deletions(-) create mode 100644 src/Controller/AdminController.php delete mode 100644 src/Controller/HomeController.php create mode 100644 templates/admin/index.html.twig create mode 100644 templates/admin/sidebar.html.twig delete mode 100644 templates/home/index.html.twig diff --git a/assets/styles/app.css b/assets/styles/app.css index e52971c..c328ce7 100644 --- a/assets/styles/app.css +++ b/assets/styles/app.css @@ -9,7 +9,7 @@ html, body, label { } body { - background-color: skyblue; + background-color: #F4F4F4; display: flex; flex-direction: column; min-height: 100vh; diff --git a/public/img/burger-menu.svg b/public/img/burger-menu.svg index 75df5b9..0b446df 100644 --- a/public/img/burger-menu.svg +++ b/public/img/burger-menu.svg @@ -1 +1,13 @@ - \ No newline at end of file + + + + + \ No newline at end of file diff --git a/public/img/logo.svg b/public/img/logo.svg index 9b06ae3..3ee7368 100644 --- a/public/img/logo.svg +++ b/public/img/logo.svg @@ -4,7 +4,7 @@ - + + {% include 'admin/sidebar.html.twig' %} +
+

Bienvenue sur le Panel d'Administration

+

Utilisez le menu pour accéder aux différentes sections.

+
+ +{% endblock %} diff --git a/templates/admin/sidebar.html.twig b/templates/admin/sidebar.html.twig new file mode 100644 index 0000000..9fcdf23 --- /dev/null +++ b/templates/admin/sidebar.html.twig @@ -0,0 +1,30 @@ + \ No newline at end of file diff --git a/templates/home/index.html.twig b/templates/home/index.html.twig deleted file mode 100644 index 336a702..0000000 --- a/templates/home/index.html.twig +++ /dev/null @@ -1,20 +0,0 @@ - - -Hello HomeController! - -{% block body %} - - -
-

Hello {{ controller_name }}! ✅

- - This friendly message is coming from: - -
-{% endblock %} diff --git a/templates/main/base.html.twig b/templates/main/base.html.twig index 79de9b6..7c8285c 100644 --- a/templates/main/base.html.twig +++ b/templates/main/base.html.twig @@ -2,7 +2,8 @@ - 📣 Sortie.com 🔊 + {% block title %}📣 Sortie.com 🔊{% endblock %} + {% block stylesheets %} {{ encore_entry_link_tags('app') }} {% endblock %} diff --git a/templates/main/footer.html.twig b/templates/main/footer.html.twig index 12a68af..2e41dd8 100644 --- a/templates/main/footer.html.twig +++ b/templates/main/footer.html.twig @@ -2,15 +2,14 @@ - Sortie {% block stylesheets %} {{ encore_entry_link_tags('app') }} {% endblock %} -
- © Sortie {{ "now"|date("Y") }} +
+ ENI © Sortie {{ "now"|date("Y") }}
\ No newline at end of file diff --git a/templates/main/header.html.twig b/templates/main/header.html.twig index 7c722c6..369df9a 100644 --- a/templates/main/header.html.twig +++ b/templates/main/header.html.twig @@ -2,8 +2,6 @@ - Sortie - {% block stylesheets %} {{ encore_entry_link_tags('app') }} {% endblock %} @@ -11,11 +9,11 @@
-