Skip to content

Commit ec0161b

Browse files
author
Sumeet Kumar
committed
attempt 3 to fix image pathing
1 parent 2675b77 commit ec0161b

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/components/ProductsSection.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,17 @@ const ProductsSection = () => {
77
{
88
title: "Solar Panels",
99
description: "High-efficiency solar panels from top brands that convert sunlight into clean electricity. Built to last with performance guarantees.",
10-
image: "/products/solar-panel.avif",
10+
image: `${import.meta.env.BASE_URL}/products/solar-panel.avif`,
1111
},
1212
{
1313
title: "Hybrid Inverters",
1414
description: "Smart inverters that efficiently convert DC to AC power while managing energy flow between solar panels, batteries, and the grid.",
15-
image: "/products/hybrid-inverter.avif",
15+
image: `${import.meta.env.BASE_URL}/products/hybrid-inverter.avif`,
1616
},
1717
{
1818
title: "Battery Storage",
1919
description: "Advanced battery systems that store excess solar energy for use during evenings, cloudy days, or power outages.",
20-
image: "/products/batteries.png",
20+
image: `${import.meta.env.BASE_URL}/products/batteries.png`,
2121
},
2222
];
2323

src/components/TestimonialsSection.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ const TestimonialsSection = () => {
1818
text: "The owner and staff are very good and share too much information about solar panel",
1919
rating: 5,
2020
gallery: [
21-
{ type: "image" as const, src: "/testimonials/image1.jpg", alt: "Solar panel installation" },
22-
{ type: "image" as const, src: "/testimonials/image2.jpg", alt: "Completed installation" },
21+
{ type: "image" as const, src: `${import.meta.env.BASE_URL}/testimonials/image1.jpg`, alt: "Solar panel installation" },
22+
{ type: "image" as const, src: `${import.meta.env.BASE_URL}/testimonials/image2.jpg`, alt: "Completed installation" },
2323
// { type: "video" as const, src: "/testimonials/video1.mp4", alt: "Completed installation" },
2424
]
2525
},

0 commit comments

Comments
 (0)