-
Notifications
You must be signed in to change notification settings - Fork 519
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
50497f7
commit 5ab535e
Showing
2 changed files
with
108 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |