diff --git a/resources/js/Layouts/GuestLayout.vue b/resources/js/Layouts/GuestLayout.vue
index fc8f519..3418eef 100644
--- a/resources/js/Layouts/GuestLayout.vue
+++ b/resources/js/Layouts/GuestLayout.vue
@@ -7,7 +7,7 @@ import { Link } from '@inertiajs/inertia-vue3';
diff --git a/resources/js/Layouts/Header.vue b/resources/js/Layouts/Header.vue
new file mode 100644
index 0000000..b8f1129
--- /dev/null
+++ b/resources/js/Layouts/Header.vue
@@ -0,0 +1,59 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Logout
+
+
+ Login
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/resources/js/Pages/Dashboard.vue b/resources/js/Pages/Dashboard.vue
deleted file mode 100644
index a39b9ae..0000000
--- a/resources/js/Pages/Dashboard.vue
+++ /dev/null
@@ -1,26 +0,0 @@
-
-
-
-
-
-
-
-
- Dashboard
-
-
-
-
-
-
-
- You're logged in!
-
-
-
-
-
-
diff --git a/resources/js/Pages/Members/Achievements.vue b/resources/js/Pages/Members/Achievements.vue
new file mode 100644
index 0000000..6f41f27
--- /dev/null
+++ b/resources/js/Pages/Members/Achievements.vue
@@ -0,0 +1,27 @@
+
+
+
+
+
diff --git a/resources/js/Pages/Members/Courses/Index.vue b/resources/js/Pages/Members/Courses/Index.vue
new file mode 100644
index 0000000..2661542
--- /dev/null
+++ b/resources/js/Pages/Members/Courses/Index.vue
@@ -0,0 +1,30 @@
+
+
+
+
+
diff --git a/resources/js/Pages/Members/Dashboard.vue b/resources/js/Pages/Members/Dashboard.vue
new file mode 100644
index 0000000..5b89fe7
--- /dev/null
+++ b/resources/js/Pages/Members/Dashboard.vue
@@ -0,0 +1,47 @@
+
+
+
+
+
+
+
+
+
+ Profile
+
+
+
+
+ My Courses
+
+
+
+
+ Achievements
+
+
+
+
+
+
+
diff --git a/resources/js/Pages/Members/Profile.vue b/resources/js/Pages/Members/Profile.vue
new file mode 100644
index 0000000..5648d5b
--- /dev/null
+++ b/resources/js/Pages/Members/Profile.vue
@@ -0,0 +1,3 @@
+
+ This is the profile
+
diff --git a/resources/js/Pages/Public/Courses/Index.vue b/resources/js/Pages/Public/Courses/Index.vue
new file mode 100644
index 0000000..4e78866
--- /dev/null
+++ b/resources/js/Pages/Public/Courses/Index.vue
@@ -0,0 +1,21 @@
+
+
+
+
+
diff --git a/resources/js/Pages/Public/Courses/Show.vue b/resources/js/Pages/Public/Courses/Show.vue
new file mode 100644
index 0000000..227771d
--- /dev/null
+++ b/resources/js/Pages/Public/Courses/Show.vue
@@ -0,0 +1,14 @@
+
+
+
+
+
diff --git a/resources/js/Pages/Welcome.vue b/resources/js/Pages/Welcome.vue
index 161e287..3367e9e 100644
--- a/resources/js/Pages/Welcome.vue
+++ b/resources/js/Pages/Welcome.vue
@@ -1,118 +1,5 @@
-
-
-
-
-
-
- Dashboard
-
-
- Log in
-
- Register
-
-
-
-
-
-
-
-
-
-
-
-
-
- Laravel has wonderful, thorough documentation covering every aspect of the framework. Whether you are new to the framework or have previous experience with Laravel, we recommend reading all of the documentation from beginning to end.
-
-
-
-
-
-
-
-
-
- Laracasts offers thousands of video tutorials on Laravel, PHP, and JavaScript development. Check them out, see for yourself, and massively level up your development skills in the process.
-
-
-
-
-
-
-
-
-
- Laravel News is a community driven portal and newsletter aggregating all of the latest and most important news in the Laravel ecosystem, including new package releases and tutorials.
-
-
-
-
-
-
-
-
-
- Laravel's robust library of first-party tools and libraries, such as
Forge ,
Vapor ,
Nova , and
Envoyer help you take your projects to the next level. Pair them with powerful open source libraries like
Cashier ,
Dusk ,
Echo ,
Horizon ,
Sanctum ,
Telescope , and more.
-
-
-
-
-
-
-
-
-
-
- Laravel v{{ laravelVersion }} (PHP v{{ phpVersion }})
-
-
-
+
+ Homepage
diff --git a/routes/web.php b/routes/web.php
index 66c32b3..c1d02d2 100644
--- a/routes/web.php
+++ b/routes/web.php
@@ -2,7 +2,10 @@
use Inertia\Inertia;
use Illuminate\Support\Facades\Route;
-use Illuminate\Foundation\Application;
+use App\Http\Controllers\LogoutController;
+use App\Http\Controllers\Public\IndexCourseController;
+use App\Http\Controllers\Public\ShowCoursesController;
+use App\Http\Controllers\Members\ShowDashboardController;
/*
|--------------------------------------------------------------------------
@@ -16,22 +19,25 @@
*/
Route::get('/', function () {
- return Inertia::render('Welcome', [
- 'canLogin' => Route::has('login'),
- 'canRegister' => Route::has('register'),
- 'laravelVersion' => Application::VERSION,
- 'phpVersion' => PHP_VERSION,
- ]);
+ return Inertia::render('Welcome');
});
-Route::get('/dashboard', function () {
- return Inertia::render('Dashboard');
-})->middleware(['auth', 'verified'])->name('dashboard');
+Route::prefix('/dashboard')->name('dashboard')->group(function () {
+ Route::middleware(['auth'])->group(function () {
+ Route::get('/', ShowDashboardController::class)->name('.dashboard');
+ });
+});
-Route::prefix('/courses')->name('courses')->group(function () {
+Route::get('/logout', [LogoutController::class, 'perform'])->middleware('auth', 'verified');
+
+Route::prefix('/courses')->name('courses.')->group(function () {
+ Route::middleware(['auth'])->group(function () {
+ Route::get('/all', ShowCoursesController::class)->name('course.show');
+ Route::get('/all/{course}/lessons', IndexCourseController::class)->name('course.lessons');
+ });
Route::middleware('auth')->prefix('/{course}/lessons')->name('.lessons')->group(function () {
Route::get('{lesson}', \App\Http\Controllers\Lessons\ShowLessonController::class)->name('.show');
- Route::post('{lesson}/save', \App\Http\Controllers\Lessons\SaveLessonController::class)->name('.save');
+ Route::post('{lesson}/save', \App\Http\Controllers\Lessons\SaveLessonController::class)->name('s.ave');
Route::get('{lesson}/load', \App\Http\Controllers\Lessons\LoadLessonController::class)->name('.load');
});
});
diff --git a/tailwind.config.js b/tailwind.config.js
index 7f06c1a..0446c7c 100644
--- a/tailwind.config.js
+++ b/tailwind.config.js
@@ -3,19 +3,29 @@ const defaultTheme = require('tailwindcss/defaultTheme');
/** @type {import('tailwindcss').Config} */
module.exports = {
content: [
- './vendor/laravel/framework/src/Illuminate/Pagination/resources/views/*.blade.php',
- './storage/framework/views/*.php',
- './resources/views/**/*.blade.php',
- './resources/js/**/*.vue',
+ "./vendor/laravel/framework/src/Illuminate/Pagination/resources/views/*.blade.php",
+ "./storage/framework/views/*.php",
+ "./resources/views/**/*.blade.php",
+ "./resources/js/**/*.vue",
],
theme: {
extend: {
fontFamily: {
- sans: ['Nunito', ...defaultTheme.fontFamily.sans],
+ sans: ["Nunito", ...defaultTheme.fontFamily.sans],
+ },
+ colors: {
+ orange: "#F8590A",
+ card: "#0F1A25",
+ cardText: "#7398BD",
+ defaultTeal: "#2dd4bf",
},
},
},
-
- plugins: [require('@tailwindcss/forms')],
+ variants: {
+ extend: {
+ visibility: ["group-hover"],
+ },
+ },
+ plugins: [require("@tailwindcss/forms")],
};