/
YamangulovAN
/
python_django
Обзор
Документация
Войти
/
YamangulovAN
/
python_django
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
HTML_CSS/myproject/mainapp/static/styles.css
372 строки
6 KB
Andrei Iamangulov
homework module 7 работа по замечаниям преподавателя
05 ноя 2025, 23:00
05 ноя 2025, 23:00
4a8d9cc
Код
Авторство
О чём код?
* { font-family: 'Roboto', sans-serif; box-sizing: border-box; } body { margin: 0; background: #fafafa; } header { display: flex; align-items: center; justify-content: space-between; padding: 32px 48px 0 48px; } .menu { display: flex; } .menu a { color: #111; text-decoration: none; font-size: 1rem; margin-right: 32px; transition: text-decoration 0.2s; } .menu a:last-child { margin-right: 0; } .menu a:hover { text-decoration: underline; } .header-phone { font-size: 1rem; } .header-btn { padding: 8px 16px; background: #fff; color: #111; border: 1px solid #ccc; border-radius: 6px; cursor: pointer; margin-left: 24px; } .first-block { display: flex; align-items: center; height: 520px; position: relative; margin-bottom: 48px; } .first-block-info { margin-left: 80px; } .first-block h1 { font-size: 2.7em; font-weight: bold; margin: 0 0 18px 0; } .first-block span { font-size: 1.1em; color: #222; margin-bottom: 10px; display: block; } .first-block .more-btn { margin-top: 20px; background: #423ef2; color: #fff; border: none; border-radius: 6px; padding: 12px 28px; cursor: pointer; font-size: 1.05em; } .first-block-img { position: absolute; right: 0; top: 32px; height: 470px; } /* --- Блок "Что я делаю" --- */ .services-block { margin: 48px auto 0 auto; max-width: 1200px; } .services-title { font-size: 1.7em; font-weight: 700; margin-bottom: 36px; } .services-list { display: flex; justify-content: space-between; gap: 40px; margin-bottom: 28px; } .service-card { width: 230px; text-align: center; } .service-card img { width: 120px; height: 120px; margin-bottom: 20px; } .service-card p { font-size: 1.01em; } .service-btn { margin-top: 24px; padding: 12px 30px; background: #fff; color: #222; border: 1px solid #ccc; border-radius: 6px; cursor: pointer; font-size: 1em; } /* --- Блок "Примеры работ" --- */ .portfolio-block { margin: 52px auto 0 auto; max-width: 1200px; } .portfolio-title { font-size: 1.7em; font-weight: 700; margin-bottom: 36px; } .portfolio-list { display: flex; justify-content: space-between; gap: 32px; margin-bottom: 22px; } .portfolio-card { background: #fff; border-radius: 12px; box-shadow: 0 6px 16px #ccd5fc33; width: 340px; height: 220px; padding: 16px; display: flex; flex-direction: column; align-items: center; } .portfolio-card img { width: 94%; height: 130px; object-fit: cover; border-radius: 8px; margin-bottom: 16px; } .portfolio-card p { font-size: 1em; color: #222; } .portfolio-btn { margin-top: 16px; padding: 9px 26px; background: #fff; color: #222; border: 1px solid #ccc; border-radius: 6px; cursor: pointer; font-size: 1em; } /* --- Синий секционный блок --- */ .blue-section { background: #423ef2; color: #fff; padding: 56px 0; display: flex; align-items: flex-start; justify-content: center; } .blue-content { width: 50%; } .blue-content h2 { font-size: 2.2em; width: 50%; margin-bottom: 18px; } .blue-content p { font-size: 0.94em; width: 50%; } /* --- Футер --- */ footer { background: #fafafa; border-top: 1px solid #e7e7e7; margin-top: 0; padding: 48px 0 32px 0; font-size: 0.97em; } .footer-container { display: flex; align-items: flex-start; justify-content: center; max-width: 1200px; margin: 0 auto; } .footer-menu { display: flex; flex-direction: column; margin-right: 110px; } .footer-menu a { color: #111; text-decoration: none; margin-bottom: 20px; transition: text-decoration 0.2s; } .footer-menu a:last-child { margin-bottom: 0; } .footer-menu a:hover { text-decoration: underline; } .footer-contacts { margin-right: 110px; } .footer-socials { display: flex; flex-direction: row; gap: 20px; } .footer-socials img { width: 32px; height: 32px; } .footer-box { display: flex; gap: 70px; } /* --- Всплывающее окно --- */ .popup-container { display: none; position: fixed; inset: 0; background: rgba(8, 10, 24, 0.23); z-index: 1000; align-items: center; justify-content: center; } .popup-window { background: #fff; padding: 38px 32px; border-radius: 20px; min-width: 330px; box-shadow: 0 6px 22px #334be533; display: flex; flex-direction: column; gap: 16px; } .popup-window input { padding: 11px 12px; font-size: 1em; border: 1px solid #ccc; border-radius: 6px; margin-bottom: 14px; } .popup-window button { padding: 10px 22px; background: #423ef2; color: #fff; border: none; border-radius: 8px; cursor: pointer; font-size: 1.08em; } /* Добавить контейнер и флекс-грид для корректного футера */ .container { max-width: 1200px; margin: 0 auto; padding: 0 24px; } .footer-wrapper { display: flex; align-items: flex-start; justify-content: space-between; } .footer-block { display: flex; flex-direction: column; } .footer-socials { margin-top: 30px; display: flex; justify-content: flex-end; gap: 22px; } .footer-btn-socials-col { display: flex; flex-direction: column; align-items: flex-end; min-width: 200px; } .footer-btn-socials-col .header-btn { margin: 0 0 18px 0; } @media (max-width: 900px) { .container { max-width: 100%; padding: 0 8px; } .footer-wrapper { flex-direction: column; gap: 32px; } .footer-btn-socials-col { align-items: flex-start; } .footer-socials { justify-content: flex-start; } }