forked from ProjectWIND/ProjectWIND
webui更新:account&about
This commit is contained in:
parent
d0b8ebde66
commit
469e75c1af
126
webui/account.css
Normal file
126
webui/account.css
Normal file
@ -0,0 +1,126 @@
|
||||
header {
|
||||
display: flex;
|
||||
align-items: flex-start; /* 让内容在垂直方向上对齐到顶部 */
|
||||
padding: 0; /* 清除默认的内边距 */
|
||||
margin: 0; /* 清除默认的外边距 */
|
||||
}
|
||||
|
||||
/* 使h1居左上角 */
|
||||
header h1 {
|
||||
text-align: left; /* 确保文字左对齐 */
|
||||
}
|
||||
|
||||
/* 自定义 "点我添加一个" 链接的样式 */
|
||||
.account-section a {
|
||||
color: #007bff;
|
||||
text-decoration: none;
|
||||
font-weight: bold;
|
||||
transition: color 0.3s ease;
|
||||
}
|
||||
|
||||
.account-section a:hover {
|
||||
color: #0056b3;
|
||||
}
|
||||
|
||||
/* 添加按钮的专属样式 */
|
||||
.add-button {
|
||||
position: fixed;
|
||||
bottom: 20px;
|
||||
right: 20px;
|
||||
width: 60px;
|
||||
height: 60px;
|
||||
border-radius: 50%;
|
||||
background-color: #28a745;
|
||||
color: white;
|
||||
font-size: 24px;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
border: none;
|
||||
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
|
||||
cursor: pointer;
|
||||
transition: background-color 0.3s ease, transform 0.2s ease;
|
||||
}
|
||||
|
||||
.add-button:hover {
|
||||
background-color: #218838;
|
||||
transform: scale(1.1);
|
||||
}
|
||||
|
||||
/* 弹窗样式 */
|
||||
.modal {
|
||||
position: fixed; /* 弹窗始终固定在屏幕上 */
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%; /* 覆盖整个屏幕宽度 */
|
||||
height: 100%; /* 覆盖整个屏幕高度 */
|
||||
background-color: rgba(0, 0, 0, 0.5); /* 半透明背景 */
|
||||
display: flex; /* 使用 flexbox 布局 */
|
||||
justify-content: center; /* 水平居中 */
|
||||
align-items: center; /* 垂直居中 */
|
||||
z-index: 1000; /* 确保弹窗位于最顶层 */
|
||||
}
|
||||
|
||||
.modal-content {
|
||||
position: fixed; /* 让弹窗固定在屏幕上 */
|
||||
top: 50%; /* 垂直居中 */
|
||||
left: 50%; /* 水平居中 */
|
||||
transform: translate(-50%, -50%); /* 偏移自身宽高的 50% 达到真正居中 */
|
||||
background: #fff; /* 背景为白色 */
|
||||
padding: 20px; /* 内边距 */
|
||||
border-radius: 5px; /* 圆角 */
|
||||
width: 100%;
|
||||
max-width: 400px; /* 最大宽度 */
|
||||
box-sizing: border-box; /* 包括 padding 的总宽度 */
|
||||
text-align: left; /* 文本左对齐 */
|
||||
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* 添加轻微的阴影效果 */
|
||||
z-index: 1001; /* 确保弹窗内容在遮罩层上方 */
|
||||
}
|
||||
|
||||
.modal-content h2 {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
.modal-content label {
|
||||
display: block;
|
||||
margin: 10px 0 5px;
|
||||
}
|
||||
|
||||
.modal-content input,
|
||||
.modal-content select {
|
||||
width: 100%;
|
||||
padding: 8px;
|
||||
margin-bottom: 10px;
|
||||
border: 1px solid #ccc;
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
.form-actions {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
.form-actions button {
|
||||
padding: 8px 12px;
|
||||
border: none;
|
||||
border-radius: 4px;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
#cancel-button {
|
||||
background-color: #ccc;
|
||||
color: #000;
|
||||
}
|
||||
|
||||
#cancel-button:hover {
|
||||
background-color: #aaa;
|
||||
}
|
||||
|
||||
form button[type="submit"] {
|
||||
background-color: #28a745;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
form button[type="submit"]:hover {
|
||||
background-color: #218838;
|
||||
}
|
85
webui/account.html
Normal file
85
webui/account.html
Normal file
@ -0,0 +1,85 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>账号设置</title>
|
||||
<link rel="stylesheet" href="styles.css">
|
||||
<link rel="stylesheet" href="account.css">
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
<!-- 左侧导航栏 -->
|
||||
<aside class="sidebar">
|
||||
<ul>
|
||||
<li>日志</li>
|
||||
<li><a href="account.html">账号设置</a></li>
|
||||
<li>自定义文字</li>
|
||||
<li>扩展功能</li>
|
||||
<li>综合设置</li>
|
||||
<li>辅助工具</li>
|
||||
<li><a href="index.html">关于</a></li>
|
||||
</ul>
|
||||
</aside>
|
||||
|
||||
<!-- 主内容区 -->
|
||||
<main class="content">
|
||||
<header>
|
||||
<h1>账号设置</h1>
|
||||
</header>
|
||||
<section class="account-section">
|
||||
<p id="no-account-msg">似乎还没有账号,<a href="#" id="add-link">点我添加一个</a></p>
|
||||
</section>
|
||||
<footer>
|
||||
<button class="add-button" id="add-button">+</button>
|
||||
</footer>
|
||||
</main>
|
||||
</div>
|
||||
|
||||
<!-- 添加账号弹窗 -->
|
||||
<div id="add-account-modal" class="modal" style="display: none;">
|
||||
<div class="modal-content">
|
||||
<h2>账号登录</h2>
|
||||
<form id="account-form">
|
||||
<label for="account-type">账号类型</label>
|
||||
<select id="account-type" name="account-type">
|
||||
<option value="qq">QQ(内置客户端)</option>
|
||||
<option value="weixin">微信</option>
|
||||
<option value="email">电子邮件</option>
|
||||
</select>
|
||||
<label for="account">账号</label>
|
||||
<input type="text" id="account" name="account" required>
|
||||
<div class="form-actions">
|
||||
<button type="button" id="cancel-button">取消</button>
|
||||
<button type="submit">添加</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
// 打开弹窗
|
||||
function openModal() {
|
||||
document.getElementById('add-account-modal').style.display = 'block';
|
||||
}
|
||||
|
||||
// 关闭弹窗
|
||||
function closeModal() {
|
||||
document.getElementById('add-account-modal').style.display = 'none';
|
||||
}
|
||||
|
||||
// 添加账号功能
|
||||
document.getElementById('account-form').addEventListener('submit', function(e) {
|
||||
e.preventDefault();
|
||||
closeModal();
|
||||
document.getElementById('no-account-msg').style.display = 'none';
|
||||
alert('账号已添加');
|
||||
});
|
||||
|
||||
// 绑定按钮点击事件
|
||||
document.getElementById('add-link').addEventListener('click', openModal);
|
||||
document.getElementById('add-button').addEventListener('click', openModal);
|
||||
document.getElementById('cancel-button').addEventListener('click', closeModal);
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
BIN
webui/image/wind.png
Normal file
BIN
webui/image/wind.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 14 KiB |
55
webui/index.html
Normal file
55
webui/index.html
Normal file
@ -0,0 +1,55 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Wind Chime</title>
|
||||
<link rel="stylesheet" href="styles.css">
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
<!-- 左侧导航栏 -->
|
||||
<aside class="sidebar">
|
||||
<ul>
|
||||
<li>日志</li>
|
||||
<li><a href="account.html">账号设置</a></li>
|
||||
<li>自定义文字</li>
|
||||
<li>扩展功能</li>
|
||||
<li>综合设置</li>
|
||||
<li>辅助工具</li>
|
||||
<li><a href="index.html">关于</a></li>
|
||||
</ul>
|
||||
</aside>
|
||||
|
||||
<!-- 右侧主要内容 -->
|
||||
<main class="content">
|
||||
<header>
|
||||
<h1>Wind Chime</h1>
|
||||
<p class="version">linux - amd64</p>
|
||||
<p class="subversion">当前版本: 0.1</p>
|
||||
<p class="subversion">最新版本: 0.1</p>
|
||||
</header>
|
||||
|
||||
<div class="wind-image">
|
||||
<img src="image/wind.png" alt="wind Mascot">
|
||||
</div>
|
||||
|
||||
<section class="links">
|
||||
<p>官网网站: <a href="https://www.sealdice.com" target="_blank">https://www.sealdice.com</a></p>
|
||||
<p>使用手册: <a href="https://dice.weizaima.com/manual" target="_blank">https://dice.weizaima.com/manual</a></p>
|
||||
<p>投喂风铃: <a href="https://dice.weizaima.com/feed" target="_blank">https://dice.weizaima.com/feed</a></p>
|
||||
<p>源码: <a href="https://github.com/sealdice/sealdice-core" target="_blank">https://github.com/sealdice/sealdice-core</a></p>
|
||||
</section>
|
||||
|
||||
<section class="credits">
|
||||
<h2>感谢 ♪(・ω・)ノ</h2>
|
||||
<p>特别鸣谢参与测试、反馈问题、帮助完善风铃指令的各位!以下列出感谢名单(排名不分先后)。</p>
|
||||
</section>
|
||||
|
||||
<footer>
|
||||
<p>V0.1 版本</p>
|
||||
</footer>
|
||||
</main>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
133
webui/styles.css
Normal file
133
webui/styles.css
Normal file
@ -0,0 +1,133 @@
|
||||
/* 全局样式 */
|
||||
body {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
font-family: "Arial", sans-serif;
|
||||
background-color: #f8f9fa;
|
||||
display: flex;
|
||||
justify-content: center; /* 水平居中 */
|
||||
align-items: center; /* 垂直居中 */
|
||||
height: 100vh;
|
||||
color: #333;
|
||||
}
|
||||
|
||||
/* 容器布局 */
|
||||
.container {
|
||||
display: flex;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
justify-content: center; /* 水平居中 */
|
||||
align-items: center; /* 垂直居中 */
|
||||
}
|
||||
|
||||
/* 左侧导航栏样式 */
|
||||
.sidebar {
|
||||
width: 200px;
|
||||
height: 100vh;
|
||||
background-color: #f4f4f4;
|
||||
padding: 20px;
|
||||
box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: flex-start;
|
||||
}
|
||||
|
||||
.sidebar ul {
|
||||
list-style: none;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.sidebar ul li {
|
||||
padding: 12px 15px;
|
||||
margin: 8px 0;
|
||||
font-size: 14px;
|
||||
border-radius: 5px;
|
||||
cursor: pointer;
|
||||
color: #555;
|
||||
transition: all 0.2s;
|
||||
}
|
||||
|
||||
.sidebar ul li:hover,
|
||||
.sidebar ul li.active {
|
||||
background-color: #e8e8e8;
|
||||
color: #000;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
/* 右侧内容样式 */
|
||||
.content {
|
||||
flex: 1;
|
||||
height: 100vh;
|
||||
padding: 20px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
background-color: #fff;
|
||||
}
|
||||
|
||||
/* 标题和版本信息 */
|
||||
|
||||
header h1 {
|
||||
text-align: center;
|
||||
font-size: 2.2rem;
|
||||
margin-bottom: 10px;
|
||||
color: #444;
|
||||
}
|
||||
|
||||
.version {
|
||||
text-align: center;
|
||||
font-size: 1rem;
|
||||
color: #666;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
.subversion {
|
||||
text-align: center;
|
||||
font-size: 0.9rem;
|
||||
color: #777;
|
||||
}
|
||||
|
||||
/* logo图片 */
|
||||
.wind-image {
|
||||
text-align: center; /* 居中logo */
|
||||
}
|
||||
|
||||
.wind-image img {
|
||||
max-width: 250px; /* 限制宽度 */
|
||||
height: auto;
|
||||
margin: 20px 0;
|
||||
}
|
||||
|
||||
/* 链接部分 */
|
||||
.links span {
|
||||
text-decoration: none; /* 去掉下划线 */
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
.links p {
|
||||
font-size: 16px;
|
||||
margin: 8px 0;
|
||||
color: #555;
|
||||
}
|
||||
|
||||
/* 感谢部分 */
|
||||
.credits h2 {
|
||||
text-align: center;
|
||||
margin-top: 20px;
|
||||
font-size: 18px;
|
||||
color: #444;
|
||||
}
|
||||
|
||||
.credits p {
|
||||
text-align: center;
|
||||
font-size: 14px;
|
||||
color: #555;
|
||||
}
|
||||
|
||||
/* 页脚 */
|
||||
footer {
|
||||
text-align: center;
|
||||
margin-top: 30px;
|
||||
padding: 10px 0;
|
||||
font-size: 14px;
|
||||
color: #666;
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user