/
bi11sha
/
projectHTML
Обзор
Документация
Войти
/
bi11sha
/
projectHTML
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
frontend/styles.css
566 строк
9 KB
bi11sha
do proj
23 ноя 2025, 18:24
23 ноя 2025, 18:24
228367e
Код
Авторство
О чём код?
:root { --bg: #0f1014; --bg-card: #151822; --text: #e9ecf5; --muted: #98a0b3; --accent: #f3c653; --accent-2: #6cd4ff; --border: #222837; --shadow: 0 20px 60px rgba(0, 0, 0, 0.35); } * { box-sizing: border-box; } body { margin: 0; font-family: "Space Grotesk", system-ui, -apple-system, sans-serif; background: radial-gradient(circle at 20% 20%, rgba(108, 212, 255, 0.12), transparent 25%), radial-gradient(circle at 80% 0%, rgba(243, 198, 83, 0.18), transparent 30%), var(--bg); color: var(--text); line-height: 1.6; min-height: 100vh; } a { color: inherit; text-decoration: none; } .navbar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; background: rgba(15, 16, 20, 0.9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); } .logo { font-family: "Playfair Display", serif; font-weight: 700; font-size: 20px; letter-spacing: 0.08em; } .nav-links { display: flex; gap: 18px; } .nav-links a { padding: 8px 10px; border-radius: 10px; transition: all 0.2s ease; color: var(--muted); } .nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); } .nav-toggle { display: none; background: none; border: 1px solid var(--border); color: var(--text); padding: 8px 12px; border-radius: 10px; font-size: 18px; } .user-chip { padding: 8px 12px; border-radius: 10px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border); font-size: 14px; color: var(--muted); } .hero { display: grid; grid-template-columns: 1fr; gap: 32px; padding: 60px 20px 40px; max-width: 1200px; margin: 0 auto; } .hero-content h1 { font-size: clamp(28px, 4vw, 46px); margin: 12px 0; } .lead { color: var(--muted); margin-bottom: 18px; } .eyebrow { text-transform: uppercase; letter-spacing: 0.16em; font-size: 12px; color: var(--accent); } .hero-actions { display: flex; gap: 10px; margin-bottom: 20px; } .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 12px; padding: 12px 18px; border: 1px solid var(--border); color: var(--text); cursor: pointer; transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease; } .btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); } .btn.primary { background: linear-gradient(120deg, var(--accent), #f28b30); border-color: transparent; color: #0f1014; font-weight: 700; } .btn.ghost { background: rgba(255, 255, 255, 0.04); } .hero-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-top: 8px; } .metric-card { padding: 14px; border: 1px solid var(--border); border-radius: 14px; background: rgba(255, 255, 255, 0.02); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25); animation: float 6s ease-in-out infinite; } .metric-card:nth-child(2) { animation-delay: 0.8s; } .metric-card:nth-child(3) { animation-delay: 1.4s; } .metric-label { color: var(--muted); font-size: 12px; } .hero-visual { position: relative; min-height: 260px; } .floating-card { position: absolute; inset: 0 auto auto 0; width: 70%; max-width: 320px; background: rgba(21, 24, 34, 0.8); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); animation: float 7s ease-in-out infinite; } .floating-card.alt { right: 0; left: auto; top: 40%; width: 65%; animation-delay: 1.5s; } .floating-card img { width: 100%; height: 180px; object-fit: cover; display: block; } .floating-meta { padding: 12px; display: flex; justify-content: space-between; align-items: center; } .section { max-width: 1200px; margin: 0 auto; padding: 40px 20px; } .section-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; } .muted { color: var(--muted); margin: 0; } .filters input, .filters select, .table-controls input { background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border); color: var(--text); padding: 10px 12px; border-radius: 12px; min-width: 180px; } .filters { display: flex; gap: 10px; flex-wrap: wrap; } .slider { position: relative; margin-top: 20px; display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; } .slider-track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 320px); gap: 14px; overflow: hidden; scroll-behavior: smooth; } .slider-btn { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--border); background: rgba(255, 255, 255, 0.05); color: var(--text); cursor: pointer; transition: transform 0.2s ease, background 0.2s ease; } .slider-btn:hover { transform: translateY(-2px); background: var(--accent); color: #0f1014; } .card { background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border); border-radius: 16px; padding: 16px; box-shadow: var(--shadow); } .product-card img { width: 100%; height: 180px; object-fit: cover; border-radius: 10px; } .product-media { border-radius: 12px; overflow: hidden; border: 1px solid var(--border); background: rgba(255, 255, 255, 0.02); } .product-meta { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; } .price { color: var(--accent); font-weight: 700; } .dashboard-grid { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 20px; } .table-wrapper { overflow-x: auto; } table { width: 100%; border-collapse: collapse; } th, td { padding: 12px 10px; text-align: left; } th { color: var(--muted); font-weight: 500; cursor: pointer; border-bottom: 1px solid var(--border); } tr { transition: background 0.2s ease; } tbody tr:hover { background: rgba(255, 255, 255, 0.04); } .map-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 14px; margin-top: 20px; } .map-canvas { height: 360px; border-radius: 16px; border: 1px solid var(--border); overflow: hidden; } .geo-card ul { padding-left: 18px; color: var(--muted); } .auth-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin-top: 20px; } .form label { display: block; color: var(--muted); margin-bottom: 8px; } .form input, .form textarea { width: 100%; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border); color: var(--text); padding: 10px; border-radius: 12px; margin-top: 6px; } .form textarea { resize: vertical; } .form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; } .coords { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .form-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; } .badge { padding: 6px 10px; border-radius: 10px; background: rgba(108, 212, 255, 0.12); color: var(--accent-2); border: 1px solid rgba(108, 212, 255, 0.3); } .footer { border-top: 1px solid var(--border); padding: 24px 20px 40px; background: rgba(15, 16, 20, 0.9); margin-top: 40px; } .footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; } .table-card, .chart-card, .geo-card { position: relative; } .loader { position: absolute; inset: 0; background: rgba(15, 16, 20, 0.6); display: flex; align-items: center; justify-content: center; border-radius: 16px; animation: fadeIn 0.3s ease; } .loader::after { content: ""; width: 42px; height: 42px; border-radius: 50%; border: 4px solid rgba(255, 255, 255, 0.1); border-top-color: var(--accent); animation: spin 1s linear infinite; } .hint-list li { margin-bottom: 8px; } .section h2 { margin: 4px 0; font-size: 28px; } .product-card { position: relative; overflow: hidden; transition: transform 0.3s ease, box-shadow 0.3s ease; } .product-card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(243, 198, 83, 0.14), rgba(108, 212, 255, 0.05)); opacity: 0; transition: opacity 0.3s ease; } .product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); } .product-card:hover::before { opacity: 1; } .badge.success { background: rgba(243, 198, 83, 0.14); color: var(--accent); border-color: rgba(243, 198, 83, 0.4); } @keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } } @keyframes spin { to { transform: rotate(360deg); } } @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } } @media (min-width: 900px) { .hero { grid-template-columns: 1.1fr 0.9fr; align-items: center; } .dashboard-grid { grid-template-columns: 1fr 1fr; } } @media (max-width: 720px) { .nav-toggle { display: block; } .nav-links { position: fixed; inset: 64px 16px auto; background: rgba(15, 16, 20, 0.95); border: 1px solid var(--border); border-radius: 14px; padding: 12px; flex-direction: column; display: none; } .nav-links.open { display: flex; } .slider { grid-template-columns: 1fr; } .slider-btn { display: none; } .map-grid { grid-template-columns: 1fr; } }