/
magarich
/
web
Обзор
Документация
Войти
/
magarich
/
web
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
html/lab4/style.css
319 строк
8 KB
Юра Магарьян
Final submission: Lab2 and Lab3 by Magaryan Yury PIZ2402
17 апр 2026, 23:12
17 апр 2026, 23:12
0827836
Код
Авторство
О чём код?
/* �������� ����� - ����� */ @import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&display=swap'); * { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: 'Orbitron', sans-serif; background: linear-gradient(135deg, #0a0a2a, #1a1a4a, #0a0a2a); color: #c8c8c8; min-height: 100vh; position: relative; overflow-x: hidden; } /* ����������� ��� � ������������ */ body::before { content: ''; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: radial-gradient(ellipse at 20% 30%, rgba(41, 98, 255, 0.1) 0%, transparent 50%), radial-gradient(ellipse at 80% 70%, rgba(255, 41, 117, 0.1) 0%, transparent 50%), radial-gradient(ellipse at 40% 80%, rgba(79, 195, 247, 0.1) 0%, transparent 50%); z-index: -2; } /* �������� ��� */ .stars { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; } .star { position: absolute; background: white; border-radius: 50%; } /* ��������� ��� �������� */ .space-battle { position: fixed; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: -1; } /* ����� �������� */ .x-wing { position: absolute; width: 60px; height: 60px; background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 60"><path d="M30 5 L35 25 L55 30 L35 35 L30 55 L25 35 L5 30 L25 25 Z" fill="%23ffffff"/><circle cx="30" cy="30" r="8" fill="%234fc3f7"/></svg>'); filter: drop-shadow(0 0 5px #4fc3f7); } .tie-fighter { position: absolute; width: 50px; height: 50px; background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 50 50"><circle cx="25" cy="25" r="15" fill="%23cccccc"/><rect x="20" y="5" width="10" height="40" fill="%23cccccc"/><rect x="5" y="20" width="40" height="10" fill="%23cccccc"/></svg>'); filter: drop-shadow(0 0 5px #ff4444); } .falcon { position: absolute; width: 80px; height: 40px; background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 80 40"><ellipse cx="40" cy="20" rx="35" ry="15" fill="%23888888"/><circle cx="25" cy="20" r="8" fill="%234fc3f7"/></svg>'); filter: drop-shadow(0 0 8px #4fc3f7); } /* �������� �������� */ .laser { position: absolute; width: 4px; height: 20px; border-radius: 2px; pointer-events: none; } .laser.rebel { background: linear-gradient(to bottom, #4fc3f7, #ffffff); box-shadow: 0 0 10px #4fc3f7; } .laser.empire { background: linear-gradient(to bottom, #ff4444, #ffffff); box-shadow: 0 0 10px #ff4444; } /* ������ */ .explosion { position: absolute; width: 30px; height: 30px; background: radial-gradient(circle, #ff9800, #ff4444, transparent); border-radius: 50%; pointer-events: none; animation: explode 0.6s ease-out forwards; } @keyframes explode { 0% { transform: scale(0); opacity: 1; } 100% { transform: scale(3); opacity: 0; } } /* ���������� */ .personal-info { background: rgba(0, 20, 40, 0.8); border: 2px solid #4fc3f7; border-radius: 15px; padding: 25px; margin: 30px auto; max-width: 800px; box-shadow: 0 0 30px rgba(79, 195, 247, 0.3); position: relative; overflow: hidden; backdrop-filter: blur(10px); } .personal-info::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(79, 195, 247, 0.2), transparent); animation: scanner 3s linear infinite; } @keyframes scanner { 0% { left: -100%; } 100% { left: 100%; } } .personal-info h2 { color: #ffd700; font-size: 1.8em; margin-bottom: 15px; text-align: center; text-transform: uppercase; letter-spacing: 2px; text-shadow: 0 0 10px rgba(255, 215, 0, 0.5); } .personal-info p { font-size: 1.1em; margin: 10px 0; padding: 8px 15px; background: rgba(0, 30, 60, 0.6); border-left: 3px solid #ffd700; border-radius: 5px; } /* �������� ��������� */ h1 { text-align: center; color: #ffd700; font-size: 2.5em; margin: 40px 0; text-transform: uppercase; letter-spacing: 3px; text-shadow: 0 0 10px rgba(255, 215, 0, 0.8), 0 0 20px rgba(255, 215, 0, 0.6), 0 0 30px rgba(255, 215, 0, 0.4); position: relative; } h1::after { content: ''; position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%); width: 200px; height: 3px; background: linear-gradient(90deg, transparent, #4fc3f7, transparent); } /* ������ ������� */ .tasks-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; max-width: 1200px; margin: 0 auto; padding: 30px; } .tasks-list a { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #1a237e, #283593); color: #fff; text-decoration: none; padding: 25px 20px; border-radius: 12px; font-weight: 700; font-size: 1.2em; text-align: center; border: 2px solid #4fc3f7; transition: all 0.3s ease; position: relative; overflow: hidden; min-height: 100px; text-transform: uppercase; letter-spacing: 1px; backdrop-filter: blur(5px); } .tasks-list a::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent); transition: left 0.5s; } .tasks-list a:hover::before { left: 100%; } .tasks-list a:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(79, 195, 247, 0.4), 0 0 30px rgba(255, 215, 0, 0.3); background: linear-gradient(135deg, #283593, #3949ab); border-color: #ffd700; color: #ffd700; } .tasks-list a:active { transform: translateY(-2px); } /* ������������ */ @media (max-width: 768px) { .personal-info { margin: 20px; padding: 20px; } h1 { font-size: 2em; margin: 30px 0; } .tasks-list { grid-template-columns: 1fr; padding: 20px; } .tasks-list a { padding: 20px 15px; font-size: 1.1em; } .x-wing, .tie-fighter, .falcon { transform: scale(0.7); } } @media (max-width: 480px) { .personal-info h2 { font-size: 1.5em; } h1 { font-size: 1.8em; } .personal-info p { font-size: 1em; } .x-wing, .tie-fighter, .falcon { transform: scale(0.5); } } /* ������ ��������� ��� �������� ������ */ @keyframes pulse-gold { 0%, 100% { text-shadow: 0 0 10px rgba(255, 215, 0, 0.8); } 50% { text-shadow: 0 0 20px rgba(255, 215, 0, 1), 0 0 30px rgba(255, 215, 0, 0.6); } } .personal-info h2, h1 { animation: pulse-gold 2s ease-in-out infinite; }