/
oks14
/
cdg_practice
Обзор
Документация
Войти
/
oks14
/
cdg_practice
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
Lab4
index.html
186 строк
4 KB
Андрей Таратайцев
upload css style for website
26 ноя 2025, 17:58
26 ноя 2025, 17:58
2b69cc3
Код
Авторство
О чём код?
<!DOCTYPE html> <html lang="ru"> <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <title>Персональный сайт</title> <link rel="stylesheet" href="styles.css"> <style> * { 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; } } </style> </head> <body> <header class="header"> <div class="container header-content"> <h1 class="logo">Таратайцев Андрей</h1> <nav class="nav"> <a href="#about">О себе</a> <a href="#skills">Увлечения</a> <a href="#contact">Контакты</a> </nav> </div> </header> <section class="hero"> <div class="container hero-content"> <div> <h2>Привет!</h2> <p>Создаю современные адаптивные сайты и веб‑интерфейсы.</p> <a class="btn" href="#contact">Связаться со мной</a> </div> <img src="img/profile.jpg" alt="Фото" class="hero-photo" /> </div> </section> <section id="about" class="about container"> <h2>О себе</h2> <p> Таратйцев Андрей — создаю сайты и веб-приложения Люблю превращать макеты в работающие и удобные интерфейсы. Использую современные технологии чтобы сайты хорошо выглядели на всех устройствах. </p> </section> <section id="skills" class="skills container"> <h2>Увлечения</h2> <div class="skills-grid"> <div class="skill-card">Спорт</div> <div class="skill-card">Программирование</div> <div class="skill-card">Рисование</div> </div> </section> <footer id="contact" class="footer"> <div class="container"> <h2>Связаться со мной</h2> <form class="contact-form"> <input type="text" placeholder="Имя" /> <input type="email" placeholder="Email" /> <textarea placeholder="Сообщение"></textarea> <button class="btn" type="submit">Отправить</button> </form> </div> </footer> </body> </html>