Skip to content

Commit 7184081

Browse files
committed
fix frontend
1 parent 064091b commit 7184081

File tree

1 file changed

+21
-14
lines changed
  • docs/src/components/HomepageFeatures

1 file changed

+21
-14
lines changed

docs/src/components/HomepageFeatures/index.js

Lines changed: 21 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,51 @@
1+
import React from 'react';
12
import clsx from 'clsx';
23
import Heading from '@theme/Heading';
34
import styles from './styles.module.css';
45

6+
// Replace the default FeatureList with SpiceCode-specific features
57
const FeatureList = [
68
{
7-
title: 'Easy to Use',
8-
Svg: require('@site/static/img/undraw_docusaurus_mountain.svg').default,
9+
title: 'Deep Code Analysis',
10+
// Use a relevant image if available, or remove the Svg component
11+
// For now, let's use the logo as a placeholder, but ideally find/create more specific icons
12+
ImgSrc: require('@site/static/img/spicecode_logo_nobg.png').default,
913
description: (
1014
<>
11-
Docusaurus was designed from the ground up to be easily installed and
12-
used to get your website up and running quickly.
15+
SpiceCode examines your code and provides detailed metrics and insights
16+
to help you understand its structure and quality.
1317
</>
1418
),
1519
},
1620
{
17-
title: 'Focus on What Matters',
18-
Svg: require('@site/static/img/undraw_docusaurus_tree.svg').default,
21+
title: 'Multi-Language Support',
22+
ImgSrc: require('@site/static/img/spicecode_logo_nobg.png').default,
1923
description: (
2024
<>
21-
Docusaurus lets you focus on your docs, and we&apos;ll do the chores. Go
22-
ahead and move your docs into the <code>docs</code> directory.
25+
Analyze code written in Python, JavaScript, Ruby, and Go using native
26+
lexers and parsers built specifically for SpiceCode.
2327
</>
2428
),
2529
},
2630
{
27-
title: 'Powered by React',
28-
Svg: require('@site/static/img/undraw_docusaurus_react.svg').default,
31+
title: 'Exportable Results',
32+
ImgSrc: require('@site/static/img/spicecode_logo_nobg.png').default,
2933
description: (
3034
<>
31-
Extend or customize your website layout by reusing React. Docusaurus can
32-
be extended while reusing the same header and footer.
35+
Export your analysis results easily into various formats like JSON, CSV,
36+
Markdown, and HTML for reporting or integration.
3337
</>
3438
),
3539
},
3640
];
3741

38-
function Feature({Svg, title, description}) {
42+
// Modify the Feature component to use ImgSrc instead of Svg if needed
43+
function Feature({ImgSrc, title, description}) {
3944
return (
4045
<div className={clsx('col col--4')}>
4146
<div className="text--center">
42-
<Svg className={styles.featureSvg} role="img" />
47+
{/* Adjust styling if using img instead of SVG */}
48+
<img src={ImgSrc} className={styles.featureImg} alt={title} />
4349
</div>
4450
<div className="text--center padding-horiz--md">
4551
<Heading as="h3">{title}</Heading>
@@ -62,3 +68,4 @@ export default function HomepageFeatures() {
6268
</section>
6369
);
6470
}
71+

0 commit comments

Comments
 (0)