From e12208891a1fed7e4728e19c2511eccf930ce2ae Mon Sep 17 00:00:00 2001 From: afornerot Date: Sun, 23 Mar 2025 10:56:11 +0100 Subject: [PATCH] review home --- public/styles/css/style.css | 4 +- src/Controller/UserController.php | 2 +- templates/Home/home.html.twig | 152 +++++++++++++++--------------- 3 files changed, 78 insertions(+), 80 deletions(-) diff --git a/public/styles/css/style.css b/public/styles/css/style.css index 58f32d4..f6b1ff5 100644 --- a/public/styles/css/style.css +++ b/public/styles/css/style.css @@ -297,7 +297,7 @@ th.dt-center, td.dt-center { text-align: center; } text-align: left; position:absolute; top: 80px; - left:50px; + padding-left:50px; z-index: 9000; } @@ -346,7 +346,7 @@ th.dt-center, td.dt-center { text-align: center; } @media (max-width: 980px) { .herobox { display: none; } - .herotitle { width:100%; top: 70px; left:0px; text-align:center; } + .herotitle { width:100%; top: 70px; padding-left:0px; text-align:center; } .slick-dots { top: 120px; left: 0px; text-align: center; width: 100%; } .heromenu .facatmenu {display: none;} .catmenu { display:none } diff --git a/src/Controller/UserController.php b/src/Controller/UserController.php index d45c98e..5ab303f 100755 --- a/src/Controller/UserController.php +++ b/src/Controller/UserController.php @@ -41,7 +41,7 @@ class UserController extends AbstractController // Création du formulaire - $form = $this->createForm(Form::class,$data,array("mode"=>"submit")); + $form = $this->createForm(Form::class,$data,array("mode"=>"submit","appNinegateactivate"=>$this->getParameter("appNinegateactivate"))); // Récupération des data du formulaire $form->handleRequest($request); diff --git a/templates/Home/home.html.twig b/templates/Home/home.html.twig index 6ddbd64..6de1e2c 100644 --- a/templates/Home/home.html.twig +++ b/templates/Home/home.html.twig @@ -145,93 +145,91 @@
-
-
-
-

{{ (app.session.get("appname")) }}

+
+
+

{{ (app.session.get("appname")) }}

-
- {% if not app.session.get("appsubname") is empty %} - {{ app.session.get("appsubname") }}
+
+ {% if not app.session.get("appsubname") is empty %} + {{ app.session.get("appsubname") }}
+ {% endif %} + +
+ {% if app.session.get('email') is not empty %} + + {% endif %} + {% if app.session.get('facebook') is not empty %} + + {% endif %} + {% if app.session.get('instagram') is not empty %} + + {% endif %} + {% if app.session.get('twitter') is not empty %} + + {% endif %} + {% if app.session.get('google') is not empty %} + + {% endif %} + {% if app.session.get('youtube') is not empty %} + + {% endif %} + +
+ +
+ {% if not users is empty %} + Membres
{% endif %} -
- {% if app.session.get('email') is not empty %} - - {% endif %} - {% if app.session.get('facebook') is not empty %} - - {% endif %} - {% if app.session.get('instagram') is not empty %} - - {% endif %} - {% if app.session.get('twitter') is not empty %} - - {% endif %} - {% if app.session.get('google') is not empty %} - - {% endif %} - {% if app.session.get('youtube') is not empty %} - - {% endif %} - -
- -
- {% if not users is empty %} - Membres
- {% endif %} - - {% if not illustrations is empty %} - Illustrations
- {% endif %} - - {% if not webzines is empty %} - Webzines
- {% endif %} - - {% if not links is empty %} - Liens
- {% endif %} -
- - {% if not items is empty %} -
- {% for item in items %} - {% if item.title|lower != "ninefolio" %} - -
- - {{ item.title }} -
-
- {% endif %} - {% endfor %} -
+ {% if not illustrations is empty %} + Illustrations
{% endif %} -
-
-
- - {% if not app.session.get("appdescription") is empty %} -
- {{ app.session.get("appdescription")|raw}} -
- {%endif%} - - {% for user in users %} - {% if user.hasRole('ROLE_MEMBER') %} - {{ render(path("app_home_userhero",{userpseudo:user.slug})) }} + {% if not webzines is empty %} + Webzines
{% endif %} - {% endfor %} -
- {% set qrCode = qr_code_result(absolute_url(path("app_home"))) %} - + {% if not links is empty %} + Liens
+ {% endif %}
+ + {% if not items is empty %} +
+ {% for item in items %} + {% if item.title|lower != "ninefolio" %} + +
+ + {{ item.title }} +
+
+ {% endif %} + {% endfor %} +
+ {% endif %}
+ +
+ + {% if not app.session.get("appdescription") is empty %} +
+ {{ app.session.get("appdescription")|raw}} +
+ {%endif%} + + {% for user in users %} + {% if user.hasRole('ROLE_MEMBER') %} + {{ render(path("app_home_userhero",{userpseudo:user.slug})) }} + {% endif %} + {% endfor %} + +
+ {% set qrCode = qr_code_result(absolute_url(path("app_home"))) %} + +
+