diff --git a/app/Http/Controllers/HomeController.php b/app/Http/Controllers/HomeController.php index 58dc72bdf..609ce231d 100644 --- a/app/Http/Controllers/HomeController.php +++ b/app/Http/Controllers/HomeController.php @@ -1,5 +1,13 @@ '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.', + 'url' => '/guide', + 'style_color' => 'background-image: linear-gradient(36.92deg, #1C4DA1 20.32%, #0040AE 28.24%);', + 'btn_lang' => 'home.get_involved', + ], [ 'title' => 'Girls in Digital', 'description' => 'Explore and embrace digital opportunities—empowering a new generation of girls in digital!', diff --git a/public/images/homepage/slide1.png b/public/images/homepage/slide1.png new file mode 100644 index 000000000..7a487a06d Binary files /dev/null and b/public/images/homepage/slide1.png differ diff --git a/resources/assets/sass/pages/homepage.scss b/resources/assets/sass/pages/homepage.scss index 36b8ee379..6cc4989a7 100644 --- a/resources/assets/sass/pages/homepage.scss +++ b/resources/assets/sass/pages/homepage.scss @@ -177,13 +177,6 @@ display: flex; flex-direction: column; } -#countdown { - display: flex; - position: absolute; - right: 0; - margin-right: 22%; - margin-top: 8%; -} #countdown div{ padding: 10px 5px; diff --git a/resources/views/static/home.blade.php b/resources/views/static/home.blade.php index c3b63fb9e..0b3065581 100644 --- a/resources/views/static/home.blade.php +++ b/resources/views/static/home.blade.php @@ -1,3 +1,11 @@ + @extends('layout.new_base') @section('title', 'Join EU Code Week – Learn, Create, & Have Fun with Coding') @@ -5,130 +13,194 @@ @section('non-vue-content')
-
-
- @foreach ($activities as $index => $activity) -
-
- - -
+
+
+ @foreach ($activities as $index => $activity)
-
-

- {{ $activity['title'] }} -

-

- {{ mb_substr(strip_tags($activity['description']), 0, 200) }} -

- - @lang($activity['btn_lang']) - -
- #EUCodeWeek + class="absolute top-0 left-0 flex flex-col justify-end flex-shrink-0 w-full h-full pb-10 overflow-hidden md:px-16 md:p-0 md:flex-row md:items-center"> +
+ + +
+
+
+ @if ($index === 0) +
+ + +
00
+ + + +
00
+ + + +
00
+ + + +
00
+
+ @endif + + +

+ {{ $activity['title'] }} +

+

+ {{ mb_substr(strip_tags($activity['description']), 0, 200) }} +

+ + @lang($activity['btn_lang']) + + +
+ #EUCodeWeek +
+
+ +@if ($index === 0) + + + +@else + + + +@endif + +
- - - -
-
- @endforeach +
+ @endforeach - - + +
-
+
- -
+ +
-
- - -
+
+ + +

@lang('home.toolkits_title')

- @lang('home.toolkits_description') + @lang('home.toolkits_description')

-
- +
+ @lang('home.toolkits_button1') -
- - +
+ +
- - @lang('home.toolkits_button2') - @@ -137,7 +209,8 @@ class="flex justify-center items-center gap-2 text-[#1C4DA1] border-solid border
-
+

@@ -146,121 +219,112 @@ class="flex justify-center items-center gap-2 text-[#1C4DA1] border-solid border

@lang('home.minecraft_description2')

- + @lang('home.minecraft_button') - -
- +
+
-
-
+
+
-
- - -
+
+ + +

- @lang('home.activity_title') + @lang('home.activity_title')

- @lang('home.activity_description') + @lang('home.activity_description')

-
-
- -
+
+ +

- @lang('home.resouce_title') + @lang('home.resouce_title')

-

- @lang('home.resouce_description') +

+ @lang('home.resouce_description')

-
@@ -273,72 +337,81 @@ class="animation-element fade-scale-bottom duration-700 absolute z-0 -bottom-10 @endpush @push('scripts') - + handleSlider({ + prevBtnId: 'slider-prev-small-btn', + nextBtnId: 'slider-next-small-btn' + }); + handleSlider({ + prevBtnId: 'slider-prev-btn', + nextBtnId: 'slider-next-btn' + }); + }); + @endpush