Skip to content
TheChatArchiveThe Chat Archive
Metallama-3.3-70b-instruct· MetaHugging Face LMArena Human Preference 140K

Create a visually stunning site about a brand-new phone, You must generate code directly.

From a Chatbot Arena battleThe same person sent this prompt to two anonymous models at once. Compare it with Claudeclaude-3-5-haiku-20241022’s answer.
  1. User

    Create a visually stunning site about a brand-new phone, You must generate code directly.

  2. Meta Assistant

    Phone Website Code

    Below is an example of HTML, CSS, and JavaScript code to create a visually stunning website for a brand-new phone.

    HTML Code

    <!-- index.html -->
    <!DOCTYPE html>
    <html lang="en">
    <head>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <title>Introducing X5 Phone</title>
        <link rel="stylesheet" href="styles.css">
    </head>
    <body>
        <!-- Header Section -->
        <header>
            <nav>
                <ul>
                    <li><a href="#features">Features</a></li>
                    <li><a href="#specs">Specifications</a></li>
                    <li><a href="#buy">Buy Now</a></li>
                </ul>
            </nav>
        </header>
    
        <!-- Hero Section -->
        <section id="hero">
            <h1>Introducing X5 Phone</h1>
            <p>Experience the future of smartphones with our latest flagship device.</p>
            <button>Learn More</button>
        </section>
    
        <!-- Features Section -->
        <section id="features">
            <h2>Key Features</h2>
            <ul>
                <li>6.7" AMOLED Display</li>
                <li>Quad Camera Setup</li>
                <li>5000mAh Battery</li>
                <li>Fast Charging Support</li>
            </ul>
        </section>
    
        <!-- Specifications Section -->
        <section id="specs">
            <h2>Technical Specifications</h2>
            <table>
                <tr>
                    <th>Display</th>
                    <td>6.7" AMOLED</td>
                </tr>
                <tr>
                    <th>Processor</th>
                    <td>Qualcomm Snapdragon 888</td>
                </tr>
                <tr>
                    <th>RAM</th>
                    <td>12GB</td>
                </tr>
                <tr>
                    <th>Storage</th>
                    <td>512GB</td>
                </tr>
            </table>
        </section>
    
        <!-- Buy Now Section -->
        <section id="buy">
            <h2>Get Your X5 Phone Today!</h2>
            <button>Buy Now</button>
        </section>
    
        <script src="script.js"></script>
    </body>
    </html>
    

    CSS Code

    /* styles.css */
    body {
        font-family: Arial, sans-serif;
        margin: 0;
        padding: 0;
    }
    
    header {
        background-color: #333;
        color: #fff;
        padding: 1em;
        text-align: center;
    }
    
    header nav ul {
        list-style: none;
        margin: 0;
        padding: 0;
    }
    
    header nav ul li {
        display: inline-block;
        margin-right: 20px;
    }
    
    header nav a {
        color: #fff;
        text-decoration: none;
    }
    
    #hero {
        background-image: linear-gradient(to bottom, #333, #555);
        background-size: 100% 300px;
        background-position: 0% 100%;
        height: 100vh;
        display: flex;
        justify-content: center;
        align-items: center;
        color: #fff;
    }
    
    #hero h1 {
        font-size: 48px;
    }
    
    #hero p {
        font-size: 18px;
    }
    
    #hero button {
        background-color: #333;
        color: #fff;
        border: none;
        padding: 10px 20px;
        font-size: 18px;
        cursor: pointer;
    }
    
    #features {
        padding: 2em;
    }
    
    #features ul {
        list-style: none;
        margin: 0;
        padding: 0;
    }
    
    #features li {
        margin-bottom: 10px;
    }
    
    #specs {
        padding: 2em;
    }
    
    #specs table {
        border-collapse: collapse;
        width: 100%;
    }
    
    #specs th, #specs td {
        border: 1px solid #ddd;
        padding: 10px;
        text-align: left;
    }
    
    #buy {
        background-color: #333;
        color: #fff;
        padding: 2em;
        text-align: center;
    }
    
    #buy button {
        background-color: #333;
        color: #fff;
        border: none;
        padding: 10px 20px;
        font-size: 18px;
        cursor: pointer;
    }
    

    JavaScript Code

    // script.js
    // Add event listener to the learn more button
    document.querySelector('#hero button').addEventListener('click', () => {
        // Scroll to the features section
        document.querySelector('#features').scrollIntoView({ behavior: 'smooth' });
    });
    
    // Add event listener to the buy now button
    document.querySelector('#buy button').addEventListener('click', () => {
        // Open a new window with the purchase page
        window.open('https://example.com/purchase', '_blank');
    });
    

    This code creates a basic website with a hero section, features section, specifications section, and a buy now section. The hero section has a background image with a gradient effect, and the features section has a list of key features. The specifications section has a table with technical specifications, and the buy now section has a button that opens a new window with the purchase page.

    You can customize the code to fit your needs and add more features as required. Make sure to replace the https://example.com/purchase URL with the actual purchase page URL.

    Example Use Case:

    1. Save the HTML code in a file named index.html.
    2. Save the CSS code in a file named styles.css.
    3. Save the JavaScript code in a file named script.js.
    4. Open the index.html file in a web browser to view the website.
    5. Click on the "Learn More" button to scroll to the features section.
    6. Click on the "Buy Now" button to open a new window with the purchase page.

Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.