diff --git a/public/css/styles.css b/public/css/styles.css index 0b62d7a..4828ece 100644 --- a/public/css/styles.css +++ b/public/css/styles.css @@ -263,7 +263,7 @@ footer { margin-left: 15px; margin-bottom: 40px !important; padding: 25px !important; - border-color:rgb(255, 87, 34)!important; + /* border-color:rgb(255, 87, 34)!important; */ } .card-img-overlay{ opacity: 0; diff --git a/views/show.ejs b/views/show.ejs index eaccb03..3923f37 100644 --- a/views/show.ejs +++ b/views/show.ejs @@ -38,52 +38,72 @@ margin-bottom: -0.3rem; } /* reviewshow css */ -.review-card h4{ +.heading h4{ font-size: 1rem; margin-left: -0.5rem !important; font-weight: 600 !important; } -.review-card h4 img{ - height: 1.5rem; +.heading{ + display: flex; + justify-content: space-between; +} +.card-title img{ + height: 2rem; margin-right: 0.3rem; } -.review-card .trash{ - cursor: pointer; + +.card-text i{ + color: #ff6507; + font-size: 1.23rem; +} + +.trash { + color: #dc3545; + transition: transform 0.3s ease, color 0.3s ease; +} + +.trash:hover { + transform: scale(1.5); + color: #d41f1f; } -.review-card .star{ - font-size: 0.6rem; + +#reviw_logo{ + height: 2rem; + margin-right: 0.5rem; + transition: transform 0.3s ease; } -.review-card .heading{ - margin-bottom: -0.3rem !important; + +#reviw_logo:hover{ + transform: scale(1.2); + cursor: pointer; } -.review-card .review-text{ - color: #696969 !important; + +/* Animation on the review cards */ +.review-card { + transition: transform 0.3s ease, box-shadow 0.3s ease; } -.listing-card{ - padding: 2rem !important; + +.review-card:hover { + transform: translateY(-2px); + box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2); } + @media (max-width: 768px) { .show-img { height: 250px; } .map { - height: 250px; + height: 200px; } } - -/* delete btn */ -#delted_btn{ - border: none; - background-color: transparent; -}
price: - ₹<%= list.price.toLocaleString("en-IN") %>/night -
-location: - <%=list.location%> -
-country: - <%=list.country%> -
+price: + ₹<%= list.price.toLocaleString("en-IN") %>/night +
+location: + <%=list.location%> +
+country: + <%=list.country%> +
+ <% for (let i = 1; i <= 5; i++) { %> + <% if (i <= review.rating) { %> + + <% } else { %> + + <% } %> + <% } %> +
++ <%= review.Comments %> +
+ + Verified by Wanderlust +- <% for (let i = 1; i <= 5; i++) { %> - <% if (i <= review.rating) { %> - - <% } else { %> - - <% } %> - <% } %> -
-- <%= review.Comments %> -