DmitrMakeev commited on
Commit
85d1b52
·
verified ·
1 Parent(s): 1587276

Update chat.html

Browse files
Files changed (1) hide show
  1. chat.html +33 -23
chat.html CHANGED
@@ -3,7 +3,7 @@
3
  <head>
4
  <meta charset="UTF-8">
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
- <title>Secure Chat 🔒</title>
7
  <script src="https://cdnjs.cloudflare.com/ajax/libs/crypto-js/4.1.1/crypto-js.min.js"></script>
8
 
9
  <style>
@@ -11,7 +11,7 @@
11
 
12
  body {
13
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
14
- background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
15
  height: 100vh;
16
  display: flex;
17
  justify-content: center;
@@ -23,16 +23,16 @@
23
  width: 100%;
24
  max-width: 480px;
25
  height: 700px;
26
- background: white;
27
  border-radius: 15px;
28
- box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
29
  display: flex;
30
  flex-direction: column;
31
  overflow: hidden;
32
  }
33
 
34
  .chat-header {
35
- background: #2d3748;
36
  color: white;
37
  padding: 15px 20px;
38
  text-align: center;
@@ -43,7 +43,7 @@
43
  position: absolute;
44
  top: 10px;
45
  right: 15px;
46
- background: #48bb78;
47
  padding: 4px 8px;
48
  border-radius: 12px;
49
  font-size: 0.7em;
@@ -53,10 +53,10 @@
53
  .encryption-notice {
54
  text-align: center;
55
  padding: 8px;
56
- background: #ebf8ff;
57
- color: #2b6cb0;
58
  font-size: 0.8em;
59
- border-bottom: 1px solid #bee3f8;
60
  }
61
 
62
  .key-input {
@@ -64,17 +64,24 @@
64
  margin: 10px auto;
65
  display: block;
66
  padding: 10px 12px;
67
- border: 2px solid #cbd5e0;
68
  border-radius: 10px;
69
  font-size: 14px;
70
  text-align: center;
 
 
 
 
 
 
 
71
  }
72
 
73
  .messages-container {
74
  flex: 1;
75
  padding: 20px;
76
  overflow-y: auto;
77
- background: #f7fafc;
78
  }
79
 
80
  .message {
@@ -86,15 +93,15 @@
86
  }
87
 
88
  .message.own {
89
- background: #4299e1;
90
- color: white;
91
  margin-left: auto;
92
  border-bottom-right-radius: 5px;
93
  }
94
 
95
  .message.other {
96
- background: #e2e8f0;
97
- color: #2d3748;
98
  border-bottom-left-radius: 5px;
99
  }
100
 
@@ -107,7 +114,7 @@
107
  .input-container {
108
  padding: 15px 20px;
109
  background: white;
110
- border-top: 1px solid #e2e8f0;
111
  display: flex;
112
  flex-direction: column;
113
  gap: 10px;
@@ -118,15 +125,18 @@
118
  height: 70px;
119
  resize: none;
120
  padding: 12px 15px;
121
- border: 2px solid #e2e8f0;
122
  border-radius: 12px;
123
  outline: none;
124
  font-size: 15px;
125
  line-height: 1.4;
126
  transition: border-color 0.3s;
 
127
  }
128
 
129
- .message-input:focus { border-color: #4299e1; }
 
 
130
 
131
  .button-row {
132
  display: flex;
@@ -144,11 +154,11 @@
144
  }
145
 
146
  .send-button {
147
- background: #4299e1;
148
  color: white;
149
  }
150
 
151
- .send-button:hover { background: #3182ce; }
152
 
153
  .clear-button {
154
  background: #e53e3e;
@@ -158,15 +168,15 @@
158
  .clear-button:hover { background: #c53030; }
159
 
160
  .messages-container::-webkit-scrollbar { width: 6px; }
161
- .messages-container::-webkit-scrollbar-thumb { background: #cbd5e0; border-radius: 3px; }
162
- .messages-container::-webkit-scrollbar-thumb:hover { background: #a0aec0; }
163
  </style>
164
  </head>
165
 
166
  <body>
167
  <div class="chat-container">
168
  <div class="chat-header">
169
- <h2>💬 Secure Chat 🔒</h2>
170
  <div class="security-badge">AES ШИФРОВАНИЕ</div>
171
  </div>
172
 
 
3
  <head>
4
  <meta charset="UTF-8">
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>Secure Chat 🌿</title>
7
  <script src="https://cdnjs.cloudflare.com/ajax/libs/crypto-js/4.1.1/crypto-js.min.js"></script>
8
 
9
  <style>
 
11
 
12
  body {
13
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
14
+ background: linear-gradient(135deg, #38b2ac 0%, #48bb78 100%);
15
  height: 100vh;
16
  display: flex;
17
  justify-content: center;
 
23
  width: 100%;
24
  max-width: 480px;
25
  height: 700px;
26
+ background: #f0fff4;
27
  border-radius: 15px;
28
+ box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
29
  display: flex;
30
  flex-direction: column;
31
  overflow: hidden;
32
  }
33
 
34
  .chat-header {
35
+ background: #2f855a;
36
  color: white;
37
  padding: 15px 20px;
38
  text-align: center;
 
43
  position: absolute;
44
  top: 10px;
45
  right: 15px;
46
+ background: #68d391;
47
  padding: 4px 8px;
48
  border-radius: 12px;
49
  font-size: 0.7em;
 
53
  .encryption-notice {
54
  text-align: center;
55
  padding: 8px;
56
+ background: #c6f6d5;
57
+ color: #22543d;
58
  font-size: 0.8em;
59
+ border-bottom: 1px solid #9ae6b4;
60
  }
61
 
62
  .key-input {
 
64
  margin: 10px auto;
65
  display: block;
66
  padding: 10px 12px;
67
+ border: 2px solid #9ae6b4;
68
  border-radius: 10px;
69
  font-size: 14px;
70
  text-align: center;
71
+ background: #fafffa;
72
+ transition: border-color 0.3s;
73
+ }
74
+
75
+ .key-input:focus {
76
+ border-color: #48bb78;
77
+ outline: none;
78
  }
79
 
80
  .messages-container {
81
  flex: 1;
82
  padding: 20px;
83
  overflow-y: auto;
84
+ background: #f7faf7;
85
  }
86
 
87
  .message {
 
93
  }
94
 
95
  .message.own {
96
+ background: #68d391;
97
+ color: #1a202c;
98
  margin-left: auto;
99
  border-bottom-right-radius: 5px;
100
  }
101
 
102
  .message.other {
103
+ background: #e6fffa;
104
+ color: #2f855a;
105
  border-bottom-left-radius: 5px;
106
  }
107
 
 
114
  .input-container {
115
  padding: 15px 20px;
116
  background: white;
117
+ border-top: 1px solid #c6f6d5;
118
  display: flex;
119
  flex-direction: column;
120
  gap: 10px;
 
125
  height: 70px;
126
  resize: none;
127
  padding: 12px 15px;
128
+ border: 2px solid #c6f6d5;
129
  border-radius: 12px;
130
  outline: none;
131
  font-size: 15px;
132
  line-height: 1.4;
133
  transition: border-color 0.3s;
134
+ background: #fafffa;
135
  }
136
 
137
+ .message-input:focus {
138
+ border-color: #48bb78;
139
+ }
140
 
141
  .button-row {
142
  display: flex;
 
154
  }
155
 
156
  .send-button {
157
+ background: #48bb78;
158
  color: white;
159
  }
160
 
161
+ .send-button:hover { background: #38a169; }
162
 
163
  .clear-button {
164
  background: #e53e3e;
 
168
  .clear-button:hover { background: #c53030; }
169
 
170
  .messages-container::-webkit-scrollbar { width: 6px; }
171
+ .messages-container::-webkit-scrollbar-thumb { background: #a0aec0; border-radius: 3px; }
172
+ .messages-container::-webkit-scrollbar-thumb:hover { background: #718096; }
173
  </style>
174
  </head>
175
 
176
  <body>
177
  <div class="chat-container">
178
  <div class="chat-header">
179
+ <h2>🌿 Secure Chat</h2>
180
  <div class="security-badge">AES ШИФРОВАНИЕ</div>
181
  </div>
182