Skip to content

Updated home.blade.php and HomeController with translations #2585

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 20, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions app/Http/Controllers/HomeController.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* @Author: Bernard Hanna
* @Date: 2025-03-20 10:42:36
* @Last Modified by: Bernard Hanna
* @Last Modified time: 2025-03-20 15:03:48
* @Last Modified time: 2025-03-20 16:15:24
*/


Expand All @@ -20,7 +20,7 @@ public function index(Request $request): View
$activities = collect([
[
'title' => 'October 11-26',
'description' => 'Learning to code helps us make sense of the rapidly changing world around us. Join millions of fellow organisers and participants to inspire the development of coding and computational thinking skills in order to explore new ideas and innovate for the future.',
'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',
Expand Down
8 changes: 4 additions & 4 deletions resources/views/static/home.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* @Author: Bernard Hanna
* @Date: 2025-03-20 10:42:36
* @Last Modified by: Bernard Hanna
* @Last Modified time: 2025-03-20 15:40:25
* @Last Modified time: 2025-03-20 16:06:02
*/
?>
@extends('layout.new_base')
Expand Down Expand Up @@ -121,17 +121,17 @@ class="absolute top-0 -translate-y-1/2 bg-yellow py-3 md:py-4 px-8 md:px-10 roun
src="{{ asset('images/homepage/slide1.png') }}"
style="clip-path: ellipse(71% 73% at 40% 20%);" />

<img class="absolute top-0 right-0 h-full max-w-[calc(70vw)] object-cover hidden md:block"
<img class="absolute top-0 right-0 h-full min-w-[55%] max-w-[calc(70vw)] object-cover hidden md:block"
loading="lazy"
src="{{ asset('images/homepage/slide1.png') }}"
style="clip-path: ellipse(70% 140% at 70% 25%);" />
@else
<img class="absolute top-0 -left-1/4 w-[150vw] !max-w-none md:hidden"
<img class="absolute top-0 -left-1/4 min-w-[55%] w-[150vw] !max-w-none md:hidden"
loading="lazy"
src="{{ asset('images/search/search_bg_lg_' . ($index % 2 === 0 ? 1 : 2) . '.jpeg') }}"
style="clip-path: ellipse(71% 73% at 40% 20%);" />

<img class="absolute top-0 right-0 h-full max-w-[calc(70vw)] object-cover hidden md:block"
<img class="absolute top-0 right-0 h-full min-w-[55%] max-w-[calc(70vw)] object-cover hidden md:block"
loading="lazy"
src="{{ asset('images/search/search_bg_lg_' . ($index % 2 === 0 ? 1 : 2) . '.jpeg') }}"
style="clip-path: ellipse(70% 140% at 70% 25%);" />
Expand Down
Loading