Certainly! Below is a simple yet fully advanced HTML file for a personal dashboard with dark mode. This example includes a navigation bar, a main content area, and some basic styling to get you started. You can expand upon this by adding more features, charts, and data as needed.
html Copy code
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Personal Dashboard</title>
<style>
body {
font-family: Arial, sans-serif;
background-color: #121212;
color: #ffffff;
margin: 0;
padding: 0;
}
.navbar {
background-color: #1e1e1e;
padding: 10px 20px;
display: flex;
justify-content: space-between;
align-items: center;
}
.navbar h1 {
margin: 0;
}
.navbar a {
color: #ffffff;
text-decoration: none;
margin-left: 20px;
}
.main-content {
padding: 20px;
}
.card {
background-color: #1e1e1e;
padding: 20px;
margin-bottom: 20px;
border-radius: 8px;
}
.card h2 {
margin-top: 0;
}
</style>
</head>
<body>
<div class="navbar">
<h1>Personal Dashboard</h1>
<nav>
<a href="#">Home</a>
<a href="#">Profile</a>
<a href="#">Settings</a>
<a href="#">Logout</a>
</nav>
</div>
<div class="main-content">
<div class="card">
<h2>Overview</h2>
<p>Welcome to your personal dashboard. Here you can manage your profile, view your activity, and more.</p>
</div>
<div class="card">
<h2>Recent Activity</h2>
<p>No recent activity.</p>
</div>
<div class="card">
<h2>Statistics</h2>
<p>Coming soon...</p>
</div>
</div>
</body>
</html>
Explanation:
HTML Structure :
The <head> section includes the title and some basic styles.
The <body> contains a navigation bar (<div class="navbar">) and a main content area (<div class="main-content">).
Styles :
The body has a dark background (#121212) and white text.
The .navbar has a slightly darker background (#1e1e1e) and is styled to hold the title and navigation links.
The .main-content holds the main dashboard cards.
Each .card has a dark background, padding, and rounded corners.
Navigation :
Simple navigation links are provided for Home, Profile, Settings, and Logout.
Content :
Three sample cards are included for Overview, Recent Activity, and Statistics.
You can expand this dashboard by adding more complex components, integrating with backend services, and using JavaScript for dynamic content.