From a5396c0d6edc78f54a6976db5f4684fe05936ce2 Mon Sep 17 00:00:00 2001 From: Till Tomczak Date: Fri, 2 May 2025 19:06:09 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20style:=20update=20base=20styles?= =?UTF-8?q?=20and=20add=20user=20mindmap=20template?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- static/css/base-styles.css | 29 +++ templates/base.html | 24 ++- templates/user_mindmap.html | 391 ++++++++++++++++++++++++++++++++++++ 3 files changed, 440 insertions(+), 4 deletions(-) create mode 100644 templates/user_mindmap.html diff --git a/static/css/base-styles.css b/static/css/base-styles.css index a318456..3cda484 100644 --- a/static/css/base-styles.css +++ b/static/css/base-styles.css @@ -1014,4 +1014,33 @@ body.dark .focus-visible:focus-visible { @page { margin: 2cm; } +} + +/* Light Mode KI-Chatfenster */ +body:not(.dark) .chat-container { + background-color: rgba(255, 255, 255, 0.95); + border: 1px solid rgba(0, 0, 0, 0.1); + box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); + color: #1e293b; +} + +body:not(.dark) .chat-message-ai { + background-color: rgba(124, 58, 237, 0.1); + border: 1px solid rgba(124, 58, 237, 0.2); +} + +body:not(.dark) .chat-message-user { + background-color: rgba(59, 130, 246, 0.1); + border: 1px solid rgba(59, 130, 246, 0.2); +} + +/* Anpassung der Chatfenster-Größe */ +.chat-assistant { + max-height: 85vh; /* Vergrößert von 80vh */ + bottom: 1rem; /* Etwas höher positionieren */ +} + +.chat-assistant .chat-messages { + max-height: calc(85vh - 180px); /* Angepasst für größeres Fenster */ + overflow-y: auto; } \ No newline at end of file diff --git a/templates/base.html b/templates/base.html index 55af8db..0335dc4 100644 --- a/templates/base.html +++ b/templates/base.html @@ -207,7 +207,7 @@ body:not(.dark) .btn, body:not(.dark) button:not(.toggle) { background: linear-gradient(135deg, #6d28d9, #5b21b6); - color: white; + color: white !important; border: none; box-shadow: 0 2px 4px rgba(91, 33, 182, 0.25); border-radius: 8px; @@ -223,6 +223,20 @@ background: linear-gradient(135deg, #7c3aed, #6d28d9); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(109, 40, 217, 0.3); + color: white !important; + } + + /* KI-Chat Button im Light-Mode */ + body:not(.dark) [onclick*="MindMap.assistant.toggleAssistant"] { + background: linear-gradient(135deg, #7c3aed, #3b82f6); + color: white !important; + font-weight: 500; + text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); + } + + body:not(.dark) [onclick*="MindMap.assistant.toggleAssistant"]:hover { + background: linear-gradient(135deg, #8b5cf6, #4f46e5); + box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3); } @@ -351,11 +365,13 @@
{% if current_user.is_authenticated %} diff --git a/templates/user_mindmap.html b/templates/user_mindmap.html new file mode 100644 index 0000000..02293d4 --- /dev/null +++ b/templates/user_mindmap.html @@ -0,0 +1,391 @@ +{% extends "base.html" %} + +{% block title %}{{ mindmap.name }} - Mindmap{% endblock %} + +{% block extra_css %} + +{% endblock %} + +{% block content %} +
+ +
+
+

{{ mindmap.name }}

+

{{ mindmap.description }}

+
+ +
+ {% if mindmap.user_id == current_user.id %} + + + Bearbeiten + + {% endif %} + + + + Zurück + +
+
+ + +
+ + + + + +
+ + +
+
+ + +
+

Knotendetails

+

+ +

Verbundene Knoten

+
+ +
+ + +
+
+
+
+{% endblock %} + +{% block extra_js %} + + + +{% endblock %} \ No newline at end of file