Repository navigation
Expand file tree
/
Copy pathindex.html
More file actions
409 lines (365 loc) · 10.8 KB
/
Copy pathindex.html
File metadata and controls
409 lines (365 loc) · 10.8 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
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
<!DOCTYPE html>
<html lang="pt-BR">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Self-Labs DNS — Instalar Perfil iOS</title>
<meta name="description" content="Instale o perfil DNS-over-HTTPS do AdGuard Home para proteger seu iPhone contra rastreadores e anúncios." />
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap" rel="stylesheet" />
<style>
*, *::before, *::after {
box-sizing: border-box;
margin: 0;
padding: 0;
}
:root {
--bg: #0a0e1a;
--surface: #111827;
--surface2: #1a2235;
--border: rgba(255,255,255,0.08);
--accent: #3b82f6;
--accent-glow: rgba(59,130,246,0.3);
--accent-hover: #60a5fa;
--green: #10b981;
--green-glow: rgba(16,185,129,0.2);
--text: #f1f5f9;
--muted: #94a3b8;
--muted2: #64748b;
}
html { scroll-behavior: smooth; }
body {
font-family: 'Inter', sans-serif;
background: var(--bg);
color: var(--text);
min-height: 100vh;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 2rem 1.25rem;
overflow-x: hidden;
}
/* ─── BACKGROUND BLOBS ─── */
body::before {
content: '';
position: fixed;
inset: 0;
background:
radial-gradient(ellipse 60% 50% at 20% 20%, rgba(59,130,246,0.12) 0%, transparent 60%),
radial-gradient(ellipse 50% 40% at 80% 80%, rgba(16,185,129,0.08) 0%, transparent 60%);
pointer-events: none;
z-index: 0;
}
.container {
position: relative;
z-index: 1;
width: 100%;
max-width: 520px;
display: flex;
flex-direction: column;
gap: 1.5rem;
}
/* ─── HEADER ─── */
.header {
text-align: center;
}
.badge {
display: inline-flex;
align-items: center;
gap: 0.4rem;
background: rgba(59,130,246,0.12);
border: 1px solid rgba(59,130,246,0.3);
color: var(--accent-hover);
font-size: 0.72rem;
font-weight: 600;
letter-spacing: 0.08em;
text-transform: uppercase;
padding: 0.3rem 0.75rem;
border-radius: 100px;
margin-bottom: 1rem;
}
.badge-dot {
width: 6px;
height: 6px;
background: var(--green);
border-radius: 50%;
box-shadow: 0 0 6px var(--green);
animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
0%, 100% { opacity: 1; transform: scale(1); }
50% { opacity: 0.5; transform: scale(0.8); }
}
h1 {
font-size: clamp(1.6rem, 5vw, 2.2rem);
font-weight: 700;
line-height: 1.2;
letter-spacing: -0.03em;
margin-bottom: 0.75rem;
}
h1 span {
background: linear-gradient(135deg, #60a5fa, #34d399);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
.subtitle {
font-size: 0.95rem;
color: var(--muted);
line-height: 1.6;
max-width: 420px;
margin: 0 auto;
}
/* ─── CARD ─── */
.card {
background: var(--surface);
border: 1px solid var(--border);
border-radius: 20px;
padding: 2rem;
backdrop-filter: blur(12px);
}
.card-title {
font-size: 0.8rem;
font-weight: 600;
letter-spacing: 0.06em;
text-transform: uppercase;
color: var(--muted2);
margin-bottom: 1.25rem;
}
/* ─── FEATURES ─── */
.features {
display: flex;
flex-direction: column;
gap: 0.85rem;
}
.feature {
display: flex;
align-items: center;
gap: 0.9rem;
}
.feature-icon {
width: 38px;
height: 38px;
border-radius: 10px;
background: var(--surface2);
border: 1px solid var(--border);
display: flex;
align-items: center;
justify-content: center;
font-size: 1.1rem;
flex-shrink: 0;
}
.feature-text {
font-size: 0.9rem;
color: var(--muted);
line-height: 1.4;
}
.feature-text strong {
display: block;
color: var(--text);
font-weight: 500;
font-size: 0.92rem;
}
/* ─── DIVIDER ─── */
.divider {
height: 1px;
background: var(--border);
margin: 1.5rem 0;
}
/* ─── CTA BUTTON ─── */
.btn-install {
display: flex;
align-items: center;
justify-content: center;
gap: 0.6rem;
width: 100%;
padding: 1rem 1.5rem;
background: linear-gradient(135deg, #2563eb, #1d4ed8);
color: #fff;
font-family: 'Inter', sans-serif;
font-size: 1rem;
font-weight: 600;
border: none;
border-radius: 14px;
cursor: pointer;
text-decoration: none;
transition: all 0.2s ease;
box-shadow: 0 4px 24px rgba(59,130,246,0.35);
position: relative;
overflow: hidden;
}
.btn-install::before {
content: '';
position: absolute;
inset: 0;
background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent);
opacity: 0;
transition: opacity 0.2s;
}
.btn-install:hover {
transform: translateY(-2px);
box-shadow: 0 8px 32px rgba(59,130,246,0.5);
}
.btn-install:hover::before { opacity: 1; }
.btn-install:active { transform: translateY(0); }
/* ─── ALERT ─── */
#ios-warning {
display: none;
align-items: flex-start;
gap: 0.75rem;
background: rgba(245,158,11,0.1);
border: 1px solid rgba(245,158,11,0.3);
border-radius: 12px;
padding: 1rem 1.1rem;
font-size: 0.85rem;
color: #fbbf24;
line-height: 1.5;
}
#ios-warning .warn-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 1px; }
/* ─── STEPS ─── */
.steps {
display: flex;
flex-direction: column;
gap: 0.9rem;
}
.step {
display: flex;
gap: 0.85rem;
align-items: flex-start;
}
.step-num {
width: 26px;
height: 26px;
border-radius: 50%;
background: var(--surface2);
border: 1px solid var(--border);
display: flex;
align-items: center;
justify-content: center;
font-size: 0.72rem;
font-weight: 700;
color: var(--accent-hover);
flex-shrink: 0;
margin-top: 2px;
}
.step-desc {
font-size: 0.88rem;
color: var(--muted);
line-height: 1.5;
}
.step-desc strong { color: var(--text); font-weight: 500; }
.step-desc code {
background: var(--surface2);
padding: 0.1rem 0.4rem;
border-radius: 5px;
font-size: 0.82rem;
color: var(--accent-hover);
font-family: monospace;
}
/* ─── FOOTER ─── */
.footer {
text-align: center;
font-size: 0.78rem;
color: var(--muted2);
}
.footer a { color: var(--muted); text-decoration: none; }
.footer a:hover { color: var(--text); }
</style>
</head>
<body>
<div class="container">
<!-- HEADER -->
<div class="header">
<div class="badge">
<span class="badge-dot"></span>
Self-Labs DNS
</div>
<h1>Proteção DNS<br><span>para seu iPhone</span></h1>
<p class="subtitle">
Instale o perfil de DNS-over-HTTPS e filtre anúncios, rastreadores e domínios maliciosos em toda a rede — sem app, sem VPN.
</p>
</div>
<!-- FEATURES CARD -->
<div class="card">
<p class="card-title">O que você ganha</p>
<div class="features">
<div class="feature">
<div class="feature-icon">🛡️</div>
<div class="feature-text">
<strong>Bloqueio de anúncios e trackers</strong>
Listas de bloqueio atualizadas pelo AdGuard Home na rede local.
</div>
</div>
<div class="feature">
<div class="feature-icon">🔒</div>
<div class="feature-text">
<strong>DNS criptografado (DoH)</strong>
Todas as consultas DNS trafegam via HTTPS — invisíveis para provedores e roteadores.
</div>
</div>
<div class="feature">
<div class="feature-icon">⚡</div>
<div class="feature-text">
<strong>Nativo no iOS — sem app</strong>
Funciona em nível de sistema operacional, não precisa de VPN ativa.
</div>
</div>
</div>
<div class="divider"></div>
<!-- WARNING (shown for non-iOS) -->
<div id="ios-warning">
<span class="warn-icon">⚠️</span>
<span>
<strong>Atenção:</strong> abra este link no <strong>Safari do iPhone ou iPad</strong>. Outros navegadores ou dispositivos não acionam a instalação do perfil.
</span>
</div>
<br>
<!-- INSTALL BUTTON -->
<a id="install-btn" class="btn-install" href="assets/configs/adguard_doh_ios.mobileconfig">
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round">
<path d="M12 16V4M8 12l4 4 4-4"/><rect x="3" y="17" width="18" height="4" rx="2"/>
</svg>
Instalar Perfil DNS
</a>
</div>
<!-- STEPS CARD -->
<div class="card">
<p class="card-title">Como instalar</p>
<div class="steps">
<div class="step">
<div class="step-num">1</div>
<div class="step-desc">Toque em <strong>Instalar Perfil DNS</strong> acima. O Safari vai mostrar um aviso de download — confirme.</div>
</div>
<div class="step">
<div class="step-num">2</div>
<div class="step-desc">Vá em <strong>Ajustes</strong>. Um aviso <code>Perfil Baixado</code> aparecerá no topo — toque nele.</div>
</div>
<div class="step">
<div class="step-num">3</div>
<div class="step-desc">Toque em <strong>Instalar</strong> no canto superior direito e confirme com sua senha ou Face ID.</div>
</div>
<div class="step">
<div class="step-num">4</div>
<div class="step-desc">Pronto. O perfil está ativo. Verifique em <strong>Ajustes → Geral → VPN e Gerenciamento de Dispositivo → DNS</strong>.</div>
</div>
</div>
</div>
<!-- FOOTER -->
<div class="footer">
Self-Labs ·
<a href="https://github.com/CaTeIM/DIY" target="_blank" rel="noopener">GitHub</a>
· Perfil removível a qualquer momento em Ajustes
</div>
</div>
<script>
// Detecta se não é iOS/Safari — mostra aviso
const isIOS = /iP(hone|ad|od)/.test(navigator.userAgent);
const isSafari = /^((?!chrome|android).)*safari/i.test(navigator.userAgent);
if (!isIOS || !isSafari) {
document.getElementById('ios-warning').style.display = 'flex';
}
</script>
</body>
</html>