/
TON618OFF
/
FinalPWHTML
Обзор
Документация
Войти
/
TON618OFF
/
FinalPWHTML
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/App.css
439 строк
6 KB
TON618OFF
не ну это ваще
23 июн 2024, 00:30
23 июн 2024, 00:30
e27ae20
Код
Авторство
О чём код?
.header { display: flex; justify-content: space-between; align-items: center; padding: 10px 20px; background-color: #fff; border-bottom: 1px solid #ccc; } .logo { display: flex; align-items: center; padding: 0; } .logo-text { font-size: 24px; font-weight: bold; color: #333; } .nav { display: flex; align-items: center; } .menu-button { margin-right: 20px; background: none; border: none; font-size: 18px; cursor: pointer; } .search input { padding: 5px 10px; margin-left: 50px; font-size: 16px; border: 1px solid #ccc; border-radius: 4px; } .user-actions { display: flex; align-items: center; } .icon-button { background: none; border: none; font-size: 24px; margin-left: 10px; cursor: pointer; } .App { text-align: center; font-family: Arial, sans-serif; } .categories { display: flex; justify-content: space-around; flex-wrap: wrap; margin-top: 20px; } .category-card-link { text-decoration: none; color: black !important; } .category-card { position: relative; width: 400px; height: 300px; margin: 10px; overflow: hidden; border-radius: 10px; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); transition: transform 0.3s ease; } .category-card:hover { transform: translateY(-5px); } .category-image { width: 100%; height: 60%; object-fit: cover; } .category-info { display: flex; justify-content: space-between; align-items: center; padding: 10px; text-decoration: none; } .arrow { font-size: 20px; } h1 { display: flex; padding-left: 50px; padding-top: 50px; } .info-card { background-color: #f6f6f6; padding: 40px; margin: 40px auto; width: 80%; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); border-radius: 10px; } .info-content { text-align: left; display: flex; flex-direction: column; align-items: center; } .logo { font-size: 48px; color: #333; } .info-details { display: flex; justify-content: space-between; width: 100%; margin-top: 20px; } .info-item { width: 30%; text-align: center; } .info-item h3 { margin-bottom: 10px; } .info-item p { margin: 0; } .info-button { margin-top: 20px; padding: 10px 20px; background-color: #333; color: #fff; border: none; border-radius: 5px; cursor: pointer; font-size: 16px; } .info-button:hover { background-color: #555; } footer { background-color: #f8f9fa; padding: 20px; bottom: 0; } .footer-content { display: flex; justify-content: space-between; flex-wrap: wrap; } .footer-logo { flex: 1 1 100%; text-align: center; margin-bottom: 20px; } .footer-logo img { max-width: 150px; } .footer-column { flex: 1 1 20%; margin-bottom: 20px; } .footer-column h4 { margin-bottom: 10px; } .footer-column ul { list-style: none; padding: 0; } .footer-column ul li { margin-bottom: 5px; } .footer-column ul li a { text-decoration: none; color: #000; } .footer-column ul li a:hover { text-decoration: underline; } .footer-contact { text-align: center; margin-top: 20px; } .footer-contact p { margin: 5px 0; } .footer-social { margin-top: 10px; } .footer-social a { margin: 0 10px; } .footer-social img { width: 24px; } .catalog { width: 100%; margin: 0 auto; padding: 20px; background-color: #f9f9f9; border-radius: 8px; box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); } .catalog h2 { text-align: center; margin-bottom: 20px; margin-top: 20px; } .product-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; padding: 20px; } .product-card { background-color: #fff; border: 1px solid #e0e0e0; border-radius: 10px; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); overflow: hidden; text-align: center; transition: transform 0.2s, box-shadow 0.2s; width: 300px; } .product-card:hover { transform: translateY(-5px); box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); } .product-image { border-bottom: 1px solid #e0e0e0; width: 100%; } .product-card h3 { font-size: 1.5em; margin: 15px 0; } .product-card p { font-size: 1em; margin: 10px 20px; } .product-desc { font-size: 0.9em; color: #777; } .product-buy-btn { background-color: #007bff; border: none; border-radius: 5px; color: white; cursor: pointer; font-size: 1em; margin: 20px 0; padding: 10px 20px; transition: background-color 0.2s; } button { background-color: #007bff; border: none; border-radius: 5px; color: white; cursor: pointer; font-size: 1em; margin: 20px 0; padding: 10px 20px; margin-bottom: 15px; transition: background-color 0.2s; } .product-buy-btn:hover { background-color: #0056b3; } a { color: black; text-decoration: none; } .favorites { width: 80%; margin: 0 auto; padding: 20px; background-color: #f9f9f9; border-radius: 8px; box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); } .favorites h2 { text-align: center; margin-bottom: 20px; } .favorite-list { display: flex; flex-wrap: wrap; gap: 20px; } .favorite-card { flex: 1 1 calc(33.333% - 20px); box-sizing: border-box; padding: 20px; background-color: #fff; border-radius: 8px; box-shadow: 0 0 5px rgba(0, 0, 0, 0.1); text-align: center; } .favorite-image { width: 100%; height: auto; object-fit: cover; border-radius: 8px; margin-bottom: 10px; } .favorite-card h3 { margin: 0 0 10px; } .favorite-card p { margin: 0; } .sort-container { display: flex; align-items: center; margin: 20px 0; padding-left: 20px; } .sort-container label { font-size: 1.1em; margin-right: 10px; } .sort-container select { background-color: #fff; border: 1px solid #e0e0e0; border-radius: 5px; font-size: 1em; padding: 5px 10px; transition: border-color 0.2s; } .sort-container select:focus { border-color: #007bff; outline: none; } @media (max-width: 768px) { .sort-container { flex-direction: column; align-items: flex-start; } .sort-container label { margin-bottom: 10px; } } .none-favorites { padding: 100px; } .CartTitle { display: flex; padding-left: 50px; padding-top: 50px; font-size: 42px; } .if-cart-none { padding: 50px; } .order-button { text-decoration: none; } .order-button .btn { margin-top: 10px; }