Add 3 files
Browse files- README.md +7 -5
- index.html +237 -19
- prompts.txt +0 -0
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: teste-1-2
|
3 |
+
emoji: 🐳
|
4 |
+
colorFrom: pink
|
5 |
+
colorTo: yellow
|
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,237 @@
|
|
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"><head>
|
2 |
+
<meta charset="UTF-8">
|
3 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
4 |
+
<title>Jornal Oliveira</title>
|
5 |
+
<style>
|
6 |
+
body {
|
7 |
+
margin: 0;
|
8 |
+
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
9 |
+
background-color: #C3CA92;
|
10 |
+
color: #20331B;
|
11 |
+
}header {
|
12 |
+
background-color: #697E50;
|
13 |
+
padding: 10px 20px;
|
14 |
+
color: white;
|
15 |
+
display: flex;
|
16 |
+
justify-content: space-between;
|
17 |
+
align-items: center;
|
18 |
+
}
|
19 |
+
|
20 |
+
nav button {
|
21 |
+
margin: 0 5px;
|
22 |
+
padding: 10px;
|
23 |
+
background-color: #859864;
|
24 |
+
color: white;
|
25 |
+
border: none;
|
26 |
+
cursor: pointer;
|
27 |
+
border-radius: 8px;
|
28 |
+
}
|
29 |
+
|
30 |
+
nav button:hover {
|
31 |
+
background-color: #A4B17B;
|
32 |
+
}
|
33 |
+
|
34 |
+
section {
|
35 |
+
display: none;
|
36 |
+
padding: 20px;
|
37 |
+
background-color: #C3CA92;
|
38 |
+
}
|
39 |
+
|
40 |
+
.visible {
|
41 |
+
display: block;
|
42 |
+
}
|
43 |
+
|
44 |
+
.card {
|
45 |
+
background: white;
|
46 |
+
border-radius: 10px;
|
47 |
+
padding: 15px;
|
48 |
+
margin-bottom: 15px;
|
49 |
+
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
|
50 |
+
}
|
51 |
+
|
52 |
+
.login-modal {
|
53 |
+
position: fixed;
|
54 |
+
top: 0;
|
55 |
+
left: 0;
|
56 |
+
width: 100%;
|
57 |
+
height: 100%;
|
58 |
+
background: rgba(0, 0, 0, 0.7);
|
59 |
+
display: flex;
|
60 |
+
align-items: center;
|
61 |
+
justify-content: center;
|
62 |
+
}
|
63 |
+
|
64 |
+
.login-box {
|
65 |
+
background: white;
|
66 |
+
padding: 20px;
|
67 |
+
border-radius: 10px;
|
68 |
+
max-width: 300px;
|
69 |
+
text-align: center;
|
70 |
+
}
|
71 |
+
|
72 |
+
.error {
|
73 |
+
color: red;
|
74 |
+
margin-top: 10px;
|
75 |
+
}
|
76 |
+
|
77 |
+
</style>
|
78 |
+
</head><body>
|
79 |
+
<header>
|
80 |
+
<h1>Jornal Oliveira</h1>
|
81 |
+
<nav>
|
82 |
+
<button onclick="showSection('inicio')">Início</button>
|
83 |
+
<button onclick="showSection('avaliar')">Avaliar</button>
|
84 |
+
<button onclick="showSection('sugestoes')">Sugestões</button>
|
85 |
+
<button onclick="showSection('participar')">Participe</button>
|
86 |
+
<button onclick="toggleLogin()">Login</button>
|
87 |
+
</nav>
|
88 |
+
</header> <section id="inicio" class="visible">
|
89 |
+
<h2>Últimas Matérias</h2>
|
90 |
+
<div id="materias"></div>
|
91 |
+
</section> <section id="avaliar">
|
92 |
+
<h2>Avaliar</h2>
|
93 |
+
<form onsubmit="salvarAvaliacao(event)">
|
94 |
+
<label>Nota:</label><br>
|
95 |
+
<input type="number" min="1" max="5" id="estrela" required><br>
|
96 |
+
<label>Comentário:</label><br>
|
97 |
+
<textarea id="comentario" required></textarea><br>
|
98 |
+
<button type="submit">Enviar Avaliação</button>
|
99 |
+
</form>
|
100 |
+
</section> <section id="sugestoes">
|
101 |
+
<h2>Sugestões</h2>
|
102 |
+
<form onsubmit="salvarSugestao(event)">
|
103 |
+
<textarea id="sugestao" required></textarea><br>
|
104 |
+
<button type="submit">Enviar Sugestão</button>
|
105 |
+
</form>
|
106 |
+
</section> <section id="participar">
|
107 |
+
<h2>Participe</h2>
|
108 |
+
<form onsubmit="salvarParticipacao(event)">
|
109 |
+
<input type="text" id="nome" placeholder="Seu nome" required><br>
|
110 |
+
<input type="text" id="sala" placeholder="Sua sala" required><br>
|
111 |
+
<input type="text" id="periodo" placeholder="Período" required><br>
|
112 |
+
<textarea id="descricao" placeholder="Descrição (opcional)"></textarea><br>
|
113 |
+
<button type="submit">Participar</button>
|
114 |
+
</form>
|
115 |
+
</section> <section id="painel-editor">
|
116 |
+
<h2>Painel do Editor</h2>
|
117 |
+
<button onclick="showSection('enviarMateria')">Enviar Matéria</button>
|
118 |
+
<button onclick="verAvaliacoes()">Ver Avaliações</button>
|
119 |
+
<button onclick="verSugestoes()">Ver Sugestões</button>
|
120 |
+
<button onclick="verParticipacoes()">Ver Participações</button>
|
121 |
+
</section> <section id="enviarMateria">
|
122 |
+
<h2>Enviar Matéria</h2>
|
123 |
+
<form onsubmit="salvarMateria(event)">
|
124 |
+
<input type="text" id="titulo" placeholder="Título" required><br>
|
125 |
+
<textarea id="conteudo" placeholder="Conteúdo" required></textarea><br>
|
126 |
+
<input type="text" id="autor" placeholder="Autor" required><br>
|
127 |
+
<input type="text" id="participantes" placeholder="Participantes (opcional)"><br>
|
128 |
+
<button type="submit">Publicar</button>
|
129 |
+
</form>
|
130 |
+
</section> <div id="loginModal" class="login-modal" style="display:none">
|
131 |
+
<div class="login-box">
|
132 |
+
<h3>Login do Editor</h3>
|
133 |
+
<input type="password" id="senha"><br>
|
134 |
+
<button onclick="verificarSenha()">Entrar</button>
|
135 |
+
<p class="error" id="erroLogin"></p>
|
136 |
+
</div>
|
137 |
+
</div> <script>
|
138 |
+
const SECAO_IDS = ['inicio', 'avaliar', 'sugestoes', 'participar', 'painel-editor', 'enviarMateria'];
|
139 |
+
|
140 |
+
function showSection(id) {
|
141 |
+
SECAO_IDS.forEach(secao => {
|
142 |
+
document.getElementById(secao).classList.remove('visible');
|
143 |
+
});
|
144 |
+
document.getElementById(id).classList.add('visible');
|
145 |
+
}
|
146 |
+
|
147 |
+
function toggleLogin() {
|
148 |
+
document.getElementById('loginModal').style.display = 'flex';
|
149 |
+
}
|
150 |
+
|
151 |
+
let tentativas = 0;
|
152 |
+
function verificarSenha() {
|
153 |
+
const senha = document.getElementById('senha').value;
|
154 |
+
if (senha === 'BRJORNAL') {
|
155 |
+
document.getElementById('loginModal').style.display = 'none';
|
156 |
+
showSection('painel-editor');
|
157 |
+
} else {
|
158 |
+
tentativas++;
|
159 |
+
if (tentativas >= 3) {
|
160 |
+
document.getElementById('erroLogin').innerText = 'Muitas tentativas. Tente mais tarde ou fale com o responsável do jornal.';
|
161 |
+
} else {
|
162 |
+
document.getElementById('erroLogin').innerText = 'Senha incorreta. Tente novamente.';
|
163 |
+
}
|
164 |
+
}
|
165 |
+
}
|
166 |
+
|
167 |
+
function salvarMateria(e) {
|
168 |
+
e.preventDefault();
|
169 |
+
const titulo = document.getElementById('titulo').value;
|
170 |
+
const conteudo = document.getElementById('conteudo').value;
|
171 |
+
const autor = document.getElementById('autor').value;
|
172 |
+
const participantes = document.getElementById('participantes').value;
|
173 |
+
const materias = JSON.parse(localStorage.getItem('materias') || '[]');
|
174 |
+
materias.push({ titulo, conteudo, autor, participantes, data: new Date().toLocaleDateString() });
|
175 |
+
localStorage.setItem('materias', JSON.stringify(materias));
|
176 |
+
alert('Matéria enviada!');
|
177 |
+
showSection('inicio');
|
178 |
+
exibirMaterias();
|
179 |
+
}
|
180 |
+
|
181 |
+
function exibirMaterias() {
|
182 |
+
const materias = JSON.parse(localStorage.getItem('materias') || '[]');
|
183 |
+
const container = document.getElementById('materias');
|
184 |
+
container.innerHTML = '';
|
185 |
+
materias.forEach(mat => {
|
186 |
+
container.innerHTML += `<div class="card"><h3>${mat.titulo}</h3><p>${mat.conteudo}</p><p><strong>Por:</strong> ${mat.autor}</p><p><em>${mat.data}</em></p></div>`;
|
187 |
+
});
|
188 |
+
}
|
189 |
+
|
190 |
+
function salvarAvaliacao(e) {
|
191 |
+
e.preventDefault();
|
192 |
+
const estrela = document.getElementById('estrela').value;
|
193 |
+
const comentario = document.getElementById('comentario').value;
|
194 |
+
const avals = JSON.parse(localStorage.getItem('avaliacoes') || '[]');
|
195 |
+
avals.push({ estrela, comentario });
|
196 |
+
localStorage.setItem('avaliacoes', JSON.stringify(avals));
|
197 |
+
alert('Avaliação enviada!');
|
198 |
+
}
|
199 |
+
|
200 |
+
function salvarSugestao(e) {
|
201 |
+
e.preventDefault();
|
202 |
+
const sugestao = document.getElementById('sugestao').value;
|
203 |
+
const sugs = JSON.parse(localStorage.getItem('sugestoes') || '[]');
|
204 |
+
sugs.push(sugestao);
|
205 |
+
localStorage.setItem('sugestoes', JSON.stringify(sugs));
|
206 |
+
alert('Sugestão enviada!');
|
207 |
+
}
|
208 |
+
|
209 |
+
function salvarParticipacao(e) {
|
210 |
+
e.preventDefault();
|
211 |
+
const nome = document.getElementById('nome').value;
|
212 |
+
const sala = document.getElementById('sala').value;
|
213 |
+
const periodo = document.getElementById('periodo').value;
|
214 |
+
const descricao = document.getElementById('descricao').value;
|
215 |
+
const part = JSON.parse(localStorage.getItem('participacoes') || '[]');
|
216 |
+
part.push({ nome, sala, periodo, descricao });
|
217 |
+
localStorage.setItem('participacoes', JSON.stringify(part));
|
218 |
+
alert('Participação registrada!');
|
219 |
+
}
|
220 |
+
|
221 |
+
function verAvaliacoes() {
|
222 |
+
const avals = JSON.parse(localStorage.getItem('avaliacoes') || '[]');
|
223 |
+
alert(avals.map(a => `Nota: ${a.estrela}\nComentário: ${a.comentario}`).join('\n\n'));
|
224 |
+
}
|
225 |
+
|
226 |
+
function verSugestoes() {
|
227 |
+
const sugs = JSON.parse(localStorage.getItem('sugestoes') || '[]');
|
228 |
+
alert(sugs.join('\n---\n'));
|
229 |
+
}
|
230 |
+
|
231 |
+
function verParticipacoes() {
|
232 |
+
const part = JSON.parse(localStorage.getItem('participacoes') || '[]');
|
233 |
+
alert(part.map(p => `Nome: ${p.nome}, Sala: ${p.sala}, Período: ${p.periodo}\nDescrição: ${p.descricao}`).join('\n\n'));
|
234 |
+
}
|
235 |
+
|
236 |
+
window.onload = exibirMaterias;
|
237 |
+
</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-2" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body></html>
|
prompts.txt
ADDED
File without changes
|