From 5a089eefaec99d778851a3863d7b6d620f2f0e73 Mon Sep 17 00:00:00 2001
From: SofianeLasri <alasri250@gmail.com>
Date: Thu, 20 Feb 2025 15:08:20 +0100
Subject: [PATCH] feat: add meta descriptions and social media contact messages

- Added meta description to English and French home language files.
- Introduced new contact messages for social media in both French and English language files.
- Updated various Blade templates to utilize the new description values for better SEO and user guidance.
---
 lang/en/contact.php                          | 6 ++++++
 lang/en/home.php                             | 1 +
 lang/fr/contact.php                          | 1 +
 lang/fr/home.php                             | 1 +
 resources/views/public/contact.blade.php     | 4 ++--
 resources/views/public/index.blade.php       | 2 +-
 resources/views/public/maintenance.blade.php | 2 +-
 resources/views/public/portfolio.blade.php   | 2 +-
 resources/views/public/prestation.blade.php  | 6 +++++-
 resources/views/public/prestations.blade.php | 2 +-
 10 files changed, 20 insertions(+), 7 deletions(-)
 create mode 100644 lang/en/contact.php

diff --git a/lang/en/contact.php b/lang/en/contact.php
new file mode 100644
index 0000000..87f2cd0
--- /dev/null
+++ b/lang/en/contact.php
@@ -0,0 +1,6 @@
+<?php
+
+return [
+    'desc' => 'Do you have a project in mind or want to discuss your graphic design needs? Feel free to contact me! Whether it’s for a collaboration, a quote request, or just to exchange creative ideas, I’m here to help.',
+    'contact_me_on_one_of_my_social_media' => 'Contact me on one of my social media',
+];
diff --git a/lang/en/home.php b/lang/en/home.php
index 16cf7a5..93efc9e 100644
--- a/lang/en/home.php
+++ b/lang/en/home.php
@@ -17,4 +17,5 @@
         'waving_hand' => 'Waving hand emoji',
         'roxannas_photo' => 'Photo of Roxanna Valtre',
     ],
+    'meta_description' => 'Roxanna Valtre, Graphic Designer. Discover my services and my portfolio.',
 ];
diff --git a/lang/fr/contact.php b/lang/fr/contact.php
index 5b48a6b..67270fd 100644
--- a/lang/fr/contact.php
+++ b/lang/fr/contact.php
@@ -2,4 +2,5 @@
 
 return [
     'desc' => 'Vous avez un projet en tête ou souhaitez discuter de vos besoins en design graphique ? N\'hésitez pas à me contacter ! Que ce soit pour une collaboration, une demande de devis ou simplement pour échanger des idées créatives, je suis là pour vous aider.',
+    'contact_me_on_one_of_my_social_media' => 'Contactez moi sur l\'un de mes réseaux',
 ];
diff --git a/lang/fr/home.php b/lang/fr/home.php
index c873aff..b24c617 100644
--- a/lang/fr/home.php
+++ b/lang/fr/home.php
@@ -17,4 +17,5 @@
         'waving_hand' => 'Emoji de main qui salue',
         'roxannas_photo' => 'Photo de Roxana Valtre',
     ],
+    'meta_description' => 'Roxanna Valtre, Designer Graphique. Découvrez mes services et mon portfolio.',
 ];
diff --git a/resources/views/public/contact.blade.php b/resources/views/public/contact.blade.php
index 5861a61..c6e0d34 100644
--- a/resources/views/public/contact.blade.php
+++ b/resources/views/public/contact.blade.php
@@ -1,4 +1,4 @@
-@extends('layouts.public', ['title' => __('navbar.contact_me')])
+@extends('layouts.public', ['title' => __('navbar.contact_me'), 'description' => __('contact.desc')])
 
 @section('content')
     <x-public.navbar class="container mx-auto px-4"/>
@@ -7,7 +7,7 @@
 
         <div>
             <div class="text-center text-2xl">
-                Contactez moi sur l'un de mes réseaux
+                {{ __('contact.contact_me_on_one_of_my_social_media') }}
             </div>
 
             <div class="flex align-center justify-center gap-4 mt-4">
diff --git a/resources/views/public/index.blade.php b/resources/views/public/index.blade.php
index af5927c..841a693 100644
--- a/resources/views/public/index.blade.php
+++ b/resources/views/public/index.blade.php
@@ -1,4 +1,4 @@
-@extends('layouts.public')
+@extends('layouts.public', ['description' => __('home.meta_description')])
 
 @section('content')
     <section class="HeroSection position-relative w-100">
diff --git a/resources/views/public/maintenance.blade.php b/resources/views/public/maintenance.blade.php
index 0df9584..15da011 100644
--- a/resources/views/public/maintenance.blade.php
+++ b/resources/views/public/maintenance.blade.php
@@ -1,4 +1,4 @@
-@extends('layouts.public', ['title' => 'Maintenance'])
+@extends('layouts.public', ['title' => 'Maintenance', 'description' => 'Site en construction...'])
 
 @section('content')
     <div class="inline-flex w-full min-h-screen flex-col justify-center items-center gap-2.5"
diff --git a/resources/views/public/portfolio.blade.php b/resources/views/public/portfolio.blade.php
index 11eb8b9..5f001c4 100644
--- a/resources/views/public/portfolio.blade.php
+++ b/resources/views/public/portfolio.blade.php
@@ -1,4 +1,4 @@
-@extends('layouts.public', ['title' => __('navbar.portfolio')])
+@extends('layouts.public', ['title' => __('navbar.portfolio'), 'description' => __('services.description')])
 
 @section('content')
     <x-public.navbar class="container mx-auto px-4"/>
diff --git a/resources/views/public/prestation.blade.php b/resources/views/public/prestation.blade.php
index 71e3662..e998491 100644
--- a/resources/views/public/prestation.blade.php
+++ b/resources/views/public/prestation.blade.php
@@ -1,4 +1,8 @@
-@extends('layouts.public', ['title' => $prestation->nameTransKey->getTranslation()])
+@extends('layouts.public', [
+    'title' => $prestation->nameTransKey->getTranslation(),
+    'description' => $prestation->attractDescTransKey->getTranslation(),
+    'image' => $prestation->uploadedPicture
+])
 
 @section('content')
     <x-public.navbar class="container mx-auto px-4"/>
diff --git a/resources/views/public/prestations.blade.php b/resources/views/public/prestations.blade.php
index bd230a3..20b99d8 100644
--- a/resources/views/public/prestations.blade.php
+++ b/resources/views/public/prestations.blade.php
@@ -1,4 +1,4 @@
-@extends('layouts.public', ['title' => __('navbar.services')])
+@extends('layouts.public', ['title' => __('navbar.services'), 'description' => __('services.attract_desc')])
 
 @section('content')
     <x-public.navbar class="container mx-auto px-4"/>
-- 
GitLab