🎨 style: update base styles and background for improved UI consistency
This commit is contained in:
@@ -129,13 +129,15 @@
|
||||
<style>
|
||||
/* Light‑Mode */
|
||||
:root {
|
||||
--bg-primary:#f4f6fa;
|
||||
--bg-secondary:#e9ecf3;
|
||||
--bg-primary:#f8fafc;
|
||||
--bg-secondary:#f1f5f9;
|
||||
--text-primary:#232837;
|
||||
--text-secondary:#475569;
|
||||
--accent-primary:#7c3aed;
|
||||
--accent-secondary:#8b5cf6;
|
||||
--glow-effect:0 0 8px rgba(139,92,246,.08);
|
||||
background-image: linear-gradient(to bottom right, rgba(248, 250, 252, 0.8), rgba(241, 245, 249, 0.8));
|
||||
background-attachment: fixed;
|
||||
}
|
||||
/* Dark‑Mode */
|
||||
.dark {
|
||||
@@ -149,7 +151,8 @@
|
||||
}
|
||||
|
||||
body {
|
||||
@apply min-h-screen bg-[color:var(--bg-primary)] text-[color:var(--text-primary)] transition-colors duration-300;
|
||||
@apply min-h-screen bg-[color:var(--bg-primary)] text-[color:var(--text-primary)];
|
||||
transition: background-color 0.5s ease-in-out, color 0.3s ease-in-out, background-image 0.5s ease-in-out;
|
||||
}
|
||||
|
||||
/* Utilities */
|
||||
@@ -320,6 +323,24 @@
|
||||
|
||||
<!-- Rechte Seite -->
|
||||
<div class="flex items-center space-x-4">
|
||||
<!-- Dark/Light Mode Schalter -->
|
||||
<button
|
||||
@click="toggleDarkMode()"
|
||||
class="relative inline-flex h-6 w-11 items-center rounded-full transition-colors duration-300 focus:outline-none"
|
||||
:class="darkMode ? 'bg-purple-600' : 'bg-gray-200'"
|
||||
>
|
||||
<span class="sr-only">Dark Mode umschalten</span>
|
||||
<!-- Schieberegler -->
|
||||
<span
|
||||
class="inline-block h-4 w-4 transform rounded-full bg-white transition-transform duration-300"
|
||||
:class="darkMode ? 'translate-x-6' : 'translate-x-1'"
|
||||
></span>
|
||||
<!-- Icons -->
|
||||
<i class="fas fa-sun absolute left-1 text-yellow-400 transition-opacity duration-300"
|
||||
:class="darkMode ? 'opacity-0' : 'opacity-100'"></i>
|
||||
<i class="fas fa-moon absolute right-1 text-gray-100 transition-opacity duration-300"
|
||||
:class="darkMode ? 'opacity-100' : 'opacity-0'"></i>
|
||||
</button>
|
||||
<!-- Profil-Link oder Login -->
|
||||
{% if current_user.is_authenticated %}
|
||||
<div class="relative" x-data="{ open: false }">
|
||||
|
||||
Reference in New Issue
Block a user