From e7a05a2b6f5753fb701711b806bf7c36903263e9 Mon Sep 17 00:00:00 2001 From: Seth Sharp Date: Tue, 4 Oct 2022 10:41:02 +1000 Subject: [PATCH 01/36] Course page and Controller --- app/Http/Controllers/ShowCoursesController.php | 18 ++++++++++++++++++ resources/js/Pages/Courses.vue | 14 ++++++++++++++ routes/web.php | 12 +++++++++--- 3 files changed, 41 insertions(+), 3 deletions(-) create mode 100644 app/Http/Controllers/ShowCoursesController.php create mode 100644 resources/js/Pages/Courses.vue diff --git a/app/Http/Controllers/ShowCoursesController.php b/app/Http/Controllers/ShowCoursesController.php new file mode 100644 index 0000000..05731ba --- /dev/null +++ b/app/Http/Controllers/ShowCoursesController.php @@ -0,0 +1,18 @@ + 'Larascape', 'lessons'=>12, 'progress'=> 50] + ]; + return Inertia('Courses', [ + 'courses' => $courses + ]); + } +} diff --git a/resources/js/Pages/Courses.vue b/resources/js/Pages/Courses.vue new file mode 100644 index 0000000..dad4c9c --- /dev/null +++ b/resources/js/Pages/Courses.vue @@ -0,0 +1,14 @@ + + + + + diff --git a/routes/web.php b/routes/web.php index 2f15d0e..e25a6c4 100644 --- a/routes/web.php +++ b/routes/web.php @@ -1,9 +1,9 @@ middleware(['auth', 'verified'])->name('dashboard'); +Route::prefix('courses')->name('courses.')->group(function() { + Route::middleware(['auth'])->group(function() { + Route::get('/', ShowCoursesController::class)->name('courses.show'); + }); +}); + require __DIR__.'/auth.php'; From 7a21130e352809fda5ec27b6e8007ac527000566 Mon Sep 17 00:00:00 2001 From: Seth Sharp Date: Tue, 4 Oct 2022 11:17:58 +1000 Subject: [PATCH 02/36] Authenticated layout and custom background colour and gradient --- resources/js/Components/ApplicationLogo.vue | 7 +- resources/js/Layouts/AuthenticatedLayout.vue | 79 ++++---------------- resources/js/Pages/Courses.vue | 14 ++-- tailwind.config.js | 17 +++-- 4 files changed, 38 insertions(+), 79 deletions(-) diff --git a/resources/js/Components/ApplicationLogo.vue b/resources/js/Components/ApplicationLogo.vue index d503f69..dff1a6c 100644 --- a/resources/js/Components/ApplicationLogo.vue +++ b/resources/js/Components/ApplicationLogo.vue @@ -1,5 +1,6 @@ diff --git a/resources/js/Layouts/AuthenticatedLayout.vue b/resources/js/Layouts/AuthenticatedLayout.vue index 20dfd52..2d1d1a4 100644 --- a/resources/js/Layouts/AuthenticatedLayout.vue +++ b/resources/js/Layouts/AuthenticatedLayout.vue @@ -1,19 +1,12 @@