Skip to content

Commit

Permalink
Added avatars etc
Browse files Browse the repository at this point in the history
  • Loading branch information
Raccoon254 committed May 17, 2024
1 parent 451709a commit 9e98050
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 35 deletions.
33 changes: 32 additions & 1 deletion app/Http/Controllers/StaticPageController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

48 changes: 14 additions & 34 deletions resources/views/welcome.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class="bg-green-500 hover:bg-green-600 font-semibold py-2 px-4 rounded-md">
</div>
<div class="grid grid-cols-1 md:grid-cols-3 gap-8">
@foreach($process_steps as $item)
<div class="bg-white rounded-lg shadow-md p-6">
<div class="bg-white rounded-lg shadow-md shadow-gray-200 p-6">
<i class="{{ $item['icon'] }} fa-3x {{ $item['color'] }} mb-4"></i>
<h3 class="text-xl font-bold text-black/90 mb-2">{{ $item['title'] }}</h3>
<p class="text-black/50">{{ $item['text'] }}</p>
Expand Down Expand Up @@ -76,42 +76,22 @@ class="w-full max-w-md mx-auto rounded-lg">
<p class="text-lg text-black/50">Hear what our satisfied clients have to say about Scholarspace.</p>
</div>
<div class="grid grid-cols-1 md:grid-cols-3 gap-8">
<div class="bg-white rounded-lg shadow-md p-6">
<div class="flex items-center mb-4">
<i class="fas fa-user-graduate fa-3x text-green-500 mr-4"></i>
<div>
<h4 class="text-lg font-bold text-black/90">John Doe</h4>
<p class="text-black/50">Computer Science</p>
</div>
</div>
<p class="text-black/50">"Scholarspace has been a lifesaver for me. The writers are knowledgeable and
always deliver quality work on time."</p>
</div>
<div class="bg-white rounded-lg shadow-md p-6">
<div class="flex items-center mb-4">
<img src="{{ asset('images/avatar2.png') }}" alt="Avatar" class="w-12 h-12 rounded-full mr-4">
<div>
<h4 class="text-lg font-bold text-black/90">Emily Johnson</h4>
<p class="text-black/50">Business Administration</p>
</div>
</div>
<p class="text-black/50">"I highly recommend Scholarspace. Their writers have a deep understanding of
the subject matter and provide well-researched assignments."</p>
</div>

<div class="bg-white rounded-lg shadow-md p-6">
<div class="flex items-center mb-4">
<img src="{{ asset('images/avatar3.png') }}" alt="Avatar" class="w-12 h-12 rounded-full mr-4">
<div>
<h4 class="text-lg font-bold text-black/90">Michael Williams</h4>
<p class="text-black/50">English Literature</p>
@foreach($testimonials as $testimonial)
<div class="bg-white rounded-lg shadow-md p-6">
<div class="flex items-center mb-4">
<i class="{{ $testimonial['icon'] }} fa-3x {{ $testimonial['color'] }} mr-4"></i>
<img src="{{ asset($testimonial['avatar']) }}" alt="Avatar"
class="w-12 h-12 rounded-full object-cover mr-4"
style="border: 2px solid {{ $testimonial['color'] }}">
<div>
<h4 class="text-lg font-bold text-black/90">{{ $testimonial['name'] }}</h4>
<p class="text-black/50">{{ $testimonial['subject'] }}</p>
</div>
</div>
<p class="text-black/50">"{{ $testimonial['testimonial'] }}"</p>
</div>
<p class="text-black text-black/50">"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."</p>
</div>
@endforeach
</div>

</div>
</div>
</body>
Expand Down

0 comments on commit 9e98050

Please sign in to comment.