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.3.0.css">
<link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/bootstrap-icons.1.8.1.css">
<style>
:root {
--primary-color: #4a6bff;
--secondary-color: #f8f9fa;
--hover-color: #e9ecef;
--text-color: #333;
--light-text: #6c757d;
--border-color: #dee2e6;
}
body {
font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
color: var(--text-color);
background-color: #f5f7fb;
}
.sidebar {
background-color: white;
height: 100vh;
position: fixed;
width: 250px;
box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
transition: all 0.3s;
z-index: 1000;
}
.main-content {
margin-left: 250px;
padding: 20px;
transition: all 0.3s;
}
.navbar {
background-color: white;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
padding: 15px 20px;
}
.search-box {
background-color: var(--secondary-color);
border-radius: 20px;
padding: 8px 15px;
border: none;
width: 300px;
}
.user-avatar {
width: 40px;
height: 40px;
border-radius: 50%;
object-fit: cover;
}
.sidebar-menu {
list-style: none;
padding: 0;
}
.sidebar-menu li {
padding: 10px 20px;
border-radius: 8px;
margin: 5px 10px;
cursor: pointer;
transition: all 0.2s;
}
.sidebar-menu li:hover, .sidebar-menu li.active {
background-color: var(--hover-color);
}
.sidebar-menu li i {
margin-right: 10px;
color: var(--light-text);
}
.sidebar-menu li.active i {
color: var(--primary-color);
}
.storage-info {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
border-radius: 10px;
padding: 15px;
margin: 20px 10px;
}
.progress {
height: 6px;
background-color: rgba(255, 255, 255, 0.3);
margin-top: 10px;
}
.progress-bar {
background-color: white;
}
.file-card {
background-color: white;
border-radius: 10px;
padding: 15px;
margin-bottom: 20px;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
transition: all 0.2s;
}
.file-card:hover {
transform: translateY(-3px);
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
.file-icon {
font-size: 40px;
color: var(--primary-color);
margin-bottom: 10px;
}
.file-img {
width: 100%;
height: 120px;
object-fit: cover;
border-radius: 8px;
margin-bottom: 10px;
}
.file-name {
font-weight: 500;
margin-bottom: 5px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.file-meta {
color: var(--light-text);
font-size: 12px;
}
.quick-actions {
background-color: white;
border-radius: 10px;
padding: 15px;
margin-bottom: 20px;
}
.action-btn {
display: flex;
flex-direction: column;
align-items: center;
justify-content:.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0