From 42ec68178a3efb7ffd9eba33922a08b36aab6ef3 Mon Sep 17 00:00:00 2001 From: Yasder5 <102179445+Yasder5@users.noreply.github.com> Date: Mon, 2 Mar 2026 21:01:46 +0100 Subject: [PATCH] jolie beau et ajax --- .env | 3 +- .gitignore | 2 +- assests/css/style.css | 13 ++++- env | 2 +- models/ProjectModel.php | 2 +- views/_partial/apigeo.tpl | 112 +++++++++++++++++++++++++++++++++++++ views/_partial/header.tpl | 96 ++++++++++++++++--------------- views/_partial/preview.tpl | 2 +- views/signup.tpl | 29 ++++++---- views/user.tpl | 20 +++++-- views/useredit.tpl | 37 ++++++++---- 11 files changed, 242 insertions(+), 76 deletions(-) create mode 100644 views/_partial/apigeo.tpl diff --git a/.env b/.env index 312e8f9..224a3e6 100644 --- a/.env +++ b/.env @@ -7,4 +7,5 @@ DB_USERNAME= DB_PASSWORD= IMG_PROJECT_PATH = uploads/projects/ -IMG_USER_PATH = uploads/profiles/ \ No newline at end of file +IMG_USER_PATH = uploads/profiles/ +HEHE=HAHA \ No newline at end of file diff --git a/.gitignore b/.gitignore index 183434a..68b4719 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,3 @@ /templates_c/ /templates_c/** -.env +.env \ No newline at end of file diff --git a/assests/css/style.css b/assests/css/style.css index 142ea7f..1ba981a 100644 --- a/assests/css/style.css +++ b/assests/css/style.css @@ -10,7 +10,12 @@ body { background-color: #ffffff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); padding: 0.8rem 2rem; + min-height: 64px; + max-height: 64px; } +.navbar .navbar-collapse { + align-items: center; + } .navbar-brand { font-size: 1.5rem; @@ -29,7 +34,13 @@ body { margin: 0 0.2rem; transition: color 0.3s; } - +.nav-avatar { + width: 36px; + height: 36px; + object-fit: cover; + border-radius: 50%; + display: block; + } .navbar-nav .nav-link:hover { color: #0d6efd; } diff --git a/env b/env index 1ba2754..611d244 100644 --- a/env +++ b/env @@ -1,7 +1,7 @@ # config BDD DB_CONNECTION=mysql -DB_HOSTNAME=boulayoune.com +DB_HOSTNAME=localhost DB_DATABASE=projet_folliow DB_USERNAME= DB_PASSWORD= diff --git a/models/ProjectModel.php b/models/ProjectModel.php index 084f1ec..f7d87cf 100644 --- a/models/ProjectModel.php +++ b/models/ProjectModel.php @@ -24,7 +24,7 @@ $strRq = "SELECT project.*, - CONCAT(user_firstname, ' ', user_name) AS 'project_creatorname', + user_pseudo AS 'project_creatorname', user_image FROM project INNER JOIN users ON user_id = project_user_id diff --git a/views/_partial/apigeo.tpl b/views/_partial/apigeo.tpl new file mode 100644 index 0000000..fb32c47 --- /dev/null +++ b/views/_partial/apigeo.tpl @@ -0,0 +1,112 @@ + + \ No newline at end of file diff --git a/views/_partial/header.tpl b/views/_partial/header.tpl index 316ce2e..e1bc5b5 100644 --- a/views/_partial/header.tpl +++ b/views/_partial/header.tpl @@ -5,29 +5,34 @@ - Folliow{block name="title"}{/block} + - -
-
-
-

- {block name="h2"}{/block} -

-

- {block name="p"}{/block} -

-

- {block name="date_maj"}{/block} -

-
-
-
+ +
+
+
+

+ {block name="h2"}{/block} +

+

+ {block name="p"}{/block} +

+

+ {block name="date_maj"}{/block} +

+
+
+
{include file="views/_partial/messages.tpl"} diff --git a/views/_partial/preview.tpl b/views/_partial/preview.tpl index 19ff6d3..ca3fd81 100644 --- a/views/_partial/preview.tpl +++ b/views/_partial/preview.tpl @@ -14,7 +14,7 @@
- + -
@@ -150,13 +149,23 @@ - +
+ + + +
@@ -168,9 +177,8 @@ class="form-control" id="user_description" name="user_description" - value="{$objUser->getDescription()|default:''}" rows="3" - > + >{$objUser->getDescription()|default:''}
@@ -199,4 +207,5 @@
+{include file="views/_partial/apigeo.tpl"} {/block} \ No newline at end of file diff --git a/views/user.tpl b/views/user.tpl index 667307b..71f95b4 100644 --- a/views/user.tpl +++ b/views/user.tpl @@ -15,18 +15,30 @@

{$user->getMail()}

{if $user->getWork()} -

{$user->getWork()}

+
+ +

{$user->getWork()}

+
{/if} {if $user->getLocation()} -

{$user->getLocation()}

+ +
+ +

{$user->getLocation()}

+
+ {/if} + {if $user->getLocation()} + +
+

{$user->getDescription()}

+
{/if} -

{$user->getDescription()}

{if $smarty.session.user.user_id == $user->getId()}
Edit account - {/if} + {/if} diff --git a/views/useredit.tpl b/views/useredit.tpl index ee62c71..c3fd0df 100644 --- a/views/useredit.tpl +++ b/views/useredit.tpl @@ -132,18 +132,29 @@ -
- - -
+ +
+ +
+ + + +
+
@@ -176,4 +187,6 @@
+ +{include file="views/_partial/apigeo.tpl"} {/block} \ No newline at end of file