Skip to content

~95% on SimpleQA (e.g. Qwen3.6-27B on a 3090). Supports all local and cloud LLMs (llama.cpp, Ollama, Google, ...). 10+ search engines - arXiv, PubMed, your private documents. Everything Local & Encrypted.

4.0 KB
Raw Blame
<!DOCTYPE html>
<html lang="en">
<head>
    <script nonce="{{ csp_nonce }}" data-template-token="{{ template_event_token }}" src="/static/js/security/template-events.js"></script>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>{{ error_title|default('Error') }} - Deep Research System</title>
    <link rel="icon" type="image/png" href="/static/favicon.png">

    {# Standalone layout: shared template context may contain private values.
       Do not extend the app shell or interpolate its version/session data. #}

    <!-- Vite HMR for development -->
    {{ vite_hmr() }}

    <!-- SafeLogger must load before app.js which uses it at init -->
    <script src="/static/js/security/safe-logger.js"></script>
    <!-- Load all vendor dependencies and styles through Vite -->
    {{ vite_asset('js/app.js') }}

    <!-- Keep local styles -->
    <link rel="stylesheet" href="/static/css/styles.css">

    <style nonce="{{ csp_nonce }}">
        body {
            min-height: 100vh;
            background: var(--bg-primary);
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 2rem;
            margin: 0;
            box-sizing: border-box;
        }

        .ldr-error-page {
            width: 100%;
            max-width: 480px;
            padding: 3rem 2.5rem;
            text-align: center;
            background: var(--bg-secondary);
            border: 1px solid var(--border-color);
            border-radius: 12px;
            box-shadow: var(--card-shadow, none);
            box-sizing: border-box;
        }

        .ldr-error-page .ldr-error-icon {
            display: block;
            font-size: 2.5rem;
            color: var(--text-muted);
            opacity: 0.6;
            margin-bottom: 1.25rem;
        }

        .ldr-error-page .ldr-error-code {
            margin: 0 0 0.5rem 0;
            font-size: 0.85rem;
            font-weight: 600;
            letter-spacing: 0.08em;
            text-transform: uppercase;
            color: var(--accent-primary);
        }

        .ldr-error-page h1 {
            margin: 0 0 0.75rem 0;
            font-size: 1.4rem;
            color: var(--text-primary);
        }

        .ldr-error-page p {
            margin: 0 0 1.75rem 0;
            color: var(--text-secondary);
            line-height: 1.6;
        }

        .ldr-error-page .btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            padding: 0.875rem 2rem;
            background: var(--accent-primary);
            color: var(--text-on-accent);
            /* Bootstrap's pressed rule (.btn:first-child:active, 0,3,0)
               outranks the ink above and draws these variables, which a
               plain .btn leaves undefined. */
            --bs-btn-hover-color: var(--text-on-accent);
            --bs-btn-hover-bg: var(--accent-secondary);
            --bs-btn-active-color: var(--text-on-accent);
            --bs-btn-active-bg: var(--accent-secondary);
            border: none;
            border-radius: 8px;
            font-size: 1rem;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s;
            text-decoration: none;
        }

        .ldr-error-page .btn:hover {
            background: var(--accent-secondary);
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(110, 79, 246, 0.3);
        }
    </style>
</head>
<body>
    <div class="ldr-error-page" data-error-page data-status-code="{{ status_code }}">
        <i aria-hidden="true" class="fas fa-exclamation-circle ldr-error-icon"></i>
        <p class="ldr-error-code">Error {{ status_code }}</p>
        <h1>{{ error_title|default('Something went wrong') }}</h1>
        <p>{{ error_message|default('Please try again, or head back to the main page.') }}</p>
        <a class="btn" href="/">
            <i aria-hidden="true" class="fas fa-home"></i> Back to Deep Research
        </a>
    </div>
</body>
</html>