/
magarich
/
web
Обзор
Документация
Войти
/
magarich
/
web
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
html/lab5/task1/style.css
240 строк
4 KB
Юра Магарьян
Final submission: Lab2 and Lab3 by Magaryan Yury PIZ2402
17 апр 2026, 23:12
17 апр 2026, 23:12
0827836
Код
Авторство
О чём код?
/* style.css */ * { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; } body { background: #f0f2f5; min-height: 100vh; display: flex; justify-content: center; align-items: center; padding: 20px; } .container { max-width: 760px; width: 100%; background: #fff; border-radius: 20px; box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08); padding: 52px 48px 44px; text-align: center; position: relative; overflow: hidden; } .container::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: linear-gradient(90deg, #6c63ff, #48bfe3); } h1 { color: #1a1a2e; margin-bottom: 16px; font-size: 2.2rem; font-weight: 700; letter-spacing: -0.5px; } p { color: #6b7280; line-height: 1.7; margin-bottom: 16px; font-size: 1rem; max-width: 560px; margin-left: auto; margin-right: auto; } .subscribe-btn { background: #6c63ff; color: white; border: none; padding: 13px 32px; border-radius: 10px; font-size: 1rem; font-weight: 600; cursor: pointer; transition: background 0.2s ease, transform 0.2s ease; margin-top: 24px; } .subscribe-btn:hover { background: #5a52d5; transform: translateY(-2px); } /* Модальное окно */ .modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(15, 15, 30, 0.45); backdrop-filter: blur(3px); z-index: 1000; justify-content: center; align-items: center; } .modal-content { background: #fff; border-radius: 20px; padding: 36px 32px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18); position: relative; overflow-y: auto; display: flex; flex-direction: column; justify-content: center; animation: slideUp 0.35s cubic-bezier(0.34, 1.56, 0.64, 1); } @keyframes slideUp { from { transform: translateY(24px); opacity: 0; } to { transform: translateY(0); opacity: 1; } } .modal-content h3 { color: #1a1a2e; margin-bottom: 24px; font-size: 1.5rem; font-weight: 700; text-align: center; } .input-group { margin-bottom: 8px; } input[type="email"] { width: 100%; padding: 13px 16px; border: 1.5px solid #d1d5db; border-radius: 10px; font-size: 1rem; transition: border-color 0.2s; outline: none; color: #1a1a2e; background: #fafafa; } input[type="email"]::placeholder { color: #9ca3af; } input[type="email"]:focus { border-color: #6c63ff; background: #fff; } input[type="email"].error { border-color: #ef4444 !important; background: #fff; } .error-message { color: #ef4444; font-size: 0.85rem; margin-top: 6px; text-align: left; display: none; } .button-group { display: flex; gap: 12px; margin-top: 24px; } .btn { padding: 12px 20px; border: none; border-radius: 10px; font-size: 0.95rem; font-weight: 600; cursor: pointer; transition: background 0.2s ease, transform 0.2s ease; } .btn-subscribe { background: #6c63ff; color: white; flex: 2; } .btn-subscribe:hover { background: #5a52d5; transform: translateY(-1px); } .btn-close { background: #f3f4f6; color: #374151; flex: 1; } .btn-close:hover { background: #e5e7eb; transform: translateY(-1px); } #subscription-result { width: 100%; margin-top: 28px; font-size: 0.95rem; font-weight: 500; display: none; } .result-success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; padding: 14px 18px; border-radius: 10px; } .result-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; padding: 14px 18px; border-radius: 10px; } .success-message { text-align: center; color: #166534; font-size: 1.05rem; line-height: 1.65; padding: 24px 20px; background: #f0fdf4; border-radius: 12px; border: 1px solid #bbf7d0; } @media (max-width: 768px) { .container { padding: 36px 24px 32px; } h1 { font-size: 1.8rem; } .button-group { flex-direction: column; } }