forked from kubevela/kubevela.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Chore: add the integrations on the index page
Signed-off-by: barnettZQG <[email protected]>
- Loading branch information
1 parent
8fdf893
commit a7a68d2
Showing
24 changed files
with
787 additions
and
131 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,44 @@ | ||
import React from 'react'; | ||
import HomePageFeatures from '../data/features'; | ||
import Translate, { translate } from '@docusaurus/Translate'; | ||
|
||
const FeatureBlock = () => { | ||
return ( | ||
<div className="hero"> | ||
<div className="container"> | ||
<section className="features"> | ||
<div className="container"> | ||
{ | ||
HomePageFeatures.map(({imgUrl, title, description, reverse}, index) => ( | ||
<div key={index} className="row feature"> | ||
<div className="col col--3"> | ||
<div className="text--center"> | ||
{imgUrl && <img className="featureImage" src={imgUrl} alt={title} />} | ||
</div> | ||
</div> | ||
<div className="col col--9 featureDesc"> | ||
<div> | ||
<h2>{title}</h2> | ||
<div>{description}</div> | ||
</div> | ||
</div> | ||
</div> | ||
)) | ||
} | ||
return ( | ||
<div className="hero"> | ||
<div className="container"> | ||
<section className="features section"> | ||
<h2 className="title"> | ||
<Translate>Highlights</Translate> | ||
</h2> | ||
<div className="container"> | ||
{HomePageFeatures.map( | ||
({ imgUrl, title, description, reverse }, index) => ( | ||
<div key={index} className="row feature"> | ||
<div className="col col--3"> | ||
<div className="text--center"> | ||
{imgUrl && ( | ||
<img | ||
className="featureImage" | ||
src={imgUrl} | ||
alt={title} | ||
/> | ||
)} | ||
</div> | ||
</section> | ||
</div> | ||
</div> | ||
) | ||
} | ||
</div> | ||
<div className="col col--9 featureDesc"> | ||
<div> | ||
<h2>{title}</h2> | ||
<div>{description}</div> | ||
</div> | ||
</div> | ||
</div> | ||
) | ||
)} | ||
</div> | ||
</section> | ||
</div> | ||
</div> | ||
); | ||
}; | ||
|
||
export default FeatureBlock | ||
export default FeatureBlock; |
Oops, something went wrong.