-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathHomeController.php
More file actions
46 lines (40 loc) · 1.47 KB
/
HomeController.php
File metadata and controls
46 lines (40 loc) · 1.47 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<?php
/**
* @Author: Bernard Hanna
* @Date: 2025-03-20 10:42:36
* @Last Modified by: Bernard Hanna
* @Last Modified time: 2025-03-20 16:15:24
*/
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use Illuminate\View\View;
class HomeController extends Controller
{
public function index(Request $request): View
{
$activities = collect([
[
'title' => 'October 11-26',
'description' => __('home.when_text'),
'url' => '/guide',
'style_color' => 'background-image: linear-gradient(36.92deg, #1C4DA1 20.32%, #0040AE 28.24%);',
'btn_lang' => 'home.get_involved',
],
[
'title' => 'home.banner1_title',
'description' => 'home.banner1_description',
'url' => '/girls-in-digital-week',
'style_color' => 'background-image: linear-gradient(36.92deg, #1C4DA1 20.32%, #0040AE 28.24%);',
'btn_lang' => 'home.get_involved',
],
[
'title' => 'home.banner2_title',
'description' => 'home.banner2_description',
'url' => '/community',
'style_color' => 'background: linear-gradient(36.92deg, rgb(51, 194, 233) 20.32%, rgb(0, 179, 227) 28.24%);',
'btn_lang' => 'home.meet_our_community',
]
]);
return view('static.home', compact('activities'));
}
}