/
Jull02
/
project_site_yp
Обзор
Документация
Войти
/
Jull02
/
project_site_yp
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
src/index.css
312 строк
5 KB
codesforgee
Initial commit: added project structure and basic files
27 май 2026, 22:19
27 май 2026, 22:19
241cf96
Код
Авторство
О чём код?
/* Общие стили */ * { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: 'Montserrat', sans-serif; background-color: #fef7e8; color: #3e2a1f; } h1, h2, h3, .logo { font-family: 'Playfair Display', serif; } /* Шапка */ .header { background-color: #fff; box-shadow: 0 2px 10px rgba(0,0,0,0.1); position: fixed; top: 0; width: 100%; z-index: 1000; } .header-container { max-width: 1200px; margin: 0 auto; padding: 15px 20px; display: flex; justify-content: space-between; align-items: center; } .logo { font-size: 24px; font-weight: bold; color: #d45a2b; text-decoration: none; } .nav-menu { display: flex; gap: 30px; } .nav-menu a { text-decoration: none; color: #3e2a1f; transition: color 0.3s; } .nav-menu a:hover { color: #d45a2b; } .cart-icon { position: relative; cursor: pointer; } .cart-count { position: absolute; top: -8px; right: -12px; background-color: #d45a2b; color: white; border-radius: 50%; padding: 2px 6px; font-size: 12px; } /* Герой-блок (БЕЗ КАРТИНОК) */ .hero { height: 80vh; /* Уютный градиент в цвет бренда */ background: linear-gradient(135deg, #3e2a1f 0%, #d45a2b 100%); display: flex; align-items: center; justify-content: center; text-align: center; color: white; margin-top: 70px; } .hero-content h1 { font-size: 48px; margin-bottom: 20px; } .hero-content p { font-size: 18px; margin-bottom: 30px; } .btn { display: inline-block; padding: 12px 30px; border-radius: 30px; text-decoration: none; transition: transform 0.3s, box-shadow 0.3s; } .btn-primary { background-color: #d45a2b; color: white; } .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(212,90,43,0.3); } .btn-secondary { background-color: transparent; border: 2px solid white; color: white; margin-left: 15px; } /* Карточки товаров */ .products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 30px; padding: 40px 20px; max-width: 1200px; margin: 0 auto; } .product-card { background: white; border-radius: 15px; overflow: hidden; box-shadow: 0 5px 15px rgba(0,0,0,0.1); transition: transform 0.3s; } .product-card:hover { transform: translateY(-5px); } .product-card img { width: 100%; height: 200px; object-fit: cover; transition: transform 0.3s; } .product-card:hover img { transform: scale(1.05); } .product-info { padding: 15px; } .product-title { font-size: 18px; margin-bottom: 10px; } .product-price { color: #d45a2b; font-weight: bold; font-size: 20px; margin-bottom: 15px; } .add-to-cart { background-color: #d45a2b; color: white; border: none; padding: 10px 15px; border-radius: 25px; cursor: pointer; width: 100%; transition: background-color 0.3s; } .add-to-cart:hover { background-color: #b3471f; } /* Фильтры */ .filters { max-width: 1200px; margin: 20px auto 0; padding: 20px; display: flex; flex-wrap: wrap; gap: 15px; background: white; border-radius: 10px; } .filter-group { display: flex; flex-direction: column; gap: 5px; } .filter-group label { font-size: 12px; color: #666; } .filter-group select, .filter-group input { padding: 8px 12px; border: 1px solid #ddd; border-radius: 8px; } /* Корзина */ .cart-container { max-width: 1200px; margin: 100px auto 50px; padding: 20px; display: grid; grid-template-columns: 2fr 1fr; gap: 30px; } .cart-table { width: 100%; border-collapse: collapse; background: white; border-radius: 15px; overflow: hidden; } .cart-table th, .cart-table td { padding: 15px; text-align: left; border-bottom: 1px solid #eee; } .cart-summary { background: white; padding: 20px; border-radius: 15px; height: fit-content; } .cart-summary h3 { margin-bottom: 20px; } .summary-row { display: flex; justify-content: space-between; margin-bottom: 15px; } .summary-total { font-weight: bold; font-size: 20px; border-top: 1px solid #eee; padding-top: 15px; margin-top: 15px; } /* Футер */ .footer { background-color: #3e2a1f; color: white; padding: 40px 20px 20px; margin-top: 50px; } .footer-container { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; } .footer-column h4 { margin-bottom: 15px; } .footer-column a { color: #ccc; text-decoration: none; display: block; margin-bottom: 10px; } .copyright { text-align: center; padding-top: 30px; margin-top: 30px; border-top: 1px solid #5e3e2f; } /* Адаптивность */ @media (max-width: 768px) { .cart-container { grid-template-columns: 1fr; } .footer-container { grid-template-columns: repeat(2, 1fr); } .hero-content h1 { font-size: 32px; } }