2026-01-27 16:21:58 +00:00
|
|
|
---
|
|
|
|
|
interface Props {
|
2026-01-28 23:47:14 +00:00
|
|
|
title: string;
|
2026-01-27 16:21:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
import { DEFAULT_THEME, themes as themeRegistry } from '../lib/themes';
|
|
|
|
|
import { API_BASE as apiBase } from '../lib/api';
|
|
|
|
|
import VotingIcons from '../components/icons/VotingIcons.astro';
|
|
|
|
|
|
2026-01-29 10:38:43 +00:00
|
|
|
function isEnabled(v: string | undefined): boolean {
|
|
|
|
|
if (!v) return false;
|
|
|
|
|
const n = v.trim().toLowerCase();
|
|
|
|
|
return n === '1' || n === 'true' || n === 'yes' || n === 'on';
|
|
|
|
|
}
|
|
|
|
|
|
2026-01-27 16:21:58 +00:00
|
|
|
const { title } = Astro.props;
|
|
|
|
|
|
2026-01-29 10:38:43 +00:00
|
|
|
const publicDemoSite = isEnabled((globalThis as any).process?.env?.PUBLIC_DEMO_SITE);
|
|
|
|
|
|
2026-01-27 16:21:58 +00:00
|
|
|
const themes = Object.fromEntries(
|
|
|
|
|
Object.entries(themeRegistry).map(([id, t]) => [id, { isDark: t.isDark, colors: t.colors }]),
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
const defaultTheme = DEFAULT_THEME;
|
|
|
|
|
---
|
|
|
|
|
|
|
|
|
|
<!doctype html>
|
|
|
|
|
<html lang="en" data-theme="neutral" data-theme-mode="dark">
|
|
|
|
|
<head>
|
|
|
|
|
<meta charset="UTF-8" />
|
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
|
|
|
<meta name="description" content="Likwid - modular governance and decision-making for organizations" />
|
|
|
|
|
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
|
|
|
|
|
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
|
|
|
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
|
|
|
|
|
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap" rel="stylesheet" />
|
|
|
|
|
<title>{title} | Likwid</title>
|
|
|
|
|
<script is:inline define:vars={{ themes, defaultTheme }}>
|
|
|
|
|
(function() {
|
|
|
|
|
const saved = localStorage.getItem('likwid-theme') || defaultTheme;
|
|
|
|
|
const theme = themes[saved] || themes[defaultTheme];
|
|
|
|
|
const root = document.documentElement;
|
|
|
|
|
const c = theme.colors;
|
|
|
|
|
root.style.setProperty('--color-bg', c.bg);
|
|
|
|
|
root.style.setProperty('--color-bg-alt', c.bgAlt);
|
|
|
|
|
root.style.setProperty('--color-surface', c.surface);
|
|
|
|
|
root.style.setProperty('--color-surface-hover', c.surfaceHover);
|
|
|
|
|
root.style.setProperty('--color-border', c.border);
|
|
|
|
|
root.style.setProperty('--color-border-hover', c.borderHover);
|
|
|
|
|
root.style.setProperty('--color-text', c.text);
|
|
|
|
|
root.style.setProperty('--color-text-muted', c.textMuted);
|
|
|
|
|
root.style.setProperty('--color-text-inverse', c.textInverse);
|
|
|
|
|
root.style.setProperty('--color-primary', c.primary);
|
|
|
|
|
root.style.setProperty('--color-primary-hover', c.primaryHover);
|
|
|
|
|
root.style.setProperty('--color-primary-muted', c.primaryMuted);
|
|
|
|
|
root.style.setProperty('--color-secondary', c.secondary);
|
|
|
|
|
root.style.setProperty('--color-secondary-hover', c.secondaryHover);
|
|
|
|
|
root.style.setProperty('--color-info', c.info);
|
|
|
|
|
root.style.setProperty('--color-info-hover', c.infoHover);
|
|
|
|
|
root.style.setProperty('--color-info-muted', c.infoMuted);
|
|
|
|
|
root.style.setProperty('--color-neutral', c.neutral);
|
|
|
|
|
root.style.setProperty('--color-neutral-hover', c.neutralHover);
|
|
|
|
|
root.style.setProperty('--color-neutral-muted', c.neutralMuted);
|
|
|
|
|
root.style.setProperty('--color-success', c.success);
|
|
|
|
|
root.style.setProperty('--color-success-muted', c.successMuted);
|
|
|
|
|
root.style.setProperty('--color-success-hover', c.successHover);
|
|
|
|
|
root.style.setProperty('--color-warning', c.warning);
|
|
|
|
|
root.style.setProperty('--color-warning-muted', c.warningMuted);
|
|
|
|
|
root.style.setProperty('--color-error', c.error);
|
|
|
|
|
root.style.setProperty('--color-error-muted', c.errorMuted);
|
|
|
|
|
root.style.setProperty('--color-error-hover', c.errorHover);
|
|
|
|
|
root.style.setProperty('--color-link', c.link);
|
|
|
|
|
root.style.setProperty('--color-link-visited', c.linkVisited);
|
|
|
|
|
root.style.setProperty('--color-overlay', c.overlay);
|
|
|
|
|
root.style.setProperty('--color-field-bg', c.fieldBg);
|
|
|
|
|
root.style.setProperty('--color-on-primary', c.onPrimary);
|
|
|
|
|
root.setAttribute('data-theme', saved);
|
|
|
|
|
root.setAttribute('data-theme-mode', theme.isDark ? 'dark' : 'light');
|
|
|
|
|
})();
|
|
|
|
|
</script>
|
|
|
|
|
</head>
|
|
|
|
|
<body>
|
|
|
|
|
<VotingIcons />
|
|
|
|
|
<div class="app">
|
|
|
|
|
<header class="header">
|
|
|
|
|
<nav class="nav">
|
|
|
|
|
<a href="/" class="logo">Likwid</a>
|
|
|
|
|
<div class="nav-links">
|
|
|
|
|
<a href="/communities">Organizations</a>
|
|
|
|
|
<a href="/proposals">Proposals</a>
|
|
|
|
|
<a href="/about">About</a>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="nav-auth" id="nav-auth">
|
|
|
|
|
<a href="/login">Login</a>
|
2026-01-29 10:38:43 +00:00
|
|
|
{!publicDemoSite ? <a href="/register" class="btn-register">Register</a> : null}
|
2026-01-27 16:21:58 +00:00
|
|
|
</div>
|
|
|
|
|
</nav>
|
|
|
|
|
</header>
|
|
|
|
|
<main class="main">
|
|
|
|
|
<slot />
|
|
|
|
|
</main>
|
|
|
|
|
<footer class="footer">
|
|
|
|
|
<p>© 2026 Likwid - Modular governance platform</p>
|
|
|
|
|
</footer>
|
|
|
|
|
</div>
|
|
|
|
|
<script define:vars={{ apiBase }}>
|
|
|
|
|
|
|
|
|
|
// Dynamic auth state in navigation
|
|
|
|
|
const token = localStorage.getItem('token');
|
|
|
|
|
const user = localStorage.getItem('user');
|
|
|
|
|
const navAuth = document.getElementById('nav-auth');
|
|
|
|
|
|
|
|
|
|
if (token && user && navAuth) {
|
|
|
|
|
const userData = JSON.parse(user);
|
|
|
|
|
navAuth.innerHTML = `
|
|
|
|
|
<a href="/dashboard">Dashboard</a>
|
|
|
|
|
<a href="/notifications" class="nav-notifications" id="nav-notifications">
|
|
|
|
|
<span class="notif-icon">🔔</span>
|
|
|
|
|
<span class="notif-badge" id="notif-badge" style="display:none;">0</span>
|
|
|
|
|
</a>
|
|
|
|
|
<a href="/settings">Settings</a>
|
|
|
|
|
<a href="/admin/settings" id="admin-link" style="display:none;">Admin</a>
|
|
|
|
|
<span class="user-name">${userData.display_name || userData.username}</span>
|
|
|
|
|
`;
|
|
|
|
|
loadNotificationCount();
|
|
|
|
|
checkAdminStatus();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
async function checkAdminStatus() {
|
|
|
|
|
try {
|
|
|
|
|
const res = await fetch(`${apiBase}/api/settings/instance`, {
|
|
|
|
|
headers: { 'Authorization': `Bearer ${token}` }
|
|
|
|
|
});
|
|
|
|
|
if (res.ok) {
|
|
|
|
|
const adminLink = document.getElementById('admin-link');
|
|
|
|
|
if (adminLink) adminLink.style.display = 'inline';
|
|
|
|
|
}
|
|
|
|
|
} catch (e) {}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
setActiveNav();
|
|
|
|
|
|
|
|
|
|
async function loadNotificationCount() {
|
|
|
|
|
try {
|
|
|
|
|
const res = await fetch(`${apiBase}/api/notifications/unread-count`, {
|
|
|
|
|
headers: { 'Authorization': `Bearer ${token}` },
|
|
|
|
|
});
|
|
|
|
|
if (res.ok) {
|
|
|
|
|
const data = await res.json();
|
|
|
|
|
const badge = document.getElementById('notif-badge');
|
|
|
|
|
if (badge && data.count > 0) {
|
|
|
|
|
badge.textContent = data.count > 9 ? '9+' : data.count;
|
|
|
|
|
badge.style.display = 'inline-block';
|
|
|
|
|
badge.classList.add('is-visible');
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
} catch (e) {}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function setActiveNav() {
|
|
|
|
|
var links = document.querySelectorAll('.nav-links a, #nav-auth a');
|
|
|
|
|
var path = window.location.pathname.replace(/\/$/, '') || '/';
|
|
|
|
|
|
|
|
|
|
for (var i = 0; i < links.length; i++) {
|
|
|
|
|
var a = links[i];
|
|
|
|
|
var hrefPath = a.pathname.replace(/\/$/, '') || '/';
|
|
|
|
|
|
|
|
|
|
if (hrefPath === '/' || hrefPath === '') {
|
|
|
|
|
continue;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var isActive = path === hrefPath || path.indexOf(hrefPath + '/') === 0;
|
|
|
|
|
if (isActive) {
|
|
|
|
|
a.setAttribute('aria-current', 'page');
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
</body>
|
|
|
|
|
</html>
|
|
|
|
|
|
|
|
|
|
<style is:global>
|
|
|
|
|
:root {
|
|
|
|
|
--color-bg: #09090b;
|
|
|
|
|
--color-bg-alt: #0f0f12;
|
|
|
|
|
--color-surface: #18181b;
|
|
|
|
|
--color-surface-hover: #27272a;
|
|
|
|
|
--color-border: #27272a;
|
|
|
|
|
--color-border-hover: #3f3f46;
|
|
|
|
|
--color-text: #fafafa;
|
|
|
|
|
--color-text-muted: #a1a1aa;
|
|
|
|
|
--color-text-inverse: #0f0f0f;
|
|
|
|
|
--color-primary: #818cf8;
|
|
|
|
|
--color-primary-hover: #6366f1;
|
|
|
|
|
--color-primary-muted: rgba(129, 140, 248, 0.12);
|
|
|
|
|
--color-secondary: #8b5cf6;
|
|
|
|
|
--color-secondary-hover: #7c3aed;
|
|
|
|
|
--color-info: #3b82f6;
|
|
|
|
|
--color-info-hover: #2563eb;
|
|
|
|
|
--color-info-muted: rgba(59, 130, 246, 0.15);
|
|
|
|
|
--color-neutral: #6b7280;
|
|
|
|
|
--color-neutral-hover: #4b5563;
|
|
|
|
|
--color-neutral-muted: rgba(107, 114, 128, 0.18);
|
|
|
|
|
--color-success: #22c55e;
|
|
|
|
|
--color-success-muted: rgba(34, 197, 94, 0.15);
|
|
|
|
|
--color-success-hover: #16a34a;
|
|
|
|
|
--color-warning: #f59e0b;
|
|
|
|
|
--color-warning-muted: rgba(245, 158, 11, 0.15);
|
|
|
|
|
--color-error: #ef4444;
|
|
|
|
|
--color-error-muted: rgba(239, 68, 68, 0.15);
|
|
|
|
|
--color-error-hover: #dc2626;
|
|
|
|
|
--color-link: #6366f1;
|
|
|
|
|
--color-link-visited: #8b5cf6;
|
|
|
|
|
--color-overlay: rgba(0, 0, 0, 0.8);
|
|
|
|
|
--color-field-bg: rgba(0, 0, 0, 0.25);
|
|
|
|
|
--color-on-primary: #ffffff;
|
|
|
|
|
|
2026-01-28 23:47:14 +00:00
|
|
|
--color-primary-bg: var(--color-primary-muted);
|
|
|
|
|
|
|
|
|
|
--bg-primary: var(--color-bg);
|
|
|
|
|
--bg-secondary: var(--color-surface);
|
|
|
|
|
--bg-hover: var(--color-surface-hover);
|
|
|
|
|
--border-color: var(--color-border);
|
|
|
|
|
--text-primary: var(--color-text);
|
|
|
|
|
--text-secondary: var(--color-text-muted);
|
|
|
|
|
--accent-color: var(--color-primary);
|
|
|
|
|
|
2026-01-27 16:21:58 +00:00
|
|
|
--radius-sm: 8px;
|
|
|
|
|
--radius-md: 12px;
|
|
|
|
|
--radius-lg: 16px;
|
|
|
|
|
--radius-xl: 24px;
|
|
|
|
|
--shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.08);
|
|
|
|
|
--shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1), 0 10px 20px rgba(0, 0, 0, 0.15);
|
|
|
|
|
--shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.2), 0 20px 48px rgba(0, 0, 0, 0.15);
|
|
|
|
|
--motion-fast: 120ms;
|
|
|
|
|
--motion-normal: 180ms;
|
|
|
|
|
--easing-standard: cubic-bezier(0.2, 0, 0, 1);
|
|
|
|
|
--focus-ring: 0 0 0 3px var(--color-primary-muted);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
* {
|
|
|
|
|
margin: 0;
|
|
|
|
|
padding: 0;
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
html {
|
|
|
|
|
font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
|
|
|
|
background: var(--color-bg);
|
|
|
|
|
color: var(--color-text);
|
|
|
|
|
line-height: 1.6;
|
|
|
|
|
font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
|
|
|
|
|
text-rendering: optimizeLegibility;
|
|
|
|
|
-webkit-font-smoothing: antialiased;
|
|
|
|
|
-moz-osx-font-smoothing: grayscale;
|
|
|
|
|
transition: background-color var(--motion-normal) var(--easing-standard), color var(--motion-normal) var(--easing-standard);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@media (prefers-reduced-motion: reduce) {
|
|
|
|
|
html {
|
|
|
|
|
transition: none;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
*, *::before, *::after {
|
|
|
|
|
scroll-behavior: auto !important;
|
|
|
|
|
transition-duration: 0ms !important;
|
|
|
|
|
animation-duration: 0ms !important;
|
|
|
|
|
animation-iteration-count: 1 !important;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
body {
|
|
|
|
|
min-height: 100vh;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
::selection {
|
|
|
|
|
background: var(--color-primary-muted);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
a {
|
|
|
|
|
color: var(--color-primary);
|
|
|
|
|
text-decoration: none;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
a:hover {
|
|
|
|
|
color: var(--color-primary-hover);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
a:visited {
|
|
|
|
|
color: var(--color-link-visited);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
:where(a, button, input, textarea, select):focus {
|
|
|
|
|
outline: none;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
:where(a, button, input, textarea, select):focus-visible {
|
|
|
|
|
box-shadow: var(--focus-ring);
|
|
|
|
|
border-radius: var(--radius-sm);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
:where(button, input, textarea, select) {
|
|
|
|
|
font: inherit;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
:where(input, textarea, select) {
|
|
|
|
|
background: var(--color-field-bg);
|
|
|
|
|
color: var(--color-text);
|
|
|
|
|
border: 1px solid var(--color-border);
|
|
|
|
|
border-radius: var(--radius-sm);
|
|
|
|
|
padding: 0.75rem 0.875rem;
|
|
|
|
|
transition: border-color var(--motion-fast) var(--easing-standard), background-color var(--motion-fast) var(--easing-standard);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
:where(input, textarea, select):hover {
|
|
|
|
|
border-color: var(--color-border-hover);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
:where(input, textarea, select):focus-visible {
|
|
|
|
|
border-color: var(--color-primary);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
:where(button) {
|
|
|
|
|
border: 1px solid transparent;
|
|
|
|
|
border-radius: var(--radius-sm);
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
transition: transform var(--motion-fast) var(--easing-standard), background-color var(--motion-fast) var(--easing-standard), border-color var(--motion-fast) var(--easing-standard), box-shadow var(--motion-fast) var(--easing-standard);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
:where(button):active {
|
|
|
|
|
transform: translateY(1px);
|
|
|
|
|
}
|
2026-01-29 11:11:17 +00:00
|
|
|
|
|
|
|
|
:root {
|
|
|
|
|
--ui-container-max: 1200px;
|
|
|
|
|
--ui-page-pad-y: 2rem;
|
|
|
|
|
--ui-glass-bg: rgba(24, 24, 27, 0.65);
|
|
|
|
|
--ui-glass-border: rgba(255, 255, 255, 0.08);
|
|
|
|
|
--ui-soft-highlight: rgba(129, 140, 248, 0.16);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.ui-container {
|
|
|
|
|
max-width: var(--ui-container-max);
|
|
|
|
|
margin: 0 auto;
|
|
|
|
|
padding: 0 2rem;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.ui-page {
|
|
|
|
|
padding: var(--ui-page-pad-y) 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.ui-page-header {
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: flex-start;
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
gap: 1rem;
|
|
|
|
|
margin-bottom: 1.5rem;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.ui-page-title h1 {
|
|
|
|
|
font-size: 2rem;
|
|
|
|
|
font-weight: 700;
|
|
|
|
|
letter-spacing: -0.02em;
|
|
|
|
|
margin: 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.ui-subtitle {
|
|
|
|
|
color: var(--color-text-muted);
|
|
|
|
|
font-size: 0.9375rem;
|
|
|
|
|
margin-top: 0.25rem;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.ui-actions {
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: flex-end;
|
|
|
|
|
gap: 0.75rem;
|
|
|
|
|
flex-wrap: wrap;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.ui-card {
|
|
|
|
|
background: var(--color-surface);
|
|
|
|
|
border: 1px solid var(--color-border);
|
|
|
|
|
border-radius: var(--radius-lg);
|
|
|
|
|
box-shadow: var(--shadow-sm);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.ui-card-glass {
|
|
|
|
|
background: var(--ui-glass-bg);
|
|
|
|
|
border-color: var(--ui-glass-border);
|
|
|
|
|
backdrop-filter: blur(12px);
|
|
|
|
|
-webkit-backdrop-filter: blur(12px);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.ui-btn {
|
|
|
|
|
display: inline-flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
gap: 0.5rem;
|
|
|
|
|
padding: 0.625rem 1rem;
|
|
|
|
|
border-radius: var(--radius-sm);
|
|
|
|
|
font-weight: 600;
|
|
|
|
|
font-size: 0.875rem;
|
|
|
|
|
line-height: 1;
|
|
|
|
|
white-space: nowrap;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.ui-btn-primary {
|
|
|
|
|
background: var(--color-primary);
|
|
|
|
|
color: var(--color-on-primary);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.ui-btn-primary:hover {
|
|
|
|
|
background: var(--color-primary-hover);
|
|
|
|
|
color: var(--color-on-primary);
|
|
|
|
|
transform: translateY(-1px);
|
|
|
|
|
box-shadow: 0 10px 30px rgba(99, 102, 241, 0.24);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.ui-btn-secondary {
|
|
|
|
|
background: transparent;
|
|
|
|
|
border-color: var(--color-border);
|
|
|
|
|
color: var(--color-text);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.ui-btn-secondary:hover {
|
|
|
|
|
border-color: var(--color-border-hover);
|
|
|
|
|
background: rgba(255, 255, 255, 0.06);
|
|
|
|
|
color: var(--color-text);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
:where(input.ui-input, select.ui-select) {
|
|
|
|
|
width: 100%;
|
|
|
|
|
border-radius: var(--radius-md);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.ui-kpis {
|
|
|
|
|
display: flex;
|
|
|
|
|
gap: 0.75rem;
|
|
|
|
|
flex-wrap: wrap;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.ui-kpi {
|
|
|
|
|
padding: 0.75rem 0.875rem;
|
|
|
|
|
border-radius: var(--radius-md);
|
|
|
|
|
border: 1px solid var(--color-border);
|
|
|
|
|
background: rgba(0, 0, 0, 0.18);
|
|
|
|
|
min-width: 140px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.ui-kpi-value {
|
|
|
|
|
font-size: 1.25rem;
|
|
|
|
|
font-weight: 700;
|
|
|
|
|
letter-spacing: -0.01em;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.ui-kpi-label {
|
|
|
|
|
margin-top: 0.125rem;
|
|
|
|
|
color: var(--color-text-muted);
|
|
|
|
|
font-size: 0.8125rem;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@media (max-width: 768px) {
|
|
|
|
|
.ui-container {
|
|
|
|
|
padding: 0 1rem;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.ui-page-header {
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
align-items: stretch;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.ui-actions {
|
|
|
|
|
justify-content: flex-start;
|
|
|
|
|
}
|
|
|
|
|
}
|
2026-01-27 16:21:58 +00:00
|
|
|
</style>
|
|
|
|
|
|
|
|
|
|
<style>
|
|
|
|
|
.app {
|
|
|
|
|
min-height: 100vh;
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.header {
|
|
|
|
|
background: rgba(24, 24, 27, 0.8);
|
|
|
|
|
backdrop-filter: blur(12px);
|
|
|
|
|
-webkit-backdrop-filter: blur(12px);
|
|
|
|
|
border-bottom: 1px solid var(--color-border);
|
|
|
|
|
padding: 1rem 2rem;
|
|
|
|
|
position: sticky;
|
|
|
|
|
top: 0;
|
|
|
|
|
z-index: 100;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.nav {
|
|
|
|
|
max-width: 1200px;
|
|
|
|
|
margin: 0 auto;
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
align-items: center;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.logo {
|
|
|
|
|
font-size: 1.375rem;
|
|
|
|
|
font-weight: 700;
|
|
|
|
|
color: var(--color-text);
|
|
|
|
|
letter-spacing: -0.02em;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.logo:hover {
|
|
|
|
|
color: var(--color-primary);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.nav-links {
|
|
|
|
|
display: flex;
|
|
|
|
|
gap: 2rem;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.nav-links a {
|
|
|
|
|
color: var(--color-text-muted);
|
|
|
|
|
padding: 0.5rem 0.875rem;
|
|
|
|
|
border-radius: var(--radius-sm);
|
|
|
|
|
font-size: 0.9375rem;
|
|
|
|
|
font-weight: 500;
|
|
|
|
|
transition: background-color var(--motion-fast) var(--easing-standard), color var(--motion-fast) var(--easing-standard);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.nav-links a:hover {
|
|
|
|
|
color: var(--color-text);
|
|
|
|
|
background: rgba(255, 255, 255, 0.06);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.nav-links a[aria-current="page"],
|
|
|
|
|
.nav-auth a[aria-current="page"] {
|
|
|
|
|
color: var(--color-text);
|
|
|
|
|
background: var(--color-field-bg);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.nav-auth {
|
|
|
|
|
display: flex;
|
|
|
|
|
gap: 1rem;
|
|
|
|
|
align-items: center;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.nav-auth a {
|
|
|
|
|
color: var(--color-text-muted);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.nav-auth a:hover {
|
|
|
|
|
color: var(--color-text);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.btn-register {
|
|
|
|
|
background: var(--color-primary);
|
|
|
|
|
color: var(--color-text-inverse) !important;
|
|
|
|
|
padding: 0.5rem 1.25rem;
|
|
|
|
|
border-radius: var(--radius-sm);
|
|
|
|
|
font-weight: 600;
|
|
|
|
|
font-size: 0.875rem;
|
|
|
|
|
transition: all var(--motion-fast) var(--easing-standard);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.btn-register:hover {
|
|
|
|
|
background: var(--color-primary-hover);
|
|
|
|
|
transform: translateY(-1px);
|
|
|
|
|
box-shadow: 0 4px 12px rgba(129, 140, 248, 0.25);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.btn-register:active {
|
|
|
|
|
transform: translateY(0);
|
|
|
|
|
box-shadow: var(--shadow-sm);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.user-name {
|
|
|
|
|
color: var(--color-text);
|
|
|
|
|
font-weight: 500;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.main {
|
|
|
|
|
flex: 1;
|
|
|
|
|
max-width: 1200px;
|
|
|
|
|
margin: 0 auto;
|
|
|
|
|
padding: clamp(1.5rem, 2.2vw, 2.25rem);
|
|
|
|
|
width: 100%;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.footer {
|
|
|
|
|
background: var(--color-bg-alt);
|
|
|
|
|
border-top: 1px solid var(--color-border);
|
|
|
|
|
padding: 1.5rem 2rem;
|
|
|
|
|
text-align: center;
|
|
|
|
|
color: var(--color-text-muted);
|
|
|
|
|
font-size: 0.8125rem;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.nav-notifications {
|
|
|
|
|
position: relative;
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.notif-icon {
|
|
|
|
|
font-size: 1.25rem;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.notif-badge {
|
|
|
|
|
position: absolute;
|
|
|
|
|
top: -6px;
|
|
|
|
|
right: -8px;
|
|
|
|
|
background: var(--color-error);
|
|
|
|
|
color: var(--color-on-primary);
|
|
|
|
|
font-size: 0.625rem;
|
|
|
|
|
font-weight: 700;
|
|
|
|
|
padding: 0.125rem 0.375rem;
|
|
|
|
|
border-radius: 999px;
|
|
|
|
|
min-width: 16px;
|
|
|
|
|
text-align: center;
|
|
|
|
|
opacity: 0;
|
|
|
|
|
transform: scale(0.9);
|
|
|
|
|
transition: opacity var(--motion-fast) var(--easing-standard), transform var(--motion-fast) var(--easing-standard);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.notif-badge.is-visible {
|
|
|
|
|
opacity: 1;
|
|
|
|
|
transform: scale(1);
|
|
|
|
|
}
|
|
|
|
|
</style>
|