UI: полноценный красивый интерфейс, iOS-style дизайн, все страницы

This commit is contained in:
2026-05-29 11:12:53 +03:00
parent b277e0f177
commit a67b8c3341
13 changed files with 969 additions and 465 deletions

View File

@@ -2,118 +2,218 @@
@plugin "tailwindcss-animate";
:root {
--background: #f5f5f5;
--foreground: #000000;
--card: #ffffff;
--card-foreground: #000000;
--popover: #ffffff;
--popover-foreground: #000000;
--primary: #2aabee;
--background: #f5f5f7;
--surface: #ffffff;
--surface-hover: #f8f8fa;
--foreground: #1c1c1e;
--foreground-secondary: #8a8a8e;
--foreground-tertiary: #aeaeb2;
--primary: #007aff;
--primary-hover: #0066d6;
--primary-light: #e8f2ff;
--primary-foreground: #ffffff;
--secondary: #eff2f5;
--secondary-foreground: #000000;
--muted: #f0f0f0;
--muted-foreground: #8e8e93;
--accent: #e8f5ff;
--accent-foreground: #2aabee;
--destructive: #ff3b30;
--destructive-foreground: #ffffff;
--secondary: #f2f2f5;
--secondary-foreground: #1c1c1e;
--border: #e5e5ea;
--input: #e5e5ea;
--ring: #2aabee;
--radius: 0;
--tg-blue: #2aabee;
--tg-blue-light: #e8f5ff;
--tg-separator: #e5e5ea;
--tg-bg: #f5f5f5;
--tg-bubble: #ffffff;
--tg-muted: #8e8e93;
--border-light: #f0f0f3;
--danger: #ff3b30;
--danger-hover: #d6342b;
--danger-light: #ffe8e6;
--success: #34c759;
--success-light: #e8f8ed;
--shadow-sm: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.03);
--shadow-md: 0 4px 12px rgba(0,0,0,0.06), 0 2px 4px rgba(0,0,0,0.03);
--shadow-lg: 0 12px 32px rgba(0,0,0,0.08), 0 4px 8px rgba(0,0,0,0.04);
--radius-sm: 8px;
--radius-md: 14px;
--radius-lg: 20px;
--radius-full: 9999px;
}
* { border-color: var(--tg-separator); }
* { border-color: var(--border); }
body {
background-color: var(--tg-bg);
background: var(--background);
color: var(--foreground);
font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
"Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
line-height: 1.5;
letter-spacing: -0.01em;
}
::selection { background: var(--tg-blue); color: white; }
::selection { background: var(--primary); color: white; }
/* Heart animation */
@keyframes heart-pop {
0% { transform: scale(1); }
40% { transform: scale(1.2); }
100% { transform: scale(1); }
}
.heart-animate { animation: heart-pop 0.3s ease-out; }
/* ── Animations ── */
/* Fade in */
@keyframes fade-in {
from { opacity: 0; transform: translateY(4px); }
from { opacity: 0; }
to { opacity: 1; }
}
@keyframes fade-in-up {
from { opacity: 0; transform: translateY(6px); }
to { opacity: 1; transform: translateY(0); }
}
.animate-fade-in { animation: fade-in 0.25s ease-out; }
/* Scale in */
@keyframes scale-in {
from { opacity: 0; transform: scale(0.97); }
from { opacity: 0; transform: scale(0.96); }
to { opacity: 1; transform: scale(1); }
}
.animate-scale-in { animation: scale-in 0.15s ease-out; }
/* Slide up for toasts */
@keyframes slide-up {
from { opacity: 0; transform: translateY(8px); }
from { opacity: 0; transform: translateY(100%); }
to { opacity: 1; transform: translateY(0); }
}
.animate-slide-up { animation: slide-up 0.2s ease-out; }
/* Shimmer */
@keyframes heart-bounce {
0% { transform: scale(1); }
25% { transform: scale(1.3); }
50% { transform: scale(0.95); }
75% { transform: scale(1.1); }
100% { transform: scale(1); }
}
@keyframes spin-slow {
from { transform: rotate(0deg); }
to { transform: rotate(360deg); }
}
@keyframes shimmer {
0% { background-position: -200% 0; }
100% { background-position: 200% 0; }
}
.skeleton-shimmer {
background: linear-gradient(90deg, #e8e8e8 25%, #f5f5f5 50%, #e8e8e8 75%);
background-size: 200% 100%;
animation: shimmer 1.2s ease-in-out infinite;
@keyframes toast-in {
from { opacity: 0; transform: translateY(12px) scale(0.96); }
to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes toast-out {
from { opacity: 1; transform: translateY(0) scale(1); }
to { opacity: 0; transform: translateY(-8px) scale(0.96); }
}
/* Page transition */
.page-enter { opacity: 0; }
.page-enter-active { opacity: 1; transition: opacity 0.12s ease-out; }
.animate-fade-in { animation: fade-in 0.15s ease-out; }
.animate-fade-in-up { animation: fade-in-up 0.25s cubic-bezier(0.16, 1, 0.3, 1); }
.animate-scale-in { animation: scale-in 0.2s cubic-bezier(0.16, 1, 0.3, 1); }
.animate-slide-up { animation: slide-up 0.3s cubic-bezier(0.16, 1, 0.3, 1); }
.animate-heart { animation: heart-bounce 0.35s cubic-bezier(0.16, 1, 0.3, 1); }
.animate-spin-slow { animation: spin-slow 1s linear infinite; }
.animate-toast-in { animation: toast-in 0.25s cubic-bezier(0.16, 1, 0.3, 1); }
/* Like button */
.like-btn { transition: transform 0.08s; cursor: pointer; }
.like-btn:active { transform: scale(0.82); }
/* ── Shared UI ── */
/* Telegram-style avatar ring */
.tg-avatar {
.card {
background: var(--surface);
border-radius: var(--radius-md);
box-shadow: var(--shadow-sm);
border: 1px solid var(--border);
transition: box-shadow 0.2s ease;
}
.card:hover {
box-shadow: var(--shadow-md);
}
.avatar-initials {
border-radius: 50%;
background: var(--tg-blue);
color: white;
display: flex;
align-items: center;
justify-content: center;
font-weight: 600;
color: white;
background: var(--primary);
user-select: none;
}
/* Telegram-style bubble */
.tg-bubble {
background: white;
border-radius: 12px;
overflow: hidden;
.btn-icon {
display: inline-flex;
align-items: center;
justify-content: center;
border-radius: var(--radius-full);
transition: background 0.15s ease, transform 0.1s ease;
cursor: pointer;
border: none;
}
.btn-icon:active {
transform: scale(0.92);
}
/* Telegram-style separator */
.tg-divider {
height: 1px;
background: var(--tg-separator);
.link-blue {
color: var(--primary);
font-weight: 600;
transition: opacity 0.15s;
}
.link-blue:hover {
opacity: 0.8;
text-decoration: underline;
}
/* Scrollbar hide */
.text-secondary { color: var(--foreground-secondary); }
.text-tertiary { color: var(--foreground-tertiary); }
/* ── Utility ── */
.skeleton-shimmer {
background: linear-gradient(90deg, #e8e8ec 25%, #f2f2f5 50%, #e8e8ec 75%);
background-size: 200% 100%;
animation: shimmer 1.2s ease-in-out infinite;
}
/* ── Modal backdrop ── */
.backdrop-blur {
backdrop-filter: blur(8px);
-webkit-backdrop-filter: blur(8px);
}
/* ── Button base ── */
.btn-primary {
display: inline-flex;
align-items: center;
justify-content: center;
font-weight: 600;
border-radius: var(--radius-full);
background: var(--primary);
color: white;
transition: background 0.15s, transform 0.1s;
cursor: pointer;
border: none;
}
.btn-primary:hover { background: var(--primary-hover); }
.btn-primary:active { transform: scale(0.97); }
.btn-primary:disabled {
opacity: 0.5;
cursor: not-allowed;
transform: none;
}
.btn-outline {
display: inline-flex;
align-items: center;
justify-content: center;
font-weight: 500;
border-radius: var(--radius-full);
background: transparent;
color: var(--foreground);
border: 1px solid var(--border);
transition: background 0.15s, border-color 0.15s;
cursor: pointer;
}
.btn-outline:hover { background: var(--secondary); border-color: var(--foreground-tertiary); }
.btn-outline:active { transform: scale(0.97); }
/* ── Scrollbar ── */
.scrollbar-none::-webkit-scrollbar { display: none; }
.scrollbar-none { -ms-overflow-style: none; scrollbar-width: none; }
/* ── Image loading ── */
.img-loading {
background: var(--secondary);
position: relative;
overflow: hidden;
}
.img-loading::after {
content: '';
position: absolute;
inset: 0;
background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
animation: shimmer 1.5s infinite;
background-size: 200% 100%;
}