From 509cd958b901483878bbfd9fd565c2993580cfc1 Mon Sep 17 00:00:00 2001
From: SofianeLasri <alasri250@gmail.com>
Date: Thu, 20 Feb 2025 13:53:21 +0100
Subject: [PATCH] feat(footer): add legal information and contact details in
 English and French

- Added 'legal_mentions' and 'terms' to the English language file.
- Created new footer language files for English and French containing contact information and legal details.
- Updated the footer Blade template to utilize the new language strings for better localization.
---
 lang/en/footer.php                                 | 14 ++++++++++++++
 lang/en/generic.php                                |  2 ++
 lang/fr/footer.php                                 | 14 ++++++++++++++
 resources/views/components/public/footer.blade.php | 12 ++++++------
 4 files changed, 36 insertions(+), 6 deletions(-)
 create mode 100644 lang/en/footer.php
 create mode 100644 lang/fr/footer.php

diff --git a/lang/en/footer.php b/lang/en/footer.php
new file mode 100644
index 0000000..8c46e83
--- /dev/null
+++ b/lang/en/footer.php
@@ -0,0 +1,14 @@
+<?php
+
+return [
+    'contact' => [
+        'title' => 'Excited to work with you!',
+        'desc' => 'Feel free to contact me if you need information, or if you just want to chat with me.',
+    ],
+    'links' => [
+        'title' => 'Stay in touch',
+    ],
+    'legals-infos' => [
+        'title' => 'Legal information',
+    ],
+];
diff --git a/lang/en/generic.php b/lang/en/generic.php
index 51de6fe..a345a84 100644
--- a/lang/en/generic.php
+++ b/lang/en/generic.php
@@ -4,4 +4,6 @@
     'custom_needs' => 'A specific need?',
     'custom_needs_desc' => 'I am open to any proposal. Don’t hesitate to contact me!',
     'completed_in' => 'Completed in',
+    'legal_mentions' => 'Legal notices',
+    'terms' => 'Terms and conditions of sale',
 ];
diff --git a/lang/fr/footer.php b/lang/fr/footer.php
new file mode 100644
index 0000000..0e7acde
--- /dev/null
+++ b/lang/fr/footer.php
@@ -0,0 +1,14 @@
+<?php
+
+return [
+    'contact' => [
+        'title' => 'Hâte de travailler avec vous !',
+        'desc' => 'N’hésitez pas à me contacter si vous avez besoin de renseignements, ou que vous souhaitez simplement discuter avec moi.',
+    ],
+    'links' => [
+        'title' => 'Restons en contact',
+    ],
+    'legals-infos' => [
+        'title' => 'Informations légales',
+    ],
+];
diff --git a/resources/views/components/public/footer.blade.php b/resources/views/components/public/footer.blade.php
index 720ebc3..b49d55e 100644
--- a/resources/views/components/public/footer.blade.php
+++ b/resources/views/components/public/footer.blade.php
@@ -8,20 +8,20 @@
                         <x-public.rann-logo height="4rem" role="image"/>
                     </div>
                     <div class="self-stretch flex-col justify-start items-start gap-2 flex">
-                        <div class="self-stretch text-2xl font-bold">Hâte de travailler avec vous !</div>
-                        <div class="self-stretch text-muted">N’hésitez pas à me contacter si vous avez besoin de
-                            renseignements, ou que vous souhaitez simplement discuter avec moi.
+                        <div class="self-stretch text-2xl font-bold">{{ __('footer.contact.title') }}</div>
+                        <div class="self-stretch text-muted">
+                            {{ __('footer.contact.desc') }}
                         </div>
                     </div>
                     <x-public.button size="medium" tag="a" href="#">
-                        <div class="text-xl font-bold">Me contacter</div>
+                        <div class="text-xl font-bold">{{ __('navbar.contact_me') }}</div>
                     </x-public.button>
                 </div>
             </div>
 
             <div class="w-full lg:w-auto items-start flex flex-col lg:flex-row gap-8 lg:gap-24">
                 <div class="w-full lg:w-56 flex-col gap-8 flex">
-                    <div class="self-stretch text-2xl font-bold">Restons en contact</div>
+                    <div class="self-stretch text-2xl font-bold">{{ __('footer.links.title') }}</div>
                     <ul class="flex flex-col gap-2">
                         @foreach(\App\Models\SocialMediaLink::all() as $socialMediaLink)
                             <li>
@@ -33,7 +33,7 @@
                     </ul>
                 </div>
                 <div class="w-full lg:w-56 flex-col gap-8 flex">
-                    <div class="self-stretch text-2xl font-bold">Informations légales</div>
+                    <div class="self-stretch text-2xl font-bold">{{ __('footer.legals-infos.title') }}</div>
                     <ul class="flex flex-col gap-2">
                         <li>
                             <a href="{{ route('legal-mentions') }}"
-- 
GitLab