mirror of
https://github.com/R0m1k3/Menu.git
synced 2026-10-20 21:48:17 +02:00
feat: implement admin dashboard with authentication, menu management, and responsive UI components
This commit is contained in:
1 parent
1de5448e55
commit
5ff4784596
11 files changed
+668
-254
No files matched your search
+134
-66
@@ -1,105 +1,173 @@
|
||||
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
|
||||
|
||||
:root {
|
||||
/* Common */
|
||||
--font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
||||
--transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
||||
|
||||
/* Light Theme */
|
||||
--background: #f5f5f7;
|
||||
--foreground: #1d1d1f;
|
||||
--glass-bg: rgba(255, 255, 255, 0.7);
|
||||
--glass-border: rgba(255, 255, 255, 0.3);
|
||||
--card-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
|
||||
--accent: #0071e3;
|
||||
--error: #ff3b30;
|
||||
--bg-gradient: radial-gradient(circle at 0% 0%, #fff 0%, #f5f5f7 100%);
|
||||
--font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
|
||||
--ease: cubic-bezier(0.4, 0, 0.2, 1);
|
||||
--duration: 280ms;
|
||||
|
||||
/* Light */
|
||||
--bg-base: #f2f2f7;
|
||||
--fg: #1c1c1e;
|
||||
--fg-secondary: #6c6c70;
|
||||
--glass-bg: rgba(255, 255, 255, 0.62);
|
||||
--glass-border: rgba(255, 255, 255, 0.8);
|
||||
--glass-shadow: 0 8px 40px rgba(0, 0, 0, 0.08), 0 1px 0 rgba(255,255,255,0.9) inset;
|
||||
--glass-hover-shadow: 0 20px 60px rgba(0, 0, 0, 0.12), 0 1px 0 rgba(255,255,255,0.9) inset;
|
||||
--accent: #007AFF;
|
||||
--accent-glow: rgba(0, 122, 255, 0.25);
|
||||
--error: #FF3B30;
|
||||
--success: #34C759;
|
||||
|
||||
--orb-1: radial-gradient(ellipse at 20% 20%, rgba(0, 122, 255, 0.15) 0%, transparent 60%);
|
||||
--orb-2: radial-gradient(ellipse at 80% 80%, rgba(88, 86, 214, 0.12) 0%, transparent 60%);
|
||||
--orb-3: radial-gradient(ellipse at 60% 10%, rgba(52, 199, 89, 0.08) 0%, transparent 50%);
|
||||
}
|
||||
|
||||
[data-theme='dark'] {
|
||||
/* Dark Theme */
|
||||
--background: #000000;
|
||||
--foreground: #f5f5f7;
|
||||
--glass-bg: rgba(28, 28, 30, 0.7);
|
||||
--glass-border: rgba(255, 255, 255, 0.1);
|
||||
--card-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
|
||||
--accent: #0a84ff;
|
||||
--error: #ff453a;
|
||||
--bg-gradient: radial-gradient(circle at 100% 100%, #1c1c1e 0%, #000 100%);
|
||||
--bg-base: #000000;
|
||||
--fg: #f5f5f7;
|
||||
--fg-secondary: #8e8e93;
|
||||
--glass-bg: rgba(28, 28, 30, 0.72);
|
||||
--glass-border: rgba(255, 255, 255, 0.08);
|
||||
--glass-shadow: 0 8px 40px rgba(0, 0, 0, 0.4), 0 1px 0 rgba(255,255,255,0.05) inset;
|
||||
--glass-hover-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(0, 122, 255, 0.3);
|
||||
--accent: #0A84FF;
|
||||
--accent-glow: rgba(10, 132, 255, 0.35);
|
||||
--error: #FF453A;
|
||||
--success: #30D158;
|
||||
|
||||
--orb-1: radial-gradient(ellipse at 20% 20%, rgba(10, 132, 255, 0.18) 0%, transparent 60%);
|
||||
--orb-2: radial-gradient(ellipse at 80% 80%, rgba(94, 92, 230, 0.18) 0%, transparent 60%);
|
||||
--orb-3: radial-gradient(ellipse at 60% 10%, rgba(48, 209, 88, 0.08) 0%, transparent 50%);
|
||||
}
|
||||
|
||||
* {
|
||||
*, *::before, *::after {
|
||||
box-sizing: border-box;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
html {
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
body {
|
||||
background: var(--bg-gradient);
|
||||
background-attachment: fixed;
|
||||
color: var(--foreground);
|
||||
font-family: var(--font-family);
|
||||
min-height: 100vh;
|
||||
transition: var(--transition-smooth);
|
||||
background-color: var(--bg-base);
|
||||
color: var(--fg);
|
||||
font-family: var(--font);
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
overflow-x: hidden;
|
||||
transition: background-color var(--duration) var(--ease), color var(--duration) var(--ease);
|
||||
}
|
||||
|
||||
/* Custom Scrollbar */
|
||||
::-webkit-scrollbar {
|
||||
width: 10px;
|
||||
/* Ambient background orbs */
|
||||
body::before {
|
||||
content: '';
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
background: var(--orb-1), var(--orb-2), var(--orb-3);
|
||||
pointer-events: none;
|
||||
z-index: 0;
|
||||
}
|
||||
::-webkit-scrollbar-track {
|
||||
background: transparent;
|
||||
|
||||
#__next, main {
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
/* Scrollbar */
|
||||
::-webkit-scrollbar { width: 8px; }
|
||||
::-webkit-scrollbar-track { background: transparent; }
|
||||
::-webkit-scrollbar-thumb {
|
||||
background: rgba(125, 125, 125, 0.3);
|
||||
background: rgba(128, 128, 128, 0.25);
|
||||
border-radius: 10px;
|
||||
border: 3px solid transparent;
|
||||
border: 2px solid transparent;
|
||||
background-clip: padding-box;
|
||||
}
|
||||
::-webkit-scrollbar-thumb:hover {
|
||||
background: rgba(125, 125, 125, 0.5);
|
||||
}
|
||||
::-webkit-scrollbar-thumb:hover { background: rgba(128, 128, 128, 0.4); background-clip: padding-box; }
|
||||
|
||||
/* Glass utility */
|
||||
.glass {
|
||||
background: var(--glass-bg);
|
||||
backdrop-filter: blur(20px);
|
||||
-webkit-backdrop-filter: blur(20px);
|
||||
backdrop-filter: blur(24px) saturate(1.8);
|
||||
-webkit-backdrop-filter: blur(24px) saturate(1.8);
|
||||
border: 1px solid var(--glass-border);
|
||||
box-shadow: var(--card-shadow);
|
||||
box-shadow: var(--glass-shadow);
|
||||
border-radius: 20px;
|
||||
}
|
||||
|
||||
.container {
|
||||
max-width: 1200px;
|
||||
/* Page layout */
|
||||
.page-container {
|
||||
max-width: 1400px;
|
||||
margin: 0 auto;
|
||||
padding: 2rem;
|
||||
min-height: 100vh;
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: 2.5rem;
|
||||
font-weight: 700;
|
||||
letter-spacing: -0.022em;
|
||||
margin-bottom: 2rem;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
button, .button {
|
||||
cursor: pointer;
|
||||
border: none;
|
||||
outline: none;
|
||||
font-family: inherit;
|
||||
transition: var(--transition-smooth);
|
||||
}
|
||||
|
||||
input {
|
||||
/* Forms */
|
||||
input[type="text"],
|
||||
input[type="password"],
|
||||
input[type="url"],
|
||||
input[type="email"] {
|
||||
width: 100%;
|
||||
padding: 0.85rem 1rem;
|
||||
background: var(--glass-bg);
|
||||
border: 1px solid var(--glass-border);
|
||||
border-radius: 12px;
|
||||
padding: 0.8rem 1rem;
|
||||
color: var(--foreground);
|
||||
font-family: inherit;
|
||||
width: 100%;
|
||||
color: var(--fg);
|
||||
font-family: var(--font);
|
||||
font-size: 0.95rem;
|
||||
transition: all var(--duration) var(--ease);
|
||||
backdrop-filter: blur(12px);
|
||||
outline: none;
|
||||
}
|
||||
|
||||
input:focus {
|
||||
outline: 2px solid var(--accent);
|
||||
border-color: var(--accent);
|
||||
box-shadow: 0 0 0 3px var(--accent-glow);
|
||||
}
|
||||
|
||||
input::placeholder {
|
||||
color: var(--fg-secondary);
|
||||
}
|
||||
|
||||
button {
|
||||
cursor: pointer;
|
||||
border: none;
|
||||
outline: none;
|
||||
font-family: var(--font);
|
||||
transition: all var(--duration) var(--ease);
|
||||
}
|
||||
|
||||
a {
|
||||
text-decoration: none;
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
/* Btn primary */
|
||||
.btn-primary {
|
||||
background: var(--accent);
|
||||
color: white;
|
||||
padding: 0.85rem 1.5rem;
|
||||
border-radius: 12px;
|
||||
font-size: 0.95rem;
|
||||
font-weight: 600;
|
||||
letter-spacing: -0.01em;
|
||||
}
|
||||
|
||||
.btn-primary:hover {
|
||||
filter: brightness(1.1);
|
||||
transform: translateY(-1px);
|
||||
box-shadow: 0 8px 20px var(--accent-glow);
|
||||
}
|
||||
|
||||
.btn-primary:active {
|
||||
transform: translateY(0);
|
||||
}
|
||||
|
||||
.btn-primary:disabled {
|
||||
opacity: 0.6;
|
||||
pointer-events: none;
|
||||
}
|
||||
Reference in new issue
Block a user