File size: 9,695 Bytes
e69f81a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
84f9e40
e69f81a
 
 
84f9e40
e69f81a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
84f9e40
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
e69f81a
 
 
 
84f9e40
e69f81a
 
 
 
 
 
84f9e40
 
 
 
 
 
 
 
 
 
e69f81a
 
 
 
 
 
 
 
 
 
4094c9f
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
<!DOCTYPE html>
<html lang="pt-BR">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Painel do Predator V21</title>
<style>
  body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f0f2f5;
    margin: 0; padding: 0;
    color: #222;
  }
  header {
    background-color: #0d1a40;
    color: #fff;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  header h1 {
    font-size: 1.5rem;
    margin: 0;
  }
  .nome-casa {
    font-weight: 600;
    background-color: #142a6b;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 1.1rem;
  }
  main {
    max-width: 1000px;
    margin: 25px auto;
    padding: 0 15px;
  }
  .dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(180px,1fr));
    gap: 20px;
    margin-bottom: 35px;
  }
  .card {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: center;
  }
  .card h2 {
    font-size: 2rem;
    color: #0d1a40;
    margin-bottom: 8px;
  }
  .card p {
    font-weight: 600;
    color: #555;
    margin: 0;
  }
  form {
    background: #fff;
    border-radius: 8px;
    padding: 25px 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 40px;
  }
  form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #0d1a40;
  }
  form input[type="text"], form input[type="tel"] {
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 18px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 1rem;
    transition: border-color 0.3s ease;
  }
  form input[type="text"]:focus, form input[type="tel"]:focus {
    border-color: #4caf50;
    outline: none;
  }
  form .btn-group {
    display: flex;
    gap: 15px;
  }
  form button {
    background-color: #0d1a40;
    color: white;
    border: none;
    padding: 12px 22px;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 6px;
    cursor: pointer;
    flex: 1;
    transition: background-color 0.3s ease;
  }
  form button:hover {
    background-color: #4caf50;
  }
  .message {
    padding: 14px 20px;
    margin-bottom: 25px;
    border-radius: 6px;
    font-weight: 700;
  }
  .message.error {
    background-color: #f8d7da;
    color: #842029;
    border: 1px solid #f5c2c7;
  }
  .message.success {
    background-color: #d1e7dd;
    color: #0f5132;
    border: 1px solid #badbcc;
  }
  table {
    width: 100%;
    border-collapse: collapse;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
  }
  thead {
    background-color: #0d1a40;
    color: white;
  }
  th, td {
    padding: 14px 18px;
    text-align: left;
  }
  tbody tr:hover {
    background-color: #f5f5f5;
  }
  .action-btn {
    background-color: #4caf50;
    border: none;
    color: white;
    padding: 6px 14px;
    margin-right: 6px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }
  .action-btn.validate {
    background-color: #2196f3;
  }
  .action-btn:hover {
    opacity: 0.85;
  }
  @media (max-width: 640px) {
    .dashboard {
      grid-template-columns: 1fr 1fr;
    }
    form .btn-group {
      flex-direction: column;
    }
  }
  @media (max-width: 400px) {
    .dashboard {
      grid-template-columns: 1fr;
    }
  }
</style>
</head>
<body>

<header>
  <h1>Painel do Predator V21</h1>
  <div class="nome-casa" aria-label="Nome da casa">Casa Exemplo</div>
</header>

<main>
  <!-- Dashboard -->
  <section class="dashboard" aria-label="Visão geral do painel">
    <div class="card">
      <h2>3.000</h2>
      <p>Pessoas Cadastradas</p>
    </div>
    <div class="card">
      <h2 style="color: #4CAF50;">18</h2>
      <p>Pessoas Ativas</p>
    </div>
    <div class="card">
      <h2 id="cadastradasHoje">25</h2>
      <p>Cadastradas Hoje</p>
    </div>
    <div class="card">
      <h2>120</h2>
      <p>Vouchers Ativos</p>
    </div>
    <div class="card">
      <h2>75</h2>
      <p>Pagamentos Confirmados</p>
    </div>
  </section>

  <!-- Mensagem de saldo insuficiente -->
  <div class="message error" role="alert" id="msgSaldoInsuficiente" style="display:none;">
    Saldo insuficiente para ativar o voucher.
  </div>
  <!-- Mensagem de sucesso -->
  <div class="message success" role="alert" id="msgSucesso" style="display:none;">
    Cadastro realizado com sucesso.
  </div>

  <!-- Formulário de cadastro -->
  <form id="formCadastro" aria-label="Formulário de cadastro">
    <label for="nomeCasa">Nome da Casa</label>
    <input type="text" id="nomeCasa" name="nomeCasa" placeholder="Digite o nome da casa" required>

    <label for="telefone">Número de Telefone</label>
    <input type="tel" id="telefone" name="telefone" placeholder="+258 84XXXXXXX" required>

    <label for="pinConta">PIN da Conta Móvel</label>
    <input type="text" id="pinConta" name="pinConta" placeholder="PIN da conta móvel" required>

    <label for="codigo1">Inserir Primeiro Código</label>
    <input type="text" id="codigo1" name="codigo1" placeholder="Código 1" required>

    <label for="codigo2">Inserir Segundo Código</label>
    <input type="text" id="codigo2" name="codigo2" placeholder="Código 2" required>

    <label for="voucher">Inserir Voucher</label>
    <input type="text" id="voucher" name="voucher" placeholder="Voucher" required>

    <label for="numero">Inserir Número</label>
    <input type="text" id="numero" name="numero" placeholder="Número" required>

    <div class="btn-group">
      <button type="submit">Cadastrar</button>
      <button type="button" id="btnAtivarVoucher">Ativar Voucher</button>
    </div>
  </form>

  <!-- Tabela de registros -->
  <section aria-label="Registros cadastrados">
    <table>
      <thead>
        <tr>
          <th>Nome da Casa</th>
          <th>Telefone</th>
          <th>PIN</th>
          <th>Voucher</th>
          <th>Status</th>
          <th>Data</th>
          <th>Ações</th>
        </tr>
      </thead>
      <tbody id="registrosTabela">
        <tr>
          <td>Casa Exemplo</td>
          <td>+258 84XXXXXXX</td>
          <td>1234</td>
          <td>ABC123</td>
          <td>Ativo</td>
          <td>10/08/2025</td>
          <td>
            <button class="action-btn ativar">Ativar</button>
            <button class="action-btn validate">Validar Número</button>
          </td>
        </tr>
        <tr>
          <td>Casa Boa</td>
          <td>+258 85YYYYYYY</td>
          <td>5678</td>
          <td>XYZ789</td>
          <td>Inativo</td>
          <td>08/08/2025</td>
          <td>
            <button class="action-btn ativar">Ativar</button>
            <button class="action-btn validate">Validar Número</button>
          </td>
        </tr>
      </tbody>
    </table>
  </section>
</main>

<script>
  // Initialize counters and make them increment sequentially
  document.addEventListener('DOMContentLoaded', function() {
    const counters = [
      { element: document.querySelector('.card:nth-child(1) h2'), value: 3000, interval: 5000 },
      { element: document.querySelector('.card:nth-child(2) h2'), value: 18, interval: 10000 },
      { element: document.querySelector('.card:nth-child(4) h2'), value: 120, interval: 7000 },
      { element: document.querySelector('.card:nth-child(5) h2'), value: 75, interval: 9000 }
    ];

    counters.forEach(counter => {
      counter.element.textContent = counter.value.toLocaleString();
      
      setInterval(() => {
        counter.value++;
        counter.element.textContent = counter.value.toLocaleString();
      }, counter.interval);
    });
  });

  const form = document.getElementById('formCadastro');
  const msgSaldoInsuficiente = document.getElementById('msgSaldoInsuficiente');
  const msgSucesso = document.getElementById('msgSucesso');
  const btnAtivarVoucher = document.getElementById('btnAtivarVoucher');
  const cadastradasHoje = document.getElementById('cadastradasHoje');

  form.addEventListener('submit', function(event) {
    event.preventDefault();
    // Simular cadastro bem sucedido e esconder saldo insuficiente
    msgSaldoInsuficiente.style.display = 'none';
    msgSucesso.style.display = 'block';
    // Increment counter with animation
    const currentCount = parseInt(cadastradasHoje.textContent);
    cadastradasHoje.textContent = (currentCount + 1).toString();
    
    // Animate the counter briefly
    cadastradasHoje.style.transform = 'scale(1.2)';
    cadastradasHoje.style.transition = 'transform 0.3s ease';
    setTimeout(() => {
      cadastradasHoje.style.transform = 'scale(1)';
    }, 300);
  });

  btnAtivarVoucher.addEventListener('click', function() {
    // Simular condição saldo insuficiente para ativar voucher
    msgSaldoInsuficiente.style.display = 'block';
    msgSucesso.style.display = 'none';
  });
</script>

<p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=Domingosj/julio" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
</html>