Skip to content

Commit

Permalink
admin dashboard UI: WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
Slymee committed Dec 11, 2023
1 parent 811b439 commit 88fa8cc
Show file tree
Hide file tree
Showing 5 changed files with 100 additions and 1 deletion.
6 changes: 6 additions & 0 deletions resources/css/admin-dashboard.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
*,html,body{
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: Poppins;
}
42 changes: 42 additions & 0 deletions resources/css/side-nav.css
Original file line number Diff line number Diff line change
@@ -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%;
}
21 changes: 21 additions & 0 deletions resources/views/backend/index.blade.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.0-2/css/fontawesome.min.css" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.0-2/css/all.min.css" />
<link href='https://fonts.googleapis.com/css?family=Poppins' rel='stylesheet'>
@vite(['resources/css/admin-dashboard.css', 'resources/css/side-nav.css'])
<title>Dashboard</title>
</head>
<body>
<section>
<div class="side-nav">
@include('commonComponents.side-nav')
</div>
<div></div>
</section>
</body>
</html>
25 changes: 25 additions & 0 deletions resources/views/commonComponents/side-nav.blade.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<nav>
<div class="brand-place">
<span>Brand</span>
</div>

<div class="activities">
<div class="navigation">
<ul>
<li><i class="fa-solid fa-layer-group"></i></i> Category</li>
<li><i class="fa-solid fa-layer-group"></i></i> Sub-category</li>
<li><i class="fa-solid fa-layer-group"></i> Product</li>
<li><i class="fa-solid fa-layer-group"></i></i> Orders</li>
<li><i class="fa-solid fa-layer-group"></i></i> Category</li>

</ul>
</div>
<div class="utilities">
<ul>
<li><i class="fa-solid fa-layer-group"></i></i> Admins</li>
<li><i class="fa-solid fa-layer-group"></i></i> Users</li>
<li><i class="fa-solid fa-layer-group"></i></i> Logout</li>
</ul>
</div>
</div>
</nav>
7 changes: 6 additions & 1 deletion routes/web.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
});


0 comments on commit 88fa8cc

Please sign in to comment.