Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adjusted #112

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
257 changes: 65 additions & 192 deletions src/CartItem.css
Original file line number Diff line number Diff line change
@@ -1,243 +1,116 @@
/* CartItem.css */
/* CartItem.css */
.cart-container {
max-width: 600px;
margin: 0 auto;
background-color: #f5f5f5;
padding: 20px;
border-radius: 10px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

h2 {
text-align: center;
font-size: 24px;
font-weight: bold;
color: #333;
margin-bottom: 20px;
}

.cart-item {
display: flex;
border-bottom: 1px solid #ccc;
padding: 10px 0;
background-color: white;
width: 500px;
gap: 30px;
align-items: center;
margin-bottom: 20px;
padding: 10px;
background-color: #fff;
border-radius: 8px;
box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

.cart-item-image {
width: 200px;
height: 200px;
/* object-fit: contain; */
width: 100px;
height: 100px;
object-fit: cover;
margin-right: 20px;
border-radius: 5px;
}

.cart-item-details {
flex-grow: 1;
flex: 1;
}

.cart-item-name {
font-size: 18px;
font-weight: bold;
color: #333;
margin-bottom: 5px;
font-size: 25px;
}

.cart-item-cost {
font-size: 16px;
color: #666;
margin-bottom: 10px;
margin-top: 10px;
}

.cart-item-quantity {
display: flex;
align-items: center;
margin-bottom: 15px;
}

.cart-item-button {
background-color: #f0f0f0;
border: 1px solid lightgrey;
color: #333;
width: 30px;
height: 30px;
font-size: 18px;
cursor: pointer;
padding: 5px 10px;
margin: 0 5px;
font-weight: bold;
color: #333;
background-color: #e0e0e0;
border: none;
border-radius: 5px;
margin: 0 5px;
cursor: pointer;
}

.cart-item-quantity-value {
font-size: 16px;
font-weight: bold;
color: #333;
margin: 0 10px;
}

.cart-item-total {
font-size: 16px;
font-weight: bold;
color: #333;
margin-top: 10px;
}

.cart-item-delete {
background-color: #ff6961;
background-color: #ff5c5c;
color: white;
border: none;
color: #fff;
font-size: 14px;
padding: 8px 16px;
border-radius: 5px;
cursor: pointer;
padding: 10px 15px;
font-size: 14px;
margin-top: 10px;
border-radius: 10px;
}

.cart-item-delete:hover {
background-color: #cc0000;
}
/* .cart-item-button-dec{
background-color: red;
.continue_shopping_btn {
display: flex;
justify-content: center;
margin-top: 20px;
}
.cart-item-button-inc{
background-color: green;
} */
@media (max-width: 768px) {
.cart-item {
flex-direction: column; /* Change flex direction to stack items vertically */
align-items: flex-start; /* Align items to the start of the container */
width: 100%; /* Set width to full width */
}

.cart-item-image {
width: 100%; /* Set image width to full width */
height: auto; /* Allow image height to adjust proportionally */
margin-right: 0; /* Remove margin */
margin-bottom: 10px; /* Add margin bottom for spacing */
}

.cart-item-details {
width: 100%; /* Set details width to full width */
}

.cart-item-quantity {
margin-top: 10px; /* Add margin top for spacing */
}
.get-started-button,
.get-started-button1 {
background-color: #333;
color: white;
padding: 10px 20px;
border-radius: 5px;
border: none;
font-size: 16px;
cursor: pointer;
margin: 0 10px;
}
.cart-item {
display: flex;
border-bottom: 1px solid #ccc;
padding: 10px 0;
background-color: white;
width: 500px;
gap: 30px;
}

.cart-item-image {
width: 200px;
height: 200px;
/* object-fit: contain; */
margin-right: 20px;
}

.cart-item-details {
flex-grow: 1;
}

.cart-item-name {
font-weight: bold;
margin-bottom: 5px;
font-size: 25px;
}

.cart-item-cost {
margin-bottom: 10px;
margin-top: 10px;
}

.cart-item-quantity {
display: flex;
align-items: center;
margin-bottom: 15px;
}

.cart-item-button {
background-color: #f0f0f0;
border: 1px solid lightgrey;
color: #333;
font-size: 18px;
cursor: pointer;
padding: 5px 10px;
margin: 0 5px;
border-radius: 5px;
}

.cart-item-quantity-value {
font-size: 16px;
font-weight: bold;
margin: 0 10px;
}

.cart-item-total {
font-weight: bold;
}

.cart-item-delete {
background-color: #ff6961;
border: none;
color: #fff;
font-size: 14px;
cursor: pointer;
padding: 10px 15px;
margin-top: 10px;
border-radius: 10px;
}

.cart-item-delete:hover {
background-color: #cc0000;
}
/* .cart-item-button-dec{
background-color: red;
}
.cart-item-button-inc{
background-color: green;
} */
@media (max-width: 768px) {
.cart-item {
flex-direction: column; /* Change flex direction to stack items vertically */
align-items: flex-start; /* Align items to the start of the container */
width: 100%; /* Set width to full width */
}

.cart-item-image {
width: 100%; /* Set image width to full width */
height: auto; /* Allow image height to adjust proportionally */
margin-right: 0; /* Remove margin */
margin-bottom: 10px; /* Add margin bottom for spacing */
}

.cart-item-details {
width: 100%; /* Set details width to full width */
}

.cart-item-quantity {
margin-top: 10px; /* Add margin top for spacing */
}
}


.cart-container{
/* text-align: center; */
display: flex;
align-items: center;
flex-direction: column;
justify-content: center;
gap: 20px;
margin-top: 20px;
}
.total_cart_amount{
font-size: 20px;
font-weight: 900;
}
.continue_shopping_btn{
margin-top: -50px;
.get-started-button:hover,
.get-started-button1:hover {
background-color: #555;
}
@media (max-width: 768px) {
.cart-container {
padding: 10px; /* Reduce padding */
}

.total_cart_amount {
font-size: 18px; /* Reduce font size */
}
}

.get-started-button1 {
padding: 15px 75px;
font-size: 23px;
border: none;
border-radius: 5px;
background-color: #4caf50;
color: white;
cursor: pointer;
transition: background-color 0.3s ease;
margin-top: 40px;
}

Loading