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: "Продажа мороженного, список мороженного и цена"
Ensure the HTML code includes: - A vibrant and eye-catching design. - Large and clear text. - Beautiful and modern styles. - Professional layout and structure. - All styles and scripts should be included in a single HTML file. - The design should be responsive and adapt well to different window sizes, especially fitting inside a modal window. Do not include any comments or explanations in the HTML code. The HTML code should be clean and ready to be rendered in a browser.Assistant: ```html
.container { background-color: #fff; border-radius: 10px; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); overflow: hidden; max-width: 600px; width: 90%; } .header { background-color: #ff6347; color: #fff; padding: 20px; text-align: center; font-size: 2em; } .list { padding: 20px; } .item { display: flex; justify-content: space-between; padding: 10px 0; font-size: 1.2em; border-bottom: 1px solid #e0e0e0; } .item:last-child { border-bottom: none; } @media (max-width: 600px) { .header { font-size: 1.5em; } .item { font-size: 1em; } } </style>.container { background-color: #fff; border-radius: 10px; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); overflow: hidden; max-width: 600px; width: 90%; } .header { background-color: #ff6347; color: #fff; padding: 20px; text-align: center; font-size: 2em; } .list { padding: 20px; } .item { display: flex; justify-content: space-between; padding: 10px 0; font-size: 1.2em; border-bottom: 1px solid #e0e0e0; } .item:last-child { border-bottom: none; } @media (max-width: 600px) { .header { font-size: 1.5em; } .item { font-size: 1em; } } </style>.container { background-color: #fff; border-radius: 10px; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); overflow: hidden; max-width: 600px; width: 90%; } .header { background-color: #ff6347; color: #fff; padding: 20px; text-align: center; font-size: 2em; } .list { padding: 20px; } .item { display: flex; justify-content: space-between; padding: 10px 0; font-size: 1.2em; border-bottom: 1px solid #e0e0e0; } .item:last-child { border-bottom: none; } @media (max-width: 600px) { .header { font-size: 1.5em; } .item { font-size: 1em; } } </style> - 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 { font-family: 'Arial', sans-serif; margin: 0; padding: 0; background-color: #f2f2f2; display: flex; justify-content: center; align-items: center; height: 100vh; } .container { background-color: #fff; border-radius: 10px; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); overflow: hidden; max-width: 600px; width: 90%; } .header { background-color: #ff6347; color: #fff; padding: 20px; text-align: center; font-size: 2em; } .list { padding: 20px; } .item { display: flex; justify-content: space-between; padding: 10px 0; font-size: 1.2em; border-bottom: 1px solid #e0e0e0; } .item:last-child { border-bottom: none; } @media (max-width: 600px) { .header { font-size: 1.5em; } .item { font-size: 1em; } } </style> </head> <body> <div class="container"> <div class="header">Продажа мороженного</div> <div class="list"> <div class="item"> <span>Ванильное</span> <span>100₽</span> </div> <div class="item"> <span>Шоколадное</span> <span>120₽</span> </div> <div class="item"> <span>Клубничное</span> <span>110₽</span> </div> <div class="item"> <span>Фисташковое</span> <span>130₽</span> </div> <div class="item"> <span>Карамельное</span> <span>140₽</span> </div> </div> </div> </body> </html>