/
oks14
/
cdg_practice
Обзор
Документация
Войти
/
oks14
/
cdg_practice
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
Lab4
style.css
122 строки
2 KB
Андрей Таратайцев
upload css style for website
26 ноя 2025, 17:58
26 ноя 2025, 17:58
2b69cc3
Код
Авторство
О чём код?
* { margin: 0; padding: 0; box-sizing: border-box; font-family: Arial, sans-serif; } body { background: #f5f5f5; color: #222; } .container { width: 90%; max-width: 1200px; margin: auto; } .header { background: white; padding: 20px 0; box-shadow: 0 2px 10px rgba(0,0,0,0.1); } .header-content { display: flex; justify-content: space-between; align-items: center; } .nav a { margin-left: 20px; text-decoration: none; color: #333; font-weight: bold; } .hero { padding: 80px 0; display: flex; align-items: center; background: #ffffff; } .hero-content { display: flex; justify-content: space-between; align-items: center; gap: 40px; } .hero-photo { width: 300px; border-radius: 20px; box-shadow: 0 5px 20px rgba(0,0,0,0.2); } .btn { display: inline-block; margin-top: 20px; background: #007bff; color: white; padding: 12px 24px; border-radius: 8px; text-decoration: none; transition: 0.3s; } .btn:hover { background: #005ad1; } section { padding: 60px 0; } .skills-grid, .projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; } .skill-card, .project-card { padding: 30px; background: white; border-radius: 12px; text-align: center; box-shadow: 0 3px 12px rgba(0,0,0,0.1); } .footer { background: #111; color: white; padding: 40px 0; } .contact-form { display: flex; flex-direction: column; gap: 15px; max-width: 500px; } .contact-form input, .contact-form textarea { padding: 12px; border-radius: 8px; border: none; } @media (max-width: 768px) { .hero-content { flex-direction: column; text-align: center; } .hero-photo { width: 200px; } }