Skip to content

Commit 28f85a9

Browse files
committed
添加使用说明和安全特性,调整样式以提升用户体验
1 parent 518b098 commit 28f85a9

File tree

4 files changed

+88
-64
lines changed

4 files changed

+88
-64
lines changed

client/css/body.css

Lines changed: 56 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,9 @@ body {
3232
top: 0;
3333
left: 0;
3434
width: 100%;
35-
height: 100%;
3635
backface-visibility: hidden;
3736
border-radius: 14px;
38-
padding: 32px 24px 24px 24px;
37+
padding: 39px 15px 20px 15px;
3938
box-shadow: 0 2px 16px rgba(60, 80, 100, 0.09);
4039
background: #fff;
4140
box-sizing: border-box;
@@ -45,7 +44,6 @@ body {
4544

4645
.flip-card-back {
4746
transform: rotateX(180deg);
48-
padding-top: 30px;
4947
}
5048

5149
/* 帮助按钮样式 / Help Button Styles */
@@ -78,74 +76,72 @@ body {
7876
transform: scale(0.95);
7977
}
8078

81-
.help-btn.back-btn {
82-
background: #f8f9fa;
83-
border-color: #dee2e6;
79+
/* 帮助内容样式 / Help Content Styles */
80+
.help-content {
81+
text-align: left;
82+
max-height: 400px;
83+
overflow-y: auto;
84+
padding: 0 20px 20px 20px;
85+
color: #333;
86+
line-height: 1.6;
8487
}
8588

86-
.help-btn.back-btn:hover {
87-
background: #e9ecef;
88-
border-color: #adb5bd;
89-
color: #495057;
89+
.help-section {
90+
margin-bottom: 24px;
9091
}
9192

92-
/* 使用说明内容样式 / Help Content Styles */
93-
.help-content {
94-
text-align: left;
95-
margin-top: 20px;
96-
padding: 0 20px;
93+
.help-section h3 {
94+
font-size: 1.1rem;
95+
color: #4A5568;
96+
margin-bottom: 12px;
97+
font-weight: 600;
98+
display: flex;
99+
align-items: center;
100+
gap: 8px;
97101
}
98102

99-
.flip-card-back h2 {
100-
font-size: 1.8rem;
101-
font-weight: 600;
102-
margin-bottom: 24px;
103-
color: #30a8f7;
103+
.help-section p {
104+
font-size: 0.95rem;
105+
color: #666;
106+
margin-bottom: 12px;
107+
line-height: 1.5;
104108
}
105109

106-
.flip-card-back p {
110+
.help-section ol,
111+
.help-section ul {
112+
font-size: 0.9rem;
107113
color: #666;
108-
line-height: 1.6;
109-
font-size: 1rem;
114+
margin-left: 16px;
115+
margin-bottom: 12px;
116+
}
117+
118+
.help-section li {
119+
margin-bottom: 8px;
120+
line-height: 1.4;
121+
}
122+
123+
.help-section li strong {
124+
color: #2D3748;
125+
font-weight: 600;
126+
}
127+
128+
/* 滚动条样式 */
129+
.help-content::-webkit-scrollbar {
130+
width: 6px;
131+
}
132+
133+
.help-content::-webkit-scrollbar-track {
134+
background: #f1f1f1;
135+
border-radius: 3px;
136+
}
137+
138+
.help-content::-webkit-scrollbar-thumb {
139+
background: #c1c1c1;
140+
border-radius: 3px;
110141
}
111142

112-
/* 移动端适配 / Mobile Adaptation */
113-
@media (max-width: 768px) {
114-
.flip-card {
115-
116-
width: 95%;
117-
}
118-
119-
.flip-card-front,
120-
.flip-card-back {
121-
padding: 24px 16px 16px 16px;
122-
}
123-
124-
.flip-card-back {
125-
padding-top: 30px;
126-
}
127-
128-
129-
130-
.flip-card-back h2 {
131-
font-size: 1.5rem;
132-
margin-bottom: 20px;
133-
}
134-
135-
.help-content {
136-
padding: 0 10px;
137-
}
138-
}
139-
140-
/* 触摸设备优化 / Touch Device Optimization */
141-
@media (hover: none) and (pointer: coarse) {
142-
.help-btn:hover {
143-
transform: none;
144-
}
145-
146-
.help-btn:active {
147-
transform: scale(0.95);
148-
}
143+
.help-content::-webkit-scrollbar-thumb:hover {
144+
background: #a8a8a8;
149145
}
150146

151147
.login-container {
@@ -165,7 +161,6 @@ body {
165161
.login-container h1 {
166162
font-size: 2.2rem;
167163
font-weight: 700;
168-
margin-bottom: 40px;
169164
}
170165

171166
.subtips {

client/css/phone.css

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,9 @@
157157
left: 2vw !important;
158158
}
159159

160-
/* Settings sidebar mobile styles - removed duplicate rules since they are above */
160+
.flip-card {
161+
width: 95%;
162+
}
161163
}
162164

163165
.member.private-chat-active {

client/css/style.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1849,3 +1849,6 @@ flex-direction: column;
18491849
}
18501850

18511851

1852+
h2{
1853+
margin: 0%;
1854+
}

client/index.html

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,32 @@ <h1 id="login-title"></h1>
5757
<svg width="40" height="40" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
5858
<path d="M15 18L9 12L15 6" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
5959
</svg>
60-
</button>
61-
<h2>使用说明</h2>
60+
</button> <h2>使用说明</h2>
61+
<div class="help-content">
62+
<div class="help-section">
63+
<h3>🔐 什么是 NodeCrypt?</h3>
64+
<p>NodeCrypt 是一个开源的端到端加密聊天系统,采用无数据库架构设计。所有消息在您的设备上本地加密,服务器和中间人无法解密您的任何聊天内容。</p>
65+
</div>
66+
67+
<div class="help-section">
68+
<h3>🚀 如何开始?</h3>
69+
<ol>
70+
<li><strong>输入用户名</strong>:选择一个昵称</li>
71+
<li><strong>输入节点名</strong>:创建或加入现有房间</li>
72+
<li><strong>设置节点密码</strong>:用于排除巧合性</li>
73+
<li><strong>点击"加入房间"</strong>:开始安全聊天</li>
74+
</ol>
75+
</div>
76+
77+
<div class="help-section">
78+
<h3>🔑 安全特性</h3>
79+
<ul>
80+
<li><strong>端到端加密</strong>:消息仅您和接收者可解密</li>
81+
<li><strong>无历史记录</strong>:新用户无法看到历史消息</li>
82+
<li><strong>密码保护</strong>:房间密码参与加密过程</li>
83+
<li><strong>匿名通信</strong>:无需注册真实身份</li>
84+
</ul>
85+
</div>
6286
</div>
6387
</div>
6488
</div>

0 commit comments

Comments
 (0)