/
maxxon
/
web-static-labs
Обзор
Документация
Войти
/
maxxon
/
web-static-labs
Код
Запросы
0
Задачи
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
html/lab4/task0/styles.css
177 строк
4 KB
maxxon
lab1 lab2 lab3 lab4
12 ноя 2025, 02:32
12 ноя 2025, 02:32
aa1390d
Код
Авторство
О чём код?
/* Общие стили */ body { font-family: 'Orbitron', sans-serif; background: radial-gradient(circle at center, #2c2c2c 0%, #1a1a1a 100%); color: #e0e0e0; margin: 0; padding: 0; display: flex; flex-direction: column; min-height: 100vh; overflow: hidden; position: relative; } body::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="rgba(255,165,0,0.1)"/></svg>') repeat; animation: twinkle 5s linear infinite; pointer-events: none; } @keyframes twinkle { 0% { opacity: 0.5; } 50% { opacity: 1; } 100% { opacity: 0.5; } } /* Шапка (header) */ header { background: rgba(26, 26, 26, 0.8); backdrop-filter: blur(20px); padding: 3rem 2rem; text-align: center; border-bottom: 2px solid #ffa500; box-shadow: 0 4px 20px rgba(255, 165, 0, 0.3); position: relative; animation: float 6s ease-in-out infinite; } @keyframes float { 0%, 100% { transform: translateY(0px); } 50% { transform: translateY(-10px); } } header::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(45deg, transparent, rgba(255, 165, 0, 0.1), transparent); animation: scan 3s linear infinite; } @keyframes scan { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } } header h1 { font-size: 3rem; margin-bottom: 0.5rem; color: #ffa500; text-shadow: 0 0 20px #ffa500, 0 0 40px #ffa500; animation: pulse 2s ease-in-out infinite alternate; } @keyframes pulse { from { text-shadow: 0 0 20px #ffa500, 0 0 40px #ffa500; } to { text-shadow: 0 0 30px #ffa500, 0 0 60px #ffa500; } } header p { font-size: 1.5rem; color: #cccccc; text-shadow: 0 0 10px rgba(255, 255, 255, 0.5); } /* Навигация (nav) */ nav { padding: 2rem; display: flex; justify-content: center; flex-wrap: wrap; gap: 1rem; } nav ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 1rem; } nav li { perspective: 1000px; } nav a { display: block; padding: 1.5rem 2rem; background: rgba(102, 102, 102, 0.8); backdrop-filter: blur(10px); color: #e0e0e0; text-decoration: none; border-radius: 15px; border: 1px solid rgba(255, 165, 0, 0.5); box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3); transition: all 0.4s ease; position: relative; overflow: hidden; font-weight: bold; text-transform: uppercase; letter-spacing: 1px; } nav a::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255, 165, 0, 0.4), transparent); transition: left 0.5s; } nav a:hover::before { left: 100%; } nav a:hover { background: rgba(255, 165, 0, 0.9); color: #000000; transform: translateY(-10px) rotateX(15deg); box-shadow: 0 20px 40px rgba(255, 165, 0, 0.4); border-color: #ffa500; } /* Подвал (footer) */ footer { background: rgba(26, 26, 26, 0.8); backdrop-filter: blur(10px); text-align: center; padding: 2rem; margin-top: auto; border-top: 2px solid #ffa500; color: #cccccc; font-size: 1rem; box-shadow: 0 -4px 20px rgba(255, 165, 0, 0.3); position: relative; } footer::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, #ffa500, #ff8c00, #ffa500); animation: flow 4s linear infinite; } @keyframes flow { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }