Skip to content

Commit

Permalink
⚡️ Image Optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
nmdra committed Oct 13, 2024
1 parent cbab289 commit a873859
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion frontend/src/Pages/Shop/ShopPage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const ShopPage = () => {
<div className="shop-page p-8">
<div className="shop-details mb-10 bg-white shadow-xl rounded-xl overflow-hidden transition-transform transform hover:scale-105 duration-300 ease-in-out">
<img
src={shop.image}
src={shop.image.replace(/\.\w+$/, '.webp')}
alt={shop.name}
className="w-full h-48 object-cover"
/>
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/Pages/blog manage/InduvidualBlog.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ export default function IndividualBlog() {

{blog.newsImage && (
<img
src={`${blog.newsImage}`}
src={blog.newsImage.replace(/\.\w+$/, '.webp')}
alt={blog.title}
className="object-cover w-full h-auto mb-8 rounded-lg shadow-lg"
/>
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/Pages/blog manage/UserBlog.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ export default function TourismBlog() {
<div className="relative w-full h-25">
{blog.newsImage && (
<img
src={`${blog.newsImage}`}
src={blog.newsImage.replace(/\.\w+$/, '.webp')}
alt={blog.title}
className="object-cover w-full h-full rounded-lg shadow-lg"
/>
Expand Down Expand Up @@ -181,7 +181,7 @@ export default function TourismBlog() {
<div className="relative">
{blog.newsImage && (
<img
src={`${blog.newsImage}`}
src={blog.newsImage.replace(/\.\w+$/, '.webp')}
alt={blog.title}
className="object-cover w-full h-64"
/>
Expand Down

0 comments on commit a873859

Please sign in to comment.