Initialer Laravel Commit für BetiX
This commit is contained in:
729
resources/js/layouts/admin/CasinoAdminLayout.vue
Normal file
729
resources/js/layouts/admin/CasinoAdminLayout.vue
Normal file
@@ -0,0 +1,729 @@
|
||||
<script setup lang="ts">
|
||||
import { Link, router, usePage } from '@inertiajs/vue3';
|
||||
import { computed, onMounted, nextTick, ref, watch } from 'vue';
|
||||
|
||||
const page = usePage();
|
||||
const user = computed(() => (page.props as any).auth?.user || null);
|
||||
const mobileOpen = ref(false);
|
||||
const isLoading = ref(false);
|
||||
const loadingProgress = ref(0);
|
||||
const pageVisible = ref(false);
|
||||
let loadTimer: any = null;
|
||||
|
||||
const navSections = [
|
||||
{
|
||||
label: 'Overview',
|
||||
items: [
|
||||
{ label: 'Dashboard', icon: 'layout-dashboard', href: '/admin/casino', segment: 'casino' },
|
||||
]
|
||||
},
|
||||
{
|
||||
label: 'Users',
|
||||
items: [
|
||||
{ label: 'Nutzer', icon: 'users', href: '/admin/users', segment: 'users' },
|
||||
]
|
||||
},
|
||||
{
|
||||
label: 'Content',
|
||||
items: [
|
||||
{ label: 'Live Chat', icon: 'message-square', href: '/admin/chat', segment: 'chat' },
|
||||
{ label: 'Promos', icon: 'ticket', href: '/admin/promos', segment: 'promos' },
|
||||
{ label: 'Support', icon: 'life-buoy', href: '/admin/support', segment: 'support' },
|
||||
]
|
||||
},
|
||||
{
|
||||
label: 'Moderation',
|
||||
items: [
|
||||
{ label: 'Chat Reports', icon: 'flag', href: '/admin/reports/chat', segment: 'reports/chat' },
|
||||
{ label: 'Profil Reports', icon: 'shield-alert', href: '/admin/reports/profiles', segment: 'reports/profiles' },
|
||||
]
|
||||
},
|
||||
{
|
||||
label: 'Payments',
|
||||
items: [
|
||||
{ label: 'Payments', icon: 'credit-card', href: '/admin/payments/settings', segment: 'payments' },
|
||||
{ label: 'Wallets', icon: 'wallet', href: '/admin/wallets/settings', segment: 'wallets' },
|
||||
]
|
||||
},
|
||||
{
|
||||
label: 'Settings',
|
||||
items: [
|
||||
{ label: 'Site Settings', icon: 'settings', href: '/admin/settings/site', segment: 'settings/site' },
|
||||
{ label: 'VPN & GeoBlock', icon: 'shield-ban', href: '/admin/settings/geo', segment: 'settings/geo' },
|
||||
]
|
||||
},
|
||||
];
|
||||
|
||||
const isActive = (segment: string) => page.url.startsWith(`/admin/${segment}`);
|
||||
const isAnyActive = (items: any[]) => items.some(i => isActive(i.segment));
|
||||
|
||||
function startLoading() {
|
||||
isLoading.value = true;
|
||||
loadingProgress.value = 0;
|
||||
pageVisible.value = false;
|
||||
loadTimer = setInterval(() => {
|
||||
if (loadingProgress.value < 85) loadingProgress.value += Math.random() * 18;
|
||||
}, 120);
|
||||
}
|
||||
|
||||
function finishLoading() {
|
||||
clearInterval(loadTimer);
|
||||
loadingProgress.value = 100;
|
||||
setTimeout(() => {
|
||||
isLoading.value = false;
|
||||
loadingProgress.value = 0;
|
||||
pageVisible.value = true;
|
||||
nextTick(() => { if ((window as any).lucide) (window as any).lucide.createIcons(); });
|
||||
}, 300);
|
||||
}
|
||||
|
||||
onMounted(() => {
|
||||
pageVisible.value = true;
|
||||
router.on('start', startLoading);
|
||||
router.on('finish', finishLoading);
|
||||
nextTick(() => { if ((window as any).lucide) (window as any).lucide.createIcons(); });
|
||||
});
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div class="al-root" :class="{ 'mobile-open': mobileOpen }">
|
||||
|
||||
<!-- Animated background -->
|
||||
<div class="al-bg" aria-hidden="true">
|
||||
<div class="al-bg-blob al-bg-blob-1"></div>
|
||||
<div class="al-bg-blob al-bg-blob-2"></div>
|
||||
<div class="al-bg-blob al-bg-blob-3"></div>
|
||||
<div class="al-bg-grid"></div>
|
||||
</div>
|
||||
|
||||
<!-- Loading bar -->
|
||||
<div class="al-progress-bar" :class="{ visible: isLoading }">
|
||||
<div class="al-progress-fill" :style="{ width: loadingProgress + '%' }"></div>
|
||||
<div class="al-progress-glow"></div>
|
||||
</div>
|
||||
|
||||
<!-- Loading overlay -->
|
||||
<Transition name="fade">
|
||||
<div v-if="isLoading" class="al-loading-overlay">
|
||||
<div class="al-spinner">
|
||||
<div class="al-spinner-ring"></div>
|
||||
<div class="al-spinner-ring al-spinner-ring-2"></div>
|
||||
</div>
|
||||
</div>
|
||||
</Transition>
|
||||
|
||||
<!-- Mobile overlay -->
|
||||
<Transition name="fade">
|
||||
<div v-if="mobileOpen" class="al-overlay" @click="mobileOpen = false"></div>
|
||||
</Transition>
|
||||
|
||||
<!-- Sidebar -->
|
||||
<aside class="al-sidebar">
|
||||
<div class="al-sidebar-inner">
|
||||
<!-- Brand -->
|
||||
<div class="al-brand">
|
||||
<div class="al-brand-icon">
|
||||
<i data-lucide="swords"></i>
|
||||
<div class="al-brand-icon-glow"></div>
|
||||
</div>
|
||||
<div class="al-brand-text">
|
||||
<span class="al-brand-name">Casino Admin</span>
|
||||
<span class="al-brand-sub">Control Panel</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Nav -->
|
||||
<nav class="al-nav">
|
||||
<template v-for="section in navSections" :key="section.label">
|
||||
<div class="al-nav-section">
|
||||
<div class="al-nav-label">{{ section.label }}</div>
|
||||
<Link
|
||||
v-for="item in section.items"
|
||||
:key="item.href"
|
||||
:href="item.href"
|
||||
class="al-nav-item"
|
||||
:class="{ active: isActive(item.segment) }"
|
||||
@click="mobileOpen = false"
|
||||
>
|
||||
<span class="al-nav-item-bg"></span>
|
||||
<i :data-lucide="item.icon" class="al-nav-icon"></i>
|
||||
<span class="al-nav-text">{{ item.label }}</span>
|
||||
<span v-if="isActive(item.segment)" class="al-active-pip"></span>
|
||||
</Link>
|
||||
</div>
|
||||
</template>
|
||||
</nav>
|
||||
|
||||
<!-- Footer -->
|
||||
<div class="al-foot">
|
||||
<div class="al-user">
|
||||
<div class="al-user-avatar">
|
||||
<img v-if="user?.avatar_url" :src="user.avatar_url" alt="">
|
||||
<span v-else>{{ (user?.username || 'A')[0].toUpperCase() }}</span>
|
||||
</div>
|
||||
<div class="al-user-info">
|
||||
<span class="al-user-name">{{ user?.username || 'Admin' }}</span>
|
||||
<span class="al-user-badge">Administrator</span>
|
||||
</div>
|
||||
<div class="al-user-status"></div>
|
||||
</div>
|
||||
<Link href="/" class="al-back-btn">
|
||||
<i data-lucide="arrow-left"></i>
|
||||
<span>Zurück zur Site</span>
|
||||
</Link>
|
||||
</div>
|
||||
</div>
|
||||
</aside>
|
||||
|
||||
<!-- Main -->
|
||||
<div class="al-main">
|
||||
<!-- Topbar -->
|
||||
<header class="al-topbar">
|
||||
<div class="al-topbar-left">
|
||||
<button class="al-menu-btn" @click="mobileOpen = !mobileOpen">
|
||||
<i data-lucide="menu"></i>
|
||||
</button>
|
||||
<div class="al-breadcrumb">
|
||||
<span class="al-breadcrumb-icon"><i data-lucide="layout-dashboard"></i></span>
|
||||
<span class="al-breadcrumb-sep">/</span>
|
||||
<h1 class="al-page-title">
|
||||
<slot name="title">Dashboard</slot>
|
||||
</h1>
|
||||
</div>
|
||||
</div>
|
||||
<div class="al-topbar-right">
|
||||
<slot name="actions" />
|
||||
<Link href="/" class="al-site-btn">
|
||||
<i data-lucide="external-link"></i>
|
||||
<span>Live Site</span>
|
||||
</Link>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<!-- Page content -->
|
||||
<Transition name="page">
|
||||
<div v-if="pageVisible" class="al-content">
|
||||
<slot />
|
||||
</div>
|
||||
</Transition>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<style scoped>
|
||||
/* ─── Root ─── */
|
||||
.al-root {
|
||||
display: grid;
|
||||
grid-template-columns: 260px 1fr;
|
||||
min-height: 100vh;
|
||||
background: #06060a;
|
||||
color: #e4e4e7;
|
||||
font-family: 'Inter', sans-serif;
|
||||
position: relative;
|
||||
overflow-x: hidden;
|
||||
}
|
||||
|
||||
/* ─── Animated Background ─── */
|
||||
.al-bg {
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
pointer-events: none;
|
||||
z-index: 0;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.al-bg-blob {
|
||||
position: absolute;
|
||||
border-radius: 50%;
|
||||
filter: blur(80px);
|
||||
opacity: 0.06;
|
||||
}
|
||||
.al-bg-blob-1 {
|
||||
width: 600px; height: 600px;
|
||||
background: radial-gradient(circle, #df006a, transparent);
|
||||
top: -200px; left: -100px;
|
||||
animation: blob-drift 18s ease-in-out infinite;
|
||||
}
|
||||
.al-bg-blob-2 {
|
||||
width: 500px; height: 500px;
|
||||
background: radial-gradient(circle, #7c3aed, transparent);
|
||||
bottom: -100px; right: -100px;
|
||||
animation: blob-drift 24s ease-in-out infinite reverse;
|
||||
}
|
||||
.al-bg-blob-3 {
|
||||
width: 400px; height: 400px;
|
||||
background: radial-gradient(circle, #0ea5e9, transparent);
|
||||
top: 50%; left: 50%;
|
||||
transform: translate(-50%, -50%);
|
||||
animation: blob-drift 30s ease-in-out infinite 6s;
|
||||
}
|
||||
@keyframes blob-drift {
|
||||
0%, 100% { transform: translate(0, 0) scale(1); }
|
||||
33% { transform: translate(60px, -40px) scale(1.1); }
|
||||
66% { transform: translate(-40px, 60px) scale(0.95); }
|
||||
}
|
||||
|
||||
.al-bg-grid {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
background-image:
|
||||
linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
|
||||
linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
|
||||
background-size: 40px 40px;
|
||||
}
|
||||
|
||||
/* ─── Progress Bar ─── */
|
||||
.al-progress-bar {
|
||||
position: fixed;
|
||||
top: 0; left: 0; right: 0;
|
||||
height: 2px;
|
||||
z-index: 9999;
|
||||
opacity: 0;
|
||||
transition: opacity 0.2s;
|
||||
background: transparent;
|
||||
}
|
||||
.al-progress-bar.visible { opacity: 1; }
|
||||
.al-progress-fill {
|
||||
height: 100%;
|
||||
background: linear-gradient(90deg, #df006a, #f472b6, #df006a);
|
||||
background-size: 200% 100%;
|
||||
animation: shimmer-progress 1.2s linear infinite;
|
||||
transition: width 0.15s ease;
|
||||
border-radius: 0 2px 2px 0;
|
||||
}
|
||||
@keyframes shimmer-progress {
|
||||
0% { background-position: 200% 0; }
|
||||
100% { background-position: -200% 0; }
|
||||
}
|
||||
.al-progress-glow {
|
||||
position: absolute;
|
||||
right: 0; top: -2px;
|
||||
width: 80px; height: 6px;
|
||||
background: rgba(223,0,106,0.6);
|
||||
filter: blur(6px);
|
||||
border-radius: 50%;
|
||||
}
|
||||
|
||||
/* ─── Loading Overlay ─── */
|
||||
.al-loading-overlay {
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
z-index: 500;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
pointer-events: none;
|
||||
}
|
||||
.al-spinner {
|
||||
position: relative;
|
||||
width: 44px; height: 44px;
|
||||
}
|
||||
.al-spinner-ring {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
border-radius: 50%;
|
||||
border: 2px solid transparent;
|
||||
border-top-color: #df006a;
|
||||
animation: spin 0.9s linear infinite;
|
||||
}
|
||||
.al-spinner-ring-2 {
|
||||
inset: 6px;
|
||||
border-top-color: #f472b6;
|
||||
animation-duration: 0.6s;
|
||||
animation-direction: reverse;
|
||||
}
|
||||
@keyframes spin { to { transform: rotate(360deg); } }
|
||||
|
||||
/* ─── Sidebar ─── */
|
||||
.al-sidebar {
|
||||
position: sticky;
|
||||
top: 0;
|
||||
height: 100vh;
|
||||
z-index: 200;
|
||||
background: rgba(12, 12, 18, 0.95);
|
||||
border-right: 1px solid rgba(255,255,255,0.06);
|
||||
backdrop-filter: blur(20px);
|
||||
-webkit-backdrop-filter: blur(20px);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
.al-sidebar::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: 0; right: 0;
|
||||
width: 1px; height: 100%;
|
||||
background: linear-gradient(180deg, transparent, rgba(223,0,106,0.3) 50%, transparent);
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.al-sidebar-inner {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
height: 100%;
|
||||
overflow-y: auto;
|
||||
scrollbar-width: none;
|
||||
}
|
||||
.al-sidebar-inner::-webkit-scrollbar { display: none; }
|
||||
|
||||
/* Brand */
|
||||
.al-brand {
|
||||
height: 68px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
padding: 0 20px;
|
||||
border-bottom: 1px solid rgba(255,255,255,0.05);
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.al-brand-icon {
|
||||
position: relative;
|
||||
width: 38px; height: 38px;
|
||||
background: linear-gradient(135deg, #df006a 0%, #7c0036 100%);
|
||||
border-radius: 12px;
|
||||
display: flex; align-items: center; justify-content: center;
|
||||
color: #fff;
|
||||
flex-shrink: 0;
|
||||
box-shadow: 0 4px 16px rgba(223,0,106,0.5);
|
||||
animation: icon-pulse 3s ease-in-out infinite;
|
||||
}
|
||||
@keyframes icon-pulse {
|
||||
0%, 100% { box-shadow: 0 4px 16px rgba(223,0,106,0.5); }
|
||||
50% { box-shadow: 0 4px 24px rgba(223,0,106,0.8), 0 0 40px rgba(223,0,106,0.2); }
|
||||
}
|
||||
.al-brand-icon i { width: 18px; height: 18px; position: relative; z-index: 1; }
|
||||
.al-brand-icon-glow {
|
||||
position: absolute;
|
||||
inset: -2px;
|
||||
border-radius: 14px;
|
||||
background: linear-gradient(135deg, rgba(223,0,106,0.4), transparent);
|
||||
filter: blur(4px);
|
||||
opacity: 0;
|
||||
transition: opacity 0.3s;
|
||||
}
|
||||
.al-brand:hover .al-brand-icon-glow { opacity: 1; }
|
||||
|
||||
.al-brand-text { display: flex; flex-direction: column; }
|
||||
.al-brand-name { font-weight: 800; font-size: 14px; color: #fff; letter-spacing: 0.3px; }
|
||||
.al-brand-sub {
|
||||
font-size: 9px; color: #df006a; font-weight: 700;
|
||||
text-transform: uppercase; letter-spacing: 1.5px;
|
||||
}
|
||||
|
||||
/* Navigation */
|
||||
.al-nav { padding: 12px; flex: 1; display: flex; flex-direction: column; gap: 2px; }
|
||||
.al-nav-section { margin-bottom: 8px; }
|
||||
.al-nav-label {
|
||||
font-size: 9px;
|
||||
font-weight: 800;
|
||||
color: #3f3f46;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 1.5px;
|
||||
padding: 8px 10px 4px;
|
||||
}
|
||||
|
||||
.al-nav-item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
padding: 10px 12px;
|
||||
border-radius: 10px;
|
||||
color: #52525b;
|
||||
text-decoration: none;
|
||||
font-weight: 600;
|
||||
font-size: 13px;
|
||||
transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
|
||||
position: relative;
|
||||
margin-bottom: 1px;
|
||||
overflow: hidden;
|
||||
}
|
||||
.al-nav-item-bg {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
border-radius: 10px;
|
||||
opacity: 0;
|
||||
background: rgba(255,255,255,0.04);
|
||||
transition: opacity 0.2s;
|
||||
}
|
||||
.al-nav-item:hover { color: #d4d4d8; transform: translateX(2px); }
|
||||
.al-nav-item:hover .al-nav-item-bg { opacity: 1; }
|
||||
.al-nav-item.active {
|
||||
color: #fff;
|
||||
background: linear-gradient(135deg, rgba(223,0,106,0.18) 0%, rgba(223,0,106,0.08) 100%);
|
||||
border: 1px solid rgba(223,0,106,0.25);
|
||||
box-shadow: 0 2px 12px rgba(223,0,106,0.15), inset 0 1px 0 rgba(255,255,255,0.05);
|
||||
}
|
||||
.al-nav-icon { width: 16px; height: 16px; flex-shrink: 0; transition: transform 0.2s; }
|
||||
.al-nav-item:hover .al-nav-icon { transform: scale(1.1); }
|
||||
.al-nav-item.active .al-nav-icon { color: #f472b6; filter: drop-shadow(0 0 4px rgba(244,114,182,0.6)); }
|
||||
.al-nav-text { flex: 1; }
|
||||
.al-active-pip {
|
||||
width: 6px; height: 6px;
|
||||
border-radius: 50%;
|
||||
background: #df006a;
|
||||
flex-shrink: 0;
|
||||
box-shadow: 0 0 8px rgba(223,0,106,0.9);
|
||||
animation: pip-pulse 2s ease-in-out infinite;
|
||||
}
|
||||
@keyframes pip-pulse {
|
||||
0%, 100% { transform: scale(1); opacity: 1; }
|
||||
50% { transform: scale(1.4); opacity: 0.7; }
|
||||
}
|
||||
|
||||
/* Footer */
|
||||
.al-foot {
|
||||
padding: 12px;
|
||||
border-top: 1px solid rgba(255,255,255,0.05);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 8px;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.al-user {
|
||||
display: flex; align-items: center; gap: 10px;
|
||||
padding: 10px 12px;
|
||||
background: rgba(255,255,255,0.03);
|
||||
border: 1px solid rgba(255,255,255,0.06);
|
||||
border-radius: 12px;
|
||||
transition: all 0.2s;
|
||||
}
|
||||
.al-user:hover { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.1); }
|
||||
.al-user-avatar {
|
||||
width: 34px; height: 34px; border-radius: 10px;
|
||||
background: linear-gradient(135deg, #df006a, #7c0036);
|
||||
overflow: hidden; display: flex; align-items: center; justify-content: center;
|
||||
font-weight: 800; font-size: 13px; color: #fff; flex-shrink: 0;
|
||||
box-shadow: 0 2px 8px rgba(223,0,106,0.4);
|
||||
}
|
||||
.al-user-avatar img { width: 100%; height: 100%; object-fit: cover; }
|
||||
.al-user-info { display: flex; flex-direction: column; flex: 1; min-width: 0; }
|
||||
.al-user-name { font-weight: 700; font-size: 12px; color: #e4e4e7; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
||||
.al-user-badge {
|
||||
display: inline-block; font-size: 9px; font-weight: 800;
|
||||
color: #df006a; letter-spacing: 0.5px; text-transform: uppercase;
|
||||
}
|
||||
.al-user-status {
|
||||
width: 8px; height: 8px; border-radius: 50%;
|
||||
background: #00c864; flex-shrink: 0;
|
||||
box-shadow: 0 0 6px rgba(0,200,100,0.7);
|
||||
animation: pip-pulse 3s ease-in-out infinite;
|
||||
}
|
||||
|
||||
.al-back-btn {
|
||||
display: flex; align-items: center; gap: 8px;
|
||||
color: #3f3f46; font-size: 12px; font-weight: 600; text-decoration: none;
|
||||
padding: 8px 12px; border-radius: 10px;
|
||||
border: 1px solid transparent;
|
||||
transition: all 0.2s;
|
||||
}
|
||||
.al-back-btn:hover { color: #a1a1aa; background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.06); }
|
||||
.al-back-btn i { width: 14px; height: 14px; transition: transform 0.2s; }
|
||||
.al-back-btn:hover i { transform: translateX(-2px); }
|
||||
|
||||
/* ─── Main ─── */
|
||||
.al-main {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
min-width: 0;
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
/* Topbar */
|
||||
.al-topbar {
|
||||
height: 64px;
|
||||
display: flex; align-items: center; justify-content: space-between;
|
||||
padding: 0 28px;
|
||||
border-bottom: 1px solid rgba(255,255,255,0.05);
|
||||
background: rgba(10, 10, 16, 0.8);
|
||||
backdrop-filter: blur(20px);
|
||||
-webkit-backdrop-filter: blur(20px);
|
||||
position: sticky; top: 0; z-index: 100;
|
||||
gap: 16px;
|
||||
}
|
||||
.al-topbar-left { display: flex; align-items: center; gap: 14px; min-width: 0; }
|
||||
.al-topbar-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
|
||||
|
||||
.al-menu-btn {
|
||||
display: none;
|
||||
width: 36px; height: 36px; border-radius: 10px;
|
||||
background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08);
|
||||
cursor: pointer; color: #a1a1aa;
|
||||
align-items: center; justify-content: center;
|
||||
transition: all 0.2s;
|
||||
}
|
||||
.al-menu-btn:hover { background: rgba(255,255,255,0.1); color: #fff; transform: scale(1.05); }
|
||||
.al-menu-btn i { width: 18px; height: 18px; }
|
||||
|
||||
.al-breadcrumb {
|
||||
display: flex; align-items: center; gap: 8px;
|
||||
}
|
||||
.al-breadcrumb-icon { display: flex; color: #3f3f46; }
|
||||
.al-breadcrumb-icon i { width: 14px; height: 14px; }
|
||||
.al-breadcrumb-sep { color: #27272a; font-size: 14px; }
|
||||
.al-page-title {
|
||||
font-weight: 700; font-size: 16px; color: #e4e4e7;
|
||||
white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.al-site-btn {
|
||||
display: flex; align-items: center; gap: 6px;
|
||||
background: rgba(255,255,255,0.04);
|
||||
border: 1px solid rgba(255,255,255,0.08);
|
||||
color: #71717a; padding: 7px 14px;
|
||||
border-radius: 10px; font-size: 12px; font-weight: 600;
|
||||
text-decoration: none;
|
||||
transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
|
||||
}
|
||||
.al-site-btn:hover {
|
||||
background: rgba(255,255,255,0.08);
|
||||
border-color: rgba(255,255,255,0.15);
|
||||
color: #fff;
|
||||
transform: translateY(-1px);
|
||||
box-shadow: 0 4px 12px rgba(0,0,0,0.3);
|
||||
}
|
||||
.al-site-btn i { width: 13px; height: 13px; }
|
||||
|
||||
/* ─── Content ─── */
|
||||
.al-content { padding: 28px; flex: 1; }
|
||||
|
||||
/* ─── Overlay ─── */
|
||||
.al-overlay {
|
||||
position: fixed; inset: 0;
|
||||
background: rgba(0,0,0,0.8);
|
||||
backdrop-filter: blur(6px);
|
||||
z-index: 150;
|
||||
}
|
||||
|
||||
/* ─── Transitions ─── */
|
||||
.fade-enter-active, .fade-leave-active { transition: opacity 0.2s ease; }
|
||||
.fade-enter-from, .fade-leave-to { opacity: 0; }
|
||||
|
||||
.page-enter-active {
|
||||
transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
|
||||
}
|
||||
.page-leave-active {
|
||||
transition: all 0.15s ease;
|
||||
}
|
||||
.page-enter-from {
|
||||
opacity: 0;
|
||||
transform: translateY(12px);
|
||||
}
|
||||
.page-leave-to {
|
||||
opacity: 0;
|
||||
transform: translateY(-8px);
|
||||
}
|
||||
|
||||
/* ─── Global Admin Styles (passed via :deep) ─── */
|
||||
:deep(.admin-card) {
|
||||
background: rgba(15, 15, 20, 0.8);
|
||||
border: 1px solid rgba(255,255,255,0.06);
|
||||
border-radius: 16px;
|
||||
overflow: hidden;
|
||||
backdrop-filter: blur(10px);
|
||||
transition: border-color 0.2s, box-shadow 0.2s;
|
||||
}
|
||||
:deep(.admin-card:hover) {
|
||||
border-color: rgba(255,255,255,0.1);
|
||||
box-shadow: 0 8px 32px rgba(0,0,0,0.4);
|
||||
}
|
||||
|
||||
:deep(.btn-primary) {
|
||||
position: relative;
|
||||
display: inline-flex; align-items: center; gap: 8px;
|
||||
background: linear-gradient(135deg, #df006a 0%, #b8005a 100%);
|
||||
border: none; color: #fff;
|
||||
padding: 10px 20px; border-radius: 10px;
|
||||
font-weight: 700; font-size: 13px;
|
||||
cursor: pointer;
|
||||
transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
|
||||
box-shadow: 0 4px 14px rgba(223,0,106,0.35);
|
||||
overflow: hidden;
|
||||
}
|
||||
:deep(.btn-primary::before) {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: 0; left: -100%;
|
||||
width: 100%; height: 100%;
|
||||
background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
|
||||
transition: left 0.4s ease;
|
||||
}
|
||||
:deep(.btn-primary:hover) {
|
||||
transform: translateY(-2px);
|
||||
box-shadow: 0 6px 20px rgba(223,0,106,0.5);
|
||||
}
|
||||
:deep(.btn-primary:hover::before) { left: 100%; }
|
||||
:deep(.btn-primary:active) { transform: translateY(0); }
|
||||
:deep(.btn-primary:disabled) { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }
|
||||
:deep(.btn-primary i) { width: 15px; height: 15px; }
|
||||
|
||||
:deep(.card) {
|
||||
background: rgba(12, 12, 18, 0.9);
|
||||
border: 1px solid rgba(255,255,255,0.06);
|
||||
border-radius: 16px;
|
||||
overflow: hidden;
|
||||
transition: all 0.2s;
|
||||
}
|
||||
:deep(.card-head) {
|
||||
padding: 20px 24px;
|
||||
border-bottom: 1px solid rgba(255,255,255,0.05);
|
||||
background: linear-gradient(180deg, rgba(255,255,255,0.02) 0%, transparent 100%);
|
||||
}
|
||||
:deep(.card-head h2) { font-size: 16px; font-weight: 700; color: #fff; margin: 0 0 2px; }
|
||||
:deep(.card-subtitle) { color: #52525b; font-size: 12px; margin: 0; }
|
||||
:deep(.card-body) { padding: 20px 24px; }
|
||||
|
||||
:deep(.field-input) {
|
||||
background: rgba(255,255,255,0.04) !important;
|
||||
border: 1px solid rgba(255,255,255,0.08) !important;
|
||||
border-radius: 10px !important;
|
||||
color: #e4e4e7 !important;
|
||||
transition: border-color 0.2s, box-shadow 0.2s !important;
|
||||
}
|
||||
:deep(.field-input:focus) {
|
||||
outline: none !important;
|
||||
border-color: rgba(223,0,106,0.5) !important;
|
||||
box-shadow: 0 0 0 3px rgba(223,0,106,0.1) !important;
|
||||
}
|
||||
|
||||
:deep(.toggle-btn) {
|
||||
transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
|
||||
}
|
||||
:deep(.toggle-btn.active) {
|
||||
box-shadow: 0 0 12px rgba(223,0,106,0.4) !important;
|
||||
}
|
||||
:deep(.toggle-knob) {
|
||||
transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
|
||||
box-shadow: 0 2px 6px rgba(0,0,0,0.4) !important;
|
||||
}
|
||||
|
||||
:deep(.alert-success) {
|
||||
background: rgba(0, 200, 100, 0.08) !important;
|
||||
border: 1px solid rgba(0, 200, 100, 0.2) !important;
|
||||
border-radius: 12px !important;
|
||||
animation: slide-in 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
|
||||
}
|
||||
@keyframes slide-in {
|
||||
from { opacity: 0; transform: translateY(-8px); }
|
||||
to { opacity: 1; transform: translateY(0); }
|
||||
}
|
||||
|
||||
/* ─── Mobile ─── */
|
||||
@media (max-width: 1024px) {
|
||||
.al-root { grid-template-columns: 1fr; }
|
||||
.al-sidebar {
|
||||
position: fixed; left: -280px; top: 0; width: 260px; height: 100vh;
|
||||
z-index: 300; transition: left 0.35s cubic-bezier(0.16, 1, 0.3, 1);
|
||||
}
|
||||
.al-root.mobile-open .al-sidebar { left: 0; }
|
||||
.al-menu-btn { display: flex !important; }
|
||||
.al-content { padding: 16px; }
|
||||
.al-topbar { padding: 0 16px; }
|
||||
}
|
||||
|
||||
@media (max-width: 480px) {
|
||||
.al-site-btn span { display: none; }
|
||||
.al-breadcrumb-icon { display: none; }
|
||||
.al-breadcrumb-sep { display: none; }
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user