You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
107 lines
1.6 KiB
107 lines
1.6 KiB
6 months ago
|
body {
|
||
|
font-family: Arial, sans-serif;
|
||
|
margin: 0;
|
||
|
padding: 0;
|
||
|
background-color: #f4f4f9;
|
||
|
}
|
||
|
|
||
|
header {
|
||
|
background-color: #28a745;
|
||
|
color: white;
|
||
|
padding: 20px;
|
||
|
text-align: center;
|
||
|
}
|
||
|
|
||
|
h1 {
|
||
|
margin: 0;
|
||
|
font-size: 2em;
|
||
|
}
|
||
|
|
||
|
main {
|
||
|
display: flex;
|
||
|
justify-content: space-between;
|
||
|
padding: 20px;
|
||
|
}
|
||
|
|
||
|
#product-list {
|
||
|
display: flex;
|
||
|
flex-wrap: wrap;
|
||
|
justify-content: space-between;
|
||
|
width: 70%;
|
||
|
}
|
||
|
|
||
|
.product-card {
|
||
|
background-color: white;
|
||
|
border: 1px solid #ddd;
|
||
|
padding: 20px;
|
||
|
margin: 10px;
|
||
|
width: 200px;
|
||
|
text-align: center;
|
||
|
border-radius: 8px;
|
||
|
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
|
||
|
}
|
||
|
|
||
|
.product-card img {
|
||
|
max-width: 100%;
|
||
|
height: auto;
|
||
|
border-radius: 8px;
|
||
|
}
|
||
|
|
||
|
.product-card h3 {
|
||
|
margin: 15px 0 10px;
|
||
|
font-size: 1.2em;
|
||
|
}
|
||
|
|
||
|
.product-card p {
|
||
|
font-size: 1em;
|
||
|
color: #555;
|
||
|
}
|
||
|
|
||
|
.product-card .price {
|
||
|
font-size: 1.2em;
|
||
|
color: #28a745;
|
||
|
}
|
||
|
|
||
|
#cart {
|
||
|
width: 25%;
|
||
|
padding: 20px;
|
||
|
background-color: white;
|
||
|
border: 1px solid #ddd;
|
||
|
border-radius: 8px;
|
||
|
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
|
||
|
}
|
||
|
|
||
|
#cart h3 {
|
||
|
margin: 0 0 10px;
|
||
|
}
|
||
|
|
||
|
#cart ul {
|
||
|
list-style-type: none;
|
||
|
padding: 0;
|
||
|
}
|
||
|
|
||
|
#cart ul li {
|
||
|
margin: 5px 0;
|
||
|
display: flex;
|
||
|
justify-content: space-between;
|
||
|
}
|
||
|
|
||
|
#cart button {
|
||
|
background-color: #28a745;
|
||
|
color: white;
|
||
|
border: none;
|
||
|
padding: 10px;
|
||
|
border-radius: 5px;
|
||
|
cursor: pointer;
|
||
|
}
|
||
|
|
||
|
footer {
|
||
|
background-color: #222;
|
||
|
color: white;
|
||
|
padding: 10px;
|
||
|
text-align: center;
|
||
|
position: fixed;
|
||
|
bottom: 0;
|
||
|
width: 100%;
|
||
|
}
|