/
Arsenii
/
html
Обзор
Документация
Войти
/
Arsenii
/
html
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
styles.css
251 строка
4 KB
Arsenii
First html code
29 дек 2024, 12:27
29 дек 2024, 12:27
5c1c06d
Код
Авторство
О чём код?
body { font-family: Arial, sans-serif; margin: 0; padding: 0; background-color: #f5f5f5; } header { background-color: #2c3e50; color: white; padding: 20px 0; text-align: center; } header nav ul { list-style-type: none; padding: 0; } header nav ul li { display: inline; margin: 0 15px; } header nav ul li a { color: white; text-decoration: none; font-size: 18px; } .hero { background: url('images/hero.jpg') no-repeat center center/cover; height: 400px; color: rgb(0, 0, 0); display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; } .hero h2 { font-size: 48px; margin: 0; } .hero p { font-size: 24px; } section { padding: 60px 20px; text-align: center; } section h2 { font-size: 36px; margin-bottom: 20px; } section p { font-size: 18px; margin-bottom: 20px; } .menu-item { display: inline-block; width: 30%; margin: 20px; text-align: center; } .menu-item img { width: 100%; border-radius: 10px; transition: transform 0.3s; } .menu-item img:hover { transform: scale(1.1); } .menu-item button { background-color: #2c3e50; color: white; border: none; padding: 10px 20px; cursor: pointer; transition: background-color 0.3s; border-radius: 100px 100px 100px 100px } .menu-item button:hover { background-color: #1a252f; } footer { background-color: #2c3e50; color: white; padding: 10px 0; text-align: center; } #cart-items { list-style-type: none; padding: 0; } #cart-items li { font-size: 18px; margin: 5px 0; } #checkout { background-color: #2c3e50; color: white; border: none; padding: 10px 20px; cursor: pointer; transition: background-color 0.3s; } #checkout:hover { background-color: #1a252f; } #cart-window { position: fixed; top: 0; right: -400px; width: 300px; height: 100%; background-color: white; box-shadow: -2px 0 5px rgba(0, 0, 0, 0.5); padding: 20px; box-sizing: border-box; transition: right 0.3s; } #cart-window.open { right: 0; } @media (max-width: 768px) { .menu-item { width: 80%; } #cart-window { width: 100%; } } #reviews { padding: 60px 20px; text-align: center; background-color: #fff8e1; } .review { background-color: #f9f9f9; padding: 20px; margin: 20px auto; width: 60%; border-radius: 10px; box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); } #review-form { margin-top: 40px; } #review-form textarea, #review-form input { width: 80%; padding: 10px; margin: 10px 0; border-radius: 5px; border: 1px solid #ccc; } #review-form button { background-color: #2c3e50; color: white; border: none; padding: 10px 20px; cursor: pointer; transition: background-color 0.3s; } #review-form button:hover { background-color: #1a252f; } #coffee-month { padding: 60px 20px; text-align: center; background-color: #ffe0b2; } .coffee-month-item { display: inline-block; width: 50%; text-align: center; margin: 20px auto; } .coffee-month-item img { width: 100%; border-radius: 10px; } #location { padding: 60px 20px; text-align: center; } #map { width: 80%; height: 400px; margin: 0 auto; border: 1px solid #ccc; } #loyalty { padding: 60px 20px; text-align: center; background-color: #dcedc8; } #loyalty button { background-color: #2c3e50; color: white; border: none; padding: 10px 20px; cursor: pointer; transition: background-color 0.3s; } #loyalty button:hover { background-color: #1a252f; } #social-media { padding: 60px 20px; text-align: center; } .social-icons a img { width: 50px; margin: 0 10px; transition: transform 0.3s; } .social-icons a img:hover { transform: scale(1.1); }