Files
eveAI/eveai_chat_client/templates/base.html
2025-07-23 16:02:11 +02:00

60 lines
2.7 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{% block title %}EveAI Chat{% endblock %}</title>
<link href="{{url_for('static', filename='dist/chat-client.css')}}" rel="stylesheet" />
<!-- Custom theme colors from tenant settings -->
<style>
:root {
/* Legacy support - keeping for backward compatibility */
--primary-color: {{ customisation.active_background_color|default('#ffffff') }};
--secondary-color: {{ customisation.active_text_color|default('#212529') }};
/* Sidebar customisation */
--sidebar-color: {{ customisation.sidebar_color|default('#f8f9fa') }};
--sidebar-background: {{ customisation.sidebar_background|default('#2c3e50') }};
/* Gradient customisation */
--gradient-start-color: {{ customisation.gradient_start_color|default('#f5f7fa') }};
--gradient-end-color: {{ customisation.gradient_end_color|default('#c3cfe2') }};
/* Markdown customisation */
--markdown-background-color: {{ customisation.markdown_background_color|default('transparent') }};
--markdown-text-color: {{ customisation.markdown_text_color|default('#ffffff') }};
/* Active elements customisation */
--active-background-color: {{ customisation.active_background_color|default('#ffffff') }};
--active-text-color: {{ customisation.active_text_color|default('#212529') }};
/* History customisation with alpha-based color manipulation */
--history-background: {{ customisation.history_background|default(10)|adjust_color_alpha }};
--history-user-message-background: {{ customisation.history_user_message_background|default(-10)|adjust_color_alpha }};
--history-ai-message-background: {{ customisation.history_ai_message_background|default(0)|adjust_color_alpha }};
--history-message-text-color: {{ customisation.history_message_text_color|default('#212529') }};
}
</style>
{% block head %}{% endblock %}
</head>
<body>
<div id="app" class="app-container" data-vue-app="true">
<!-- Left sidebar - Vue component container -->
<div id="sidebar-container"></div>
<!-- Right content area - contains the chat client -->
<div class="content-area">
<div class="chat-container">
{% block content %}{% endblock %}
</div>
</div>
</div>
{% include 'scripts.html' %}
{% block scripts %}{% endblock %}
</body>
</html>