Skip to content
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
12 changes: 6 additions & 6 deletions app/Filters/ResourceFilters.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ protected function searchInput($searchInput)
/**
* Filter the query by selectedLevels
*
* @param string $selectedLevels
* @param array $selectedLevels
* @return \Illuminate\Database\Eloquent\Builder
*/
protected function selectedLevels($selectedLevels)
Expand All @@ -72,7 +72,7 @@ protected function selectedLevels($selectedLevels)
/**
* Filter the query by selectedTypes
*
* @param string $selectedTypes
* @param array $selectedTypes
* @return \Illuminate\Database\Eloquent\Builder
*/
protected function selectedTypes($selectedTypes)
Expand All @@ -90,7 +90,7 @@ protected function selectedTypes($selectedTypes)
/**
* Filter the query by selectedSubjects
*
* @param string $selectedSubjects
* @param array $selectedSubjects
* @return \Illuminate\Database\Eloquent\Builder
*/
protected function selectedSubjects($selectedSubjects)
Expand All @@ -109,7 +109,7 @@ protected function selectedSubjects($selectedSubjects)
/**
* Filter the query by selectedCategories
*
* @param string $selectedCategories
* @param array $selectedCategories
* @return \Illuminate\Database\Eloquent\Builder
*/
protected function selectedCategories($selectedCategories)
Expand All @@ -128,7 +128,7 @@ protected function selectedCategories($selectedCategories)
/**
* Filter the query by selectedLanguages
*
* @param string $selectedLanguages
* @param array $selectedLanguages
* @return \Illuminate\Database\Eloquent\Builder
*/
protected function selectedLanguages($selectedLanguages)
Expand All @@ -149,7 +149,7 @@ protected function selectedLanguages($selectedLanguages)
/**
* Filter the query by selectedProgrammingLanguages
*
* @param string $selectedProgrammingLanguages
* @param array $selectedProgrammingLanguages
* @return \Illuminate\Database\Eloquent\Builder
*/
protected function selectedProgrammingLanguages($selectedProgrammingLanguages)
Expand Down
7 changes: 6 additions & 1 deletion app/Http/Controllers/PodcastsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,12 @@ public function index(Request $request): View

public function show(Podcast $podcast): View
{
return view('podcast', compact('podcast'));
$latest_podcasts = Podcast::active()
->orderBy('release_date', 'DESC')
->take(5)
->get();

return view('podcast', compact('podcast', 'latest_podcasts'));
}

public function upcoming(Request $request): View
Expand Down
26 changes: 8 additions & 18 deletions app/Http/Controllers/ResourcesController.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

class ResourcesController extends Controller
{
public function index(Request $request, $section = 'learn'): View
public function all(Request $request): View
{

$query = $request->input('q', '');
Expand Down Expand Up @@ -42,26 +42,16 @@ public function index(Request $request, $section = 'learn'): View
$selected_subjects = \App\ResourceSubject::find($selected_subjects);
}

$levels = \App\ResourceLevel::where($section, '=', true)->orderBy('position')->get();
$types = \App\ResourceType::where($section, '=', true)->orderBy('position')->get();
$levels = \App\ResourceLevel::orderBy('position')->get();
$types = \App\ResourceType::orderBy('position')->get();
//$languages = \App\ResourceLanguage::all();
$languages = \App\ResourceLanguage::where($section, '=', true)->orderBy('position')->get();
$languages = \App\ResourceLanguage::orderBy('position')->get();

$programmingLanguages = \App\ResourceProgrammingLanguage::where($section, '=', true)->orderBy('position')->get();
$categories = \App\ResourceCategory::where($section, '=', true)->orderBy('position')->get();
$subjects = \App\ResourceSubject::where($section, '=', true)->orderBy('position')->get();
$programmingLanguages = \App\ResourceProgrammingLanguage::orderBy('position')->get();
$categories = \App\ResourceCategory::orderBy('position')->get();
$subjects = \App\ResourceSubject::orderBy('position')->get();


return view('resources.index', compact(['query', 'selected_subjects', 'selected_programming_languages', 'selected_categories', 'selected_languages', 'selected_levels', 'selected_types', 'programmingLanguages', 'levels', 'languages', 'categories', 'subjects', 'types', 'section']));
}

public function learn(Request $request)
{
return $this->index($request, 'learn');
}

public function teach(Request $request)
{
return $this->index($request, 'teach');
return view('resources.index', compact(['query', 'selected_subjects', 'selected_programming_languages', 'selected_categories', 'selected_languages', 'selected_levels', 'selected_types', 'programmingLanguages', 'levels', 'languages', 'categories', 'subjects', 'types']));
}
}
1 change: 0 additions & 1 deletion public/build/assets/app-CUL-2YiQ.css

This file was deleted.

1 change: 1 addition & 0 deletions public/build/assets/app-DXq9e_4o.css

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions public/build/assets/app-DkD2xhfq.css

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion public/build/assets/app-Dsd7l9Qo.css

This file was deleted.

299 changes: 0 additions & 299 deletions public/build/assets/app-EztDlwUw.js

This file was deleted.

223 changes: 223 additions & 0 deletions public/build/assets/app-cZgKPITV.js

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

68 changes: 34 additions & 34 deletions public/build/manifest.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
{
"resources/assets/sass/app.scss": {
"file": "assets/app-CUL-2YiQ.css",
"file": "assets/app-DkD2xhfq.css",
"src": "resources/assets/sass/app.scss",
"isEntry": true
},
"resources/css/app.css": {
"file": "assets/app-Dsd7l9Qo.css",
"file": "assets/app-DXq9e_4o.css",
"src": "resources/css/app.css",
"isEntry": true
},
"resources/js/app.js": {
"file": "assets/app-EztDlwUw.js",
"file": "assets/app-cZgKPITV.js",
"name": "app",
"src": "resources/js/app.js",
"isEntry": true,
Expand Down Expand Up @@ -47,185 +47,185 @@
"resources/lang/php_ua.json"
],
"css": [
"assets/app-CEuIVYdL.css"
"assets/app-Dy6pmx_p.css"
]
},
"resources/lang/php_al.json": {
"file": "assets/php_al-CTMA073o.js",
"file": "assets/php_al-DjoxzttW.js",
"name": "php_al",
"src": "resources/lang/php_al.json",
"isDynamicEntry": true
},
"resources/lang/php_ba.json": {
"file": "assets/php_ba-B-bm2W_u.js",
"file": "assets/php_ba-E5UV4uW-.js",
"name": "php_ba",
"src": "resources/lang/php_ba.json",
"isDynamicEntry": true
},
"resources/lang/php_bg.json": {
"file": "assets/php_bg-DGdaJONV.js",
"file": "assets/php_bg-Df7lFPF1.js",
"name": "php_bg",
"src": "resources/lang/php_bg.json",
"isDynamicEntry": true
},
"resources/lang/php_cs.json": {
"file": "assets/php_cs-DAMKJ3UF.js",
"file": "assets/php_cs-BCMTtmCg.js",
"name": "php_cs",
"src": "resources/lang/php_cs.json",
"isDynamicEntry": true
},
"resources/lang/php_da.json": {
"file": "assets/php_da-Csj-KMvk.js",
"file": "assets/php_da-gLHn8s66.js",
"name": "php_da",
"src": "resources/lang/php_da.json",
"isDynamicEntry": true
},
"resources/lang/php_de.json": {
"file": "assets/php_de-tzfxwiD6.js",
"file": "assets/php_de-Baw4u6H6.js",
"name": "php_de",
"src": "resources/lang/php_de.json",
"isDynamicEntry": true
},
"resources/lang/php_el.json": {
"file": "assets/php_el-CI8iJz4j.js",
"file": "assets/php_el-XfLsrgAS.js",
"name": "php_el",
"src": "resources/lang/php_el.json",
"isDynamicEntry": true
},
"resources/lang/php_en.json": {
"file": "assets/php_en-qmUMTsm6.js",
"file": "assets/php_en-CWXDdbtc.js",
"name": "php_en",
"src": "resources/lang/php_en.json",
"isDynamicEntry": true
},
"resources/lang/php_es.json": {
"file": "assets/php_es-B3pEdE0T.js",
"file": "assets/php_es-CESVEtj1.js",
"name": "php_es",
"src": "resources/lang/php_es.json",
"isDynamicEntry": true
},
"resources/lang/php_et.json": {
"file": "assets/php_et-DNo2kFwz.js",
"file": "assets/php_et-Zx53OxKQ.js",
"name": "php_et",
"src": "resources/lang/php_et.json",
"isDynamicEntry": true
},
"resources/lang/php_fi.json": {
"file": "assets/php_fi-Bz-89DJI.js",
"file": "assets/php_fi-DxA44Emx.js",
"name": "php_fi",
"src": "resources/lang/php_fi.json",
"isDynamicEntry": true
},
"resources/lang/php_fr.json": {
"file": "assets/php_fr-AS8KOWQN.js",
"file": "assets/php_fr-Nz0XYLWo.js",
"name": "php_fr",
"src": "resources/lang/php_fr.json",
"isDynamicEntry": true
},
"resources/lang/php_hr.json": {
"file": "assets/php_hr-CM1mniNB.js",
"file": "assets/php_hr-C5xm-N4J.js",
"name": "php_hr",
"src": "resources/lang/php_hr.json",
"isDynamicEntry": true
},
"resources/lang/php_hu.json": {
"file": "assets/php_hu-iGmtPcpK.js",
"file": "assets/php_hu-CLZR7481.js",
"name": "php_hu",
"src": "resources/lang/php_hu.json",
"isDynamicEntry": true
},
"resources/lang/php_it.json": {
"file": "assets/php_it-NMn3WoOf.js",
"file": "assets/php_it-Du6DIN7Z.js",
"name": "php_it",
"src": "resources/lang/php_it.json",
"isDynamicEntry": true
},
"resources/lang/php_lt.json": {
"file": "assets/php_lt-Cf4Tj8dy.js",
"file": "assets/php_lt-Dglloo1d.js",
"name": "php_lt",
"src": "resources/lang/php_lt.json",
"isDynamicEntry": true
},
"resources/lang/php_lv.json": {
"file": "assets/php_lv-D_okeVNN.js",
"file": "assets/php_lv-DeMl4-LD.js",
"name": "php_lv",
"src": "resources/lang/php_lv.json",
"isDynamicEntry": true
},
"resources/lang/php_me.json": {
"file": "assets/php_me-Dx4YtoZ-.js",
"file": "assets/php_me-Cmf2P8bd.js",
"name": "php_me",
"src": "resources/lang/php_me.json",
"isDynamicEntry": true
},
"resources/lang/php_mk.json": {
"file": "assets/php_mk-BTk4Npnl.js",
"file": "assets/php_mk-Cfz1X5H2.js",
"name": "php_mk",
"src": "resources/lang/php_mk.json",
"isDynamicEntry": true
},
"resources/lang/php_mt.json": {
"file": "assets/php_mt-D-e6QzQh.js",
"file": "assets/php_mt-DEjwdxOJ.js",
"name": "php_mt",
"src": "resources/lang/php_mt.json",
"isDynamicEntry": true
},
"resources/lang/php_nl.json": {
"file": "assets/php_nl-XQvbnMG8.js",
"file": "assets/php_nl-CNqPpIv7.js",
"name": "php_nl",
"src": "resources/lang/php_nl.json",
"isDynamicEntry": true
},
"resources/lang/php_pl.json": {
"file": "assets/php_pl-DGIFGRX1.js",
"file": "assets/php_pl-CxHoeK2_.js",
"name": "php_pl",
"src": "resources/lang/php_pl.json",
"isDynamicEntry": true
},
"resources/lang/php_pt.json": {
"file": "assets/php_pt-jCu-Ttbn.js",
"file": "assets/php_pt-DoQ6sb1D.js",
"name": "php_pt",
"src": "resources/lang/php_pt.json",
"isDynamicEntry": true
},
"resources/lang/php_ro.json": {
"file": "assets/php_ro-DL2g_4OZ.js",
"file": "assets/php_ro-BOneroQm.js",
"name": "php_ro",
"src": "resources/lang/php_ro.json",
"isDynamicEntry": true
},
"resources/lang/php_rs.json": {
"file": "assets/php_rs-CuhpBpU5.js",
"file": "assets/php_rs-B67ZybFO.js",
"name": "php_rs",
"src": "resources/lang/php_rs.json",
"isDynamicEntry": true
},
"resources/lang/php_sk.json": {
"file": "assets/php_sk-MOiKSZu3.js",
"file": "assets/php_sk-CdJcorDX.js",
"name": "php_sk",
"src": "resources/lang/php_sk.json",
"isDynamicEntry": true
},
"resources/lang/php_sl.json": {
"file": "assets/php_sl-CCdh2PKs.js",
"file": "assets/php_sl-BtEUL4mZ.js",
"name": "php_sl",
"src": "resources/lang/php_sl.json",
"isDynamicEntry": true
},
"resources/lang/php_sv.json": {
"file": "assets/php_sv-PkF0Bloi.js",
"file": "assets/php_sv-glFQz5uf.js",
"name": "php_sv",
"src": "resources/lang/php_sv.json",
"isDynamicEntry": true
},
"resources/lang/php_tr.json": {
"file": "assets/php_tr-BJNigm8D.js",
"file": "assets/php_tr-Cz1DyXic.js",
"name": "php_tr",
"src": "resources/lang/php_tr.json",
"isDynamicEntry": true
},
"resources/lang/php_ua.json": {
"file": "assets/php_ua-CjVKcXTv.js",
"file": "assets/php_ua-DjFBKSYW.js",
"name": "php_ua",
"src": "resources/lang/php_ua.json",
"isDynamicEntry": true
Expand Down
41 changes: 41 additions & 0 deletions public/css/swiper.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
.slick-slider .slick-next {
background: #FFD700;
border-top-left-radius: 9999px;
border-bottom-left-radius: 9999px;
padding: 2rem 2.5rem 2rem 2rem;
cursor: pointer;
z-index: 10;
right: 0 !important;
transition: 300ms;
}

.slick-slider .slick-arrow:hover, .slick-slider .slick-arrow:focus {
background: #F95C22;
}

.slick-slider .slick-prev {
background: #FFD700;
border-top-right-radius: 9999px;
border-bottom-right-radius: 9999px;
padding: 2rem 2.5rem 2rem 2rem;
cursor: pointer;
z-index: 10;
left: 0 !important;
transition: 300ms;
}

.slick-slider .slick-next:before {
position: absolute;
left: 25px;
top: 16px;
content: url("/images/arrow-up-icon.svg") !important;
transform: rotate(90deg);
}

.slick-slider .slick-prev:before {
position: absolute;
right: 25px;
top: 16px;
content: url("/images/arrow-up-icon.svg") !important;
transform: rotate(270deg);
}
Binary file added public/images/coding-home/banner_bg.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/images/coding-home/coding_home_card.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/images/digital-girls/banner_bg.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 removed public/images/digital-girls/digital_girls_bg.png
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions public/images/educational-resources/fi_calendar.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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/images/educational-resources/podcasts.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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/images/educational-resources/toolkits.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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/images/educational-resources/webinar.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading