Skip to content
TheChatArchiveThe Chat Archive
grok-3-preview-02-24· xAIHugging Face LMArena Human Preference 140K

recreate this ui I designed https://www.twelvelabs.io/

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

    recreate this ui I designed https://www.twelvelabs.io/

  2. Assistant

    To recreate the UI of the website you provided (https://www.twelvelabs.io/), we need to break down the design into its core components and then implement it using HTML, CSS, and possibly JavaScript for interactivity. Below is a step-by-step guide to help you recreate the UI. This example will focus on the structure and styling of the homepage, and you can expand it further based on your needs.

    Step 1: Analyze the Design

    The website has the following key sections:

    1. Header: A navigation bar with a logo, menu items, and a "Contact Us" button.
    2. Hero Section: A large hero area with a heading, subheading, and a call-to-action (CTA) button.
    3. Features Section: A section showcasing features or services with cards or blocks.
    4. Footer: A footer with links, social media icons, and other information.

    The design is clean, modern, and uses a dark color scheme with white text and accent colors.

    Step 2: Set Up the Project

    1. Create a new project folder.
    2. Inside the folder, create the following files:
      • index.html
      • styles.css
      • script.js (optional, for interactivity)

    Step 3: HTML Structure

    Below is the HTML structure for the homepage, based on the design of the website.

    <!DOCTYPE html>
    <html lang="en">
    <head>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <title>TwelveLabs - AI-Powered Solutions</title>
        <link rel="stylesheet" href="styles.css">
    </head>
    <body>
        <!-- Header -->
        <header>
            <div class="container">
                <div class="logo">
                    <img src="logo.png" alt="TwelveLabs Logo">
                </div>
                <nav>
                    <ul>
                        <li><a href="#">Home</a></li>
                        <li><a href="#">Products</a></li>
                        <li><a href="#">Solutions</a></li>
                        <li><a href="#">About</a></li>
                    </ul>
                </nav>
                <div class="cta">
                    <a href="#" class="btn">Contact Us</a>
                </div>
            </div>
        </header>
    
        <!-- Hero Section -->
        <section class="hero">
            <div class="container">
                <h1>Unlock the Power of AI</h1>
                <p>Transform your business with cutting-edge AI solutions tailored to your needs.</p>
                <a href="#" class="btn hero-btn">Get Started</a>
            </div>
        </section>
    
        <!-- Features Section -->
        <section class="features">
            <div class="container">
                <h2>Our Solutions</h2>
                <div class="feature-grid">
                    <div class="feature-card">
                        <h3>AI Automation</h3>
                        <p>Streamline your workflows with intelligent automation.</p>
                    </div>
                    <div class="feature-card">
                        <h3>Data Insights</h3>
                        <p>Unlock actionable insights from your data.</p>
                    </div>
                    <div class="feature-card">
                        <h3>Machine Learning</h3>
                        <p>Build and deploy custom ML models at scale.</p>
                    </div>
                </div>
            </div>
        </section>
    
        <!-- Footer -->
        <footer>
            <div class="container">
                <div class="footer-content">
                    <div class="footer-logo">
                        <img src="logo.png" alt="TwelveLabs Logo">
                    </div>
                    <div class="footer-links">
                        <ul>
                            <li><a href="#">Privacy Policy</a></li>
                            <li><a href="#">Terms of Service</a></li>
                            <li><a href="#">Contact</a></li>
                        </ul>
                    </div>
                    <div class="footer-social">
                        <a href="#"><img src="twitter-icon.png" alt="Twitter"></a>
                        <a href="#"><img src="linkedin-icon.png" alt="LinkedIn"></a>
                        <a href="#"><img src="github-icon.png" alt="GitHub"></a>
                    </div>
                </div>
            </div>
        </footer>
    </body>
    </html>
    

    Step 4: CSS Styling

    Now, let's style the UI to match the design. Below is the styles.css file with styles inspired by the website's dark theme, modern typography, and layout.

    /* Reset and General Styles */
    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }
    
    body {
        font-family: 'Arial', sans-serif;
        background-color: #1a1a1a;
        color: #fff;
        line-height: 1.6;
    }
    
    .container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 20px;
    }
    
    /* Header */
    header {
        background-color: #000;
        padding: 20px 0;
        position: fixed;
        width: 100%;
        top: 0;
        z-index: 1000;
    }
    
    header .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .logo img {
        height: 40px;
    }
    
    nav ul {
        list-style: none;
        display: flex;
        gap: 20px;
    }
    
    nav ul li a {
        color: #fff;
        text-decoration: none;
        font-weight: bold;
        transition: color 0.3s;
    }
    
    nav ul li a:hover {
        color: #00aaff;
    }
    
    .cta .btn {
        background-color: #00aaff;
        color: #fff;
        padding: 10px 20px;
        text-decoration: none;
        border-radius: 5px;
        font-weight: bold;
        transition: background-color 0.3s;
    }
    
    .cta .btn:hover {
        background-color: #0088cc;
    }
    
    /* Hero Section */
    .hero {
        background-color: #111;
        padding: 150px 0;
        text-align: center;
    }
    
    .hero h1 {
        font-size: 3rem;
        margin-bottom: 20px;
    }
    
    .hero p {
        font-size: 1.2rem;
        margin-bottom: 30px;
        color: #ccc;
    }
    
    .hero .hero-btn {
        background-color: #00aaff;
        color: #fff;
        padding: 15px 30px;
        text-decoration: none;
        border-radius: 5px;
        font-weight: bold;
        transition: background-color 0.3s;
    }
    
    .hero .hero-btn:hover {
        background-color: #0088cc;
    }
    
    /* Features Section */
    .features {
        padding: 100px 0;
        text-align: center;
    }
    
    .features h2 {
        font-size: 2.5rem;
        margin-bottom: 50px;
    }
    
    .feature-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 30px;
    }
    
    .feature-card {
        background-color: #222;
        padding: 30px;
        border-radius: 10px;
        transition: transform 0.3s;
    }
    
    .feature-card:hover {
        transform: translateY(-10px);
    }
    
    .feature-card h3 {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }
    
    .feature-card p {
        color: #ccc;
    }
    
    /* Footer */
    footer {
        background-color: #000;
        padding: 50px 0;
        text-align: center;
    }
    
    .footer-content {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        gap: 20px;
    }
    
    .footer-logo img {
        height: 40px;
    }
    
    .footer-links ul {
        list-style: none;
        display: flex;
        gap: 20px;
    }
    
    .footer-links ul li a {
        color: #ccc;
        text-decoration: none;
        transition: color 0.3s;
    }
    
    .footer-links ul li a:hover {
        color: #00aaff;
    }
    
    .footer-social a {
        margin: 0 10px;
    }
    
    .footer-social img {
        height: 20px;
        filter: grayscale(100%);
        transition: filter 0.3s;
    }
    
    .footer-social img:hover {
        filter: grayscale(0%);
    }
    
    /* Responsive Design */
    @media (max-width: 768px) {
        header .container {
            flex-direction: column;
            gap: 20px;
        }
    
        nav ul {
            flex-direction: column;
            text-align: center;
        }
    
        .hero {
            padding: 100px 0;
        }
    
        .hero h1 {
            font-size: 2rem;
        }
    
        .hero p {
            font-size: 1rem;
        }
    
        .footer-content {
            flex-direction: column;
            text-align: center;
        }
    }
    

    Step 5: Add Interactivity (Optional)

    If you want to add interactivity (e.g., a hamburger menu for mobile, smooth scrolling, etc.), you can use JavaScript. Below is an example of a simple hamburger menu toggle for mobile devices.

    1. Add a hamburger icon to the header in index.html:

      <div class="hamburger">
          <span></span>
          <span></span>
          <span></span>
      </div>
      
    2. Add the following CSS to styles.css:

      .hamburger {
          display: none;
          flex-direction: column;
          gap: 5px;
          cursor: pointer;
      }
      
      .hamburger span {
          width: 25px;
          height: 3px;
          background-color: #fff;
          transition: all 0.3s;
      }
      
      @media (max-width: 768px) {
          .hamburger {
              display: flex;
          }
      
          nav {
              display: none;
          }
      
          nav.active {
              display: block;
              width: 100%;
          }
      
          nav ul {
              flex-direction: column;
              text-align: center;
          }
      }
      
    3. Add the following JavaScript to script.js:

      const hamburger = document.querySelector('.hamburger');
      const nav = document.querySelector('nav');
      
      hamburger.addEventListener('click', () => {
          nav.classList.toggle('active');
      });
      
    4. Link the JavaScript file in index.html before the closing </body> tag:

      <script src="script.js"></script>
      

    Step 6: Add Images and Assets

    • Replace placeholder image paths (e.g., logo.png, twitter-icon.png, etc.) with actual image files.
    • Ensure the images are optimized for web use to improve performance.

    Step 7: Test and Refine

    • Test the website on different devices and screen sizes to ensure responsiveness.
    • Refine the design by adjusting colors, spacing, and typography to match the original design more closely.

    Notes

    • The above code is a simplified recreation of the UI. To match the exact design, you may need to:
      • Use specific fonts (e.g., Google Fonts or custom fonts).
      • Add animations or transitions (e.g., using CSS animations or a library like GSAP).
      • Include additional sections or components present on the original website.
    • If you want to add dynamic content or backend functionality, consider using a framework like React, Vue, or a CMS.

    Let me know if you need help with any specific part of the implementation!

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