Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 21 additions & 14 deletions docs/src/components/HomepageFeatures/index.js
Original file line number Diff line number Diff line change
@@ -1,45 +1,51 @@
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: 'Easy to Use',
Svg: require('@site/static/img/undraw_docusaurus_mountain.svg').default,
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: (
<>
Docusaurus was designed from the ground up to be easily installed and
used to get your website up and running quickly.
SpiceCode examines your code and provides detailed metrics and insights
to help you understand its structure and quality.
</>
),
},
{
title: 'Focus on What Matters',
Svg: require('@site/static/img/undraw_docusaurus_tree.svg').default,
title: 'Multi-Language Support',
ImgSrc: require('@site/static/img/spicecode_logo_nobg.png').default,
description: (
<>
Docusaurus lets you focus on your docs, and we&apos;ll do the chores. Go
ahead and move your docs into the <code>docs</code> directory.
Analyze code written in Python, JavaScript, Ruby, and Go using native
lexers and parsers built specifically for SpiceCode.
</>
),
},
{
title: 'Powered by React',
Svg: require('@site/static/img/undraw_docusaurus_react.svg').default,
title: 'Exportable Results',
ImgSrc: require('@site/static/img/spicecode_logo_nobg.png').default,
description: (
<>
Extend or customize your website layout by reusing React. Docusaurus can
be extended while reusing the same header and footer.
Export your analysis results easily into various formats like JSON, CSV,
Markdown, and HTML for reporting or integration.
</>
),
},
];

function Feature({Svg, title, description}) {
// 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">
<Svg className={styles.featureSvg} role="img" />
{/* 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>
Expand All @@ -62,3 +68,4 @@ export default function HomepageFeatures() {
</section>
);
}

Binary file added docs/static/img/spicecode_logo_nobg.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/static/img/spicecode_wallpaper.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading