AstraOS-Panel/AstraOS/Frontend/HTML/link_discord.html
MrWhiff 705e524e22 AstraOS Ver. 1.16:
- Tab Logo wird richtig Angezeigt
2025-12-21 23:01:43 +01:00

76 lines
4.7 KiB
HTML

<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>AstraOS — Discord verknüpfen</title>
<link rel="icon" href="{{ url_for('media', filename='AstraOS_Logo.ico') }}" type="image/x-icon">
<script src="https://cdn.tailwindcss.com"></script>
<style>
body {
background: radial-gradient(circle at top, #1b1b26, #0a0a0f 70%);
}
.animated-bg {
position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
z-index: -1; pointer-events: none; overflow: hidden;
}
.dot {
position: absolute; width: 4px; height: 4px; border-radius: 50%;
background: rgba(192, 132, 252, 0.2);
animation: float 20s infinite linear;
}
@keyframes float {
0% { transform: translateY(100vh) scale(1); }
100% { transform: translateY(-10vh) scale(1.5); }
}
</style>
</head>
<body class="text-white">
<div class="animated-bg"></div>
<div class="min-h-screen flex flex-col items-center justify-center px-4 text-center">
<div class="w-full max-w-lg bg-black/40 border border-purple-500/20 rounded-2xl p-8 backdrop-blur-lg shadow-xl">
<h1 class="text-3xl font-bold mb-4 tracking-wider text-purple-300">Discord-Konto verknüpfen</h1>
<p class="text-gray-300 mb-8">
Um die Sicherheit deines Kontos zu gewährleisten und alle Funktionen von AstraOS nutzen zu können,
ist eine Verknüpfung mit deinem Discord-Konto erforderlich.
</p>
{% with messages = get_flashed_messages(with_categories=true) %}
{% if messages %}
{% for category, message in messages %}
<div class="mb-4 rounded-md bg-{{ 'red' if category == 'danger' else 'blue' }}-500/20 p-4 text-sm text-{{ 'red' if category == 'danger' else 'blue' }}-300 border border-{{ 'red' if category == 'danger' else 'blue' }}-500/30">
{{ message }}
</div>
{% endfor %}
{% endif %}
{% endwith %}
<a href="{{ url_for('login_discord') }}"
class="inline-flex items-center justify-center w-full max-w-xs bg-[#5865F2] hover:bg-[#4752C4] text-white py-3 rounded-lg font-semibold transition text-lg">
<svg class="w-6 h-6 mr-3" aria-hidden="true" role="img" viewBox="0 0 24 24"><path fill="currentColor" d="M20.317 4.36981C18.2767 3.20426 16.1224 2.27659 13.8468 1.61774C13.679 1.57584 13.5041 1.68116 13.4343 1.84475C12.8151 3.24952 12.3413 4.96228 12.0009 6.53635C10.6866 6.37181 9.36521 6.37181 8.01525 6.53635C7.67488 4.96228 7.20103 3.24952 6.58181 1.84475C6.51205 1.68116 6.33712 1.57584 6.16931 1.61774C3.89372 2.27659 1.73942 3.20426 -0.300884 4.36981C-0.535332 4.49339 -0.620213 4.7833 -0.499842 5.01329C0.0107496 5.92333 0.406433 6.97593 0.683583 8.0343C0.715011 8.14443 0.801901 8.23132 0.912038 8.26275C2.43731 8.73725 3.93953 9.1111 5.42371 9.34818C5.60563 9.3789 5.75754 9.24538 5.71964 9.06346C5.54471 8.25822 5.3928 7.43716 5.24089 6.62322C5.22194 6.52066 5.28274 6.4181 5.3853 6.39233C9.41501 5.69637 14.5858 5.69637 18.6155 6.39233C18.7181 6.4181 18.7789 6.52066 18.7599 6.62322C18.608 7.43716 18.4561 8.25822 18.2812 9.06346C18.2433 9.24538 18.3952 9.3789 18.5771 9.34818C20.0613 9.1111 21.5635 8.73725 23.0888 8.26275C23.1989 8.23132 23.2858 8.14443 23.3172 8.0343C23.5944 6.97593 23.9901 5.92333 24.4998 5.01329C24.6202 4.7833 24.5353 4.49339 24.3009 4.36981L20.317 4.36981Z"></path><path fill="currentColor" d="M12.0009 16.4373C14.2131 16.4373 16.0013 14.834 16.0013 12.8337C16.0013 10.8334 14.2202 9.23004 12.0009 9.23004C9.78161 9.23004 8.00049 10.8334 8.00049 12.8337C8.00049 14.834 9.78161 16.4373 12.0009 16.4373ZM18.0016 16.4373C20.2138 16.4373 22.002 14.834 22.002 12.8337C22.002 10.8334 20.2209 9.23004 18.0016 9.23004C15.7823 9.23004 14.0012 10.8334 14.0012 12.8337C14.0012 14.834 15.7823 16.4373 18.0016 16.4373Z"></path></svg>
Mit Discord verknüpfen
</a>
<div class="mt-8">
<a href="{{ url_for('logout') }}" class="text-sm text-gray-400 hover:text-white transition">Abmelden</a>
</div>
</div>
</div>
<script>
const bg = document.querySelector('.animated-bg');
if (bg) {
for (let i = 0; i < 50; i++) {
const dot = document.createElement('div');
dot.classList.add('dot');
dot.style.left = `${Math.random() * 100}vw`;
dot.style.animationDelay = `${Math.random() * -20}s`;
dot.style.animationDuration = `${20 + Math.random() * 10}s`;
bg.appendChild(dot);
}
}
</script>
</body>
</html>