bootstrap简洁智能家居物联网后台仪表盘代码
代码语言:html
所属分类:布局界面
代码描述:bootstrap简洁智能家居物联网后台仪表盘代码
代码标签: bootstrap 简洁 智能 家居 后台 仪表盘 代码 物联网
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>智能家居仪表盘</title>
<link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/bootstrap.5.2.0.css">
<!-- Bootstrap Icons -->
<link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/bootstrap-icons.1.8.1.css">
<!-- ECharts -->
<script type="text/javascript" src="//repo.bfw.wiki/bfwrepo/js/echarts.js"></script>
<style>
:root {
--primary-purple: #7B61FF;
--light-purple: #F2F0FF;
--body-bg: #F8F9FA;
--card-bg: #FFFFFF;
--text-dark: #212529;
--text-muted-light: #6C757D;
--border-color-light: #E9ECEF;
--yellow-accent: #FFDA6A;
--orange-accent: #FF8C6A;
--blue-accent: #6AC6FF;
}
body {
font-family: 'Inter', sans-serif;
background-color: var(--body-bg);
color: var(--text-dark);
display: flex;
min-height: 100vh;
margin: 0;
}
.sidebar {
width: 80px;
background-color: var(--primary-purple);
padding: 20px 0;
display: flex;
flex-direction: column;
align-items: center;
border-top-right-radius: 20px;
border-bottom-right-radius: 20px;
}
.sidebar .nav-link {
color: rgba(255, 255, 255, 0.7);
padding: 15px;
margin-bottom: 10px;
border-radius: 10px;
font-size: 1.5rem;
transition: all 0.3s ease;
}
.sidebar .nav-link.active,
.sidebar .nav-link:hover {
background-color: rgba(255, 255, 255, 0.2);
color: #ffffff;
}
.sidebar .nav-link.active {
background-color: #ffffff;
color: var(--primary-purple);
margin-left: -10px; /* Make it pop out */
margin-right: 10px;
border-top-left-radius: 15px;
border-bottom-left-radius: 15px;
border-top-right-radius: 0;
border-bottom-right-radius: 0;
box-shadow: -5px 0px 10px rgba(0,0,0,0.1);
}
.main-wrapper {
flex: 1;
display: flex;
flex-direction: column;
}
.top-bar {
padding: 20px 30px;
display: flex;
justify-content: space-between;
align-items: center;
background-color: var(--body-bg);
}
.search-bar {
position: relative;
}
.search-bar input {
background-color: var(--card-bg);
border: 1px solid var(--border-color-light);
border-radius: 10px;
padding: 10px 15px 10px 40px;
width: 300px;
font-size: 0.9rem;
}
.search-bar i {
position: absolute;
left: 15px;
top: 50%;
transform: translateY(-50%);
color: var(--text-muted-light);
}
.user-actions img {
width: 40px;
height: 40px;
border-radius: 50%;
margin-left: 15px;
}
.user-actions .icon-btn {
font-size: 1.3rem;
color: var(--text-muted-light);
margin-left: 20px;
background: var(--card-bg);
padding: 8px;
border-radius: 8px;
border: 1px solid var(--border-color-light);
}
.content-area {
flex: 1;
padding: 0 30px 30px 30px;
display: flex;
gap: 30px;
}
.main-content {
flex: 3;
overflow-y: auto;
}
.right-sidebar {
flex: 1;
background-color: var(--card-bg);
border-radius: 20px;
padding: 25px;
box-shadow: 0 4px 20px rgba(0,0,0,0.05);
overflow-y: auto;
max-height: calc(100vh - 100px); /* Adjust based on top-bar height */
}
.welcome-banner {
background-color: var(--light-purple);
border-radius: 20px;
padding: 30px;
margin-bottom: 30px;
display: flex;
justify-content: space-between;
align-items: center;
position: relative;
overflow: hidden;
}
.welcome-banner::before { /* Decorative element */
content: '';
position: absolute;
bottom: -20px;
right: 120px;
width: 150px;
height: 100px;
background: #FFDA6A60;
border-radius: 50%;
filter: blur(20px);
}
.welcome-banner::after { /* Decorative element */
content: '';
position: absolute;
top: -20px;
right: 20px;
width: 100px;
height: 100px;
background: #FF8C6A30;
border-radius: 50%;
filter: blur(15px);
}
.welcome-banner h2 {
font-size: 1.8rem;
font-weight: 600;
margin-bottom: 5px;
}
.welcome-banner p {
font-size: 0.9rem;
color: var(--text-muted-light);
margin-bottom: 15px;
max-width: 300px;
}
.welcome-banner .weather-info {
font-size: 0.9rem;
margin-bottom: 5px;
}
.welcome-banner .weather-info i {
margin-right: 8px;
color: var(--primary-purple);
}
.welcome-banner img.illustration {
max-height: 150px;
z-index: 1;
}
.section-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 20px;
}
.section-header h3 {
font-size: 1.3rem;
font-weight: 600;
}
.section-header .dropdown .btn {
background-color: var(--card-bg);
border: 1px solid var(--border-color-light);
color: var(--text-dark);
font-size: 0.9rem;
}
.device-controls {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
gap: 20px;
margin-bottom: 30px;
}
.device-card {
background-color: var(--card-bg);
border-radius: 15px;
padding: 20px;
.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0