Skip to content

Commit 2675b77

Browse files
author
Sumeet Kumar
committed
attempt 2 to fix image pathing
1 parent 196fca8 commit 2675b77

File tree

2 files changed

+5
-10
lines changed

2 files changed

+5
-10
lines changed

src/components/ProductsSection.tsx

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,23 @@
11

22
import React from "react";
33
import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "@/components/ui/card";
4-
import SolarPanelImage from "@/products/solar-panel.avif";
5-
import HybridInverterImage from "@/products/hybrid-inverter.avif";
6-
import BatteriesImage from "@/products/batteries.png";
74

85
const ProductsSection = () => {
96
const products = [
107
{
118
title: "Solar Panels",
129
description: "High-efficiency solar panels from top brands that convert sunlight into clean electricity. Built to last with performance guarantees.",
13-
image: SolarPanelImage,
10+
image: "/products/solar-panel.avif",
1411
},
1512
{
1613
title: "Hybrid Inverters",
1714
description: "Smart inverters that efficiently convert DC to AC power while managing energy flow between solar panels, batteries, and the grid.",
18-
image: HybridInverterImage,
15+
image: "/products/hybrid-inverter.avif",
1916
},
2017
{
2118
title: "Battery Storage",
2219
description: "Advanced battery systems that store excess solar energy for use during evenings, cloudy days, or power outages.",
23-
image: BatteriesImage,
20+
image: "/products/batteries.png",
2421
},
2522
];
2623

src/components/TestimonialsSection.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@ import React, { useState } from "react";
22
import { Card, CardContent } from "@/components/ui/card";
33
import { Star, Play, Image as ImageIcon, Camera } from "lucide-react";
44
import Lightbox from "@/components/ui/lightbox";
5-
import TestimonialImage1 from "@/testimonials/image1.jpg";
6-
import TestimonialImage2 from "@/testimonials/image2.jpg";
75

86
const TestimonialsSection = () => {
97
const [lightboxOpen, setLightboxOpen] = useState(false);
@@ -20,8 +18,8 @@ const TestimonialsSection = () => {
2018
text: "The owner and staff are very good and share too much information about solar panel",
2119
rating: 5,
2220
gallery: [
23-
{ type: "image" as const, src: TestimonialImage1, alt: "Solar panel installation" },
24-
{ type: "image" as const, src: TestimonialImage2, alt: "Completed installation" },
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" },
2523
// { type: "video" as const, src: "/testimonials/video1.mp4", alt: "Completed installation" },
2624
]
2725
},

0 commit comments

Comments
 (0)