/
magarich
/
web
Обзор
Документация
Войти
/
magarich
/
web
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
html/lab1/style.css
393 строки
7 KB
Юра Магарьян
Final submission: Lab2 and Lab3 by Magaryan Yury PIZ2402
17 апр 2026, 23:12
17 апр 2026, 23:12
0827836
Код
Авторство
О чём код?
/* style.css */ :root { --primary: #4a6cf7; --primary-dark: #3a5ce5; --secondary: #6a11cb; --accent: #ff6b6b; --dark: #1e293b; --light: #f8fafc; --gray: #64748b; --card-bg: rgba(255, 255, 255, 0.95); --shadow: 0 10px 25px rgba(0, 0, 0, 0.1); --gradient: linear-gradient(135deg, var(--primary), var(--secondary)); } * { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: var(--dark); line-height: 1.6; min-height: 100vh; overflow-x: hidden; } .container { max-width: 1200px; margin: 0 auto; padding: 2rem; position: relative; z-index: 2; } /* �������� ��������� ���������� */ @keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } } .container { animation: fadeInUp 0.8s ease-out; } /* �������� */ .card { background: var(--card-bg); backdrop-filter: blur(10px); border-radius: 20px; padding: 2rem; box-shadow: var(--shadow); border: 1px solid rgba(255, 255, 255, 0.2); } .personal-info { margin-bottom: 3rem; transition: transform 0.3s ease; } .personal-info:hover { transform: translateY(-5px); } /* ��������� */ .section-title { font-size: 1.5rem; color: var(--primary); margin-bottom: 1.5rem; text-align: center; } .main-title { font-size: 2.5rem; text-align: center; margin-bottom: 3rem; color: white; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3); animation: glow 2s ease-in-out infinite alternate; } @keyframes glow { from { text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3); } to { text-shadow: 0 2px 20px rgba(255, 255, 255, 0.4); } } /* �������������� ����� */ .info-grid { display: grid; gap: 1rem; } .info-item { display: flex; align-items: center; gap: 1rem; padding: 0.75rem; border-radius: 12px; background: rgba(74, 108, 247, 0.1); transition: all 0.3s ease; } .info-item:hover { background: rgba(74, 108, 247, 0.2); transform: translateX(10px); } .info-label { font-weight: 600; color: var(--primary); min-width: 80px; } .info-value { color: var(--dark); font-weight: 500; } /* ����� ������� */ .tasks-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; margin-top: 2rem; } /* �������� ������� */ .task-card { position: relative; background: var(--card-bg); border-radius: 16px; padding: 2rem; text-decoration: none; color: var(--dark); box-shadow: var(--shadow); transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.3); } .task-card::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: var(--gradient); transition: left 0.6s ease; z-index: 1; } .task-card:hover::before { left: 0; } .task-card > * { position: relative; z-index: 2; } .task-number { font-size: 3rem; font-weight: 800; color: var(--primary); margin-bottom: 0.5rem; transition: all 0.3s ease; } .task-title { font-size: 1.25rem; font-weight: 600; margin-bottom: 1rem; transition: all 0.3s ease; } .task-hover { opacity: 0; transform: translateY(10px); color: white; font-weight: 500; transition: all 0.3s ease 0.1s; } /* �������� ��� ��������� �� �������� */ .task-card:hover { transform: translateY(-10px) scale(1.05); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2); } .task-card:hover .task-number { color: white; transform: scale(1.1); } .task-card:hover .task-title { color: white; transform: translateX(10px); } .task-card:hover .task-hover { opacity: 1; transform: translateY(0); } /* �������� ��������� �������� */ @keyframes slideInCards { from { opacity: 0; transform: translateY(50px) scale(0.9); } to { opacity: 1; transform: translateY(0) scale(1); } } .task-card { animation: slideInCards 0.6s ease-out; } .task-card:nth-child(1) { animation-delay: 0.1s; } .task-card:nth-child(2) { animation-delay: 0.2s; } .task-card:nth-child(3) { animation-delay: 0.3s; } .task-card:nth-child(4) { animation-delay: 0.4s; } .task-card:nth-child(5) { animation-delay: 0.5s; } .task-card:nth-child(6) { animation-delay: 0.6s; } .task-card:nth-child(7) { animation-delay: 0.7s; } .task-card:nth-child(8) { animation-delay: 0.8s; } .task-card:nth-child(9) { animation-delay: 0.9s; } .task-card:nth-child(10) { animation-delay: 1s; } /* ������� �������� */ .background-animation { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; } .floating-shape { position: absolute; border-radius: 50%; background: rgba(255, 255, 255, 0.1); animation: float 6s ease-in-out infinite; } .shape-1 { width: 100px; height: 100px; top: 10%; left: 10%; animation-delay: 0s; } .shape-2 { width: 150px; height: 150px; top: 60%; right: 10%; animation-delay: 2s; } .shape-3 { width: 80px; height: 80px; bottom: 20%; left: 20%; animation-delay: 4s; } .shape-4 { width: 120px; height: 120px; top: 30%; right: 20%; animation-delay: 1s; } @keyframes float { 0%, 100% { transform: translateY(0) rotate(0deg); } 33% { transform: translateY(-20px) rotate(120deg); } 66% { transform: translateY(10px) rotate(240deg); } } /* ������������ */ @media (max-width: 768px) { .container { padding: 1rem; } .main-title { font-size: 2rem; } .tasks-grid { grid-template-columns: 1fr; } .task-card { padding: 1.5rem; } .info-item { flex-direction: column; align-items: flex-start; gap: 0.5rem; } } /* ��������� ��� ����������� �������� */ @keyframes pulse { 0%, 100% { box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1); } 50% { box-shadow: 0 15px 35px rgba(74, 108, 247, 0.3); } } .personal-info { animation: pulse 3s ease-in-out infinite; } /* ������� ������ */ html { scroll-behavior: smooth; } /* ��������� ����������� */ @media (prefers-reduced-motion: reduce) { * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; } }