Open-Generative / index.html
AeroVortex's picture
Update index.html
255ec39 verified
Raw History Blame Contribute Delete
2.78 kB
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Open-Generative-AI Studio</title>
</head>
<body style="margin: 0; padding: 20px; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background-color: #0b0b0f; color: #f1f1f3;">
<div style="max-width: 650px; margin: 30px auto; background: #16161e; padding: 24px; border-radius: 12px; box-shadow: 0 8px 24px rgba(0,0,0,0.5); border: 1px solid #2d2d3d;">
<div style="display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px;">
<h2 style="margin: 0; color: #fff; font-size: 20px;">Open-Generative-AI Studio</h2>
<span style="background: #10b981; color: #fff; padding: 4px 8px; border-radius: 4px; font-size: 11px; font-weight: 600;">Static Mode</span>
</div>
<div style="margin-bottom: 16px;">
<label style="display: block; font-weight: 600; margin-bottom: 6px; font-size: 13px; color: #a1a1aa;">Creative Prompt</label>
<textarea id="promptInput" rows="3" placeholder="Describe a scene, character, mood, or style..." style="width: 100%; padding: 10px; box-sizing: border-box; background: #0b0b0f; border: 1px solid #2d2d3d; color: #fff; border-radius: 6px; font-size: 14px;"></textarea>
</div>
<button onclick="handleGenerate()" style="background: #2563eb; color: #fff; border: none; padding: 12px; border-radius: 6px; font-size: 14px; font-weight: 600; cursor: pointer; width: 100%; margin-bottom: 20px;">Generate Studio Output</button>
<label style="display: block; font-weight: 600; margin-bottom: 6px; font-size: 13px; color: #a1a1aa;">Output Panel</label>
<div id="outputArea" style="padding: 16px; background: #0b0b0f; border: 1px solid #2d2d3d; border-radius: 6px; min-height: 80px; font-size: 14px; color: #d4d4d8; display: flex; align-items: center; justify-content: center; text-align: center;">
Ready for input...
</div>
</div>
<script>
function handleGenerate() {
const prompt = document.getElementById('promptInput').value;
const output = document.getElementById('outputArea');
if (!prompt.trim()) {
output.innerText = "Please enter a prompt first.";
return;
}
output.innerHTML = "Processed static request for: <br><b style='color:#60a5fa; margin-top:5px; display:block;'>" + escapeHtml(prompt) + "</b>";
}
function escapeHtml(text) {
return text.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;");
}
</script>
</body>
</html>