gpt-4o-mini-2024-07-18· OpenAI
WildChat-4.8M (AI2)
create HTML based webpage which looks like dashboard.
- User
create HTML based webpage which looks like dashboard.
- Assistant
create HTML based webpage which looks like dashboard.
Creating a basic HTML dashboard can be accomplished with a combination of HTML, CSS, and a little bit of JavaScript. Below is an example of a simple HTML web page that resembles a dashboard. This example includes a navigation bar, a header, and several widget-like sections where you can display different types of data.
You can copy the following code and save it as dashboard.html. After that, open it in any web browser to see the layout.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Dashboard</title>
<style>
body {
font-family: Arial, sans-serif;
margin: 0;
background-color: #f4f4f4;
}
.navbar {
background-color: #333;
color: white;
padding: 15px;
text-align: center;
}
.container {
display: flex;
padding: 20px;
}
.sidebar {
min-width: 200px;
background-color: #444;
color: white;
padding: 15px;
height: calc(100vh - 50px);
}
.sidebar a {
color: white;
text-decoration: none;
display: block;
padding: 10px;
border-bottom: 1px solid #555;
}
.sidebar a:hover {
background-color: #555;
}
.content {
flex: 1;
padding: 20px;
background-color: #fff;
border-left: 1px solid #ccc;
}
.card {
background-color: #fff;
border-radius: 5px;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
margin-bottom: 20px;
padding: 20px;
}
h2 {
color: #333;
}
footer {
text-align: center;
padding: 10px;
background-color: #333;
color: white;
position: relative;
bottom: 0;
width: 100%;
}
</style>
</head>
<body>
<div class="navbar">
<h1>Dashboard</h1>
</div>
<div class="container">
<div class="sidebar">
<h3>Menu</h3>
<a href="#">Overview</a>
<a href="#">Reports</a>
<a href="#">Analytics</a>
<a href="#">Settings</a>
<a href="#">Logout</a>
</div>
<div class="content">
<div class="card">
<h2>Sales Overview</h2>
<p>Total Sales: $50,000</p>
<p>Monthly Target: $60,000</p>
<p>Growth: 20%</p>
</div>
<div class="card">
<h2>User Activity</h2>
<p>Active Users: 150</p>
<p>New Signups: 30</p>
<p>Growth Rate: 10%</p>
</div>
<div class="card">
<h2>Site Performance</h2>
<p>Load Time: 2.5s</p>
<p>Uptime: 99.9%</p>
</div>
</div>
</div>
<footer>
© 2023 Your Company Name. All rights reserved.
</footer>
</body>
</html>
You can enhance this dashboard by:
This basic structure offers a great foundation to build upon!
Not yet included in a published release.