Skip to content

Commit 638e156

Browse files
committed
Refactor Sections.svelte to use imported image variables for improved readability
1 parent 514c6d8 commit 638e156

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/routes/landing/Sections.svelte

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,27 +2,27 @@
22
import ShowCode from './ShowCode.svelte';
33
import Slider from './Slider.svelte';
44
5-
// import img1 from '/images/slider/image-1.webp';
6-
// import img2 from '/images/slider/image-2.webp';
7-
// import img3 from '/images/slider/image-3.webp';
5+
import img1 from '/images/slider/image-1.webp';
6+
import img2 from '/images/slider/image-2.webp';
7+
import img3 from '/images/slider/image-3.webp';
88
99
const sectionDefaultOptions = 'py-32 lg:min-h-screen';
1010
1111
const cards = [
1212
{
1313
title: 'Slide 1',
1414
description: 'Slide 1 description',
15-
image: '/images/slider/image-1.webp'
15+
image: img1
1616
},
1717
{
1818
title: 'Slide 2',
1919
description: 'Slide 2 description',
20-
image: '/images/slider/image-2.webp'
20+
image: img2
2121
},
2222
{
2323
title: 'Slide 3',
2424
description: 'Slide 3 description',
25-
image: '/images/slider/image-3.webp'
25+
image: img3
2626
}
2727
];
2828
</script>

0 commit comments

Comments
 (0)