<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Modern Dashboard</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<div class="container">
<aside class="sidebar">
<div class="sidebar-header">
<h3>Dashboard</h3>
</div>
<ul class="menu">
<li><a href="#">Home</a></li>
<li><a href="#">Profile</a></li>
<li><a href="#">Messages</a></li>
<li><a href="#">Settings</a></li>
<li><a href="#">Logout</a></li>
</ul>
</aside>
<main class="main-content">
<header class="top-nav">
<input type="text" class="search" placeholder="Search...">
<div class="user-profile">
<img src="https://codezillaye.com/img/Content/avatar/avatar.png" alt="User">
</div>
</header>
<div class="content">
<section class="widgets">
<div class="widget">
<h4>Widget 1</h4>
<p>Content for widget 1</p>
</div>
<div class="widget">
<h4>Widget 2</h4>
<p>Content for widget 2</p>
</div>
<div class="widget">
<h4>Widget 3</h4>
<p>Content for widget 3</p>
</div>
<div class="widget">
<h4>Widget 4</h4>
<p>Content for widget 4</p>
</div>
</section>
<section class="charts">
<div class="chart">
<h4>Chart 1</h4>
<div class="chart-content">Chart content here</div>
</div>
<div class="chart">
<h4>Chart 2</h4>
<div class="chart-content">Chart content here</div>
</div>
</section>
</div>
</main>
</div>
</body>
</html>
* {
box-sizing: border-box;
margin: 0;
padding: 0;
font-family: 'Arial', sans-serif;
}
body {
background: #f4f4f4;
color: #333;
}
.container {
display: flex;
}
.sidebar {
width: 250px;
background: #2c3e50;
color: #ecf0f1;
min-height: 100vh;
padding-top: 20px;
}
.sidebar-header {
text-align: center;
padding: 10px;
background: #1abc9c;
}
.sidebar h3 {
margin: 0;
font-size: 24px;
}
.menu {
list-style-type: none;
padding: 0;
}
.menu li {
padding: 15px 20px;
}
.menu li a {
color: #ecf0f1;
text-decoration: none;
display: block;
}
.menu li:hover {
background: #16a085;
}
.main-content {
flex: 1;
padding: 20px;
}
.top-nav {
display: flex;
justify-content: space-between;
align-items: center;
background: #ecf0f1;
padding: 10px 20px;
border-bottom: 1px solid #bdc3c7;
}
.search {
padding: 10px;
width: 300px;
border: 1px solid #bdc3c7;
border-radius: 5px;
}
.user-profile img {
width: 40px;
height: 40px;
border-radius: 50%;
}
.content {
margin-top: 20px;
}
.widgets {
display: flex;
justify-content: space-between;
margin-bottom: 20px;
}
.widget {
background: #ecf0f1;
padding: 20px;
border-radius: 5px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
width: 24%;
text-align: center;
}
.charts {
display: flex;
justify-content: space-between;
}
.chart {
background: #ecf0f1;
padding: 20px;
border-radius: 5px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
width: 48%;
text-align: center;
}
.chart-content {
height: 200px;
background: #bdc3c7;
margin-top: 20px;
border-radius: 5px;
}