Spaces:
Running
Running
Update index.html
Browse files- index.html +57 -11
index.html
CHANGED
|
@@ -235,6 +235,38 @@ select option {
|
|
| 235 |
display: contents;
|
| 236 |
}
|
| 237 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 238 |
@media (max-width: 600px) {
|
| 239 |
.form-grid {
|
| 240 |
grid-template-columns: 1fr;
|
|
@@ -365,16 +397,16 @@ select option {
|
|
| 365 |
<option value="neon lights">Неоновый</option>
|
| 366 |
</select>
|
| 367 |
</div>
|
| 368 |
-
<div class="form-group">
|
| 369 |
-
<label
|
| 370 |
-
<
|
| 371 |
-
<
|
| 372 |
-
<
|
| 373 |
-
<
|
| 374 |
-
<
|
| 375 |
-
<
|
| 376 |
-
<
|
| 377 |
-
</
|
| 378 |
</div>
|
| 379 |
<div class="form-group">
|
| 380 |
<label for="camera">Камера/Объектив</label>
|
|
@@ -662,13 +694,26 @@ function toggleCreativeMode() {
|
|
| 662 |
document.getElementById('object_background').disabled = isCreative;
|
| 663 |
}
|
| 664 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 665 |
async function processAndOpen() {
|
| 666 |
const btn = document.querySelector('.action-btn');
|
| 667 |
const originalText = btn.innerHTML;
|
| 668 |
let fullPrompt = '';
|
| 669 |
|
| 670 |
if (currentMode === 'model') {
|
| 671 |
-
const style = document.
|
| 672 |
const shotType = document.getElementById('shotType').value;
|
| 673 |
const age = document.getElementById('age').value;
|
| 674 |
const nationality = document.getElementById('nationality').value;
|
|
@@ -777,6 +822,7 @@ document.addEventListener('DOMContentLoaded', () => {
|
|
| 777 |
switchMode('model');
|
| 778 |
switchChildrenSubMode('newborn');
|
| 779 |
autoAdjustDefaults();
|
|
|
|
| 780 |
});
|
| 781 |
</script>
|
| 782 |
|
|
|
|
| 235 |
display: contents;
|
| 236 |
}
|
| 237 |
|
| 238 |
+
.style-grid {
|
| 239 |
+
display: grid;
|
| 240 |
+
grid-template-columns: 1fr 1fr;
|
| 241 |
+
gap: 10px;
|
| 242 |
+
}
|
| 243 |
+
|
| 244 |
+
.style-btn {
|
| 245 |
+
padding: 12px 10px;
|
| 246 |
+
background-color: var(--input-bg);
|
| 247 |
+
border: 1px solid var(--border);
|
| 248 |
+
color: var(--text-secondary);
|
| 249 |
+
font-size: 0.85rem;
|
| 250 |
+
font-weight: 600;
|
| 251 |
+
cursor: pointer;
|
| 252 |
+
border-radius: 8px;
|
| 253 |
+
transition: all 0.3s ease;
|
| 254 |
+
text-align: center;
|
| 255 |
+
width: 100%;
|
| 256 |
+
}
|
| 257 |
+
|
| 258 |
+
.style-btn:hover {
|
| 259 |
+
border-color: var(--primary);
|
| 260 |
+
color: var(--text);
|
| 261 |
+
}
|
| 262 |
+
|
| 263 |
+
.style-btn.active {
|
| 264 |
+
background-color: var(--primary);
|
| 265 |
+
color: #000;
|
| 266 |
+
border-color: var(--primary);
|
| 267 |
+
box-shadow: 0 0 10px rgba(204, 255, 0, 0.3);
|
| 268 |
+
}
|
| 269 |
+
|
| 270 |
@media (max-width: 600px) {
|
| 271 |
.form-grid {
|
| 272 |
grid-template-columns: 1fr;
|
|
|
|
| 397 |
<option value="neon lights">Неоновый</option>
|
| 398 |
</select>
|
| 399 |
</div>
|
| 400 |
+
<div class="form-group full-width">
|
| 401 |
+
<label>Эстетика</label>
|
| 402 |
+
<div id="styleSelector" class="style-grid">
|
| 403 |
+
<button type="button" class="style-btn active" data-value="Raw Candid Photography">Живое фото (Raw)</button>
|
| 404 |
+
<button type="button" class="style-btn" data-value="Cinematic Movie Still">Кадр из фильма</button>
|
| 405 |
+
<button type="button" class="style-btn" data-value="Fashion Editorial">Модный журнал</button>
|
| 406 |
+
<button type="button" class="style-btn" data-value="Street Style Photo">Уличный стиль</button>
|
| 407 |
+
<button type="button" class="style-btn" data-value="Dark Moody Atmosphere">Мрачная атмосфера</button>
|
| 408 |
+
<button type="button" class="style-btn" data-value="Vintage Analog Film">Пленка (Vintage)</button>
|
| 409 |
+
</div>
|
| 410 |
</div>
|
| 411 |
<div class="form-group">
|
| 412 |
<label for="camera">Камера/Объектив</label>
|
|
|
|
| 694 |
document.getElementById('object_background').disabled = isCreative;
|
| 695 |
}
|
| 696 |
|
| 697 |
+
function setupStyleSelector() {
|
| 698 |
+
const styleContainer = document.getElementById('styleSelector');
|
| 699 |
+
if (!styleContainer) return;
|
| 700 |
+
const styleButtons = styleContainer.querySelectorAll('.style-btn');
|
| 701 |
+
|
| 702 |
+
styleButtons.forEach(btn => {
|
| 703 |
+
btn.addEventListener('click', () => {
|
| 704 |
+
styleButtons.forEach(innerBtn => innerBtn.classList.remove('active'));
|
| 705 |
+
btn.classList.add('active');
|
| 706 |
+
});
|
| 707 |
+
});
|
| 708 |
+
}
|
| 709 |
+
|
| 710 |
async function processAndOpen() {
|
| 711 |
const btn = document.querySelector('.action-btn');
|
| 712 |
const originalText = btn.innerHTML;
|
| 713 |
let fullPrompt = '';
|
| 714 |
|
| 715 |
if (currentMode === 'model') {
|
| 716 |
+
const style = document.querySelector('#styleSelector .style-btn.active').dataset.value;
|
| 717 |
const shotType = document.getElementById('shotType').value;
|
| 718 |
const age = document.getElementById('age').value;
|
| 719 |
const nationality = document.getElementById('nationality').value;
|
|
|
|
| 822 |
switchMode('model');
|
| 823 |
switchChildrenSubMode('newborn');
|
| 824 |
autoAdjustDefaults();
|
| 825 |
+
setupStyleSelector();
|
| 826 |
});
|
| 827 |
</script>
|
| 828 |
|