bug fixes
All checks were successful
Build and Push Madplaner / build (push) Successful in 26s
All checks were successful
Build and Push Madplaner / build (push) Successful in 26s
This commit is contained in:
@@ -55,12 +55,11 @@
|
||||
<a href="/dashboard" class="text-sm font-medium text-stone-600 hover:text-emerald-800 transition-colors">Dashboard</a>
|
||||
<div class="h-4 w-px bg-stone-200"></div>
|
||||
<div class="flex items-center gap-4">
|
||||
<span class="text-sm text-stone-400 font-light">Hej, {{ current_user.username }}</span>
|
||||
<a href="/logout" class="text-sm font-medium bg-stone-100 text-stone-900 px-4 py-2 rounded-full hover:bg-stone-200 transition-all">Sign Out</a>
|
||||
</div>
|
||||
{% else %}
|
||||
<a href="/login" class="text-sm font-medium text-stone-600 hover:text-stone-900">Login</a>
|
||||
<a href="/register" class="text-sm font-medium bg-emerald-800 text-white px-6 py-2.5 rounded-full hover:bg-emerald-900 shadow-sm transition-all">Join Free</a>
|
||||
<a href="/register" class="text-sm font-medium bg-emerald-800 text-white px-6 py-2.5 rounded-full hover:bg-emerald-900 shadow-sm transition-all">Register</a>
|
||||
{% endif %}
|
||||
</div>
|
||||
|
||||
@@ -76,33 +75,5 @@
|
||||
</main>
|
||||
</body>
|
||||
<script>
|
||||
function showToast(message, type = 'success') {
|
||||
const container = document.getElementById('toast-container');
|
||||
const toast = document.createElement('div');
|
||||
|
||||
// Nordic Palette for Toasts
|
||||
const styles = type === 'success'
|
||||
? 'bg-white border-emerald-500 text-stone-800'
|
||||
: 'bg-white border-rose-500 text-stone-800';
|
||||
|
||||
const icon = type === 'success'
|
||||
? '<span class="text-emerald-500 text-lg">✓</span>'
|
||||
: '<span class="text-rose-500 text-lg">✕</span>';
|
||||
|
||||
toast.className = `toast-animate-in pointer-events-auto flex items-center gap-4 px-6 py-4 rounded-2xl shadow-xl border-l-4 ${styles} min-w-[300px]`;
|
||||
|
||||
toast.innerHTML = `
|
||||
${icon}
|
||||
<p class="text-sm font-medium tracking-tight">${message}</p>
|
||||
`;
|
||||
|
||||
container.appendChild(toast);
|
||||
|
||||
// Auto-remove after 4 seconds
|
||||
setTimeout(() => {
|
||||
toast.classList.replace('toast-animate-in', 'toast-animate-out');
|
||||
setTimeout(() => toast.remove(), 300);
|
||||
}, 4000);
|
||||
}
|
||||
</script>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user