From 9e98050f3860bf2b83669d88f99b10497b0ec83b Mon Sep 17 00:00:00 2001 From: raccoon254 Date: Fri, 17 May 2024 10:05:44 +0300 Subject: [PATCH] Added avatars etc --- app/Http/Controllers/StaticPageController.php | 33 ++++++++++++- resources/views/welcome.blade.php | 48 ++++++------------- 2 files changed, 46 insertions(+), 35 deletions(-) diff --git a/app/Http/Controllers/StaticPageController.php b/app/Http/Controllers/StaticPageController.php index 11ff371..65f9346 100644 --- a/app/Http/Controllers/StaticPageController.php +++ b/app/Http/Controllers/StaticPageController.php @@ -28,7 +28,38 @@ public function welcome(): View 'text' => 'Receive your high-quality assignment before the due date, reviewed and ready for submission.' ] ]; - return view('welcome')->with('process_steps', $process_steps); + + $testimonials = [ + [ + 'icon' => 'fas fa-user-graduate', + 'avatar' => 'images/avatar1.png', + 'color' => 'text-green-500', + 'image' => 'images/avatar1.png', + 'name' => 'John Doe', + 'subject' => 'Computer Science', + 'testimonial' => 'Scholarspace has been a lifesaver for me. The writers are knowledgeable and always deliver quality work on time.' + ], + [ + 'icon' => 'fas fa-user-graduate', + 'avatar' => 'images/avatar2.png', + 'color' => 'text-green-500', + 'image' => 'images/avatar2.png', + 'name' => 'Emily Johnson', + 'subject' => 'Business Administration', + 'testimonial' => 'I highly recommend Scholarspace. Their writers have a deep understanding of the subject matter and provide well-researched assignments.' + ], + [ + 'icon' => 'fas fa-user-graduate', + 'avatar' => 'images/avatar3.png', + 'color' => 'text-green-500', + 'image' => 'images/avatar3.png', + 'name' => 'Michael Williams', + 'subject' => 'English Literature', + 'testimonial' => 'I\'ve been using Scholarspace for a while now, and I\'m always impressed by the quality of work and the professionalism of the writers.' + ] + ]; + + return view('welcome')->with('process_steps', $process_steps)->with('testimonials', $testimonials); } } diff --git a/resources/views/welcome.blade.php b/resources/views/welcome.blade.php index f10f324..06ce0c4 100644 --- a/resources/views/welcome.blade.php +++ b/resources/views/welcome.blade.php @@ -43,7 +43,7 @@ class="bg-green-500 hover:bg-green-600 font-semibold py-2 px-4 rounded-md">
@foreach($process_steps as $item) -
+

{{ $item['title'] }}

{{ $item['text'] }}

@@ -76,42 +76,22 @@ class="w-full max-w-md mx-auto rounded-lg">

Hear what our satisfied clients have to say about Scholarspace.

-
-
- -
-

John Doe

-

Computer Science

-
-
-

"Scholarspace has been a lifesaver for me. The writers are knowledgeable and - always deliver quality work on time."

-
-
-
- Avatar -
-

Emily Johnson

-

Business Administration

-
-
-

"I highly recommend Scholarspace. Their writers have a deep understanding of - the subject matter and provide well-researched assignments."

-
- -
-
- Avatar -
-

Michael Williams

-

English Literature

+ @foreach($testimonials as $testimonial) +
+
+ + Avatar +
+

{{ $testimonial['name'] }}

+

{{ $testimonial['subject'] }}

+
+

"{{ $testimonial['testimonial'] }}"

-

"I've been using Scholarspace for a while now, and I'm always - impressed by the quality of work and the professionalism of the writers."

-
+ @endforeach
-