From 5e97381c8fc3d2360ee32491e191026df3b64292 Mon Sep 17 00:00:00 2001 From: marwin Date: Fri, 2 May 2025 08:51:40 +0100 Subject: [PATCH] nenn mich designer --- static/neural-network-background.js | 21 ++++++------------ templates/base.html | 33 ++++++++++++----------------- templates/index.html | 6 ++++++ 3 files changed, 26 insertions(+), 34 deletions(-) diff --git a/static/neural-network-background.js b/static/neural-network-background.js index 3f4d5f0..07a3638 100644 --- a/static/neural-network-background.js +++ b/static/neural-network-background.js @@ -39,11 +39,10 @@ class NeuralNetworkBackground { this.connections = []; this.activeConnections = new Set(); this.animationFrameId = null; - this.isDarkMode = true; this.isDestroying = false; // Farben - Lila Farbpalette - this.darkModeColors = { + this.colors = { background: '#040215', nodeColor: '#6a5498', nodePulse: '#9c7fe0', @@ -51,15 +50,6 @@ class NeuralNetworkBackground { flowColor: '#b47fea' }; - // Farben für Light Mode mit Lila-Akzenten - this.lightModeColors = { - background: '#f8f6fc', - nodeColor: '#6a5498', - nodePulse: '#9c7fe0', - connectionColor: '#7e70a5', - flowColor: '#a06cd5' - }; - // Konfiguration this.config = { nodeCount: 80, // Anzahl der Knoten @@ -78,9 +68,6 @@ class NeuralNetworkBackground { // Event-Listener window.addEventListener('resize', this.resizeCanvas.bind(this)); - document.addEventListener('darkModeToggled', (event) => { - this.isDarkMode = event.detail.isDark; - }); console.log('Vereinfachter Neural Network Background initialized'); } @@ -279,7 +266,7 @@ class NeuralNetworkBackground { } render(now) { - const colors = this.isDarkMode ? this.darkModeColors : this.lightModeColors; + const colors = this.colors; const width = this.canvas.width / (window.devicePixelRatio || 1); const height = this.canvas.height / (window.devicePixelRatio || 1); @@ -398,4 +385,8 @@ class NeuralNetworkBackground { // Initialisiert den Hintergrund, sobald die Seite geladen ist document.addEventListener('DOMContentLoaded', () => { window.neuralBackground = new NeuralNetworkBackground(); + + // Sicherstellen, dass die Seite immer im Dark Mode ist + document.documentElement.classList.add('dark'); + document.body.classList.add('dark'); }); \ No newline at end of file diff --git a/templates/base.html b/templates/base.html index ec774bd..9c93042 100644 --- a/templates/base.html +++ b/templates/base.html @@ -59,6 +59,20 @@ 800: '#0e1220', 900: '#0a0e19' } + }, + keyframes: { + float: { + '0%, 100%': { transform: 'translateY(0)' }, + '50%': { transform: 'translateY(-5px)' } + }, + 'bounce-slow': { + '0%, 100%': { transform: 'translateY(0)' }, + '50%': { transform: 'translateY(-8px)' } + } + }, + animation: { + float: 'float 3s ease-in-out infinite', + 'bounce-slow': 'bounce-slow 2s ease-in-out infinite' } } } @@ -306,25 +320,6 @@
- -
-
- -
-
-
- -
- -
-
- {% if current_user.is_authenticated %}
diff --git a/templates/index.html b/templates/index.html index 8f183f1..5a7f0ae 100644 --- a/templates/index.html +++ b/templates/index.html @@ -179,6 +179,12 @@
Systades
WISSEN VERNETZEN
+ +
+ + + +