Spaces:
Running
Running
Add 3 files
Browse files- README.md +6 -4
- index.html +184 -19
- prompts.txt +0 -0
README.md
CHANGED
@@ -1,10 +1,12 @@
|
|
1 |
---
|
2 |
-
title:
|
3 |
-
emoji:
|
4 |
-
colorFrom:
|
5 |
colorTo: green
|
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: teste-1-10
|
3 |
+
emoji: 🐳
|
4 |
+
colorFrom: pink
|
5 |
colorTo: green
|
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,184 @@
|
|
1 |
-
<!
|
2 |
-
<
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<!DOCTYPE html><html lang="pt-BR">
|
2 |
+
<head>
|
3 |
+
<meta charset="UTF-8" />
|
4 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
5 |
+
<title>Jornal Oliveira</title>
|
6 |
+
<style>
|
7 |
+
@font-face { font-family: 'Old English'; src: url('https://fonts.cdnfonts.com/s/20549/OldEnglishTextMT.woff') format('woff'); }
|
8 |
+
* { box-sizing: border-box; margin:0; padding:0; }
|
9 |
+
body { font-family: Arial, sans-serif; background:#fff; color:#000; }
|
10 |
+
header { background:#1b5e20; padding:1rem; text-align:center; }
|
11 |
+
header h1 { font-family:'Old English', serif; font-size:3rem; color:#fff; }
|
12 |
+
nav { display:flex; justify-content:center; background:#66bb6a; padding:0.5rem; gap:0.5rem; flex-wrap:wrap; }
|
13 |
+
nav button { background:#66bb6a; border:none; color:#fff; padding:0.5rem 1rem; cursor:pointer; font-weight:bold; transition:0.3s; }
|
14 |
+
nav button:hover { background:#4caf50; }
|
15 |
+
.container { max-width:900px; margin:1rem auto; padding:0 1rem; }
|
16 |
+
section { display:none; }
|
17 |
+
section.active { display:block; }
|
18 |
+
.btn { background:#1b5e20; color:#fff; border:none; padding:0.5rem 1rem; cursor:pointer; margin:0.5rem 0; }
|
19 |
+
.btn:hover { background:#145a16; }
|
20 |
+
.form-group { margin-bottom:1rem; }
|
21 |
+
.form-group label { display:block; margin-bottom:0.5rem; }
|
22 |
+
.form-group input, .form-group select, .form-group textarea { width:100%; padding:0.5rem; }
|
23 |
+
.article { background:#f5f5f5; border:1px solid #ddd; padding:1rem; margin-bottom:1rem; border-radius:5px; }
|
24 |
+
.article h3 { margin-bottom:0.5rem; }
|
25 |
+
.article .meta { font-size:0.9rem; color:#555; margin-bottom:0.5rem; }
|
26 |
+
.article .actions button { margin-right:0.5rem; }
|
27 |
+
details { margin-bottom:1rem; }
|
28 |
+
details summary { cursor:pointer; font-weight:bold; }
|
29 |
+
</style>
|
30 |
+
</head>
|
31 |
+
<body>
|
32 |
+
<header>
|
33 |
+
<h1>Jornal Oliveira</h1>
|
34 |
+
</header>
|
35 |
+
<nav>
|
36 |
+
<button onclick="openSection('inicio')">Início</button>
|
37 |
+
<button onclick="openSection('avaliar')">Avaliar</button>
|
38 |
+
<button onclick="openSection('sugestoes')">Sugestões</button>
|
39 |
+
<button onclick="openSection('participar')">Participe</button>
|
40 |
+
<button onclick="openSection('login')">Login</button>
|
41 |
+
<button id="btnEnviar" class="hidden" onclick="openSection('enviar')">Enviar Matéria</button>
|
42 |
+
<button id="btnEditor" class="hidden" onclick="openSection('editor')">Painel do Editor</button>
|
43 |
+
</nav> <div class="container">
|
44 |
+
<!-- Início -->
|
45 |
+
<section id="inicio" class="active">
|
46 |
+
<h2>Últimas Matérias</h2>
|
47 |
+
<div id="listaPublicadas"></div>
|
48 |
+
</section><!-- Avaliar -->
|
49 |
+
<section id="avaliar">
|
50 |
+
<h2>Avalie o Jornal</h2>
|
51 |
+
<div class="form-group">
|
52 |
+
<label>Nota (1-5):</label>
|
53 |
+
<select id="inputNota"><option></option><option>1</option><option>2</option><option>3</option><option>4</option><option>5</option></select>
|
54 |
+
</div>
|
55 |
+
<div class="form-group">
|
56 |
+
<label>Comentário:</label>
|
57 |
+
<textarea id="inputComent" rows="3"></textarea>
|
58 |
+
</div>
|
59 |
+
<button class="btn" onclick="enviarAvaliacao()">Enviar Avaliação</button>
|
60 |
+
</section>
|
61 |
+
|
62 |
+
<!-- Sugestões -->
|
63 |
+
<section id="sugestoes">
|
64 |
+
<h2>Sugestões</h2>
|
65 |
+
<div class="form-group">
|
66 |
+
<label>Texto (mín. 10 palavras):</label>
|
67 |
+
<textarea id="inputSugestao" rows="3"></textarea>
|
68 |
+
</div>
|
69 |
+
<button class="btn" onclick="enviarSugestao()">Enviar Sugestão</button>
|
70 |
+
</section>
|
71 |
+
|
72 |
+
<!-- Participe -->
|
73 |
+
<section id="participar">
|
74 |
+
<h2>Participe do Jornal</h2>
|
75 |
+
<div class="form-group"><label>Nome completo:</label><input id="inpNome" type="text"></div>
|
76 |
+
<div class="form-group"><label>Série:</label><input id="inpSerie" type="text"></div>
|
77 |
+
<div class="form-group"><label>Período:</label><select id="inpPeriodo"><option></option><option>Manhã</option><option>Tarde</option><option>Noite</option></select></div>
|
78 |
+
<div class="form-group"><label>RA (000...):</label><input id="inpRA" type="text" pattern="000[0-9]+"></div>
|
79 |
+
<details>
|
80 |
+
<summary>Termo de Condição de Participação</summary>
|
81 |
+
<p><strong>TERMO DE CONDIÇÃO DE PARTICIPAÇÃO – JORNAL OLIVEIRA</strong></p>
|
82 |
+
<p>Prezado(a) estudante, para fins de organização e reconhecimento dos participantes do Jornal Oliveira, solicitamos que os novos integrantes forneçam o seu RA (Registro do Aluno) no momento da inscrição. Essa informação será utilizada exclusivamente para identificação interna no âmbito do projeto.</p>
|
83 |
+
<p>O Jornal Oliveira compromete-se a utilizar o RA apenas para os fins aqui descritos, não realizando qualquer tipo de divulgação ou compartilhamento não autorizado. Contudo, ao fornecer essa informação, o participante declara estar ciente de que a organização não se responsabiliza por eventuais vazamentos ou acessos indevidos que ocorram por fatores externos ou alheios à sua vontade.</p>
|
84 |
+
<p>Ao assinalar a opção abaixo, o(a) participante declara estar de acordo com os termos apresentados e autoriza expressamente o uso do seu RA para os fins descritos.</p>
|
85 |
+
</details>
|
86 |
+
<div><input id="chkTermo" type="checkbox"> Declaro que li e concordo com os termos acima para participar do Jornal Oliveira.</div>
|
87 |
+
<button class="btn" onclick="enviarParticipacao()">Enviar Inscrição</button>
|
88 |
+
</section>
|
89 |
+
|
90 |
+
<!-- Login -->
|
91 |
+
<section id="login">
|
92 |
+
<h2>Login</h2>
|
93 |
+
<div class="form-group"><input id="inpCodigo" type="password" placeholder="Código" /></div>
|
94 |
+
<button class="btn" onclick="fazerLogin()">Entrar</button>
|
95 |
+
</section>
|
96 |
+
|
97 |
+
<!-- Enviar Matéria -->
|
98 |
+
<section id="enviar">
|
99 |
+
<h2>Enviar Matéria</h2>
|
100 |
+
<div class="form-group"><label>Categoria:</label><select id="inpCat"><option></option><option>Notícias da Escola</option><option>Entrevistas</option><option>Opinião</option><option>Cultura e Arte</option><option>Esportes</option><option>Humor</option><option>Você Sabia?</option><option>Projetos e Grêmios</option><option>Fala Estudante</option><option>Investigação</option></select></div>
|
101 |
+
<div class="form-group"><label>Título:</label><input type="text" id="inpTitulo" /></div>
|
102 |
+
<div class="form-group"><label>Líde:</label><textarea id="inpLide" rows="2"></textarea></div>
|
103 |
+
<div class="form-group"><label>Corpo:</label><textarea id="inpCorpo" rows="4"></textarea></div>
|
104 |
+
<div class="form-group"><label>Autor:</label><input type="text" id="inpAutor" /></div>
|
105 |
+
<div class="form-group"><label>Outros participantes (opcional):</label><input type="text" id="inpPart" /></div>
|
106 |
+
<div class="form-group"><label>Data:</label><input type="date" id="inpData" /></div>
|
107 |
+
<button class="btn" onclick="enviarMateria()">Enviar para Aprovação</button>
|
108 |
+
</section>
|
109 |
+
|
110 |
+
<!-- Painel do Editor -->
|
111 |
+
<section id="editor">
|
112 |
+
<h2>Painel do Editor</h2>
|
113 |
+
<div id="pendentes"></div>
|
114 |
+
</section>
|
115 |
+
|
116 |
+
</div> <script>
|
117 |
+
let materias = [], pendentes = [];
|
118 |
+
function openSection(id) {
|
119 |
+
// Restrição de acesso
|
120 |
+
if (id === 'enviar' && modo !== 'jornalista' && modo !== 'editor') {
|
121 |
+
return alert('Você precisa logar como Jornalista para enviar matérias.');
|
122 |
+
}
|
123 |
+
if (id === 'editor' && modo !== 'editor') {
|
124 |
+
return alert('Você precisa logar como Editor para acessar este painel.');
|
125 |
+
}
|
126 |
+
document.querySelectorAll('section').forEach(s => s.classList.remove('active'));
|
127 |
+
document.getElementById(id).classList.add('active');
|
128 |
+
}
|
129 |
+
|
130 |
+
function enviarAvaliacao() {
|
131 |
+
const n = document.getElementById('inputNota').value;
|
132 |
+
const c = document.getElementById('inputComent').value.trim();
|
133 |
+
if(!n||!c) return alert('Preencha nota e comentário.');
|
134 |
+
alert('Avaliação enviada!');
|
135 |
+
document.getElementById('inputNota').value='';
|
136 |
+
document.getElementById('inputComent').value='';
|
137 |
+
}
|
138 |
+
|
139 |
+
function enviarSugestao() {
|
140 |
+
const t = document.getElementById('inputSugestao').value.trim();
|
141 |
+
if(t.split(' ').length<10) return alert('Mínimo 10 palavras.');
|
142 |
+
alert('Sugestão enviada!'); document.getElementById('inputSugestao').value='';
|
143 |
+
}
|
144 |
+
|
145 |
+
function enviarParticipacao() {
|
146 |
+
const n=document.getElementById('inpNome').value.trim();
|
147 |
+
const s=document.getElementById('inpSerie').value.trim();
|
148 |
+
const p=document.getElementById('inpPeriodo').value;
|
149 |
+
const r=document.getElementById('inpRA').value.trim();
|
150 |
+
const ok=document.getElementById('chkTermo').checked;
|
151 |
+
if(!n||!s||!p||!r.startsWith('000')||!ok) return alert('Complete e aceite.');
|
152 |
+
alert('Inscrição enviada!'); document.getElementById('inpNome').value='';
|
153 |
+
}
|
154 |
+
|
155 |
+
function fazerLogin() {
|
156 |
+
const code=document.getElementById('inpCodigo').value.trim();
|
157 |
+
document.getElementById('btnEnviar').classList.add('hidden');
|
158 |
+
document.getElementById('btnEditor').classList.add('hidden');
|
159 |
+
if(code==='BRJORNAL') document.getElementById('btnEnviar').classList.remove('hidden');
|
160 |
+
else if(code==='BRJORNALEDITOR') document.getElementById('btnEditor').classList.remove('hidden');
|
161 |
+
else return alert('Código inválido');
|
162 |
+
openSection('inicio'); renderPublicadas();
|
163 |
+
}
|
164 |
+
|
165 |
+
function enviarMateria() {
|
166 |
+
const m={cat:document.getElementById('inpCat').value,titulo:document.getElementById('inpTitulo').value.trim(),lide:document.getElementById('inpLide').value.trim(),corpo:document.getElementById('inpCorpo').value.trim(),autor:document.getElementById('inpAutor').value.trim(),part:document.getElementById('inpPart').value.trim(),data:document.getElementById('inpData').value};
|
167 |
+
if(!m.cat||!m.titulo||!m.lide||!m.corpo||!m.autor||!m.data) return alert('Preencha todos');
|
168 |
+
pendentes.push(m); alert('Enviado para aprovação'); renderPendentes();
|
169 |
+
}
|
170 |
+
|
171 |
+
function renderPublicadas() {
|
172 |
+
const out=document.getElementById('listaPublicadas'); out.innerHTML='';
|
173 |
+
materias.forEach(m=>{ const d=document.createElement('div'); d.className='article'; d.innerHTML=`<h3>${m.titulo}</h3><div class="meta">${m.cat} - ${m.data}</div><p>${m.lide}</p><span onclick="alert('${m.corpo}')" style="color:blue;cursor:pointer;">Leia mais</span>`; out.appendChild(d);} );
|
174 |
+
}
|
175 |
+
|
176 |
+
function renderPendentes() {
|
177 |
+
const out=document.getElementById('pendentes'); out.innerHTML='';
|
178 |
+
pendentes.forEach((m,i)=>{ const d=document.createElement('div'); d.className='article'; d.innerHTML=`<h3>${m.titulo}</h3><div class="meta">${m.cat} - ${m.data}</div><p>${m.lide}</p><div class="actions"><button class="btn" onclick="aprovar(${i})">Aprovar</button><button class="btn" onclick="rejeitar(${i})">Rejeitar</button></div>`; out.appendChild(d);} );
|
179 |
+
}
|
180 |
+
|
181 |
+
function aprovar(i) { materias.push(pendentes.splice(i,1)[0]); renderPendentes(); renderPublicadas(); }
|
182 |
+
function rejeitar(i) { pendentes.splice(i,1); renderPendentes(); }
|
183 |
+
</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=Rwhehhehe/teste-1-10" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
|
184 |
+
</html>
|
prompts.txt
ADDED
File without changes
|