gpt-4o-2024-08-06· OpenAI
WildChat-4.8M (AI2)
Пожалуйста, сформируй полный HTML-код (ничего не пропускай), выделив его обратными…
- User
Пожалуйста, сформируй полный HTML-код (ничего не пропускай), выделив его обратными тройными кавычками, для следующего запроса: "Только во второй секции, на первую главную секцию это не должно влиять! Сделай верстку кнопки продолжения истории и поля ввода таким образом, чтобы они были соединены, чтобы были, как бы, единое целое". В прошлой итерации код выглядел следующим образом: "
body, html { width: 100%; height: 100%; font-family: 'Arial', sans-serif; background-color: #f0f4f8; color: #333; overflow: hidden; } /* Language Switcher */ .language-switcher { position: fixed; top: 20px; right: 20px; display: flex; gap: 10px; z-index: 1000; } .language-switcher button { background: #fff; border: 1px solid #ccc; border-radius: 5px; padding: 5px 10px; cursor: pointer; transition: background 0.3s; } .language-switcher button.active { background: #007bff; color: #fff; border-color: #007bff; } /* Home Button */ #home-button { position: fixed; top: 20px; left: 20px; background: #007bff; border: 1px solid #007bff; border-radius: 5px; padding: 5px 10px; font-size: 0.9em; color: #fff; cursor: pointer; transition: background-color 0.3s; } #home-button:hover { background-color: #0056b3; } /* Main Section */ .main-section, .story-section { display: none; flex-direction: column; align-items: center; justify-content: center; height: 100vh; width: 100%; padding: 20px; text-align: center; } .main-section.active, .story-section.active { display: flex; } .main-section h1 { font-size: 3em; margin-bottom: 20px; color: #007bff; } .input-container { position: relative; width: 100%; max-width: 500px; margin-bottom: 20px; } .input-container input { width: 100%; padding: 15px; border: 2px solid #ccc; border-radius: 5px; font-size: 1em; transition: border-color 0.3s; } .input-container input:focus { border-color: #007bff; outline: none; } .main-section button, .story-section button { padding: 15px 30px; font-size: 1em; color: #fff; background-color: #007bff; border: none; border-radius: 5px; cursor: pointer; transition: background-color 0.3s; } .main-section button:hover, .story-section button:hover { background-color: #0056b3; } /* Loading Animation */ .loading-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(240, 244, 248, 0.9); display: flex; flex-direction: column; align-items: center; justify-content: center; z-index: 1001; display: none; } .loading-overlay.active { display: flex; } .spinner { border: 8px solid #f3f3f3; border-top: 8px solid #007bff; border-radius: 50%; width: 60px; height: 60px; animation: spin 1s linear infinite; margin-bottom: 20px; } @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } .loading-overlay p { font-size: 1.2em; color: #333; } /* Story Section */ .story-text { max-width: 800px; background: rgba(255, 255, 255, 0.8); padding: 20px; border-radius: 10px; font-size: 1.2em; line-height: 1.6; animation: fadeIn 1s forwards; opacity: 0; } @keyframes fadeIn { to { opacity: 1; } } .story-section .input-container { margin-top: 20px; } /* Background Image */ .story-section { background-size: cover; background-position: center; background-repeat: no-repeat; background-color: rgba(0, 0, 0, 0.5); } /* Modal */ .modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.5); display: none; align-items: center; justify-content: center; z-index: 1002; } .modal.active { display: flex; } .modal-content { background: #fff; padding: 30px; border-radius: 10px; text-align: center; max-width: 400px; width: 90%; } .modal-content p { margin-bottom: 20px; font-size: 1.1em; } .modal-content button { padding: 10px 20px; margin: 0 10px; border: none; border-radius: 5px; cursor: pointer; font-size: 1em; transition: background-color 0.3s; } .modal-content .confirm { background-color: #007bff; color: #fff; } .modal-content .confirm:hover { background-color: #0056b3; } .modal-content .cancel { background-color: #ccc; color: #333; } .modal-content .cancel:hover { background-color: #999; } /* Responsive Design */ @media (max-width: 600px) { .main-section h1 { font-size: 2em; } .input-container input { padding: 10px 40px 10px 10px; font-size: 0.9em; } .main-section button, .story-section button { padding: 10px 20px; font-size: 0.9em; } .story-text { font-size: 1em; padding: 15px; } } - Assistant