-
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathindex.js
More file actions
71 lines (67 loc) · 2.07 KB
/
index.js
File metadata and controls
71 lines (67 loc) · 2.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
import React from 'react';
import clsx from 'clsx';
import Heading from '@theme/Heading';
import styles from './styles.module.css';
// Replace the default FeatureList with SpiceCode-specific features
const FeatureList = [
{
title: 'Deep Code Analysis',
// Use a relevant image if available, or remove the Svg component
// For now, let's use the logo as a placeholder, but ideally find/create more specific icons
ImgSrc: require('@site/static/img/spicecode_logo_nobg.png').default,
description: (
<>
SpiceCode examines your code and provides detailed metrics and insights
to help you understand its structure and quality.
</>
),
},
{
title: 'Multi-Language Support',
ImgSrc: require('@site/static/img/spicecode_logo_nobg.png').default,
description: (
<>
Analyze code written in Python, JavaScript, Ruby, and Go using native
lexers and parsers built specifically for SpiceCode.
</>
),
},
{
title: 'Exportable Results',
ImgSrc: require('@site/static/img/spicecode_logo_nobg.png').default,
description: (
<>
Export your analysis results easily into various formats like JSON, CSV,
Markdown, and HTML for reporting or integration.
</>
),
},
];
// Modify the Feature component to use ImgSrc instead of Svg if needed
function Feature({ImgSrc, title, description}) {
return (
<div className={clsx('col col--4')}>
<div className="text--center">
{/* Adjust styling if using img instead of SVG */}
<img src={ImgSrc} className={styles.featureImg} alt={title} />
</div>
<div className="text--center padding-horiz--md">
<Heading as="h3">{title}</Heading>
<p>{description}</p>
</div>
</div>
);
}
export default function HomepageFeatures() {
return (
<section className={styles.features}>
<div className="container">
<div className="row">
{FeatureList.map((props, idx) => (
<Feature key={idx} {...props} />
))}
</div>
</div>
</section>
);
}