Spaces:
Running
Running
Add 2 files
Browse files- README.md +7 -5
- index.html +334 -19
README.md
CHANGED
@@ -1,10 +1,12 @@
|
|
1 |
---
|
2 |
-
title:
|
3 |
-
emoji:
|
4 |
-
colorFrom:
|
5 |
-
colorTo:
|
6 |
sdk: static
|
7 |
pinned: false
|
|
|
|
|
8 |
---
|
9 |
|
10 |
-
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
1 |
---
|
2 |
+
title: gayalex
|
3 |
+
emoji: 🐳
|
4 |
+
colorFrom: blue
|
5 |
+
colorTo: purple
|
6 |
sdk: static
|
7 |
pinned: false
|
8 |
+
tags:
|
9 |
+
- deepsite
|
10 |
---
|
11 |
|
12 |
+
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
index.html
CHANGED
@@ -1,19 +1,334 @@
|
|
1 |
-
<!
|
2 |
-
<html>
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<!DOCTYPE html>
|
2 |
+
<html lang="pt-BR">
|
3 |
+
<head>
|
4 |
+
<meta charset="UTF-8">
|
5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6 |
+
<title>Gaya Lex - Pesquisa Simples</title>
|
7 |
+
<script src="https://cdn.tailwindcss.com"></script>
|
8 |
+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
|
9 |
+
<style>
|
10 |
+
:root {
|
11 |
+
--bg-primary: #1a1a1a;
|
12 |
+
--bg-secondary: #252525;
|
13 |
+
--bg-tertiary: #2d2d2d;
|
14 |
+
--text-primary: #e0e0e0;
|
15 |
+
--text-secondary: #a0a0a0;
|
16 |
+
--accent-color: #7e57c2;
|
17 |
+
--border-color: #3d3d3d;
|
18 |
+
}
|
19 |
+
|
20 |
+
body {
|
21 |
+
font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
|
22 |
+
background-color: var(--bg-primary);
|
23 |
+
color: var(--text-primary);
|
24 |
+
margin: 0;
|
25 |
+
padding: 0;
|
26 |
+
height: 100vh;
|
27 |
+
}
|
28 |
+
|
29 |
+
.search-input {
|
30 |
+
background-color: var(--bg-tertiary);
|
31 |
+
border: 1px solid var(--border-color);
|
32 |
+
color: var(--text-primary);
|
33 |
+
}
|
34 |
+
|
35 |
+
.search-input:focus {
|
36 |
+
outline: none;
|
37 |
+
border-color: var(--accent-color);
|
38 |
+
}
|
39 |
+
|
40 |
+
.result-card {
|
41 |
+
background-color: var(--bg-secondary);
|
42 |
+
border-left: 3px solid var(--accent-color);
|
43 |
+
}
|
44 |
+
|
45 |
+
.btn-primary {
|
46 |
+
background-color: var(--accent-color);
|
47 |
+
}
|
48 |
+
|
49 |
+
.btn-primary:hover {
|
50 |
+
background-color: #9575cd;
|
51 |
+
}
|
52 |
+
|
53 |
+
.btn-secondary {
|
54 |
+
background-color: var(--bg-tertiary);
|
55 |
+
border: 1px solid var(--border-color);
|
56 |
+
}
|
57 |
+
|
58 |
+
.btn-secondary:hover {
|
59 |
+
background-color: #3d3d3d;
|
60 |
+
}
|
61 |
+
|
62 |
+
.info-card {
|
63 |
+
background-color: var(--bg-secondary);
|
64 |
+
border: 1px solid var(--border-color);
|
65 |
+
}
|
66 |
+
</style>
|
67 |
+
</head>
|
68 |
+
<body class="flex flex-col">
|
69 |
+
<!-- Header -->
|
70 |
+
<header class="bg-gray-800 p-4 border-b border-gray-700">
|
71 |
+
<div class="container mx-auto flex justify-between items-center">
|
72 |
+
<div class="flex items-center space-x-2">
|
73 |
+
<i class="fas fa-gavel text-purple-500 text-2xl"></i>
|
74 |
+
<span class="font-semibold text-xl text-white">Gaya Lex</span>
|
75 |
+
</div>
|
76 |
+
<nav class="flex space-x-4">
|
77 |
+
<a href="#" class="text-gray-400 hover:text-white">Pesquisa Simples</a>
|
78 |
+
<a href="#" class="text-gray-400 hover:text-white">Pesquisa Avançada</a>
|
79 |
+
<a href="#" class="text-gray-400 hover:text-white">Documentação</a>
|
80 |
+
</nav>
|
81 |
+
<div class="flex items-center space-x-3">
|
82 |
+
<div class="w-8 h-8 rounded-full bg-purple-600 flex items-center justify-center text-white">
|
83 |
+
<i class="fas fa-user"></i>
|
84 |
+
</div>
|
85 |
+
<span class="text-sm text-white">Usuário</span>
|
86 |
+
</div>
|
87 |
+
</div>
|
88 |
+
</header>
|
89 |
+
|
90 |
+
<!-- Main Content -->
|
91 |
+
<main class="flex-1 container mx-auto p-6">
|
92 |
+
<div class="max-w-4xl mx-auto">
|
93 |
+
<!-- Search Section -->
|
94 |
+
<section class="mb-8">
|
95 |
+
<h1 class="text-2xl font-bold text-white mb-4">Pesquisa Simples de Processos Judiciais</h1>
|
96 |
+
<div class="info-card rounded-lg p-6 mb-6">
|
97 |
+
<p class="text-gray-300 mb-4">
|
98 |
+
Digite qualquer uma das informações abaixo para localizar processos em todos os tribunais do Brasil:
|
99 |
+
</p>
|
100 |
+
<ul class="list-disc list-inside text-gray-400 space-y-1 mb-4">
|
101 |
+
<li>CPF do participante</li>
|
102 |
+
<li>RG do participante</li>
|
103 |
+
<li>Nome completo do participante</li>
|
104 |
+
<li>Número da OAB do advogado</li>
|
105 |
+
</ul>
|
106 |
+
<p class="text-gray-300">
|
107 |
+
A busca retornará uma lista organizada com todos os processos encontrados, incluindo:
|
108 |
+
</p>
|
109 |
+
<ul class="list-disc list-inside text-gray-400 space-y-1">
|
110 |
+
<li>Número do processo</li>
|
111 |
+
<li>Tribunal</li>
|
112 |
+
<li>Nome das partes</li>
|
113 |
+
<li>Link direto para consultar o processo</li>
|
114 |
+
</ul>
|
115 |
+
</div>
|
116 |
+
|
117 |
+
<div class="flex items-end space-x-4">
|
118 |
+
<div class="flex-1">
|
119 |
+
<label for="search-term" class="block text-gray-400 text-sm font-medium mb-2">Termo de busca</label>
|
120 |
+
<input
|
121 |
+
type="text"
|
122 |
+
id="search-term"
|
123 |
+
class="search-input w-full p-3 rounded-lg"
|
124 |
+
placeholder="Ex: 123.456.789-10 ou João Silva ou OAB/SP 123456"
|
125 |
+
>
|
126 |
+
</div>
|
127 |
+
<button id="search-button" class="btn-primary py-3 px-6 rounded-lg flex items-center space-x-2 h-12">
|
128 |
+
<i class="fas fa-search"></i>
|
129 |
+
<span>Pesquisar</span>
|
130 |
+
</button>
|
131 |
+
</div>
|
132 |
+
<div class="mt-2 text-right">
|
133 |
+
<a href="#" class="text-purple-400 hover:text-purple-300 text-sm">
|
134 |
+
<i class="fas fa-cog mr-1"></i> Pesquisa Avançada
|
135 |
+
</a>
|
136 |
+
</div>
|
137 |
+
</section>
|
138 |
+
|
139 |
+
<!-- Results Section -->
|
140 |
+
<section id="results-section" class="hidden">
|
141 |
+
<div class="flex justify-between items-center mb-4">
|
142 |
+
<h2 class="text-xl font-semibold text-white">Resultados da Pesquisa</h2>
|
143 |
+
<div class="flex space-x-2">
|
144 |
+
<button class="btn-secondary py-2 px-4 rounded-lg flex items-center space-x-1">
|
145 |
+
<i class="fas fa-download"></i>
|
146 |
+
<span>Exportar</span>
|
147 |
+
</button>
|
148 |
+
<button class="btn-secondary py-2 px-4 rounded-lg flex items-center space-x-1">
|
149 |
+
<i class="fas fa-filter"></i>
|
150 |
+
<span>Filtrar</span>
|
151 |
+
</button>
|
152 |
+
</div>
|
153 |
+
</div>
|
154 |
+
|
155 |
+
<div id="results-container" class="space-y-4">
|
156 |
+
<!-- Results will be inserted here dynamically -->
|
157 |
+
</div>
|
158 |
+
|
159 |
+
<div class="mt-6 flex justify-center">
|
160 |
+
<nav class="inline-flex space-x-1">
|
161 |
+
<button class="btn-secondary py-2 px-4 rounded-lg">
|
162 |
+
<i class="fas fa-chevron-left"></i>
|
163 |
+
</button>
|
164 |
+
<button class="btn-primary py-2 px-4 rounded-lg">1</button>
|
165 |
+
<button class="btn-secondary py-2 px-4 rounded-lg">2</button>
|
166 |
+
<button class="btn-secondary py-2 px-4 rounded-lg">3</button>
|
167 |
+
<button class="btn-secondary py-2 px-4 rounded-lg">
|
168 |
+
<i class="fas fa-chevron-right"></i>
|
169 |
+
</button>
|
170 |
+
</nav>
|
171 |
+
</div>
|
172 |
+
</section>
|
173 |
+
|
174 |
+
<!-- Empty State -->
|
175 |
+
<section id="empty-state" class="text-center py-12">
|
176 |
+
<div class="mx-auto w-24 h-24 bg-gray-800 rounded-full flex items-center justify-center mb-4">
|
177 |
+
<i class="fas fa-search text-3xl text-gray-500"></i>
|
178 |
+
</div>
|
179 |
+
<h3 class="text-xl font-medium text-gray-300 mb-2">Nenhuma pesquisa realizada</h3>
|
180 |
+
<p class="text-gray-500 max-w-md mx-auto">
|
181 |
+
Digite um CPF, RG, nome completo ou número da OAB no campo acima para buscar processos judiciais em todos os tribunais do Brasil.
|
182 |
+
</p>
|
183 |
+
</section>
|
184 |
+
|
185 |
+
<!-- Loading State -->
|
186 |
+
<section id="loading-state" class="hidden text-center py-12">
|
187 |
+
<div class="animate-spin rounded-full h-12 w-12 border-t-2 border-b-2 border-purple-500 mx-auto mb-4"></div>
|
188 |
+
<p class="text-gray-400">Buscando processos...</p>
|
189 |
+
</section>
|
190 |
+
</div>
|
191 |
+
</main>
|
192 |
+
|
193 |
+
<!-- Footer -->
|
194 |
+
<footer class="bg-gray-800 border-t border-gray-700 py-4">
|
195 |
+
<div class="container mx-auto px-4 text-center text-gray-500 text-sm">
|
196 |
+
<p>© 2023 Gaya Lex - Consulta Processual. Todos os direitos reservados.</p>
|
197 |
+
<p class="mt-1">Dados fornecidos pela API Pública do DataJud - CNJ</p>
|
198 |
+
</div>
|
199 |
+
</footer>
|
200 |
+
|
201 |
+
<script>
|
202 |
+
document.addEventListener('DOMContentLoaded', function() {
|
203 |
+
const searchButton = document.getElementById('search-button');
|
204 |
+
const searchTerm = document.getElementById('search-term');
|
205 |
+
const resultsSection = document.getElementById('results-section');
|
206 |
+
const emptyState = document.getElementById('empty-state');
|
207 |
+
const loadingState = document.getElementById('loading-state');
|
208 |
+
const resultsContainer = document.getElementById('results-container');
|
209 |
+
|
210 |
+
searchButton.addEventListener('click', performSearch);
|
211 |
+
searchTerm.addEventListener('keypress', function(e) {
|
212 |
+
if (e.key === 'Enter') {
|
213 |
+
performSearch();
|
214 |
+
}
|
215 |
+
});
|
216 |
+
|
217 |
+
function performSearch() {
|
218 |
+
const term = searchTerm.value.trim();
|
219 |
+
if (!term) return;
|
220 |
+
|
221 |
+
// Show loading state
|
222 |
+
emptyState.classList.add('hidden');
|
223 |
+
resultsSection.classList.add('hidden');
|
224 |
+
loadingState.classList.remove('hidden');
|
225 |
+
|
226 |
+
// Simulate API call delay
|
227 |
+
setTimeout(() => {
|
228 |
+
loadingState.classList.add('hidden');
|
229 |
+
|
230 |
+
if (term.toLowerCase().includes('teste') || term.toLowerCase().includes('erro')) {
|
231 |
+
showEmptyResults();
|
232 |
+
} else {
|
233 |
+
showResults(term);
|
234 |
+
}
|
235 |
+
}, 1500);
|
236 |
+
}
|
237 |
+
|
238 |
+
function showResults(term) {
|
239 |
+
resultsSection.classList.remove('hidden');
|
240 |
+
resultsContainer.innerHTML = '';
|
241 |
+
|
242 |
+
// Sample results - in a real app, this would come from the API
|
243 |
+
const sampleResults = [
|
244 |
+
{
|
245 |
+
processNumber: '0001234-56.2023.5.00.0000',
|
246 |
+
tribunal: 'TST - Tribunal Superior do Trabalho',
|
247 |
+
parties: 'João Silva vs. Empresa XYZ Ltda.',
|
248 |
+
status: 'Ativo',
|
249 |
+
date: '15/03/2023',
|
250 |
+
subject: 'Rescisão de contrato'
|
251 |
+
},
|
252 |
+
{
|
253 |
+
processNumber: '0005678-90.2022.8.26.0100',
|
254 |
+
tribunal: 'TJSP - Tribunal de Justiça de São Paulo',
|
255 |
+
parties: 'Maria Oliveira vs. Banco ABC S.A.',
|
256 |
+
status: 'Arquivado',
|
257 |
+
date: '22/11/2022',
|
258 |
+
subject: 'Cobrança indevida'
|
259 |
+
},
|
260 |
+
{
|
261 |
+
processNumber: '0009012-34.2021.4.01.3400',
|
262 |
+
tribunal: 'TRF1 - Tribunal Regional Federal da 1ª Região',
|
263 |
+
parties: 'Empresa DEF S.A. vs. União',
|
264 |
+
status: 'Em andamento',
|
265 |
+
date: '05/07/2021',
|
266 |
+
subject: 'Imposto de renda'
|
267 |
+
}
|
268 |
+
];
|
269 |
+
|
270 |
+
sampleResults.forEach(process => {
|
271 |
+
const processCard = document.createElement('div');
|
272 |
+
processCard.className = 'result-card rounded-lg p-5';
|
273 |
+
processCard.innerHTML = `
|
274 |
+
<div class="flex justify-between items-start mb-3">
|
275 |
+
<div>
|
276 |
+
<h3 class="font-semibold text-lg text-white">Processo nº ${process.processNumber}</h3>
|
277 |
+
<p class="text-sm text-gray-400">${process.tribunal}</p>
|
278 |
+
</div>
|
279 |
+
<span class="text-xs px-3 py-1 rounded-full ${getStatusColor(process.status)}">${process.status}</span>
|
280 |
+
</div>
|
281 |
+
<div class="mb-4">
|
282 |
+
<p class="text-gray-400 text-sm mb-1">Partes</p>
|
283 |
+
<p class="text-white">${process.parties}</p>
|
284 |
+
</div>
|
285 |
+
<div class="grid grid-cols-3 gap-4 text-sm">
|
286 |
+
<div>
|
287 |
+
<p class="text-gray-400 mb-1">Distribuição</p>
|
288 |
+
<p class="text-white">${process.date}</p>
|
289 |
+
</div>
|
290 |
+
<div>
|
291 |
+
<p class="text-gray-400 mb-1">Assunto</p>
|
292 |
+
<p class="text-white">${process.subject}</p>
|
293 |
+
</div>
|
294 |
+
<div>
|
295 |
+
<p class="text-gray-400 mb-1">Ações</p>
|
296 |
+
<a href="#" class="text-purple-400 hover:text-purple-300">Ver detalhes <i class="fas fa-external-link-alt ml-1"></i></a>
|
297 |
+
</div>
|
298 |
+
</div>
|
299 |
+
`;
|
300 |
+
resultsContainer.appendChild(processCard);
|
301 |
+
});
|
302 |
+
}
|
303 |
+
|
304 |
+
function showEmptyResults() {
|
305 |
+
resultsSection.classList.remove('hidden');
|
306 |
+
resultsContainer.innerHTML = `
|
307 |
+
<div class="text-center py-12">
|
308 |
+
<div class="mx-auto w-24 h-24 bg-gray-800 rounded-full flex items-center justify-center mb-4">
|
309 |
+
<i class="fas fa-exclamation-triangle text-3xl text-yellow-500"></i>
|
310 |
+
</div>
|
311 |
+
<h3 class="text-xl font-medium text-gray-300 mb-2">Nenhum processo encontrado</h3>
|
312 |
+
<p class="text-gray-500 max-w-md mx-auto">
|
313 |
+
Não foram encontrados processos com o termo "${searchTerm.value.trim()}". Verifique se os dados estão corretos ou tente uma pesquisa diferente.
|
314 |
+
</p>
|
315 |
+
</div>
|
316 |
+
`;
|
317 |
+
}
|
318 |
+
|
319 |
+
function getStatusColor(status) {
|
320 |
+
switch(status.toLowerCase()) {
|
321 |
+
case 'ativo':
|
322 |
+
return 'bg-green-900 text-green-300';
|
323 |
+
case 'em andamento':
|
324 |
+
return 'bg-blue-900 text-blue-300';
|
325 |
+
case 'arquivado':
|
326 |
+
return 'bg-gray-700 text-gray-300';
|
327 |
+
default:
|
328 |
+
return 'bg-gray-600 text-gray-200';
|
329 |
+
}
|
330 |
+
}
|
331 |
+
});
|
332 |
+
</script>
|
333 |
+
<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=SherlockRamos/gayalex" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
|
334 |
+
</html>
|