Skip to content
TheChatArchiveThe Chat Archive
MiniMaxminimax-m1· MiniMaxHugging Face LMArena Human Preference 140K

Create me UI for an MTB route planner. It should have input to specify rough estimation…

  1. User

    Create me UI for an MTB route planner. It should have input to specify rough estimation of route length, route points list and route preferences(avoid highways or prefer unpawed/low-car traffic/low-noise routes etc.)

  2. MiniMax Assistant

    Here's a modern, clean UI design for an MTB route planner using HTML/JS/CSS in a single file. The design focuses on usability with a nature-inspired color scheme:

    <!DOCTYPE html>
    <html lang="en">
    <head>
        <meta charset="UTF-8">
        <title>MTB Route Planner</title>
        <style>
            :root {
                --mtb-green: #2C5F2D;
                --dirt-brown: #9B7E46;
                --sky-blue: #A4CAED;
            }
    
            body {
                font-family: 'Segoe UI', system-ui;
                margin: 0;
                padding: 20px;
                background: #f5f5f5;
            }
    
            .container {
                max-width: 1200px;
                margin: 0 auto;
            }
    
            .planner-card {
                background: white;
                padding: 25px;
                border-radius: 12px;
                box-shadow: 0 4px 6px rgba(0,0,0,0.1);
                margin-bottom: 20px;
            }
    
            h1 {
                color: var(--mtb-green);
                text-align: center;
                margin-bottom: 30px;
            }
    
            .input-group {
                margin-bottom: 20px;
            }
    
            label {
                display: block;
                margin-bottom: 8px;
                color: #444;
                font-weight: 500;
            }
    
            input[type="range"] {
                width: 100%;
                height: 6px;
                -webkit-appearance: none;
                background: var(--sky-blue);
                border-radius: 3px;
            }
    
            input[type="range"]::-webkit-slider-thumb {
                -webkit-appearance: none;
                width: 18px;
                height: 18px;
                background: var(--mtb-green);
                border-radius: 50%;
                cursor: pointer;
            }
    
            .point-input {
                display: flex;
                gap: 10px;
                margin-bottom: 10px;
            }
    
            .point-input input {
                flex: 1;
                padding: 10px;
                border: 2px solid #ddd;
                border-radius: 6px;
            }
    
            .preference-grid {
                display: grid;
                grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
                gap: 15px;
                margin-top: 15px;
            }
    
            .checkbox-wrapper {
                display: flex;
                align-items: center;
                gap: 8px;
            }
    
            button {
                background: var(--mtb-green);
                color: white;
                padding: 12px 25px;
                border: none;
                border-radius: 6px;
                cursor: pointer;
                font-size: 16px;
                transition: opacity 0.2s;
            }
    
            button:hover {
                opacity: 0.9;
            }
    
            #mapPreview {
                height: 300px;
                background: #e9f5e9;
                border-radius: 8px;
                display: flex;
                align-items: center;
                justify-content: center;
                color: #666;
                margin: 20px 0;
            }
    
            .results {
                background: #f8f9fa;
                padding: 15px;
                border-radius: 8px;
                margin-top: 20px;
            }
        </style>
    </head>
    <body>
        <div class="container">
            <h1>MTB Route Planner</h1>
            
            <div class="planner-card">
                <div class="input-group">
                    <label>Route Length Estimation (km)</label>
                    <input type="range" id="routeLength" min="5" max="100" value="30" 
                           oninput="document.getElementById('lengthValue').textContent = this.value">
                    <div style="text-align: center; margin-top: 8px;">
                        <span id="lengthValue">30</span> km
                    </div>
                </div>
    
                <div class="input-group">
                    <label>Route Points</label>
                    <div id="pointsContainer">
                        <div class="point-input">
                            <input type="text" placeholder="Start Point (e.g. Trailhead)">
                            <button onclick="removePoint(this)" style="background: #ff4444;">×</button>
                        </div>
                        <div class="point-input">
                            <input type="text" placeholder="End Point (e.g. Summit)">
                            <button onclick="removePoint(this)" style="background: #ff4444;">×</button>
                        </div>
                    </div>
                    <button onclick="addPoint()" style="background: var(--dirt-brown); margin-top: 10px;">
                        Add Waypoint
                    </button>
                </div>
    
                <div class="input-group">
                    <label>Route Preferences</label>
                    <div class="preference-grid">
                        <label class="checkbox-wrapper">
                            <input type="checkbox"> Avoid Highways
                        </label>
                        <label class="checkbox-wrapper">
                            <input type="checkbox"> Prefer Unpaved
                        </label>
                        <label class="checkbox-wrapper">
                            <input type="checkbox"> Low Car Traffic
                        </label>
                        <label class="checkbox-wrapper">
                            <input type="checkbox"> Low Noise Areas
                        </label>
                    </div>
                </div>
    
                <div class="input-group">
                    <label>Difficulty Level</label>
                    <select style="width: 100%; padding: 10px; border-radius: 6px; border: 2px solid #ddd;">
                        <option>Beginner</option>
                        <option>Intermediate</option>
                        <option>Advanced</option>
                        <option>Expert</option>
                    </select>
                </div>
    
                <button onclick="calculateRoute()" style="width: 100%; padding: 15px;">
                    Calculate Route
                </button>
            </div>
    
            <div id="mapPreview">Interactive Map Preview</div>
    
            <div class="planner-card results">
                <h3>Planned Route</h3>
                <div id="routeResults">
                    <p>Distance: <span id="routeDistance">--</span> km</p>
                    <p>Elevation Gain: <span id="elevation">--</span> m</p>
                    <p>Estimated Time: <span id="time">--</span></p>
                </div>
                <button onclick="previewRoute()" style="background: var(--dirt-brown); margin-top: 10px;">
                    3D Route Preview
                </button>
            </div>
        </div>
    
        <script>
            function addPoint() {
                const container = document.getElementById('pointsContainer');
                const newPoint = document.createElement('div');
                newPoint.className = 'point-input';
                newPoint.innerHTML = `
                    <input type="text" placeholder="Waypoint ${container.children.length + 1}">
                    <button onclick="removePoint(this)" style="background: #ff4444;">×</button>
                `;
                container.appendChild(newPoint);
            }
    
            function removePoint(button) {
                button.parentElement.remove();
            }
    
            function calculateRoute() {
                // Placeholder for calculation logic
                document.getElementById('routeDistance').textContent = 
                    document.getElementById('routeLength').value;
                document.getElementById('elevation').textContent = '~' + 
                    (Math.random() * 1000).toFixed(0);
                document.getElementById('time').textContent = 
                    Math.floor(document.getElementById('routeLength').value / 10) + 
                    ' hours';
            }
    
            function previewRoute() {
                alert('3D preview would launch here');
            }
        </script>
    </body>
    </html>
    

    This UI includes:

    1. Route Length Input:
    • Interactive slider with numeric display
    • Range from 5-100 km
    1. Route Points Management:
    • Dynamic waypoint addition/removal
    • Input fields with clear labels
    • Start/end point differentiation
    1. Route Preferences:
    • Clean checkbox grid
    • Difficulty level selector
    • Common MTB preferences included
    1. Visual Design:
    • Responsive layout
    • Nature-inspired color scheme
    • Modern card-based interface
    • Subtle shadows and rounded corners
    • Hover effects on buttons
    • Clear visual hierarchy
    1. Interactive Elements:
    • Map preview placeholder
    • Results display section
    • 3D preview button

    To use this:

    1. Save as .html file
    2. Open in modern browser
    3. The UI is fully functional for input collection
    4. Actual routing logic would need to be implemented in the JavaScript section

    The design prioritizes mobile responsiveness and can be extended with actual map integration (like Leaflet or Google Maps) by adding API keys and corresponding JS code.