Skip to content
TheChatArchiveThe Chat Archive
gpt-4o-2024-08-06· OpenAIAi2 WildChat-4.8M (AI2)

You are an AI that generates clean HTML code without any comments or…

  1. User

    System: You are an AI that generates clean HTML code without any comments or explanations. Always respond with only the HTML code. Do not include any additional text.

    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 and elements for the site as short as possible Do not include any comments or explanations in the HTML code. HTML code should be clean and ready to display in the browser.

    Assistant:

  2. 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:#f4f4f9;}
    header{background:#ff8906;color:white;text-align:center;padding:10px;}
    h1{font-size:2.5em;margin:0;}
    .container{display:flex;flex-wrap:wrap;padding:10px;}
    .card{background:white;border-radius:10px;box-shadow:0 4px 8px rgba(0,0,0,0.1);margin:10px;flex:1 1 30%;padding:20px;}
    .card img{width:100%;border-radius:10px;}
    .card h2{font-size:1.8em;color:#ff8906;}
    .card p{font-size:1em;color:#333;}
    button{background:#ff8906;color:white;border:none;border-radius:5px;padding:10px;width:100%;cursor:pointer;}
    button:hover{background:#dc4a00;}
    @media(max-width:768px){.card{flex:1 1 100%;}}
    .modal{display:none;position:fixed;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,0.8);justify-content:center;align-items:center;}
    .modal-content{background:white;position:relative;padding:20px;border-radius:10px;width:90%;max-width:500px;}
    .close{position:absolute;top:10px;right:20px;font-size:1.5em;cursor:pointer;}
    </style>
    <script>
    function toggleModal(){document.querySelector('.modal').style.display='flex';}
    function closeModal(){document.querySelector('.modal').style.display='none';}
    document.addEventListener('DOMContentLoaded',()=>{document.querySelectorAll('button').forEach(button=>{button.addEventListener('click',toggleModal);});document.querySelector('.close').addEventListener('click',closeModal);});
    </script>
    </head>
    <body>
    <header>
    <h1>Недвижимость Квартир</h1>
    </header>
    <div class="container">
    <div class="card">
    <img src="https://via.placeholder.com/300" alt="Квартира 1">
    <h2>Квартира 1</h2>
    <p>Описание квартиры...</p>
    <button>Подробнее</button>
    </div>
    <div class="card">
    <img src="https://via.placeholder.com/300" alt="Квартира 2">
    <h2>Квартира 2</h2>
    <p>Описание квартиры...</p>
    <button>Подробнее</button>
    </div>
    <div class="card">
    <img src="https://via.placeholder.com/300" alt="Квартира 3">
    <h2>Квартира 3</h2>
    <p>Описание квартиры...</p>
    <button>Подробнее</button>
    </div>
    </div>
    <div class="modal">
    <div class="modal-content">
    <span class="close">&times;</span>
    <h2>Детали квартиры</h2>
    <p>Здесь больше информации о выбранной квартире...</p>
    </div>
    </div>
    </body>
    </html>