Skip to content
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
1 change: 1 addition & 0 deletions cbfc03a4970c5843bf12eb79f438ba1208d03450
Submodule cbfc03a4970c5843bf12eb79f438ba1208d03450 added at cbfc03
6 changes: 5 additions & 1 deletion client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,9 @@
"last 1 firefox version",
"last 1 safari version"
]
}
},
"proxy":
"http://localhost:5000"


}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"name":"Local: ItemCard","url":"d:\\trendhora\\client\\src\\components\\Card\\ItemCard\\ItemCard.js","tests":[{"id":1754153493385,"input":"","output":""}],"interactive":false,"memoryLimit":1024,"timeLimit":3000,"srcPath":"d:\\trendhora\\client\\src\\components\\Card\\ItemCard\\ItemCard.js","group":"local","local":true}
120 changes: 53 additions & 67 deletions client/src/components/Card/ItemCard/ItemCard.css
Original file line number Diff line number Diff line change
@@ -1,91 +1,77 @@


.product__card__card {
height: 450px;
width: 270px;
margin: 14px;
border-width: 1px;
box-shadow: 0px 2px 6px -3px;
border-radius: 5px;
.product-card {
width: 100%;
max-width: 300px;
border: 1px solid #e0e0e0;
border-radius: 12px;
overflow: hidden;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
transition: transform 0.3s ease;
background-color: #fff;
margin: 10px auto;
}

.product__card {
height: 100%;
width: 100%;
.product-card:hover {
transform: translateY(-5px);
}

.product__image {
height: 80%;
width: auto;
display: flex;
justify-content: first baseline;
transition: 1s;
.product-card-image {
position: relative;
width: 100%;
height: 250px;
overflow: hidden;
display: flex;
justify-content: center;
align-items: center;
justify-content: center;
}

.product__image > img{
.product-img {
max-width: 100%;
height: 100%;
transition: 1s;
margin: 0px auto;
border-top-left-radius: 5px;
border-top-right-radius: 5px;
max-height: 100%;
object-fit: cover;
}

.product__card__detail {
height: 20%;
position: relative;
.product-card-actions {
position: absolute;
top: 8px;
right: 8px;
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
background-color: #ffffff ;
gap: 5px;
z-index: 10;
}

.product__name {
height: 30%;
width: 100%;
display: flex;
justify-content: center;
align-items: center;
font-size: 1rem;
font-weight: bold;
.product-action-btn {
background-color: white;
border-radius: 50%;
padding: 6px;
box-shadow: 0 2px 5px rgba(0,0,0,0.2);
transition: background-color 0.2s ease;
}

.product__name a{
color: black !important;
text-decoration: none;
.product-action-btn:hover {
background-color: #f0f0f0;
}

.product__description {
height: 20%;
width: 100%;
display: flex;
justify-content: center;
align-items: center;
.product-card-details {
padding: 12px;
text-align: left;
}

.product-card-name {
font-size: 1rem;
text-align: center;
font-weight: 600;
color: #333;
text-decoration: none;
}

.product__price {
height: 50%;
width: 100%;
display: flex;
justify-content: center;
align-items: center;
font-size: 1.1rem;
font-weight: bold;
.product-card-description {
font-size: 0.85rem;
color: #777;
margin: 5px 0;
}

.product__card__action {
width: 100%;
height: 45px;
position: absolute;
bottom: 0%;
display: flex;
justify-content: space-between;
flex-direction: row;
padding: 0px 5px;
}
.product-card-price {
font-size: 1rem;
font-weight: bold;
color: #111;
}
Loading