Skip to content

Commit

Permalink
responsive show page
Browse files Browse the repository at this point in the history
  • Loading branch information
gauravbalodi123 committed Mar 11, 2024
1 parent 3398e0d commit 48200ed
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions public/css/app.css
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,11 @@ main{
/* background-color:palegoldenrod; */
background-color:white;
border: 1px solid black;

}



.show-btn{
background-color: var(--main-color);
color:white;
Expand Down
2 changes: 1 addition & 1 deletion views/products/index.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
</span>
</h5>
<p class="card-text fw-light">
<%= product.desc%>
<%= product.desc.slice(0,60)%>...View Product
</p>
<% if(product.reviews.length){ %>
<p class="text-muted">
Expand Down
4 changes: 2 additions & 2 deletions views/products/show.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
<div class="row">
<div class="col-lg-6">

<div class="card shadow-sm mx-auto" style="width: 22rem;">
<img src="<%=product.img%>" class="card-img-top" alt="item image">
<div class="card shadow-sm mx-auto" style="width: 30rem; margin-bottom: 100px; margin-top: 30px;">
<img src="<%=product.img%>" class="card-img-top" alt="item image" style="height: 300px;" >
<div class="card-body">
<h5 class="card-title">
<%= product.name %>
Expand Down

0 comments on commit 48200ed

Please sign in to comment.