diff --git a/resources/css/admin-dashboard.css b/resources/css/admin-dashboard.css new file mode 100644 index 0000000..69b0310 --- /dev/null +++ b/resources/css/admin-dashboard.css @@ -0,0 +1,6 @@ +*,html,body{ + margin: 0; + padding: 0; + box-sizing: border-box; + font-family: Poppins; +} diff --git a/resources/css/side-nav.css b/resources/css/side-nav.css new file mode 100644 index 0000000..9100b53 --- /dev/null +++ b/resources/css/side-nav.css @@ -0,0 +1,42 @@ +nav{ + padding: 10px; + width: 17%; + background: rgb(61,81,181); + background: linear-gradient(313deg, rgba(61,81,181,1) 0%, rgba(77,103,255,1) 52%, rgba(92,137,180,1) 100%); + height: 100vh; + position: fixed; + color: white; +} + +.brand-place{ + font-size: 30px; + align-items: center; + text-align: center; + border-bottom: 2px white solid; + font-weight: bold; + letter-spacing: 3px; +} + +.activities{ + height: 90%; + padding: 10px; + font-size: 24px; + margin-top: 10px; + letter-spacing: 2px; + display: flex; + flex-direction: column; + justify-content: space-between; +} + + +ul>li{ + list-style: none; + margin-top: 10px; + padding: 10px; +} + +ul>li:hover{ + cursor: pointer; + background-color: #000; + opacity: 60%; +} \ No newline at end of file diff --git a/resources/views/backend/index.blade.php b/resources/views/backend/index.blade.php new file mode 100644 index 0000000..b8572a7 --- /dev/null +++ b/resources/views/backend/index.blade.php @@ -0,0 +1,21 @@ + + + + + + + + + + @vite(['resources/css/admin-dashboard.css', 'resources/css/side-nav.css']) + Dashboard + + +
+
+ @include('commonComponents.side-nav') +
+
+
+ + \ No newline at end of file diff --git a/resources/views/commonComponents/side-nav.blade.php b/resources/views/commonComponents/side-nav.blade.php new file mode 100644 index 0000000..5426e4a --- /dev/null +++ b/resources/views/commonComponents/side-nav.blade.php @@ -0,0 +1,25 @@ + \ No newline at end of file diff --git a/routes/web.php b/routes/web.php index 2757070..390df0a 100644 --- a/routes/web.php +++ b/routes/web.php @@ -20,9 +20,14 @@ //admin routes + //admin login Route::get('admin-login', [AdminDataDetailsController::class, 'showLoginForm']); Route::post('admin-validate', [AdminDataDetailsController::class, 'login']); + + + //admin dashboard Route::get('dashboard', function (){ - return "login"; + return view('backend.index'); }); +