@@ -3,6 +3,11 @@ import clsx from 'clsx';
3
3
import Heading from '@theme/Heading' ;
4
4
import styles from './styles.module.css' ;
5
5
6
+ // Import SVG images
7
+ import MountainSvg from '@site/static/img/undraw_docusaurus_mountain.svg' ;
8
+ import TreeSvg from '@site/static/img/undraw_docusaurus_tree.svg' ;
9
+ import ReactSvg from '@site/static/img/undraw_docusaurus_react.svg' ;
10
+
6
11
type FeatureItem = {
7
12
title : string ;
8
13
Svg : React . ComponentType < React . ComponentProps < 'svg' > > ;
@@ -12,7 +17,7 @@ type FeatureItem = {
12
17
const FeatureList : FeatureItem [ ] = [
13
18
{
14
19
title : 'AI-Powered Coding Assistant' ,
15
- Svg : require ( '@site/static/img/undraw_docusaurus_mountain.svg' ) . default ,
20
+ Svg : MountainSvg ,
16
21
description : (
17
22
< >
18
23
MyCoder leverages advanced AI models to understand your requirements
@@ -22,7 +27,7 @@ const FeatureList: FeatureItem[] = [
22
27
} ,
23
28
{
24
29
title : 'Context-Aware Responses' ,
25
- Svg : require ( '@site/static/img/undraw_docusaurus_tree.svg' ) . default ,
30
+ Svg : TreeSvg ,
26
31
description : (
27
32
< >
28
33
MyCoder understands your project structure and existing code, providing
@@ -32,7 +37,7 @@ const FeatureList: FeatureItem[] = [
32
37
} ,
33
38
{
34
39
title : 'Built for Developers' ,
35
- Svg : require ( '@site/static/img/undraw_docusaurus_react.svg' ) . default ,
40
+ Svg : ReactSvg ,
36
41
description : (
37
42
< >
38
43
Designed with developer workflows in mind, MyCoder integrates with your
0 commit comments