diff --git a/src/components/HomepageFeatures/index.tsx b/src/components/HomepageFeatures/index.tsx index ef042d0a3..b3f16504d 100644 --- a/src/components/HomepageFeatures/index.tsx +++ b/src/components/HomepageFeatures/index.tsx @@ -2,6 +2,10 @@ import clsx from 'clsx'; import Heading from '@theme/Heading'; import styles from './styles.module.css'; +import BestPracticesSvg from '@site/static/img/best-practices.svg'; +import BlueprintsSvg from '@site/static/img/blueprints.svg'; +// import CafSvg from '@site/static/img/caf.svg'; + type FeatureItem = { title: string; Svg: React.ComponentType>; @@ -12,7 +16,7 @@ type FeatureItem = { const FeatureList: FeatureItem[] = [ { title: 'Best Practices', - Svg: require('@site/static/img/best-practices.svg').default, + Svg: BestPracticesSvg, description: ( <> Explore the recommended strategies for resource management, such as @@ -24,7 +28,7 @@ const FeatureList: FeatureItem[] = [ }, { title: 'Blueprints', - Svg: require('@site/static/img/blueprints.svg').default, + Svg: BlueprintsSvg, description: ( <> Discover tailored out-of-the-box solutions and @@ -36,7 +40,7 @@ const FeatureList: FeatureItem[] = [ }, // { // title: 'Cloud Adoption Framework', - // Svg: require('@site/static/img/caf.svg').default, + // Svg: CafSvg, // description: ( // <> // The Cloud Adoption Framework provides a structured approach for organizations to transition their business to @@ -47,51 +51,9 @@ const FeatureList: FeatureItem[] = [ // }, ]; -// function Feature({title, Svg, description, link}: FeatureItem) { -// return ( -//
-// -//
-//
-// -//
-//
-// {/*

{title}

*/} -// {title} -// -// {description} -// -// {/* -// Get Started -// */} -//
-//
-//
-//
-// ); -// } - -// export default function HomepageFeatures(): JSX.Element { -// return ( -//
-//
-//
-//
-// {FeatureList.map((props, idx) => ( -// -// ))} -//
-//
-//
-//
-// ); -// } - - - function Feature({title, Svg, description, link}: FeatureItem) { return ( -
+
@@ -118,11 +80,9 @@ export default function HomepageFeatures(): JSX.Element {
-
{FeatureList.map((props, idx) => ( ))} -