-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathindex.blade.php
More file actions
336 lines (327 loc) · 18 KB
/
index.blade.php
File metadata and controls
336 lines (327 loc) · 18 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
@extends('layout.new_base')
@php
$dynamicResults = ($dynamicTrainingResources ?? collect())->map(function ($resource) {
return [
'image' => $resource->resolved_card_image,
'title' => $resource->card_title,
'author' => $resource->card_author,
'link' => '/training/' . $resource->slug,
'is_translated' => false,
];
})->toArray();
$list = [
(object) ['label' => 'Learn & Teach', 'href' => '/learn'],
(object) ['label' => 'Training', 'href' => ''],
];
$results = [
[
'image' => '/img/learning/cody-color-kit.png',
'title' => 'training.lessons.0.title',
'author' => 'training.lessons.0.author',
'link' => '/training/cody-color-kit',
'is_translated' => true,
],
[
'image' => '/img/learning/coding-without-computers.png',
'title' => 'training.lessons.1.title',
'author' => 'training.lessons.1.author',
'link' => '/training/coding-without-computers',
'is_translated' => true,
],
[
'image' => '/img/learning/computational-thinking-and-problem-solving.png',
'title' => 'training.lessons.2.title',
'author' => 'training.lessons.2.author',
'link' => '/training/computational-thinking-and-problem-solving',
'is_translated' => true,
],
[
'image' => '/img/learning/visual-programming-introduction-to-scratch.png',
'title' => 'training.lessons.3.title',
'author' => 'training.lessons.3.author',
'link' => '/training/visual-programming-introduction-to-scratch',
'is_translated' => true,
],
[
'image' => '/img/learning/creating-educational-games-with-scratch.png',
'title' => 'training.lessons.4.title',
'author' => 'training.lessons.4.author',
'link' => '/training/creating-educational-games-with-scratch',
'is_translated' => true,
],
[
'image' => '/img/learning/making-robotics-and-tinkering-in-the-classroom.png',
'title' => 'training.lessons.5.title',
'author' => 'training.lessons.5.author',
'link' => '/training/making-robotics-and-tinkering-in-the-classroom',
'is_translated' => true,
],
[
'image' => '/img/learning/developing-creative-thinking-through-mobile-app-development.png',
'title' => 'training.lessons.6.title',
'author' => 'training.lessons.6.author',
'link' => '/training/developing-creative-thinking-through-mobile-app-development',
'is_translated' => true,
],
[
'image' => '/img/learning/tinkering-and-making.png',
'title' => 'training.lessons.7.title',
'author' => 'training.lessons.7.author',
'link' => '/training/tinkering-and-making',
'is_translated' => true,
],
[
'image' => '/img/learning/coding-for-all-subjects.png',
'title' => 'training.lessons.8.title',
'author' => 'training.lessons.8.author',
'link' => '/training/coding-for-all-subjects',
'is_translated' => true,
],
[
'image' => '/img/learning/making-an-automaton-with-microbit.png',
'title' => 'training.lessons.9.title',
'author' => 'training.lessons.9.author',
'link' => '/training/making-an-automaton-with-microbit',
'is_translated' => true,
],
[
'image' => '/img/learning/creative-coding-with-python.png',
'title' => 'training.lessons.10.title',
'author' => 'training.lessons.10.author',
'link' => '/training/creative-coding-with-python',
'is_translated' => true,
],
[
'image' => '/img/learning/coding-for-inclusion.png',
'title' => 'training.lessons.11.title',
'author' => 'training.lessons.11.author',
'link' => '/training/coding-for-inclusion',
'is_translated' => true,
],
[
'image' => '/img/learning/coding-for-sustainable-development-goals.png',
'title' => 'training.lessons.12.title',
'author' => 'training.lessons.12.author',
'link' => '/training/coding-for-sustainable-development-goals',
'is_translated' => true,
],
[
'image' => '/img/learning/introduction-to-artificial-intelligence-in-the-classroom.png',
'title' => 'training.lessons.13.title',
'author' => 'training.lessons.13.author',
'link' => '/training/introduction-to-artificial-intelligence-in-the-classroom',
'is_translated' => true,
],
[
'image' => '/img/learning/learning-in-the-age-of-intelligent-machines.png',
'title' => 'training.lessons.14.title',
'author' => 'training.lessons.14.author',
'link' => '/training/learning-in-the-age-of-intelligent-machines',
'is_translated' => true,
],
[
'image' => '/img/learning/mining-media-literacy.png',
'title' => 'training.lessons.15.title',
'author' => 'training.lessons.15.author',
'link' => '/training/mining-media-literacy',
'is_translated' => true,
],
[
'image' => '/img/learning/story-telling-with-hedy.png',
'title' => 'training.lessons.16.title',
'author' => 'training.lessons.16.author',
'link' => '/training/story-telling-with-hedy',
'is_translated' => true,
],
[
'image' => '/img/learning/feel-the-code.jpg',
'title' => 'training.lessons.17.title',
'author' => 'training.lessons.17.author',
'link' => '/training/feel-the-code',
'is_translated' => true,
],
[
'image' => '/img/learning/sos-water.png',
'title' => 'training.lessons.18.title',
'author' => 'training.lessons.18.author',
'link' => '/training/sos-water',
'is_translated' => true,
],
[
'image' => '/img/learning/creative-scratch-laboratory.png',
'title' => 'training.lessons.19.title',
'author' => 'training.lessons.19.author',
'link' => '/training/creative-scratch-laboratory',
'is_translated' => true,
],
[
'image' => '/img/learning/code-through-art.png',
'title' => 'training.lessons.20.title',
'author' => 'training.lessons.20.author',
'link' => '/training/code-through-art',
'is_translated' => true,
],
[
'image' => '/img/learning/making-and-coding.png',
'title' => 'training.lessons.21.title',
'author' => 'training.lessons.21.author',
'link' => '/training/making-and-coding',
'is_translated' => true,
],
];
@endphp
@section('layout.breadcrumb')
@include('layout.breadcrumb', ['list' => $list])
@endsection
@section('title', 'Coding Training for Teachers – EU Code Week')
@section('description', 'Enhance your coding teaching skills with specialized training courses and resources from EU Code Week.')
@section('content')
<section id="training-page" class="font-['Blinker'] overflow-hidden">
<section class="flex overflow-hidden relative">
<div class="flex relative pt-32 pb-0 w-full transition-all bg-blue-gradient md:py-40">
<div class="flex overflow-hidden flex-col flex-shrink-0 justify-end pb-10 w-full md:p-0 md:flex-row md:items-center">
<div class="flex flex-col gap-28 duration-1000 codeweek-container-lg md:flex-row md:items-center md:gap-4 xl:gap-28">
<div class="order-1 flex-1 px-6 py-10 md:px-14 md:py-[4.5rem] bg-white rounded-[32px] z-10 relative">
<h2 class="text-[#1C4DA1] text-[30px] md:text-[60px] leading-9 md:leading-[72px] font-normal font-['Montserrat'] mb-4 max-md:max-w-full max-w-[532px]">
Training
</h2>
<p class="text-xl font-normal md:text-2xl leading-8 text-[#333E48] p-0 max-md:max-w-full max-w-[525px]">
@lang('training.training-text')
</p>
</div>
<div class="flex z-10 flex-1 justify-center items-center order-0 md:order-2"></div>
<img
class="absolute top-0 -left-1/4 w-[150vw] !max-w-none md:hidden"
loading="lazy"
src="/images/training/training_bg.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"
loading="lazy"
src="/images/training/training_bg.png"
style="clip-path: ellipse(70% 140% at 70% 25%);"
/>
</div>
</div>
</div>
</section>
<section class="overflow-hidden relative">
<div class="flex relative justify-center pt-20 pb-16 codeweek-container-lg md:pt-40 md:pb-28">
<div class="w-full max-w-[907px] gap-2">
<h2 class="text-dark-blue tablet:text-center text-[22px] md:text-4xl leading-7 md:leading-[44px] font-medium font-['Montserrat'] mb-6 tablet:mb-8">
Quick & Practical Tools for Innovative Lessons
</h2>
<p class="text-slate-500 font-normal text-[16px] md:text-xl leading-[22px] md:leading-[30px] p-0 mb-8">
@lang('training.quick-practical-text1')
</p>
<div class="flex relative gap-x-8 pb-4 tablet:pb-16">
<div class="w-10 h-10 rounded-full flex justify-center items-center text-['#20262C'] font-semibold text-2xl bg-primary">
1
</div>
<div class="absolute after:content-[''] after:block after:w-[2px] after:h-full after:bg-[#5F718A] left-5 bottom-2 top-12"></div>
<div class="flex-1 pt-1">
<p class="font-semibold text-[#20262C] text-xl tablet:text-2xl mb-2 p-0">@lang('training.watch-learn-title')</p>
<p class="text-slate-500 font-normal text-[16px] md:text-xl leading-[22px] md:leading-[30px] p-0">
@lang('training.watch-learn-text')
</p>
</div>
</div>
<div class="flex relative gap-x-8 pb-4 tablet:pb-16">
<div class="w-10 h-10 rounded-full flex justify-center items-center text-['#20262C'] font-semibold text-2xl bg-primary">
2
</div>
<div class="absolute after:content-[''] after:block after:w-[2px] after:h-full after:bg-[#5F718A] left-5 bottom-2 top-12"></div>
<div class="flex-1 pt-1">
<p class="font-semibold text-[#20262C] text-xl tablet:text-2xl mb-2 p-0">@lang('training.get-hands-on-title')</p>
<p class="text-slate-500 font-normal text-[16px] md:text-xl leading-[22px] md:leading-[30px] p-0">
@lang('training.get-hands-on-text')
</p>
</div>
</div>
<div class="flex relative gap-x-8 mb-8">
<div class="w-10 h-10 rounded-full flex justify-center items-center text-['#20262C'] font-semibold text-2xl bg-primary">
3
</div>
<div class="flex-1 pt-1">
<p class="font-semibold text-[#20262C] text-xl tablet:text-2xl mb-2 p-0">@lang('training.share-inspire-title')</p>
<p class="text-slate-500 font-normal text-[16px] md:text-xl leading-[22px] md:leading-[30px] p-0 mb-4">
@lang('training.share-inspire-text1')
</p>
<p class="text-slate-500 font-normal text-[16px] md:text-xl leading-[22px] md:leading-[30px] p-0 mb-4">
@lang('training.share-inspire-text2')
</p>
<p class="text-slate-500 font-normal text-[16px] md:text-xl leading-[22px] md:leading-[30px] p-0">
@lang('training.share-inspire-text3')
</p>
</div>
</div>
<div class="w-full bg-light-blue rounded-lg p-6 flex flex-col md:flex-row text-['Blinker'] gap-2">
<img class="min-w-8 min-h-8" src="/images/icon_info.svg" />
<div class="text-slate-500 text-[16px] leading-[22px] tablet:text-xl tablet:leading-7">
<p class="p-0 mb-2 font-semibold tablet:mb-0">Copyright notice ©</p>
<p class="p-0 font-normal">
<a class="font-semibold underline text-dark-blue" href="/training">The EU Code Week website</a> is a service supported by the European Commission Except where stated otherwise, content made available on this site is licensed under a <a class="font-semibold underline text-dark-blue" href="https://creativecommons.org/licenses/by-nc-sa/4.0/deed.en">Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International (CC BY-NC-SA 4.0) license</a> Licensing under Creative Commons licenses does not of itself affect the ownership of the copyright Content from third party websites is subject to their own copyright restrictions; please refer to the site of origin for more information.
</p>
</div>
</div>
</div>
</div>
</section>
<section class="overflow-hidden relative">
<div class="absolute w-full h-full bg-yellow-50 md:hidden" style="clip-path: ellipse(410% 90% at 38% 90%);"></div>
<div class="hidden absolute w-full h-full bg-yellow-50 md:block lg:hidden" style="clip-path: ellipse(528% 90% at 50% 90%);"></div>
<div class="hidden absolute w-full h-full bg-yellow-50 lg:block xl:hidden" style="clip-path: ellipse(228% 90% at 50% 90%);"></div>
<div class="hidden absolute w-full h-full bg-yellow-50 xl:block" style="clip-path: ellipse(148% 90% at 50% 90%);"></div>
<div class="flex relative flex-col pt-20 pb-16 codeweek-container-lg md:pt-40 md:pb-28 talet:items-center">
<h2 class="text-dark-blue text-left tablet:text-center text-[22px] md:text-4xl leading-7 md:leading-[44px] font-medium font-['Montserrat'] mb-6 tablet:mb-10">
Learning Bits
</h2>
<div class="grid grid-cols-1 gap-6 md:grid-cols-2 xl:grid-cols-3 xl:gap-10">
@foreach($dynamicResults as $result)
<div class="flex overflow-hidden flex-col bg-white rounded-lg cursor-pointer" onclick="window.location.href='{{ $result['link'] }}'">
<div class="relative">
<img src="{{ $result['image'] }}" class="w-full md:h-[244px] md:object-cover" />
</div>
<div class="block flex-grow px-6 py-8">
<p class="text-dark-blue text-lg p-0 font-semibold mb-2 font-['Montserrat']">
{{ $result['title'] }}
</p>
@if(!empty($result['author']))
<p class="text-[#333E48] text-default font-bold leading-[22px] p-0">
{{ $result['author'] }}
</p>
@endif
</div>
</div>
@endforeach
@foreach($results as $result)
<div class="flex overflow-hidden flex-col bg-white rounded-lg cursor-pointer" onclick="window.location.href='{{ $result['link'] }}'">
<div class="relative">
<img src="{{ $result['image'] }}" class="w-full md:h-[244px] md:object-cover" />
</div>
<div class="block flex-grow px-6 py-8">
<p class="text-dark-blue text-lg p-0 font-semibold mb-2 font-['Montserrat']">
@if($result['is_translated'])
@lang($result['title'])
@else
{{ $result['title'] }}
@endif
</p>
@if(!empty($result['author']))
<p class="text-[#333E48] text-default font-bold leading-[22px] p-0">
@if($result['is_translated'])
@lang($result['author'])
@else
{{ $result['author'] }}
@endif
</p>
@endif
</div>
</div>
@endforeach
</div>
</div>
</section>
</section>
@endsection