start frant 050228

This commit is contained in:
2026-05-18 20:18:28 +03:30
parent 26e59e03e0
commit cb65e5e601
33 changed files with 1493 additions and 425 deletions
+38 -161
View File
@@ -1,168 +1,45 @@
:root {
--bg: #0f1419;
--surface: #1a2332;
--surface-2: #243044;
--text: #f0f4f8;
--muted: #94a3b8;
--accent: #22c55e;
--accent-hover: #16a34a;
--danger: #f87171;
--border: rgba(148, 163, 184, 0.2);
--radius: 12px;
--shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
@import 'tailwindcss';
@custom-variant dark (&:where(.dark, .dark *));
@theme {
--font-sans: 'Vazirmatn', ui-sans-serif, system-ui, sans-serif;
--color-brand-50: #ecfdf5;
--color-brand-100: #d1fae5;
--color-brand-500: #22c55e;
--color-brand-600: #16a34a;
--color-brand-700: #15803d;
--color-surface: #ffffff;
--color-surface-2: #f8fafc;
--color-surface-3: #f1f5f9;
--color-border: #e2e8f0;
--color-text: #0f172a;
--color-muted: #64748b;
}
*,
*::before,
*::after {
box-sizing: border-box;
@layer theme {
.dark {
--color-surface: #0f1419;
--color-surface-2: #1a2332;
--color-surface-3: #243044;
--color-border: #334155;
--color-text: #f1f5f9;
--color-muted: #94a3b8;
}
}
html,
body,
#app {
margin: 0;
min-height: 100%;
}
@layer base {
html {
@apply antialiased;
}
body {
font-family: 'Vazirmatn', system-ui, sans-serif;
background: radial-gradient(ellipse at top, #1e3a2f 0%, var(--bg) 55%);
color: var(--text);
line-height: 1.6;
}
body {
@apply bg-surface-2 text-text font-sans;
}
.app-shell {
min-height: 100vh;
display: flex;
align-items: center;
justify-content: center;
padding: 1.5rem;
}
.card {
width: 100%;
max-width: 420px;
background: var(--surface);
border: 1px solid var(--border);
border-radius: var(--radius);
padding: 2rem;
box-shadow: var(--shadow);
}
.logo {
font-size: 1.75rem;
font-weight: 700;
margin: 0 0 0.25rem;
letter-spacing: -0.02em;
}
.subtitle {
color: var(--muted);
margin: 0 0 1.75rem;
font-size: 0.95rem;
}
.field {
margin-bottom: 1rem;
}
.field label {
display: block;
font-size: 0.875rem;
font-weight: 500;
margin-bottom: 0.4rem;
color: var(--muted);
}
.field input {
width: 100%;
padding: 0.75rem 1rem;
border-radius: 8px;
border: 1px solid var(--border);
background: var(--surface-2);
color: var(--text);
font: inherit;
direction: ltr;
text-align: left;
}
.field input:focus {
outline: 2px solid var(--accent);
outline-offset: 1px;
}
.btn {
width: 100%;
padding: 0.85rem 1rem;
border: none;
border-radius: 8px;
font: inherit;
font-weight: 600;
cursor: pointer;
transition: background 0.15s, opacity 0.15s;
}
.btn-primary {
background: var(--accent);
color: #052e16;
}
.btn-primary:hover:not(:disabled) {
background: var(--accent-hover);
}
.btn:disabled {
opacity: 0.55;
cursor: not-allowed;
}
.btn-ghost {
background: transparent;
color: var(--muted);
margin-top: 0.75rem;
}
.error {
background: rgba(248, 113, 113, 0.12);
border: 1px solid rgba(248, 113, 113, 0.35);
color: var(--danger);
padding: 0.75rem 1rem;
border-radius: 8px;
font-size: 0.875rem;
margin-bottom: 1rem;
}
.timer {
text-align: center;
color: var(--muted);
font-size: 0.875rem;
margin-top: 1rem;
}
.home-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 1.5rem;
}
.user-card {
background: var(--surface-2);
border-radius: 8px;
padding: 1rem;
}
.user-card dt {
color: var(--muted);
font-size: 0.8rem;
}
.user-card dd {
margin: 0.25rem 0 0.75rem;
font-weight: 500;
}
.user-card dd:last-child {
margin-bottom: 0;
#app {
@apply min-h-dvh;
}
}