/
Blake
/
GBlake
Обзор
Документация
Войти
/
Blake
/
GBlake
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
mini/404/style.css
180 строк
3 KB
Blake
start main html css js
22 авг 2025, 14:32
22 авг 2025, 14:32
bf94d74
Код
Авторство
О чём код?
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap'); * { margin: 0; padding: 0; box-sizing: border-box; } body { background: #050505; color: white; font-family: 'Montserrat', sans-serif; } header { background: rgba(0, 0, 0, 0.6); position: fixed; width: 100%; left: 0; top: 0; color: white; z-index: 10; display: flex; justify-content: space-between; padding: 20px 30px 12px 30px; align-items: center; } header p { font-size: 1.3rem; color: rgba(255, 255, 255, 0.5); } .head-buttons { display: flex; justify-content: space-around; gap: 150px; align-items: center; } .head-button { background: rgba(255, 255, 255, 0.05); color: white; padding: 18px 20px; border-radius: 25px; text-decoration: none; transition: all 0.25s ease-in-out; } .head-button:hover { background: rgba(255, 255, 255, 0.1); transform: translateY(-10px); } .app { position: relative; height: 100vh; overflow: hidden; width: 100%; display: flex; flex-direction: column; justify-content: center; align-items: center; } .error { font-size: 35vw; /* Огромный 404 */ font-weight: 900; color: #ffffff10; position: absolute; top: 0; bottom: 0; z-index: 1; animation: err 1.75s ease-out forwards; } @keyframes err { 0% { transform: translateY(50%); } 100% { transform: translate(0, 0); } } .img { position: absolute; bottom: 0; display: flex; flex-direction: column; align-items: center; animation: anim 1.5s ease-out forwards; z-index: 2; } .img img { max-width: 40%; height: auto; object-fit: contain; } .okak { font-size: 115px; font-weight: 900; margin-top: 20px; text-align: center; position: absolute; top: 60%; animation: fadein 1.5s ease-out forwards; } /* Анимации */ @keyframes anim { from { transform: translateY(100%); opacity: 0; } to { transform: translateY(25%); opacity: 1; } } @keyframes fadein { from { opacity: 0; } to { opacity: 1; } } @media (max-width: 2000px) { .img img { min-width: 50% !important; } } @media (max-width: 1280px) { .img img { min-width: 70% !important; } .error { font-size: 30rem; } } @media (max-width: 1024px) { .error, .img, .okak, .head-button { animation: none !important; transition: none !important; } .head-button:hover { transform: none !important; background: rgba(255, 255, 255, 0.05) !important; } .img img { min-width: 70% !important; } .error { font-size: 25rem; } } @media (max-width: 768px) { .error { margin-top: 80px; font-size: 10rem; } .img img { min-width: 100% !important; } }