上传文件至 webfile
This commit is contained in:
176
webfile/index.html
Normal file
176
webfile/index.html
Normal file
@@ -0,0 +1,176 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Solsynth network</title>
|
||||
<style>
|
||||
* {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
box-sizing: border-box;
|
||||
font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
|
||||
}
|
||||
|
||||
body {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
height: 100vh;
|
||||
background-color: #f3f3f3;
|
||||
color: #333;
|
||||
}
|
||||
|
||||
/* 顶部导航栏 */
|
||||
.title-bar {
|
||||
height: 48px;
|
||||
background-color: #0078d7;
|
||||
color: white;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding: 0 16px;
|
||||
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
|
||||
z-index: 10;
|
||||
}
|
||||
|
||||
.title-bar h1 {
|
||||
font-size: 18px;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.menu-toggle {
|
||||
display: none;
|
||||
background: none;
|
||||
border: none;
|
||||
color: white;
|
||||
font-size: 20px;
|
||||
margin-right: 16px;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
/* 主内容区域 */
|
||||
.main-container {
|
||||
display: flex;
|
||||
flex: 1;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
/* 侧边栏 */
|
||||
.sidebar {
|
||||
width: 220px;
|
||||
background-color: white;
|
||||
border-right: 1px solid #e1e1e1;
|
||||
transition: transform 0.3s ease;
|
||||
overflow-y: auto;
|
||||
z-index: 5;
|
||||
}
|
||||
|
||||
.sidebar-header {
|
||||
padding: 16px;
|
||||
border-bottom: 1px solid #e1e1e1;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.sidebar-menu {
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
.sidebar-menu li {
|
||||
padding: 12px 16px;
|
||||
cursor: pointer;
|
||||
transition: background-color 0.2s;
|
||||
}
|
||||
|
||||
.sidebar-menu li:hover {
|
||||
background-color: #f5f5f5;
|
||||
}
|
||||
|
||||
.sidebar-menu li.active {
|
||||
background-color: #e5f1fb;
|
||||
color: #0078d7;
|
||||
border-left: 3px solid #0078d7;
|
||||
}
|
||||
|
||||
/* 主内容区 */
|
||||
.content {
|
||||
flex: 1;
|
||||
padding: 24px;
|
||||
overflow-y: auto;
|
||||
background-color: white;
|
||||
}
|
||||
|
||||
.content h2 {
|
||||
margin-bottom: 16px;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.card {
|
||||
background-color: #f9f9f9;
|
||||
border-radius: 4px;
|
||||
padding: 16px;
|
||||
margin-bottom: 16px;
|
||||
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
|
||||
/* 响应式设计 */
|
||||
@media (max-width: 768px) {
|
||||
.menu-toggle {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.sidebar {
|
||||
position: absolute;
|
||||
height: calc(100vh - 48px);
|
||||
transform: translateX(-100%);
|
||||
}
|
||||
|
||||
.sidebar.open {
|
||||
transform: translateX(0);
|
||||
}
|
||||
|
||||
.content {
|
||||
padding: 16px;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="title-bar">
|
||||
<button class="menu-toggle" id="menuToggle">☰</button>
|
||||
<h1>Solsynth network</h1>
|
||||
</div>
|
||||
|
||||
<div class="main-container">
|
||||
<div class="sidebar" id="sidebar">
|
||||
<div class="sidebar-header">菜单</div>
|
||||
<ul class="sidebar-menu">
|
||||
<li class="active">首页</li>
|
||||
<li>聊天</li>
|
||||
<li>领域</li>
|
||||
<li>设置</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="content">
|
||||
<h2>欢迎使用</h2>
|
||||
<div class="card">
|
||||
<h3>卡片标题</h3>
|
||||
<p>这是一个WinUI风格的卡片内容区域。您可以在这里放置各种内容。</p>
|
||||
</div>
|
||||
<div class="card">
|
||||
<h3>另一个卡片</h3>
|
||||
<p>响应式设计使得在窄屏设备上侧边栏可以隐藏。</p>
|
||||
</div>
|
||||
<div class="card">
|
||||
<h3>更多内容</h3>
|
||||
<p>主内容区域可以滚动,侧边栏在移动设备上会覆盖内容。</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
document.getElementById('menuToggle').addEventListener('click', function() {
|
||||
document.getElementById('sidebar').classList.toggle('open');
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
Reference in New Issue
Block a user