From 48200ed622bfa648a36a24e890126af5110623f7 Mon Sep 17 00:00:00 2001 From: gauravbalodi123 Date: Mon, 11 Mar 2024 17:08:20 +0530 Subject: [PATCH] responsive show page --- public/css/app.css | 3 +++ views/products/index.ejs | 2 +- views/products/show.ejs | 4 ++-- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/public/css/app.css b/public/css/app.css index 93b6f81..73ccb9d 100644 --- a/public/css/app.css +++ b/public/css/app.css @@ -23,8 +23,11 @@ main{ /* background-color:palegoldenrod; */ background-color:white; border: 1px solid black; + } + + .show-btn{ background-color: var(--main-color); color:white; diff --git a/views/products/index.ejs b/views/products/index.ejs index 17aa63e..1ab5766 100644 --- a/views/products/index.ejs +++ b/views/products/index.ejs @@ -66,7 +66,7 @@

- <%= product.desc%> + <%= product.desc.slice(0,60)%>...View Product

<% if(product.reviews.length){ %>

diff --git a/views/products/show.ejs b/views/products/show.ejs index 2e8afbe..a6ed781 100644 --- a/views/products/show.ejs +++ b/views/products/show.ejs @@ -7,8 +7,8 @@

-
- item image +
+ item image
<%= product.name %>