This commit is contained in:
User
2025-01-04 14:04:53 +03:00
parent cdca2437b9
commit 4393a97a95
41 changed files with 23557 additions and 2 deletions

99
styles.css Normal file
View File

@@ -0,0 +1,99 @@
/* Общие стили для страницы */
body {
font-family: Arial, sans-serif;
background-color: #f4f4f9;
margin: 0;
padding: 0;
}
#app {
text-align: center;
padding: 20px;
}
h1 {
color: #333;
font-size: 24px;
}
/* Стили для списка товаров */
.product-list {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 20px;
padding: 20px;
}
/* Стили для каждой карточки товара */
.product-card {
background-color: #fff;
border: 1px solid #ddd;
margin: 10px;
padding: 20px;
border-radius: 8px;
width: 250px;
text-align: center;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
transition: transform 0.3s ease, box-shadow 0.3s ease;
}
/* Стили для заголовка в карточке товара */
.product-card h2 {
font-size: 18px;
color: #333;
}
/* Стили для описания товара */
.product-card p {
color: #777;
font-size: 14px;
}
/* Эффект при наведении на карточку товара */
.product-card:hover {
transform: translateY(-5px);
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}
/* Стили для кнопок */
button {
padding: 10px 20px;
background-color: #007bff;
color: white;
font-size: 16px;
border: none;
border-radius: 5px;
cursor: pointer;
transition: all 0.3s ease;
margin-top: 15px;
}
/* Анимация при наведении на кнопку */
button:hover {
background-color: #0056b3;
transform: scale(1.1);
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
/* Анимация для кнопки, когда она активна (клик) */
button:active {
transform: scale(0.98);
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}
/* Анимация появления кнопки */
button {
opacity: 0;
animation: fadeIn 0.5s forwards;
}
/* Ключевые кадры для анимации появления кнопки */
@keyframes fadeIn {
from {
opacity: 0;
}
to {
opacity: 1;
}
}