Skip to content
TheChatArchiveThe Chat Archive
Claudeclaude-opus-4-20250514· AnthropicHugging Face LMArena Human Preference 140K

create me a futuristic one page IP camera security view page. I want the user to be able…

From a Chatbot Arena battleThe same person sent this prompt to two anonymous models at once. Compare it with Claudeclaude-sonnet-4-20250514-thinking-32k’s answer.
  1. User

    create me a futuristic one page IP camera security view page. I want the user to be able to select from a dropdown a few different layouts. When the user clicks on an empty layout item block, a popup asking for an ip address displays. when the user enters the ip address that block connects to the live feed on that address. The user must be able to paint on each feed to mark a motion detection area.

  2. Claude Assistant

    I'll create a futuristic IP camera security view page with the features you requested. This will include multiple layout options, IP address configuration, and motion detection area painting.

    <!DOCTYPE html>
    <html lang="en">
    <head>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <title>Security Command Center</title>
        <style>
            * {
                margin: 0;
                padding: 0;
                box-sizing: border-box;
            }
    
            body {
                font-family: 'Arial', sans-serif;
                background: #0a0a0a;
                color: #00ff88;
                overflow: hidden;
                height: 100vh;
            }
    
            .header {
                background: linear-gradient(90deg, #001122 0%, #003344 100%);
                padding: 15px 30px;
                display: flex;
                justify-content: space-between;
                align-items: center;
                border-bottom: 2px solid #00ff88;
                box-shadow: 0 4px 20px rgba(0, 255, 136, 0.3);
            }
    
            .title {
                font-size: 24px;
                font-weight: bold;
                text-transform: uppercase;
                letter-spacing: 2px;
                text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
            }
    
            .controls {
                display: flex;
                gap: 20px;
                align-items: center;
            }
    
            select {
                background: #001122;
                color: #00ff88;
                border: 1px solid #00ff88;
                padding: 8px 15px;
                border-radius: 5px;
                font-size: 14px;
                cursor: pointer;
                transition: all 0.3s;
            }
    
            select:hover {
                background: #002233;
                box-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
            }
    
            .grid-container {
                height: calc(100vh - 70px);
                padding: 20px;
                display: grid;
                gap: 15px;
                transition: all 0.3s ease;
            }
    
            .camera-feed {
                background: #001122;
                border: 2px solid #003344;
                border-radius: 10px;
                position: relative;
                overflow: hidden;
                cursor: pointer;
                transition: all 0.3s;
            }
    
            .camera-feed:hover {
                border-color: #00ff88;
                box-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
            }
    
            .camera-feed.empty {
                display: flex;
                align-items: center;
                justify-content: center;
                background: repeating-linear-gradient(
                    45deg,
                    #001122,
                    #001122 10px,
                    #001a2e 10px,
                    #001a2e 20px
                );
            }
    
            .camera-feed.empty::before {
                content: '+';
                font-size: 48px;
                color: #00ff88;
                opacity: 0.5;
            }
    
            .camera-info {
                position: absolute;
                top: 10px;
                left: 10px;
                background: rgba(0, 0, 0, 0.8);
                padding: 5px 10px;
                border-radius: 5px;
                font-size: 12px;
                z-index: 10;
            }
    
            .motion-canvas {
                position: absolute;
                top: 0;
                left: 0;
                width: 100%;
                height: 100%;
                z-index: 5;
                cursor: crosshair;
            }
    
            .video-element {
                width: 100%;
                height: 100%;
                object-fit: cover;
                display: block;
            }
    
            .modal {
                display: none;
                position: fixed;
                top: 0;
                left: 0;
                width: 100%;
                height: 100%;
                background: rgba(0, 0, 0, 0.9);
                z-index: 1000;
                align-items: center;
                justify-content: center;
            }
    
            .modal-content {
                background: #001122;
                border: 2px solid #00ff88;
                border-radius: 10px;
                padding: 30px;
                box-shadow: 0 0 30px rgba(0, 255, 136, 0.5);
            }
    
            .modal-title {
                font-size: 20px;
                margin-bottom: 20px;
                text-align: center;
            }
    
            .input-group {
                margin-bottom: 20px;
            }
    
            .input-group label {
                display: block;
                margin-bottom: 5px;
                font-size: 14px;
            }
    
            .input-group input {
                width: 100%;
                padding: 10px;
                background: #000;
                border: 1px solid #00ff88;
                color: #00ff88;
                border-radius: 5px;
                font-size: 14px;
            }
    
            .button-group {
                display: flex;
                gap: 10px;
                justify-content: center;
            }
    
            .btn {
                padding: 10px 20px;
                background: #00ff88;
                color: #000;
                border: none;
                border-radius: 5px;
                cursor: pointer;
                font-weight: bold;
                transition: all 0.3s;
            }
    
            .btn:hover {
                background: #00cc66;
                box-shadow: 0 0 15px rgba(0, 255, 136, 0.5);
            }
    
            .btn-cancel {
                background: #ff3344;
            }
    
            .btn-cancel:hover {
                background: #cc0011;
            }
    
            .tools {
                position: absolute;
                bottom: 10px;
                right: 10px;
                display: flex;
                gap: 5px;
                z-index: 10;
            }
    
            .tool-btn {
                padding: 5px 10px;
                background: rgba(0, 255, 136, 0.2);
                border: 1px solid #00ff88;
                color: #00ff88;
                border-radius: 3px;
                cursor: pointer;
                font-size: 12px;
                transition: all 0.3s;
            }
    
            .tool-btn:hover {
                background: rgba(0, 255, 136, 0.4);
            }
    
            .tool-btn.active {
                background: #00ff88;
                color: #000;
            }
    
            /* Layout specific styles */
            .layout-1x1 { grid-template-columns: 1fr; grid-template-rows: 1fr; }
            .layout-2x2 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
            .layout-3x3 { grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); }
            .layout-4x4 { grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(4, 1fr); }
            .layout-2x3 { grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(2, 1fr); }
        </style>
    </head>
    <body>
        <div class="header">
            <div class="title">Security Command Center</div>
            <div class="controls">
                <label for="layout-select" style="margin-right: 10px;">Layout:</label>
                <select id="layout-select">
                    <option value="1x1">1x1</option>
                    <option value="2x2" selected>2x2</option>
                    <option value="3x3">3x3</option>
                    <option value="4x4">4x4</option>
                    <option value="2x3">2x3</option>
                </select>
            </div>
        </div>
    
        <div id="grid-container" class="grid-container layout-2x2"></div>
    
        <div id="modal" class="modal">
            <div class="modal-content">
                <div class="modal-title">Configure Camera Feed</div>
                <div class="input-group">
                    <label for="ip-input">IP Address:</label>
                    <input type="text" id="ip-input" placeholder="e.g., 192.168.1.100:8080">
                </div>
                <div class="button-group">
                    <button class="btn" onclick="connectCamera()">Connect</button>
                    <button class="btn btn-cancel" onclick="closeModal()">Cancel</button>
                </div>
            </div>
        </div>
    
        <script>
            let currentFeedIndex = null;
            let feeds = [];
            let isDrawing = false;
            let drawMode = false;
    
            // Initialize grid
            function initializeGrid() {
                const container = document.getElementById('grid-container');
                const layout = document.getElementById('layout-select').value;
                container.className = `grid-container layout-${layout}`;
                
                // Calculate number of feeds based on layout
                let feedCount = 1;
                switch(layout) {
                    case '1x1': feedCount = 1; break;
                    case '2x2': feedCount = 4; break;
                    case '3x3': feedCount = 9; break;
                    case '4x4': feedCount = 16; break;
                    case '2x3': feedCount = 6; break;
                }
                
                // Clear existing feeds
                container.innerHTML = '';
                feeds = [];
                
                // Create feed elements
                for (let i = 0; i < feedCount; i++) {
                    const feedDiv = document.createElement('div');
                    feedDiv.className = 'camera-feed empty';
                    feedDiv.dataset.index = i;
                    feedDiv.onclick = (e) => {
                        if (e.target.classList.contains('empty')) {
                            openModal(i);
                        }
                    };
                    container.appendChild(feedDiv);
                    feeds.push({ element: feedDiv, ip: null, canvas: null });
                }
            }
    
            // Open modal for IP configuration
            function openModal(index) {
                currentFeedIndex = index;
                document.getElementById('modal').style.display = 'flex';
                document.getElementById('ip-input').value = '';
                document.getElementById('ip-input').focus();
            }
    
            // Close modal
            function closeModal() {
                document.getElementById('modal').style.display = 'none';
                currentFeedIndex = null;
            }
    
            // Connect camera
            function connectCamera() {
                const ip = document.getElementById('ip-input').value;
                if (!ip) {
                    alert('Please enter an IP address');
                    return;
                }
                
                const feed = feeds[currentFeedIndex];
                feed.ip = ip;
                
                // Create video element (simulated for demo)
                feed.element.classList.remove('empty');
                feed.element.innerHTML = `
                    <div class="camera-info">Camera ${currentFeedIndex + 1}: ${ip}</div>
                    <video class="video-element" autoplay muted loop>
                        <source src="https://www.w3schools.com/html/mov_bbb.mp4" type="video/mp4">
                    </video>
                    <canvas class="motion-canvas"></canvas>
                    <div class="tools">
                        <button class="tool-btn" onclick="toggleDrawMode(${currentFeedIndex})">Draw Area</button>
                        <button class="tool-btn" onclick="clearCanvas(${currentFeedIndex})">Clear</button>
                    </div>
                `;
                
                // Setup canvas for drawing
                const canvas = feed.element.querySelector('.motion-canvas');
                const ctx = canvas.getContext('2d');
                canvas.width = feed.element.offsetWidth;
                canvas.height = feed.element.offsetHeight;
                feed.canvas = canvas;
                feed.ctx = ctx;
                
                // Setup drawing events
                setupDrawingEvents(currentFeedIndex);
                
                closeModal();
            }
    
            // Toggle draw mode
            function toggleDrawMode(index) {
                const feed = feeds[index];
                const drawBtn = feed.element.querySelector('.tool-btn');
                drawMode = !drawMode;
                
                if (drawMode) {
                    drawBtn.classList.add('active');
                    feed.canvas.style.pointerEvents = 'auto';
                } else {
                    drawBtn.classList.remove('active');
                    feed.canvas.style.pointerEvents = 'none';
                }
            }
    
            // Setup drawing events
            function setupDrawingEvents(index) {
                const feed = feeds[index];
                const canvas = feed.canvas;
                const ctx = feed.ctx;
                let points = [];
                
                canvas.addEventListener('mousedown', (e) => {
                    if (!drawMode) return;
                    isDrawing = true;
                    const rect = canvas.getBoundingClientRect();
                    points = [{
                        x: e.clientX - rect.left,
                        y: e.clientY - rect.top
                    }];
                });
                
                canvas.addEventListener('mousemove', (e) => {
                    if (!isDrawing || !drawMode) return;
                    const rect = canvas.getBoundingClientRect();
                    points.push({
                        x: e.clientX - rect.left,
                        y: e.clientY - rect.top
                    });
                    
                    // Redraw
                    ctx.clearRect(0, 0, canvas.width, canvas.height);
                    ctx.strokeStyle = '#00ff88';
                    ctx.lineWidth = 2;
                    ctx.fillStyle = 'rgba(0, 255, 136, 0.2)';
                    
                    ctx.beginPath();
                    ctx.moveTo(points[0].x, points[0].y);
                    for (let i = 1; i < points.length; i++) {
                        ctx.lineTo(points[i].x, points[i].y);
                    }
                    ctx.closePath();
                    ctx.fill();
                    ctx.stroke();
                });
                
                canvas.addEventListener('mouseup', () => {
                    isDrawing = false;
                });
            }
    
            // Clear canvas
            function clearCanvas(index) {
                const feed = feeds[index];
                if (feed.ctx) {
                    feed.ctx.clearRect(0, 0, feed.canvas.width, feed.canvas.height);
                }
            }
    
            // Layout change handler
            document.getElementById('layout-select').addEventListener('change', initializeGrid);
    
            // Initialize on load
            window.addEventListener('load', initializeGrid);
    
            // Handle window resize
            window.addEventListener('resize', () => {
                feeds.forEach(feed => {
                    if (feed.canvas) {
                        feed.canvas.width = feed.element.offsetWidth;
                        feed.canvas.height = feed.element.offsetHeight;
                    }
                });
            });
    
            // Enter key support for modal
            document.getElementById('ip-input').addEventListener('keypress', (e) => {
                if (e.key === 'Enter') {
                    connectCamera();
                }
            });
        </script>
    </body>
    </html>
    

    This futuristic security camera view page includes:

    1. Multiple Layout Options: Dropdown menu with 1x1, 2x2, 3x3, 4x4, and 2x3 grid layouts

    2. IP Address Configuration: Click any empty camera slot to open a modal where you can enter an IP address

    3. Motion Detection Area Drawing:

      • Click "Draw Area" button to enable drawing mode
      • Draw directly on the video feed to mark motion detection zones
      • Areas are

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