Untitled
unknown
plain_text
2 years ago
2.3 kB
6
Indexable
body {
font-family: 'Arial', sans-serif;
margin: 0;
padding: 0;
background-color: #f4f4f4;
color: #333;
}
.navbar {
background-color: #007bff;
color: white;
padding: 1rem;
display: flex;
justify-content: space-between;
align-items: center;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.navbar button {
background: none;
border: none;
color: white;
cursor: pointer;
font-size: 1rem;
transition: color 0.3s ease;
}
.navbar button:hover {
color: #ffdd57;
}
.container {
padding: 2rem;
max-width: 1200px;
margin: auto;
}
.product-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 2rem;
}
.product-card {
background-color: white;
border: 1px solid #ddd;
border-radius: 8px;
padding: 1rem;
text-align: center;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.product-card:hover {
transform: translateY(-5px);
box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}
.product-card img {
max-width: 100%;
border-radius: 4px;
}
.product-card h2 {
font-size: 1.25rem;
margin: 1rem 0;
}
.product-card p {
color: #666;
font-size: 0.9rem;
}
.product-card button {
background-color: #007bff;
border: none;
color: white;
padding: 0.75rem 1.5rem;
font-size: 1rem;
cursor: pointer;
border-radius: 4px;
transition: background-color 0.3s ease;
}
.product-card button:hover {
background-color: #0056b3;
}
.cart {
border: 1px solid #ddd;
padding: 1rem;
background-color: white;
border-radius: 8px;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.cart h2 {
font-size: 1.5rem;
margin-bottom: 1rem;
}
.pagination {
display: flex;
justify-content: center;
margin: 2rem 0;
}
.pagination button {
background-color: #007bff;
border: none;
color: white;
padding: 0.75rem 1.5rem;
font-size: 1rem;
cursor: pointer;
border-radius: 4px;
transition: background-color 0.3s ease;
margin: 0 0.5rem;
}
.pagination button:hover {
background-color: #0056b3;
}
.pagination button:disabled {
background-color: #ddd;
cursor: not-allowed;
}
Editor is loading...
Leave a Comment