-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
418 lines (391 loc) · 17.1 KB
/
Copy pathindex.html
File metadata and controls
418 lines (391 loc) · 17.1 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
410
411
412
413
414
415
416
417
418
<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Nautilus Lab · PROMPT FORGE AI</title>
<style>
:root {
--bg-dark: #0a0a0f;
--card-bg: #12121a;
--neon-cyan: #00f3ff;
--neon-purple: #bc13fe;
--text-main: #e0e0e0;
--text-dim: #888;
--border: #2a2a35;
}
body {
font-family: 'Segoe UI', system-ui, sans-serif;
background-color: var(--bg-dark);
color: var(--text-main);
margin: 0;
padding: 20px;
line-height: 1.6;
}
header {
text-align: center;
margin-bottom: 30px;
border-bottom: 1px solid var(--border);
padding-bottom: 20px;
}
h1 {
font-size: 2rem;
background: linear-gradient(90deg, var(--neon-cyan), var(--neon-purple));
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
margin: 0;
}
.container {
max-width: 1200px;
margin: 0 auto;
display: grid;
grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
gap: 20px;
}
.card {
background: var(--card-bg);
border: 1px solid var(--border);
border-radius: 12px;
padding: 20px;
box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}
.card h2 {
margin-top: 0;
color: var(--neon-cyan);
font-size: 1.2rem;
display: flex;
align-items: center;
gap: 10px;
}
.form-group {
margin-bottom: 15px;
}
label {
display: block;
margin-bottom: 5px;
font-size: 0.9rem;
color: var(--text-dim);
}
select, input, textarea {
width: 100%;
padding: 10px;
background: #1a1a24;
border: 1px solid var(--border);
border-radius: 6px;
color: var(--text-main);
font-size: 0.95rem;
box-sizing: border-box;
}
select:focus, input:focus, textarea:focus {
outline: none;
border-color: var(--neon-cyan);
}
textarea {
resize: vertical;
min-height: 80px;
}
.btn {
width: 100%;
padding: 12px;
background: linear-gradient(90deg, var(--neon-cyan), var(--neon-purple));
border: none;
border-radius: 6px;
color: #000;
font-weight: bold;
font-size: 1rem;
cursor: pointer;
transition: transform 0.1s, opacity 0.2s;
margin-top: 10px;
}
.btn:hover { opacity: 0.9; }
.btn:active { transform: scale(0.98); }
.output-box {
margin-top: 15px;
background: #050508;
border: 1px dashed var(--border);
border-radius: 6px;
padding: 15px;
min-height: 100px;
white-space: pre-wrap;
font-family: monospace;
font-size: 0.9rem;
position: relative;
}
.copy-btn {
position: absolute;
top: 10px;
right: 10px;
background: #333;
border: none;
color: #fff;
padding: 5px 10px;
border-radius: 4px;
cursor: pointer;
font-size: 0.8rem;
}
.copy-btn:hover { background: var(--neon-cyan); color: #000; }
.row { display: flex; gap: 10px; }
.row .form-group { flex: 1; }
</style>
</head>
<body>
<header>
<h1>⬡ Nautilus Lab · PROMPT FORGE AI</h1>
<p style="color: var(--text-dim); margin: 5px 0 0 0;">Sistema de Creación de Contenido (100% Offline / Sin APIs)</p>
</header>
<div class="container">
<!-- SECCIÓN 1: PROMPTS -->
<div class="card">
<h2>🔮 Generador de Prompts</h2>
<div class="row">
<div class="form-group">
<label>Tipo de contenido</label>
<select id="p-type">
<option>Imagen</option><option>Video</option><option>Personaje</option>
<option>Escena</option><option>Logo</option><option>Manga</option>
</select>
</div>
<div class="form-group">
<label>Idioma</label>
<select id="p-lang">
<option value="en">English</option>
<option value="es">Español</option>
</select>
</div>
</div>
<div class="form-group">
<label>Estilo visual</label>
<select id="p-style">
<option>Cyberpunk neon</option><option>Anime shonen</option><option>Voxel 3D</option>
<option>Pixel art retro</option><option>Dark fantasy</option><option>Synthwave</option>
<option>Lo-fi aesthetic</option><option>Hyperrealista</option>
</select>
</div>
<div class="row">
<div class="form-group">
<label>Calidad</label>
<select id="p-quality">
<option>4K ultra detailed</option><option>8K cinematic</option>
<option>Masterpiece quality</option><option>Concept art</option>
</select>
</div>
<div class="form-group">
<label>Longitud</label>
<select id="p-length">
<option value="short">Corto (~50)</option>
<option value="medium" selected>Medio (~100)</option>
<option value="long">Largo (150+)</option>
</select>
</div>
</div>
<div class="form-group">
<label>💡 Tu idea (Personajes, ambiente, colores, acción)</label>
<textarea id="p-idea" placeholder="Ej: Un samurai bajo la lluvia en una calle de neón..."></textarea>
</div>
<button class="btn" onclick="generatePrompt()">⚡ GENERAR PROMPT</button>
<div class="output-box" id="out-prompt">
<button class="copy-btn" onclick="copyText('out-prompt')">Copiar</button>
<span style="color: var(--text-dim);">El prompt aparecerá aquí...</span>
</div>
</div>
<!-- SECCIÓN 2: DESCRIPCIÓN -->
<div class="card">
<h2>📺 Generador de Descripción</h2>
<div class="form-group">
<label>Título del video</label>
<input type="text" id="v-title" placeholder="Ej: Construyendo una PC Cyberpunk">
</div>
<div class="row">
<div class="form-group">
<label>Género / Categoría</label>
<select id="v-genre">
<option>Anime / Manga</option><option>Gaming retro</option><option>Cyberpunk</option>
<option>Tech / Dev</option><option>Música / Beats</option><option>Tutorial</option>
</select>
</div>
<div class="form-group">
<label>Plataforma</label>
<select id="v-plat">
<option>YouTube</option><option>TikTok</option><option>Instagram</option>
</select>
</div>
</div>
<div class="form-group">
<label>De qué trata (resumen)</label>
<textarea id="v-summary" placeholder="Ej: En este video te muestro paso a paso..."></textarea>
</div>
<div class="form-group">
<label>🔗 Links a incluir (uno por línea)</label>
<textarea id="v-links" placeholder="https://miweb.com https://twitter.com/miuser"></textarea>
</div>
<button class="btn" onclick="generateDescription()">⚡ GENERAR DESCRIPCIÓN</button>
<div class="output-box" id="out-desc">
<button class="copy-btn" onclick="copyText('out-desc')">Copiar</button>
<span style="color: var(--text-dim);">La descripción aparecerá aquí...</span>
</div>
</div>
<!-- SECCIÓN 3: HASHTAGS -->
<div class="card">
<h2>🏷️ Generador de Hashtags</h2>
<div class="row">
<div class="form-group">
<label>Tema del contenido</label>
<select id="h-theme">
<option value="gaming">Gaming</option>
<option value="tech">Tech / Dev</option>
<option value="anime">Anime / Arte</option>
<option value="music">Música / Lo-fi</option>
<option value="lifestyle">Lifestyle / Vlog</option>
</select>
</div>
<div class="form-group">
<label>Cantidad</label>
<select id="h-qty">
<option>10</option>
<option selected>20</option>
<option>30</option>
</select>
</div>
</div>
<div class="form-group">
<label>Idioma / Mix</label>
<select id="h-lang">
<option value="mix">Mix ES / EN (Recomendado)</option>
<option value="es">Solo Español</option>
<option value="en">Solo English</option>
</select>
</div>
<button class="btn" onclick="generateHashtags()">📈 GENERAR HASHTAGS</button>
<div class="output-box" id="out-tags">
<button class="copy-btn" onclick="copyText('out-tags')">Copiar</button>
<span style="color: var(--text-dim);">Los hashtags aparecerán aquí...</span>
</div>
</div>
</div>
<script>
// ==========================================
// MOTOR DE GENERACIÓN LOCAL (SIN APIs)
// ==========================================
// 1. GENERADOR DE PROMPTS
function generatePrompt() {
const type = document.getElementById('p-type').value;
const lang = document.getElementById('p-lang').value;
const style = document.getElementById('p-style').value;
const quality = document.getElementById('p-quality').value;
const length = document.getElementById('p-length').value;
const idea = document.getElementById('p-idea').value || "a mysterious subject";
const lighting = ["cinematic lighting", "volumetric rays", "neon glow", "soft ambient light", "dramatic shadows", "golden hour"];
const camera = ["wide angle shot", "close up", "macro lens", "depth of field", "bokeh effect", "isometric view"];
const render = ["unreal engine 5", "octane render", "ray tracing", "highly detailed textures", "sharp focus"];
const rand = arr => arr[Math.floor(Math.random() * arr.length)];
let prompt = "";
if (lang === 'en') {
prompt = `${style} ${type.toLowerCase()} of ${idea}, ${quality}. `;
if (length !== 'short') prompt += `Illuminated with ${rand(lighting)}, captured with ${rand(camera)}. `;
if (length === 'long') prompt += `Masterpiece, ${rand(render)}, intricate details, trending on artstation, 8k resolution, vivid colors. `;
} else {
prompt = `${type} estilo ${style} de ${idea}, calidad ${quality}. `;
if (length !== 'short') prompt += `Iluminado con ${rand(lighting)}, capturado con ${rand(camera)}. `;
if (length === 'long') prompt += `Obra maestra, ${rand(render)}, detalles intrincados, tendencia en artstation, resolución 8k, colores vibrantes. `;
}
displayResult('out-prompt', prompt.trim());
}
// 2. GENERADOR DE DESCRIPCIONES
function generateDescription() {
const title = document.getElementById('v-title').value || "Mi Nuevo Video";
const genre = document.getElementById('v-genre').value;
const plat = document.getElementById('v-plat').value;
const summary = document.getElementById('v-summary').value || "No te pierdas este increíble contenido.";
const linksRaw = document.getElementById('v-links').value;
let linksFormatted = "🔗 Enlaces:\n";
if (linksRaw.trim() === "") {
linksFormatted += "👉 ¡Suscríbete para más contenido!";
} else {
linksRaw.split('\n').forEach(link => {
if(link.trim() !== "") linksFormatted += `🔗 ${link.trim()}\n`;
});
}
let cta = "";
if (plat === "YouTube") cta = "🔔 ¡No olvides SUSCRIBIRTE, dejar tu LIKE y comentar qué te pareció!\n🔗 Comparte este video con tus amigos.";
if (plat === "TikTok") cta = "✨ Sígueme para más contenido diario.\n💬 ¿Qué opinas? Te leo en los comentarios.";
if (plat === "Instagram") cta = "📸 Guarda este post y compártelo en tus historias.\n💬 Déjame un 🔥 en los comentarios si te gustó.";
const desc = `🎬 ${title.toUpperCase()}\n\n📂 Categoría: ${genre}\n\n📝 ${summary}\n\n${linksFormatted}\n\n${cta}`;
displayResult('out-desc', desc);
}
// 3. GENERADOR DE HASHTAGS
function generateHashtags() {
const theme = document.getElementById('h-theme').value;
const qty = parseInt(document.getElementById('h-qty').value);
const lang = document.getElementById('h-lang').value;
const pools = {
gaming: {
es: ["gaming", "gamer", "videjuegos", "gameplay", "streamer", "jugadores", "retrogaming", "setupgamer", "esports", "comunidadgamer"],
en: ["gaming", "gamer", "videogames", "gameplay", "twitch", "streamer", "retrogaming", "pcgaming", "esports", "gamingcommunity"]
},
tech: {
es: ["tecnologia", "programacion", "desarrollo", "coding", "tech", "innovacion", "gadgets", "aprenderaprogramar", "software", "futuro"],
en: ["technology", "programming", "coding", "tech", "innovation", "gadgets", "developer", "software", "futuretech", "techtok"]
},
anime: {
es: ["anime", "manga", "otaku", "animelover", "arte", "dibujo", "ilustracion", "cosplay", "culturaotaku", "fanart"],
en: ["anime", "manga", "otaku", "animelover", "art", "drawing", "illustration", "cosplay", "weeb", "fanart"]
},
music: {
es: ["musica", "beats", "lofi", "productor", "hiphop", "instrumental", "musicos", "estudiar", "relax", "vibes"],
en: ["music", "beats", "lofi", "producer", "hiphop", "instrumental", "musicians", "studybeats", "chill", "vibes"]
},
lifestyle: {
es: ["vlog", "diario", "lifestyle", "rutina", "motivacion", "vida", "consejos", "crecimiento", "experiencias", "minivlog"],
en: ["vlog", "dailyvlog", "lifestyle", "routine", "motivation", "life", "tips", "growth", "experiences", "minivlog"]
}
};
const universal = {
es: ["parati", "fyp", "viral", "tendencia", "explorar", "contenido", "creador"],
en: ["fyp", "foryou", "viral", "trending", "explore", "content", "creator"]
};
let selectedTags = [];
let themePool = [];
if (lang === 'es') themePool = [...pools[theme].es, ...universal.es];
else if (lang === 'en') themePool = [...pools[theme].en, ...universal.en];
else themePool = [...pools[theme].es, ...pools[theme].en, ...universal.es, ...universal.en];
// Shuffle and pick 'qty'
const shuffled = themePool.sort(() => 0.5 - Math.random());
selectedTags = shuffled.slice(0, Math.min(qty, shuffled.length));
// If we need more tags to reach qty, add generic ones
const generic = ["nautiluslab", "contentcreator", "digitalart", "creator", "viralvideo"];
while(selectedTags.length < qty) {
selectedTags.push(generic[Math.floor(Math.random() * generic.length)]);
}
// Remove duplicates and format
const finalTags = [...new Set(selectedTags)].map(t => `#${t}`).join(' ');
displayResult('out-tags', finalTags);
}
// ==========================================
// UTILIDADES
// ==========================================
function displayResult(elementId, text) {
const el = document.getElementById(elementId);
// Keep the copy button, replace the rest
const copyBtn = el.querySelector('.copy-btn');
el.innerText = text;
el.prepend(copyBtn);
}
function copyText(elementId) {
const el = document.getElementById(elementId);
const text = el.innerText.replace('Copiar', '').trim();
navigator.clipboard.writeText(text).then(() => {
const btn = el.querySelector('.copy-btn');
const originalText = btn.innerText;
btn.innerText = "¡Copiado!";
btn.style.background = "var(--neon-cyan)";
btn.style.color = "#000";
setTimeout(() => {
btn.innerText = originalText;
btn.style.background = "#333";
btn.style.color = "#fff";
}, 1500);
});
}
</script>
</body>
</html>