Skip to content

Commit

Permalink
Merge pull request #2167 from codeeu/2147-challenges-2023
Browse files Browse the repository at this point in the history
Circle of dots
  • Loading branch information
alainvd authored Oct 11, 2023
2 parents 2833347 + f80c987 commit f30425e
Show file tree
Hide file tree
Showing 7 changed files with 158 additions and 0 deletions.
Binary file added public/img/2021/challenges/circle-of-dots-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/img/2021/challenges/circle-of-dots-2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/img/2021/challenges/circle-of-dots-3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/img/2021/challenges/circle-of-dots-4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions resources/views/2021/challenges.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@
@php
$currentDate = \Carbon\Carbon::now();
@endphp
@if (strtotime($currentDate) >= strtotime(\Carbon\Carbon::create(2023,10,13)))
@include('2021._thumbnail', ['slug' => 'circle-of-dots', 'author'=>'Marin Popov'])
@endif
@if (strtotime($currentDate) >= strtotime(\Carbon\Carbon::create(2023,10,12)))
@include('2021._thumbnail', ['slug' => 'craft-magic', 'author'=>'Georgia Lascaris'])
@endif
Expand Down
154 changes: 154 additions & 0 deletions resources/views/2021/challenges/circle-of-dots.blade.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,154 @@
@extends('layout.base')

<x-tailwind></x-tailwind>

@section('content')

@php
$slug = 'circle-of-dots'
@endphp

<section id="codeweek-schools-page" class="codeweek-page">


<section class="flex flex-row justify-between" style="background-color: #3F3286">
<div class="flex justify-center items-center w-full">
<div class="text-center m-12">
<div class="text-xl text-white w-full"><a class="text-black"
href="{{route('challenges')}}">@lang('challenges.title')</a>
</div>
<div class="text-5xl mt-2" style="color: #ffffff">@lang("challenges-content.$slug.title")</div>
</div>
</div>

<div class="md:w-10/12 md:flex hidden">
<img src="{{asset('img/2021/challenges/thumbnails/'.$slug.'.png')}}">


</div>

</section>

<section class="codeweek-content-wrapper">
<div class="m-6">

@include('2021.challenges._author', ['author' => 'Kristina Slišurić'])

<section class="grid grid-cols-1 gap-6 md:grid-cols-4 mx-6 my-4">


<div>
<div class="text-xl text-left text-blue-600">@lang('challenges.common.target-audience')</div>
<ol class="list-disc ml-5">
<li>@lang('challenges-content.common.audience.1')</li>
</ol>
</div>

<div>
<div class="text-xl text-left text-blue-600">@lang('challenges.common.experience')</div>
<ol class="list-disc ml-5">
<li>@lang('challenges.common.intermediate')</li>
</ol>
</div>

<div>
<div class="text-xl text-left text-blue-600">@lang('challenges.common.duration')</div>
<ol class="list-disc ml-5">
<li>@lang("challenges-content.$slug.duration")</li>
</ol>
</div>

<div>

<div class="text-xl text-left text-blue-600">@lang('challenges.common.purpose')</div>
<ol class="list-disc ml-5">
<li>@lang("challenges-content.$slug.purposes.0")</li>
<li>@lang("challenges-content.$slug.purposes.1")</li>
<li>@lang("challenges-content.$slug.purposes.2")</li>
<li>@lang("challenges-content.$slug.purposes.3")</li>
</ol>

</div>


</section>

<div class="mx-6 my-4">


<div class="text-xl text-left text-blue-600">@lang('challenges.common.materials')</div>
<ol class="list-disc ml-5">
<li><a href="https://scratch.mit.edu/">Scratch</a></li>
</ol>

</div>


<div class="leading-6 text-base text-left">

<section class="bg-blue-100 p-2 mt-6">
<div class="orange text-3xl mt-2">
@lang('challenges.common.description')
</div>


<div class="mt-2">
@lang("challenges-content.$slug.description")
</div>
</section>


<section class="p-2">
<div class="leading-6">
<div class="mt-6 orange text-3xl">@lang('challenges.common.instructions')</div>
<ul class="leading-7 ml-2 checklist mt-2">


<li>@lang("challenges-content.$slug.instructions.0")</li>
<img width='400px' src="{{asset('img/2021/challenges/circle-of-dots-1.png')}}"/>
<li>@lang("challenges-content.$slug.instructions.1")</li>
<img width='400px' src="{{asset('img/2021/challenges/circle-of-dots-2.png')}}"/>
<li>@lang("challenges-content.$slug.instructions.2")</li>
<li>@lang("challenges-content.$slug.instructions.3")</li>
<img width='400px' src="{{asset('img/2021/challenges/circle-of-dots-3.png')}}"/>

</ul>
</div>
</section>

@include('2021.challenges._share')



<section class="p-2">
<div class="orange text-3xl">@lang('challenges.common.example')</div>

<div class="mt-2">
<a href="https://scratch.mit.edu/projects/891333343/">https://scratch.mit.edu/projects/891333343/</a>
<a href="https://scratch.mit.edu/projects/891333343/">
<img src="{{asset('img/2021/challenges/circle-of-dots-4.png')}}"/>
</a>
</div>

</section>


</div>

@include('2021.challenges._download',['url'=>"https://codeweek-s3.s3.eu-west-1.amazonaws.com/cw2023/$slug.docx"])
</div>
<div style="text-align: center">@include('include.licence')</div>
</section>
</section>

@endsection

@section('extra-css')
<style>
ul.checklist li:before {
content: '';
color: #ee6a2c;
font-weight: bold;
}
</style>
@endsection
1 change: 1 addition & 0 deletions routes/web.php
Original file line number Diff line number Diff line change
Expand Up @@ -580,6 +580,7 @@ function () {
Route::view('play-against-ai','2021.challenges.play-against-ai')->name('challenges.play-against-ai');
Route::view('emobot-kliki','2021.challenges.emobot-kliki')->name('challenges.emobot-kliki');
Route::view('craft-magic','2021.challenges.craft-magic')->name('challenges.craft-magic');
Route::view('circle-of-dots','2021.challenges.circle-of-dots')->name('challenges.circle-of-dots');
};

Route::group(['prefix' => '2021/challenges'], $challenges);
Expand Down

0 comments on commit f30425e

Please sign in to comment.