228 lines
5.4 KiB
HTML
228 lines
5.4 KiB
HTML
{% extends "base.html" %}
|
|
|
|
{% block title %}Interaktive Mindmap{% endblock %}
|
|
|
|
{% block extra_css %}
|
|
<style>
|
|
/* Grundlegendes Layout */
|
|
.mindmap-container {
|
|
position: relative;
|
|
width: 100%;
|
|
height: calc(100vh - 64px);
|
|
background: linear-gradient(135deg, #1a1f2e 0%, #0f172a 100%);
|
|
overflow: hidden;
|
|
}
|
|
|
|
/* Hauptcontainer für die Mindmap */
|
|
#cy {
|
|
width: 100%;
|
|
height: 100%;
|
|
background: transparent;
|
|
}
|
|
|
|
/* Header-Bereich */
|
|
.mindmap-header {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
padding: 1.5rem;
|
|
background: rgba(15, 23, 42, 0.8);
|
|
backdrop-filter: blur(10px);
|
|
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
|
|
z-index: 10;
|
|
}
|
|
|
|
.mindmap-title {
|
|
font-size: 2rem;
|
|
font-weight: 700;
|
|
color: #fff;
|
|
margin: 0;
|
|
background: linear-gradient(90deg, #60a5fa, #8b5cf6);
|
|
-webkit-background-clip: text;
|
|
-webkit-text-fill-color: transparent;
|
|
}
|
|
|
|
/* Kontrollpanel */
|
|
.control-panel {
|
|
position: absolute;
|
|
right: 2rem;
|
|
top: 50%;
|
|
transform: translateY(-50%);
|
|
background: rgba(15, 23, 42, 0.9);
|
|
border-radius: 1rem;
|
|
padding: 1.5rem;
|
|
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
|
|
z-index: 10;
|
|
border: 1px solid rgba(255, 255, 255, 0.1);
|
|
}
|
|
|
|
.control-button {
|
|
display: flex;
|
|
align-items: center;
|
|
padding: 0.75rem 1rem;
|
|
margin: 0.5rem 0;
|
|
background: rgba(255, 255, 255, 0.1);
|
|
border: none;
|
|
border-radius: 0.5rem;
|
|
color: #fff;
|
|
cursor: pointer;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.control-button:hover {
|
|
background: rgba(255, 255, 255, 0.2);
|
|
transform: translateX(-5px);
|
|
}
|
|
|
|
.control-button i {
|
|
margin-right: 0.75rem;
|
|
}
|
|
|
|
/* Info-Panel */
|
|
.info-panel {
|
|
position: absolute;
|
|
left: 2rem;
|
|
top: 50%;
|
|
transform: translateY(-50%);
|
|
background: rgba(15, 23, 42, 0.9);
|
|
border-radius: 1rem;
|
|
padding: 1.5rem;
|
|
width: 300px;
|
|
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
|
|
z-index: 10;
|
|
border: 1px solid rgba(255, 255, 255, 0.1);
|
|
opacity: 0;
|
|
transform: translateX(-20px);
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.info-panel.visible {
|
|
opacity: 1;
|
|
transform: translateY(-50%) translateX(0);
|
|
}
|
|
|
|
.info-title {
|
|
font-size: 1.25rem;
|
|
font-weight: 600;
|
|
color: #fff;
|
|
margin-bottom: 1rem;
|
|
padding-bottom: 0.5rem;
|
|
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
|
|
}
|
|
|
|
.info-content {
|
|
color: rgba(255, 255, 255, 0.8);
|
|
font-size: 0.95rem;
|
|
line-height: 1.6;
|
|
}
|
|
|
|
/* Kategorie-Legende */
|
|
.category-legend {
|
|
position: absolute;
|
|
bottom: 2rem;
|
|
left: 50%;
|
|
transform: translateX(-50%);
|
|
background: rgba(15, 23, 42, 0.9);
|
|
border-radius: 1rem;
|
|
padding: 1rem 2rem;
|
|
display: flex;
|
|
gap: 1.5rem;
|
|
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
|
|
z-index: 10;
|
|
border: 1px solid rgba(255, 255, 255, 0.1);
|
|
}
|
|
|
|
.category-item {
|
|
display: flex;
|
|
align-items: center;
|
|
color: rgba(255, 255, 255, 0.8);
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
.category-color {
|
|
width: 12px;
|
|
height: 12px;
|
|
border-radius: 50%;
|
|
margin-right: 0.5rem;
|
|
}
|
|
|
|
/* Animationen */
|
|
@keyframes pulse {
|
|
0% { transform: scale(1); }
|
|
50% { transform: scale(1.05); }
|
|
100% { transform: scale(1); }
|
|
}
|
|
|
|
.pulse {
|
|
animation: pulse 2s infinite;
|
|
}
|
|
</style>
|
|
{% endblock %}
|
|
|
|
{% block content %}
|
|
<div class="mindmap-container">
|
|
<!-- Header -->
|
|
<div class="mindmap-header">
|
|
<h1 class="mindmap-title">Interaktive Wissenslandkarte</h1>
|
|
</div>
|
|
|
|
<!-- Hauptvisualisierung -->
|
|
<div id="cy"></div>
|
|
|
|
<!-- Kontrollpanel -->
|
|
<div class="control-panel">
|
|
<button class="control-button" id="zoom-in">
|
|
<i class="fas fa-search-plus"></i> Einzoomen
|
|
</button>
|
|
<button class="control-button" id="zoom-out">
|
|
<i class="fas fa-search-minus"></i> Auszoomen
|
|
</button>
|
|
<button class="control-button" id="reset-view">
|
|
<i class="fas fa-compress-arrows-alt"></i> Ansicht zurücksetzen
|
|
</button>
|
|
<button class="control-button" id="toggle-legend">
|
|
<i class="fas fa-layer-group"></i> Legende ein/aus
|
|
</button>
|
|
</div>
|
|
|
|
<!-- Info-Panel -->
|
|
<div class="info-panel" id="node-info">
|
|
<h3 class="info-title">Knoteninformationen</h3>
|
|
<div class="info-content">
|
|
<p>Wählen Sie einen Knoten aus, um Details anzuzeigen.</p>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Kategorie-Legende -->
|
|
<div class="category-legend">
|
|
<div class="category-item">
|
|
<span class="category-color" style="background: #60a5fa;"></span>
|
|
Philosophie
|
|
</div>
|
|
<div class="category-item">
|
|
<span class="category-color" style="background: #8b5cf6;"></span>
|
|
Wissenschaft
|
|
</div>
|
|
<div class="category-item">
|
|
<span class="category-color" style="background: #10b981;"></span>
|
|
Technologie
|
|
</div>
|
|
<div class="category-item">
|
|
<span class="category-color" style="background: #f59e0b;"></span>
|
|
Künste
|
|
</div>
|
|
<div class="category-item">
|
|
<span class="category-color" style="background: #ef4444;"></span>
|
|
Psychologie
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{% endblock %}
|
|
|
|
{% block extra_js %}
|
|
<script src="{{ url_for('static', filename='js/cytoscape.min.js') }}"></script>
|
|
<script src="{{ url_for('static', filename='js/mindmap-init.js') }}"></script>
|
|
<script src="{{ url_for('static', filename='js/update_mindmap.js') }}"></script>
|
|
<script src="{{ url_for('static', filename='js/mindmap-interaction.js') }}"></script>
|
|
{% endblock %} |