Skip to content

Commit

Permalink
dashboard added
Browse files Browse the repository at this point in the history
  • Loading branch information
Ansh101112 committed Jul 18, 2024
1 parent 50497f7 commit 5ab535e
Show file tree
Hide file tree
Showing 2 changed files with 108 additions and 0 deletions.
70 changes: 70 additions & 0 deletions dashboard/styles.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
display: flex;
height: 100vh;
background-color: #f4f4f4;
}

.container {
display: flex;
width: 100%;
}

.sidebar {
width: 250px;
background-color: #2874f0;
color: white;
padding: 15px;
box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
}

.sidebar h2 {
margin-top: 0;
}

.sidebar ul {
list-style: none;
padding: 0;
}

.sidebar ul li {
margin: 15px 0;
}

.sidebar ul li a {
color: white;
text-decoration: none;
display: block;
}

.sidebar ul li a:hover {
text-decoration: underline;
}

.main-content {
flex: 1;
padding: 20px;
background-color: white;
}

header {
border-bottom: 1px solid #ddd;
padding-bottom: 10px;
margin-bottom: 20px;
}

.orders {
display: flex;
flex-wrap: wrap;
}

.order {
background-color: #f9f9f9;
border: 1px solid #ddd;
padding: 10px;
margin: 10px;
flex: 1 0 30%;
box-sizing: border-box;
}
38 changes: 38 additions & 0 deletions dashboard/userdashboard.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>User Dashboard</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<div class="container">
<div class="sidebar">
<h2>Dashboard</h2>
<ul>
<li><a href="#">Home</a></li>
<li><a href="#">Profile</a></li>
<li><a href="#">Orders</a></li>
<li><a href="#">Wishlist</a></li>
<li><a href="#">Settings</a></li>
<li><a href="#">Logout</a></li>
</ul>
</div>
<div class="main-content">
<header>
<h1>Welcome, User</h1>
</header>
<div class="content">
<h2>Recent Orders</h2>
<div class="orders">
<div class="order">Order 1</div>
<div class="order">Order 2</div>
<div class="order">Order 3</div>
</div>
</div>
</div>
</div>
<script src="script.js"></script>
</body>
</html>

0 comments on commit 5ab535e

Please sign in to comment.