vue3实现简洁美观的网盘云盘文件管理系统pc端UI原型图代码
代码语言:html
所属分类:布局界面
代码描述:vue3实现简洁美观的网盘云盘文件管理系统pc端UI原型图代码
代码标签: vue 简洁 美观 网盘 云盘 文件 管理 系统 pc 端 UI 原型图 代码
下面为部分代码预览,完整代码请点击下载或在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>
<script type="text/javascript" src="//repo.bfw.wiki/bfwrepo/js/vue.global.prod.3.5.17.js"></script>
<script type="text/javascript" src="//repo.bfw.wiki/bfwrepo/js/echarts.5.5.0.js"></script>
<style>
:root {
--primary-color: #0d6efd;
--primary-color-light: #e7f1ff;
--secondary-color: #6c757d;
--bg-color: #f8f9fa;
--sidebar-bg: #ffffff;
--font-color: #343a40;
--border-color: #dee2e6;
--header-height: 60px;
--sidebar-width: 260px;
--border-radius: 8px;
--box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
*, *::before, *::after {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
color: var(--font-color);
background-color: var(--bg-color);
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
#app {
width: 100vw;
height: 100vh;
overflow: hidden;
}
/* Transition */
.fade-enter-active, .fade-leave-active {
transition: opacity 0.3s ease;
}
.fade-enter-from, .fade-leave-to {
opacity: 0;
}
/* --- Login Page --- */
.login-page {
display: flex;
justify-content: center;
align-items: center;
width: 100%;
height: 100%;
background: url('https://images.unsplash.com/photo-1477346611705-65d1883cee1e?q=80&w=2070&auto=format&fit=crop') no-repeat center center;
background-size: cover;
}
.login-box {
width: 400px;
padding: 40px;
background: rgba(255, 255, 255, 0.9);
backdrop-filter: blur(10px);
border-radius: var(--border-radius);
box-shadow: var(--box-shadow);
text-align: center;
}
.login-box h1 {
margin-bottom: 30px;
font-size: 24px;
}
.login-box h1 .icon {
display: inline-block;
vertical-align: middle;
margin-right: 10px;
width: 32px;
height: 32px;
}
.input-group {
margin-bottom: 20px;
text-align: left;
}
.input-group label {
display: block;
margin-bottom: 8px;
font-weight: 600;
}
.input-group input {
width: 100%;
padding: 12px 15px;
border: 1px solid var(--border-color);
border-radius: var(--border-radius);
font-size: 16px;
transition: border-color 0.2s;
}
.input-group input:focus {
outline: none;
border-color: var(--primary-color);
box-shadow: 0 0 0 3px var(--primary-color-light);
}
.btn {
display: inline-block;
padding: 12px 20px;
border: none;
border-radius: var(--border-radius);
font-size: 16px;
font-weight: 600;
cursor: pointer;
transition: all 0.2s;
text-decoration: none;
color: #fff;
}
.btn-primary {
background-color: var(--primary-color);
width: 100%;
}
.btn-primary:hover {
opacity: 0.9;
}
.btn-secondary {
background-color: var(--secondary-color);
}
.btn-danger {
background-color: #dc3545;
}
.btn-icon {
background: none;
border: none;
cursor: pointer;
padding: 5px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
}
.btn-icon:hover {
background-color: #f0f0f0;
}
.btn-icon svg {
width: 18px;
height: 18px;
fill: var(--secondary-color);
}
/* --- Main Layout --- */
.main-layout {
display: flex;
width: 100%;
height: 100%;
}
.sidebar {
width: var(--sidebar-width);
height: 100vh;
background-color: var(--sidebar-bg);
border-right: 1px solid var(--border-color);
display: flex;
flex-direction: column;
padding: 20px;
flex-shrink: 0;
}
.sidebar .logo {
display: flex;
align-items: center;
padding: 0 10px 20px 10px;
margin-bottom: 20px;
border-bottom: 1px solid var(--border-color);
}
.sidebar .logo .icon {
width: 32px;
height: 32px;
margin-right: 12px;
}
.sidebar .logo h1 {
font-size: 20px;
font-weight: 600;
}
.nav {
flex-grow: 1;
}
.nav-item {
display: flex;
align-items: center;
padding: 12px 15px;
margin-bottom: 8px;
border-radius: var(--border-radius);
cursor: pointer;
transition: background-color 0.2s, color 0.2s;
font-weight: 500;
color: var(--secondary-color);
}
.nav-item:hover {
background-color: var(--bg-color);
}
.nav-item.active {
background-color: var(--primary-color-light);
color: var(--primary-color);
font-weight: 600;
}
.nav-item.active svg {
fill: var(--primary-color);
}
.nav-item .icon {
width: 20px;
height: 20px;
margin-right: 15px;
fill: var(--secondary-color);
transition: fill 0.2s;
}
.user-profile {
margin-top: auto;
display: flex;
align-items: center;
padding: 15px;
background-color: var(--bg-color);
border-radius: var(--border-radius);
}
.user-profile img {
width: 40px;
height: 40px;
border-radius: 50%;
margin-right: 15px;
object-fit: cover;
}
.user-info span {
display: block;
}
.user-info .username {
font-weight: 600;
}
.user-info .logout {
font-size: 12px;
color: var(--primary-color);
cursor: pointer;
text-decoration: underline;
}
.content-wrapper {
flex-grow: 1;
height: 100vh;
display: flex;
flex-direction: column;
overflow: hidden;
}
.header {
height: var(--header-height);
display: flex;
align-items: center;
padding: 0 30px;
background-color: #fff;
border-bottom: 1px solid var(--border-color);
flex-shrink: 0;
}
.header h2 {
font-size: 22px;
font-weight: 600;
}
.main-content {
flex-grow: 1;
padding: 30px;
overflow-y: auto;
}
/* --- Files Page --- */
.files-page .actions-bar {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 20px;
}
.actions-bar .left-actions .btn {
margin-right: 10px;
}
.left-actions{
display: flex;
width: 270px;
height: 50px;
justify-content: space-between;
}
.actions-bar .search-box {
position: relative;
width: 300px;
}
.actions-bar .search-box input {
width: 100%;
padding: 10px 15px 10px 40px;
border: 1px solid var(--border-color);
border-radius: var(--border-radius);
font-size: 14px;
}
.actions-bar .search-box .icon {
position: absolute;
left: 12px;
top: 50%;
transform: translateY(-50%);
width: 18px;
height: 18px;
fill: var(--secondary-color);
}
.breadcrumb {
display: flex;
align-items: center;
margin-bottom: 20px;
font-size: 14px;
color: var(--secondary-color);
}
.breadcrumb span {
cursor: pointer;
}
.breadcrumb span:hover {
color: v.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0