2
This commit is contained in:
parent
d41c865de0
commit
2911c02f8a
196
assets/css/custom.css
Normal file
196
assets/css/custom.css
Normal file
@ -0,0 +1,196 @@
|
||||
:root {
|
||||
--background-color: #181818;
|
||||
--surface-color: #282828;
|
||||
--surface-color-hover: #3a3a3a;
|
||||
--primary-color: #00A0F0;
|
||||
--secondary-color: #FFD700;
|
||||
--text-color: #E0E0E0;
|
||||
--text-color-dark: #181818;
|
||||
--red-color: #D93025;
|
||||
--green-color: #34A853;
|
||||
--border-color: #444;
|
||||
--border-radius: 4px;
|
||||
}
|
||||
|
||||
body {
|
||||
background-color: var(--background-color);
|
||||
color: var(--text-color);
|
||||
font-family: 'Roboto', 'Helvetica Neue', Arial, sans-serif;
|
||||
}
|
||||
|
||||
.main-header {
|
||||
background-color: var(--surface-color);
|
||||
border-bottom: 1px solid var(--border-color);
|
||||
padding: 0.75rem 1.5rem;
|
||||
}
|
||||
|
||||
.video-panel {
|
||||
background-color: #000;
|
||||
border: 2px solid var(--border-color);
|
||||
border-radius: var(--border-radius);
|
||||
aspect-ratio: 16 / 9;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
flex-direction: column;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
transition: background-color 0.3s ease;
|
||||
}
|
||||
|
||||
.video-panel .panel-label {
|
||||
position: absolute;
|
||||
top: 10px;
|
||||
left: 10px;
|
||||
padding: 5px 10px;
|
||||
border-radius: var(--border-radius);
|
||||
font-size: 0.9rem;
|
||||
font-weight: bold;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.video-panel .scene-content {
|
||||
font-size: 1.5rem;
|
||||
font-weight: bold;
|
||||
color: #fff;
|
||||
text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
|
||||
}
|
||||
|
||||
#preview-panel .panel-label {
|
||||
background-color: var(--green-color);
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
#program-panel .panel-label {
|
||||
background-color: var(--red-color);
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.control-panel {
|
||||
background-color: var(--surface-color);
|
||||
padding: 1rem;
|
||||
border-radius: var(--border-radius);
|
||||
margin-top: 1rem;
|
||||
}
|
||||
|
||||
.scene-list .list-group-item {
|
||||
background-color: var(--surface-color);
|
||||
color: var(--text-color);
|
||||
border-color: var(--border-color);
|
||||
cursor: pointer;
|
||||
transition: background-color 0.2s;
|
||||
}
|
||||
|
||||
.scene-list .list-group-item:hover {
|
||||
background-color: var(--surface-color-hover);
|
||||
}
|
||||
|
||||
.scene-list .list-group-item {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.scene-list .scene-name {
|
||||
flex-grow: 1;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.scene-list .remove-scene-btn {
|
||||
margin-left: 1rem;
|
||||
visibility: hidden; /* Hidden by default */
|
||||
opacity: 0;
|
||||
transition: opacity 0.2s, visibility 0.2s;
|
||||
}
|
||||
|
||||
.scene-list .list-group-item:hover .remove-scene-btn {
|
||||
visibility: visible; /* Show on hover */
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
#add-scene-btn {
|
||||
padding: 0.2rem 0.5rem;
|
||||
font-size: 0.9rem;
|
||||
}
|
||||
|
||||
.scene-list .list-group-item.active {
|
||||
background-color: var(--primary-color);
|
||||
border-color: var(--primary-color);
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.transition-controls .btn {
|
||||
font-size: 1.2rem;
|
||||
font-weight: bold;
|
||||
padding: 0.75rem 0;
|
||||
width: 120px;
|
||||
}
|
||||
|
||||
.btn-cut {
|
||||
background-color: var(--secondary-color);
|
||||
color: var(--text-color-dark);
|
||||
border: none;
|
||||
}
|
||||
.btn-cut:hover {
|
||||
background-color: #ffed4a;
|
||||
color: var(--text-color-dark);
|
||||
}
|
||||
|
||||
.btn-fade {
|
||||
background-color: #6c757d;
|
||||
color: #fff;
|
||||
border: none;
|
||||
}
|
||||
.btn-fade:hover {
|
||||
background-color: #5a6268;
|
||||
}
|
||||
|
||||
/* Modal Styles */
|
||||
.modal-overlay {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background-color: rgba(0, 0, 0, 0.7);
|
||||
z-index: 1040;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.modal-dialog {
|
||||
background-color: var(--surface-color);
|
||||
color: var(--text-color);
|
||||
border-radius: var(--border-radius);
|
||||
border: 1px solid var(--border-color);
|
||||
width: 100%;
|
||||
max-width: 500px;
|
||||
}
|
||||
|
||||
.modal-content {
|
||||
background-color: transparent;
|
||||
border: none;
|
||||
}
|
||||
|
||||
.modal-header, .modal-footer {
|
||||
border-bottom-color: var(--border-color);
|
||||
border-top-color: var(--border-color);
|
||||
}
|
||||
|
||||
.modal-body .form-control, .modal-body .form-select {
|
||||
background-color: var(--background-color);
|
||||
color: var(--text-color);
|
||||
border-color: var(--border-color);
|
||||
}
|
||||
|
||||
.modal-body .form-control:focus, .modal-body .form-select:focus {
|
||||
background-color: var(--background-color);
|
||||
color: var(--text-color);
|
||||
border-color: var(--primary-color);
|
||||
box-shadow: 0 0 0 0.25rem rgba(0, 160, 240, 0.25);
|
||||
}
|
||||
|
||||
.modal-body .form-control-color {
|
||||
min-height: 38px;
|
||||
}
|
||||
182
assets/js/main.js
Normal file
182
assets/js/main.js
Normal file
@ -0,0 +1,182 @@
|
||||
document.addEventListener('DOMContentLoaded', function () {
|
||||
// UI Elements
|
||||
const sceneListEl = document.querySelector('.scene-list');
|
||||
const previewPanel = document.getElementById('preview-panel');
|
||||
const programPanel = document.getElementById('program-panel');
|
||||
const previewContent = previewPanel.querySelector('.scene-content');
|
||||
const programContent = programPanel.querySelector('.scene-content');
|
||||
const cutButton = document.getElementById('cut-button');
|
||||
|
||||
// Modal Elements
|
||||
const addSceneBtn = document.getElementById('add-scene-btn');
|
||||
const modal = document.getElementById('add-scene-modal');
|
||||
const modalCloseBtn = document.getElementById('modal-close-btn');
|
||||
const modalCancelBtn = document.getElementById('modal-cancel-btn');
|
||||
const modalSaveBtn = document.getElementById('modal-save-btn');
|
||||
const sceneNameInput = document.getElementById('scene-name-input');
|
||||
const sceneTypeSelect = document.getElementById('scene-type-select');
|
||||
const sceneColorInput = document.getElementById('scene-color-input');
|
||||
|
||||
// Data Store
|
||||
let scenes = [];
|
||||
let activePreviewSceneId = null;
|
||||
let activeProgramSceneId = null;
|
||||
let sceneIdCounter = 0;
|
||||
|
||||
// --- DATA MANAGEMENT ---
|
||||
function addScene(name, type, value) {
|
||||
const newScene = {
|
||||
id: sceneIdCounter++,
|
||||
name: name,
|
||||
type: type,
|
||||
value: value
|
||||
};
|
||||
scenes.push(newScene);
|
||||
renderSceneList();
|
||||
return newScene;
|
||||
}
|
||||
|
||||
function removeScene(id) {
|
||||
scenes = scenes.filter(scene => scene.id !== id);
|
||||
if (activePreviewSceneId === id) {
|
||||
clearPreview();
|
||||
}
|
||||
renderSceneList();
|
||||
}
|
||||
|
||||
function getScene(id) {
|
||||
return scenes.find(scene => scene.id === id);
|
||||
}
|
||||
|
||||
// --- UI RENDERING ---
|
||||
function renderSceneList() {
|
||||
sceneListEl.innerHTML = ''; // Clear existing list
|
||||
scenes.forEach(scene => {
|
||||
const icon = getIconForSceneType(scene.type);
|
||||
const item = document.createElement('div');
|
||||
item.className = 'list-group-item list-group-item-action';
|
||||
item.dataset.sceneId = scene.id;
|
||||
if (scene.id === activePreviewSceneId) {
|
||||
item.classList.add('active');
|
||||
}
|
||||
item.innerHTML = `
|
||||
<span class="scene-name">${icon} ${scene.name}</span>
|
||||
<button class="btn-close btn-close-white remove-scene-btn" aria-label="Remove"></button>
|
||||
`;
|
||||
sceneListEl.appendChild(item);
|
||||
});
|
||||
}
|
||||
|
||||
function updatePreview(sceneId) {
|
||||
const scene = getScene(sceneId);
|
||||
if (!scene) return;
|
||||
|
||||
activePreviewSceneId = scene.id;
|
||||
|
||||
previewContent.textContent = scene.name;
|
||||
switch (scene.type) {
|
||||
case 'color':
|
||||
previewPanel.style.backgroundColor = scene.value;
|
||||
break;
|
||||
default:
|
||||
previewPanel.style.backgroundColor = '#000';
|
||||
break;
|
||||
}
|
||||
renderSceneList(); // Re-render to show active state
|
||||
}
|
||||
|
||||
function clearPreview() {
|
||||
activePreviewSceneId = null;
|
||||
previewContent.textContent = 'Select a Scene';
|
||||
previewPanel.style.backgroundColor = '#000';
|
||||
renderSceneList();
|
||||
}
|
||||
|
||||
function getIconForSceneType(type) {
|
||||
switch (type) {
|
||||
case 'color': return '<i class="bi bi-palette-fill"></i>';
|
||||
case 'image': return '<i class="bi bi-image-fill"></i>';
|
||||
case 'video': return '<i class="bi bi-film"></i>';
|
||||
default: return '<i class="bi bi-question-circle-fill"></i>';
|
||||
}
|
||||
}
|
||||
|
||||
// --- EVENT LISTENERS ---
|
||||
|
||||
// Scene list interactions (select, remove)
|
||||
sceneListEl.addEventListener('click', (e) => {
|
||||
const target = e.target;
|
||||
const sceneItem = target.closest('.list-group-item');
|
||||
if (!sceneItem) return;
|
||||
|
||||
const sceneId = parseInt(sceneItem.dataset.sceneId);
|
||||
|
||||
if (target.classList.contains('remove-scene-btn')) {
|
||||
removeScene(sceneId);
|
||||
} else {
|
||||
updatePreview(sceneId);
|
||||
}
|
||||
});
|
||||
|
||||
// Transition button
|
||||
cutButton.addEventListener('click', () => {
|
||||
if (activePreviewSceneId === null) return;
|
||||
|
||||
const previewScene = getScene(activePreviewSceneId);
|
||||
activeProgramSceneId = previewScene.id;
|
||||
|
||||
programContent.textContent = previewScene.name;
|
||||
programPanel.style.backgroundColor = previewPanel.style.backgroundColor;
|
||||
|
||||
clearPreview();
|
||||
});
|
||||
|
||||
// Modal interactions
|
||||
function showModal() { modal.style.display = 'flex'; sceneNameInput.focus(); }
|
||||
function hideModal() { modal.style.display = 'none'; }
|
||||
|
||||
addSceneBtn.addEventListener('click', showModal);
|
||||
modalCloseBtn.addEventListener('click', hideModal);
|
||||
modalCancelBtn.addEventListener('click', hideModal);
|
||||
|
||||
modalSaveBtn.addEventListener('click', () => {
|
||||
const name = sceneNameInput.value.trim();
|
||||
if (!name) {
|
||||
alert('Please enter a scene name.');
|
||||
return;
|
||||
}
|
||||
const type = sceneTypeSelect.value;
|
||||
const value = sceneColorInput.value; // For now, only color
|
||||
|
||||
const newScene = addScene(name, type, value);
|
||||
updatePreview(newScene.id);
|
||||
|
||||
// Reset form and hide modal
|
||||
sceneNameInput.value = '';
|
||||
sceneColorInput.value = '#1e90ff';
|
||||
hideModal();
|
||||
});
|
||||
|
||||
// --- INITIALIZATION ---
|
||||
function initialize() {
|
||||
// Add some default scenes
|
||||
addScene('Main Camera', 'color', '#003366');
|
||||
addScene('Screen Share', 'color', '#006633');
|
||||
addScene('Starting Soon', 'color', '#333333');
|
||||
|
||||
// Set initial program scene for display
|
||||
const firstScene = scenes[0];
|
||||
if (firstScene) {
|
||||
activeProgramSceneId = firstScene.id;
|
||||
programContent.textContent = firstScene.name;
|
||||
programPanel.style.backgroundColor = firstScene.value;
|
||||
}
|
||||
|
||||
// Select the second scene for preview initially
|
||||
if (scenes.length > 1) {
|
||||
updatePreview(scenes[1].id);
|
||||
}
|
||||
}
|
||||
|
||||
initialize();
|
||||
});
|
||||
248
index.php
248
index.php
@ -1,150 +1,120 @@
|
||||
<?php
|
||||
declare(strict_types=1);
|
||||
@ini_set('display_errors', '1');
|
||||
@error_reporting(E_ALL);
|
||||
@date_default_timezone_set('UTC');
|
||||
|
||||
$phpVersion = PHP_VERSION;
|
||||
$now = date('Y-m-d H:i:s');
|
||||
?>
|
||||
<!doctype html>
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>New Style</title>
|
||||
<?php
|
||||
// Read project preview data from environment
|
||||
$projectDescription = $_SERVER['PROJECT_DESCRIPTION'] ?? '';
|
||||
$projectImageUrl = $_SERVER['PROJECT_IMAGE_URL'] ?? '';
|
||||
?>
|
||||
<?php if ($projectDescription): ?>
|
||||
<!-- Meta description -->
|
||||
<meta name="description" content='<?= htmlspecialchars($projectDescription) ?>' />
|
||||
<!-- Open Graph meta tags -->
|
||||
<meta property="og:description" content="<?= htmlspecialchars($projectDescription) ?>" />
|
||||
<!-- Twitter meta tags -->
|
||||
<meta property="twitter:description" content="<?= htmlspecialchars($projectDescription) ?>" />
|
||||
<?php endif; ?>
|
||||
<?php if ($projectImageUrl): ?>
|
||||
<!-- Open Graph image -->
|
||||
<meta property="og:image" content="<?= htmlspecialchars($projectImageUrl) ?>" />
|
||||
<!-- Twitter image -->
|
||||
<meta property="twitter:image" content="<?= htmlspecialchars($projectImageUrl) ?>" />
|
||||
<?php endif; ?>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<title>VMIXTER</title>
|
||||
<meta name="description" content="Web-based video switcher and live streaming studio.">
|
||||
<meta name="keywords" content="video switcher, live streaming, broadcast, web video, vmix alternative, obs alternative, scene management, live production, Built with Flatlogic Generator">
|
||||
<meta property="og:title" content="VMIXTER">
|
||||
<meta property="og:description" content="Web-based video switcher and live streaming studio.">
|
||||
<meta property="og:image" content="<?php echo htmlspecialchars($_SERVER['PROJECT_IMAGE_URL'] ?? ''); ?>">
|
||||
<meta name="twitter:card" content="summary_large_image">
|
||||
<meta name="twitter:image" content="<?php echo htmlspecialchars($_SERVER['PROJECT_IMAGE_URL'] ?? ''); ?>">
|
||||
|
||||
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet">
|
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css">
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
||||
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap" rel="stylesheet">
|
||||
<style>
|
||||
:root {
|
||||
--bg-color-start: #6a11cb;
|
||||
--bg-color-end: #2575fc;
|
||||
--text-color: #ffffff;
|
||||
--card-bg-color: rgba(255, 255, 255, 0.01);
|
||||
--card-border-color: rgba(255, 255, 255, 0.1);
|
||||
}
|
||||
body {
|
||||
margin: 0;
|
||||
font-family: 'Inter', sans-serif;
|
||||
background: linear-gradient(45deg, var(--bg-color-start), var(--bg-color-end));
|
||||
color: var(--text-color);
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
min-height: 100vh;
|
||||
text-align: center;
|
||||
overflow: hidden;
|
||||
position: relative;
|
||||
}
|
||||
body::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><path d="M-10 10L110 10M10 -10L10 110" stroke-width="1" stroke="rgba(255,255,255,0.05)"/></svg>');
|
||||
animation: bg-pan 20s linear infinite;
|
||||
z-index: -1;
|
||||
}
|
||||
@keyframes bg-pan {
|
||||
0% { background-position: 0% 0%; }
|
||||
100% { background-position: 100% 100%; }
|
||||
}
|
||||
main {
|
||||
padding: 2rem;
|
||||
}
|
||||
.card {
|
||||
background: var(--card-bg-color);
|
||||
border: 1px solid var(--card-border-color);
|
||||
border-radius: 16px;
|
||||
padding: 2rem;
|
||||
backdrop-filter: blur(20px);
|
||||
-webkit-backdrop-filter: blur(20px);
|
||||
box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
.loader {
|
||||
margin: 1.25rem auto 1.25rem;
|
||||
width: 48px;
|
||||
height: 48px;
|
||||
border: 3px solid rgba(255, 255, 255, 0.25);
|
||||
border-top-color: #fff;
|
||||
border-radius: 50%;
|
||||
animation: spin 1s linear infinite;
|
||||
}
|
||||
@keyframes spin {
|
||||
from { transform: rotate(0deg); }
|
||||
to { transform: rotate(360deg); }
|
||||
}
|
||||
.hint {
|
||||
opacity: 0.9;
|
||||
}
|
||||
.sr-only {
|
||||
position: absolute;
|
||||
width: 1px; height: 1px;
|
||||
padding: 0; margin: -1px;
|
||||
overflow: hidden;
|
||||
clip: rect(0, 0, 0, 0);
|
||||
white-space: nowrap; border: 0;
|
||||
}
|
||||
h1 {
|
||||
font-size: 3rem;
|
||||
font-weight: 700;
|
||||
margin: 0 0 1rem;
|
||||
letter-spacing: -1px;
|
||||
}
|
||||
p {
|
||||
margin: 0.5rem 0;
|
||||
font-size: 1.1rem;
|
||||
}
|
||||
code {
|
||||
background: rgba(0,0,0,0.2);
|
||||
padding: 2px 6px;
|
||||
border-radius: 4px;
|
||||
font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
|
||||
}
|
||||
footer {
|
||||
position: absolute;
|
||||
bottom: 1rem;
|
||||
font-size: 0.8rem;
|
||||
opacity: 0.7;
|
||||
}
|
||||
</style>
|
||||
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap" rel="stylesheet">
|
||||
<link rel="stylesheet" href="assets/css/custom.css?v=<?php echo time(); ?>">
|
||||
</head>
|
||||
<body>
|
||||
<main>
|
||||
<div class="card">
|
||||
<h1>Analyzing your requirements and generating your website…</h1>
|
||||
<div class="loader" role="status" aria-live="polite" aria-label="Applying initial changes">
|
||||
<span class="sr-only">Loading…</span>
|
||||
|
||||
<header class="main-header d-flex justify-content-between align-items-center">
|
||||
<h1 class="h4 mb-0">VMIXTER</h1>
|
||||
<!-- Theme switcher placeholder -->
|
||||
<div>
|
||||
<i class="bi bi-moon-stars-fill"></i>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<main class="container-fluid mt-4">
|
||||
<div class="row">
|
||||
<!-- Preview Panel -->
|
||||
<div class="col-md-6">
|
||||
<div id="preview-panel" class="video-panel">
|
||||
<span class="panel-label">PREVIEW</span>
|
||||
<div class="scene-content">Select a Scene</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- Program Panel -->
|
||||
<div class="col-md-6">
|
||||
<div id="program-panel" class="video-panel" style="background-color: #440000;">
|
||||
<span class="panel-label">PROGRAM (ON AIR)</span>
|
||||
<div class="scene-content">Initial Scene</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row mt-3">
|
||||
<!-- Scene List -->
|
||||
<div class="col-md-8">
|
||||
<div class="control-panel h-100">
|
||||
<div class="d-flex justify-content-between align-items-center mb-2">
|
||||
<h5 class="mb-0">Scenes</h5>
|
||||
<button id="add-scene-btn" class="btn btn-sm btn-success">
|
||||
<i class="bi bi-plus-lg"></i> Add
|
||||
</button>
|
||||
</div>
|
||||
<div class="list-group scene-list">
|
||||
<!-- Scenes will be dynamically inserted here by main.js -->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- Transition Controls -->
|
||||
<div class="col-md-4">
|
||||
<div class="control-panel h-100 d-flex flex-column justify-content-center align-items-center">
|
||||
<h5>Transitions</h5>
|
||||
<div class="d-flex justify-content-around w-100 mt-3 transition-controls">
|
||||
<button id="cut-button" class="btn btn-cut">CUT</button>
|
||||
<button id="fade-button" class="btn btn-fade" disabled>FADE</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<p class="hint"><?= ($_SERVER['HTTP_HOST'] ?? '') === 'appwizzy.com' ? 'AppWizzy' : 'Flatlogic' ?> AI is collecting your requirements and applying the first changes.</p>
|
||||
<p class="hint">This page will update automatically as the plan is implemented.</p>
|
||||
<p>Runtime: PHP <code><?= htmlspecialchars($phpVersion) ?></code> — UTC <code><?= htmlspecialchars($now) ?></code></p>
|
||||
</div>
|
||||
</main>
|
||||
<footer>
|
||||
Page updated: <?= htmlspecialchars($now) ?> (UTC)
|
||||
</footer>
|
||||
|
||||
<!-- Add Scene Modal -->
|
||||
<div id="add-scene-modal" class="modal-overlay" style="display: none;">
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<h5 class="modal-title">Add New Scene</h5>
|
||||
<button type="button" class="btn-close btn-close-white" id="modal-close-btn"></button>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<form id="add-scene-form">
|
||||
<div class="mb-3">
|
||||
<label for="scene-name-input" class="form-label">Scene Name</label>
|
||||
<input type="text" class="form-control" id="scene-name-input" required>
|
||||
</div>
|
||||
<div class="mb-3">
|
||||
<label for="scene-type-select" class="form-label">Source Type</label>
|
||||
<select class="form-select" id="scene-type-select">
|
||||
<option value="color">Solid Color</option>
|
||||
<option value="image" disabled>Image (soon)</option>
|
||||
<option value="video" disabled>Video (soon)</option>
|
||||
</select>
|
||||
</div>
|
||||
<div id="source-color-group" class="mb-3">
|
||||
<label for="scene-color-input" class="form-label">Background Color</label>
|
||||
<input type="color" class="form-control form-control-color" id="scene-color-input" value="#1e90ff">
|
||||
</div>
|
||||
<!-- Other source type options will go here -->
|
||||
</form>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-secondary" id="modal-cancel-btn">Cancel</button>
|
||||
<button type="button" class="btn btn-primary" id="modal-save-btn">Save Scene</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"></script>
|
||||
<script src="assets/js/main.js?v=<?php echo time(); ?>"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user