gpt-4o-2024-08-06· OpenAI
WildChat-4.8M (AI2)
Create a professional, visually appealing, and well-styled HTML code for the…
- User
User: Create a professional, visually appealing, and well-styled HTML code for the following request: "Напиши сайт по продаже мороженного"
Make sure the HTML code contains: - A bright and attractive design. - Large and clear text. - Beautiful and modern styles. - Professional layout and structure. - All styles and scripts should be included in one HTML file. - The design should be responsive and adapt well to different window sizes, especially in a modal window. - Write styles for the site as short as possible Don't include any comments or explanations in the HTML code. HTML code should be clean and ready to display in the browser.Assistant:
Make sure the HTML code contains: - A bright and attractive design. - Large and clear text. - Beautiful and modern styles. - Professional layout and structure. - All styles and scripts should be included in one HTML file. - The design should be responsive and adapt well to different window sizes, especially in a modal window. - Write styles for the site as short as possible Don't include any comments or explanations in the HTML code. HTML code should be clean and ready to display in the browser.Assistant:
- Assistant
<!DOCTYPE html> <html lang="ru"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Продажа Мороженого</title> <style> body, html { margin: 0; padding: 0; box-sizing: border-box; font-family: Arial, sans-serif; } body { display: flex; justify-content: center; align-items: center; min-height: 100vh; background: linear-gradient(135deg, #f6d365 0%, #fda085 100%); } .container { text-align: center; padding: 20px; max-width: 800px; background: rgba(255, 255, 255, 0.9); border-radius: 10px; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); } h1 { font-size: 48px; color: #f2545b; } p { font-size: 20px; color: #555; } .carousel { display: flex; overflow: hidden; margin: 20px 0; } .carousel img { min-width: 100%; transition: transform 0.5s ease; } .btn { cursor: pointer; padding: 10px 20px; font-size: 18px; margin: 10px; background: #f2545b; color: white; border: none; border-radius: 5px; } .btn:hover { background: #de4b51; } @media (max-width: 600px) { h1 { font-size: 32px; } p { font-size: 16px; } } </style> </head> <body> <div class="container"> <h1>Сладкий Мир Мороженого</h1> <p>Насладитесь широкой подборкой вкусов натурального мороженого</p> <div class="carousel"> <img src="icecream1.jpg" alt="Ice Cream 1"> <img src="icecream2.jpg" alt="Ice Cream 2"> <img src="icecream3.jpg" alt="Ice Cream 3"> </div> <button class="btn">Купить Сейчас</button> </div> <script> let index = 0; const imgs = document.querySelectorAll('.carousel img'); setInterval(() => { imgs[index].style.transform = "translateX(-100%)"; index = (index + 1) % imgs.length; imgs[index].style.transform = "translateX(0)"; }, 3000); </script> </body> </html>