-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
332 lines (327 loc) · 11.3 KB
/
index.html
File metadata and controls
332 lines (327 loc) · 11.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
<!DOCTYPE html>
<html lang="ru">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
<title>❄️ CodeIgloo — киберпанк-хранилище кода</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/styles/atom-one-dark.min.css">
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
background: radial-gradient(circle at 20% 30%, #0a0f1f, #010101);
font-family: 'JetBrains Mono', 'Segoe UI', monospace;
height: 100vh;
width: 100vw;
overflow: hidden;
position: relative;
}
/* неоновый глитч фон */
body::before {
content: "";
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: repeating-linear-gradient(0deg, rgba(0,255,255,0.02) 0px, rgba(255,0,255,0.02) 2px, transparent 2px, transparent 8px);
pointer-events: none;
z-index: 1;
}
/* снег с эффектом пикселей */
.snow {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
pointer-events: none;
z-index: 2;
}
.snow i {
position: absolute;
background: #0ff;
box-shadow: 0 0 4px #0ff;
border-radius: 50%;
opacity: 0.5;
animation: fall linear infinite;
}
@keyframes fall {
to { transform: translateY(100vh); }
}
/* главный интерфейс */
.app {
position: relative;
z-index: 10;
height: 100vh;
width: 100vw;
display: flex;
flex-direction: column;
backdrop-filter: blur(4px);
}
/* шапка с неоном */
.navbar {
background: rgba(0, 0, 0, 0.65);
backdrop-filter: blur(16px);
padding: 16px 28px;
display: flex;
justify-content: space-between;
align-items: center;
border-bottom: 2px solid #0ff;
box-shadow: 0 0 15px rgba(0,255,255,0.2);
flex-wrap: wrap;
gap: 16px;
}
.logo h1 {
font-size: 2rem;
text-shadow: 0 0 8px #0ff, 0 0 2px #0ff;
color: #0ff;
letter-spacing: 2px;
}
.badge span {
background: rgba(0,0,0,0.6);
padding: 6px 14px;
border-radius: 40px;
font-size: 0.7rem;
border: 1px solid #0ff;
color: #0ff;
box-shadow: 0 0 4px #0ff;
}
.main-container {
flex: 1;
display: flex;
padding: 20px;
gap: 20px;
overflow: hidden;
}
/* левая зона редактора */
.editor-area {
flex: 3;
display: flex;
flex-direction: column;
background: rgba(0, 0, 0, 0.6);
backdrop-filter: blur(12px);
border-radius: 24px;
border: 1px solid #0ff;
box-shadow: 0 0 20px rgba(0,255,255,0.2);
overflow: hidden;
}
.editor-header {
padding: 14px 20px;
background: #000000aa;
font-size: 0.8rem;
border-bottom: 1px solid #0ff;
color: #0ff;
text-transform: uppercase;
letter-spacing: 1px;
}
textarea {
flex: 1;
background: #050a12ee;
color: #ccf;
border: none;
padding: 20px;
font-family: 'JetBrains Mono', monospace;
font-size: 15px;
line-height: 1.6;
resize: none;
outline: none;
}
.action-buttons {
padding: 16px;
display: flex;
gap: 20px;
border-top: 1px solid #0ff;
}
button {
background: transparent;
border: 2px solid #0ff;
padding: 10px 24px;
border-radius: 40px;
color: #0ff;
font-weight: bold;
cursor: pointer;
transition: 0.2s;
text-transform: uppercase;
font-size: 0.8rem;
}
button:hover {
background: #0ff;
color: black;
box-shadow: 0 0 20px #0ff;
transform: scale(1.02);
}
.result-panel {
margin-top: 12px;
background: #000000aa;
border-radius: 24px;
padding: 12px 20px;
display: none;
align-items: center;
justify-content: space-between;
flex-wrap: wrap;
border: 1px solid #0ff;
}
.result-panel a {
color: #0ff;
word-break: break-all;
}
/* правая панель — карточки проектов (киберпанк стиль) */
.projects-panel {
flex: 1;
background: rgba(0, 0, 0, 0.6);
backdrop-filter: blur(12px);
border-radius: 24px;
border: 1px solid #f0f;
box-shadow: 0 0 20px rgba(255,0,255,0.2);
padding: 20px;
display: flex;
flex-direction: column;
gap: 20px;
}
.project-card {
background: #00000088;
border-radius: 20px;
padding: 16px;
text-align: center;
border: 1px solid #0ff;
transition: 0.2s;
}
.project-card:hover {
transform: translateY(-4px);
box-shadow: 0 0 15px #0ff;
}
.project-card h3 {
color: #f0f;
text-shadow: 0 0 5px #f0f;
margin-bottom: 8px;
}
.project-card p {
color: #ccf;
font-size: 0.8rem;
}
.project-card a {
color: #0ff;
text-decoration: none;
}
.footer {
text-align: center;
padding: 12px;
font-size: 0.7rem;
border-top: 1px solid #0ff;
background: rgba(0,0,0,0.7);
color: #0ff;
}
@media (max-width: 800px) {
.main-container { flex-direction: column; }
.editor-area { min-height: 55vh; }
}
</style>
</head>
<body>
<div class="snow" id="snow"></div>
<div class="app">
<div class="navbar">
<div class="logo"><h1>❄️ CodeIgloo</h1></div>
<div class="badge">
<span>⚡ НЕТ РЕГИСТРАЦИИ</span>
<span>📋 КОПИРУЙ ССЫЛКУ</span>
<span>🧊 ЗИМНИЙ КИБЕРПАНК</span>
</div>
</div>
<div class="main-container">
<div class="editor-area">
<div class="editor-header">❄️ РЕДАКТОР КОДА — ВСТАВЛЯЙ, СОХРАНЯЙ</div>
<textarea id="codeInput" placeholder='<?php
echo "Привет, мир!";
?>'></textarea>
<div class="action-buttons">
<button id="saveBtn">🧊 СОХРАНИТЬ</button>
<button id="copyBtn" style="display: none;">📋 КОПИРОВАТЬ</button>
</div>
<div id="resultPanel" class="result-panel">
<span>✨ ГОТОВО! ССЫЛКА:</span>
<a href="#" id="resultLink" target="_blank">ссылка</a>
<button id="copyResultBtn">📋 КОПИРОВАТЬ</button>
</div>
</div>
<div class="projects-panel">
<div class="project-card">
<h3>🌑 DarkVPN</h3>
<p>400+ VLESS+Reality прокси</p>
<a href="https://web-pentest.github.io/Web-DarkVPN/" target="_blank">ОТКРЫТЬ →</a>
</div>
<div class="project-card">
<h3>⚡ TSandCode</h3>
<p>онлайн-редактор HTML/CSS/JS</p>
<a href="https://web-pentest.github.io/TSandCode/" target="_blank">ОТКРЫТЬ →</a>
</div>
<div class="project-card">
<h3>🐘 PHPNoFluff</h3>
<p>учебник PHP — без воды</p>
<a href="https://github.com/web-pentest/PHPNoFluff" target="_blank">GITHUB →</a>
</div>
<div class="project-card">
<h3>🐙 TPickME</h3>
<p>наша организация на GitHub</p>
<a href="https://github.com/TPickME" target="_blank">ПЕРЕЙТИ →</a>
</div>
</div>
</div>
<div class="footer">❄️ OPEN SOURCE • БЕЗ СЛЕЖКИ • НИКАКОЙ РЕКЛАМЫ • ТОЛЬКО КИБЕРПАНК</div>
</div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/highlight.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/languages/php.min.js"></script>
<script>hljs.registerLanguage('php', window.hljsDefinePhp);</script>
<script>
function createSnow() {
const snowDiv = document.getElementById('snow');
for (let i = 0; i < 140; i++) {
const flake = document.createElement('i');
flake.style.left = Math.random() * 100 + '%';
flake.style.width = flake.style.height = Math.random() * 5 + 2 + 'px';
flake.style.animationDuration = Math.random() * 4 + 3 + 's';
flake.style.animationDelay = Math.random() * 5 + 's';
snowDiv.appendChild(flake);
}
}
createSnow();
const saveBtn = document.getElementById('saveBtn');
const codeInput = document.getElementById('codeInput');
const resultPanel = document.getElementById('resultPanel');
const resultLink = document.getElementById('resultLink');
const copyResultBtn = document.getElementById('copyResultBtn');
function getCurrentUrl() {
return `${window.location.origin}${window.location.pathname}`;
}
saveBtn.addEventListener('click', () => {
let code = codeInput.value.trim();
if (!code) {
alert('Введи код, бро!');
return;
}
let encoded = btoa(unescape(encodeURIComponent(code)));
let url = `${getCurrentUrl()}?code=${encoded}`;
resultLink.href = url;
resultLink.innerText = url;
resultPanel.style.display = 'flex';
resultPanel.scrollIntoView({ behavior: 'smooth' });
});
copyResultBtn.addEventListener('click', () => {
navigator.clipboard.writeText(resultLink.href).then(() => alert('✅ Ссылка скопирована!'));
});
const urlParams = new URLSearchParams(window.location.search);
const encodedCode = urlParams.get('code');
if (encodedCode) {
try {
let decoded = decodeURIComponent(escape(atob(encodedCode)));
codeInput.value = decoded;
resultPanel.style.display = 'none';
} catch(e) { console.log('Ошибка декодирования'); }
}
</script>
</body>
</html>