-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
115 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,11 @@ | ||
import React from 'react'; | ||
import clsx from 'clsx'; | ||
import styles from './styles.module.css'; | ||
import { useColorMode } from '@docusaurus/theme-common'; | ||
|
||
function getImage(theme, imageName) { | ||
return require(`@site/static/img/cards/${imageName}-${theme}.png`).default; | ||
} | ||
|
||
const FeatureList = [ | ||
{ | ||
|
@@ -116,15 +121,85 @@ const GetStartedList = [ | |
}, | ||
]; | ||
|
||
const LearnMoreList = [ | ||
{ | ||
title: 'Ask a question on Slack', | ||
Img: require('@site/static/img/cards/aerie-learn-slack.png').default, | ||
size: 'col--4', | ||
link: '/aerie-docs/category/planning/', | ||
linkTitle: 'Planning docs', | ||
description: ( | ||
<>Say hi or get help by joining our Slack conversations or posting a question in our GitHub discussions.</> | ||
), | ||
}, | ||
{ | ||
title: 'Discuss or contribute on Github', | ||
Img: require('@site/static/img/cards/aerie-learn-github.png').default, | ||
size: 'col--4', | ||
link: '/aerie-docs/category/planning/', | ||
linkTitle: 'Planning docs', | ||
description: ( | ||
<>Post a question in GitHub discussions, or contribute back and help make Aerie even better than it is today.</> | ||
), | ||
}, | ||
{ | ||
title: 'Sign up for news and updates', | ||
// Svg: require('@site/static/img/cards/undraw_docusaurus_react.svg').default, | ||
Img: require('@site/static/img/cards/aerie-learn-googlegroup.png').default, | ||
size: 'col--4', | ||
link: '/aerie-docs/category/planning/', | ||
linkTitle: 'Planning docs', | ||
description: <>Stay up-to-date on the latest news and releases by joining the Aerie Users Google Group.</>, | ||
}, | ||
{ | ||
title: 'Dive into the docs', | ||
// Svg: require('@site/static/img/cards/undraw_docusaurus_react.svg').default, | ||
Img: require('@site/static/img/cards/aerie-getstarted-opensource-light.png').default, | ||
size: 'col--4', | ||
link: 'https://opensource.org/license/mit/', | ||
linkTitle: 'MIT License', | ||
description: <>See the details of how different components work in Aerie.</>, | ||
}, | ||
{ | ||
title: 'Explore a universe of extensions', | ||
// Svg: require('@site/static/img/cards/undraw_docusaurus_react.svg').default, | ||
Img: require('@site/static/img/cards/aerie-learn-extensions.png').default, | ||
size: 'col--4', | ||
link: '/aerie-docs/introduction/#fast-track', | ||
linkTitle: 'Coming soon', | ||
description: ( | ||
<> | ||
Project and community members have begun to build a marketplace of extensions you can use to jump start your | ||
modeling and ground system integration efforts. | ||
</> | ||
), | ||
}, | ||
{ | ||
title: 'Something else?', | ||
// Svg: require('@site/static/img/cards/undraw_docusaurus_react.svg').default, | ||
Img: require('@site/static/img/cards/aerie-getstarted-customize-light.png').default, | ||
size: 'col--4', | ||
link: '[email protected]', | ||
linkTitle: '[email protected]', | ||
description: <>...</>, | ||
}, | ||
]; | ||
|
||
function Feature({ Img, title, description, size, link, linkTitle }) { | ||
const { colorMode, setColorMode } = useColorMode(); | ||
|
||
console.log(colorMode); | ||
|
||
return ( | ||
<div className={clsx(`col ${styles.featureSection}`, size)}> | ||
<div className={styles.card}> | ||
<div className="card__header"> | ||
<h3>{title}</h3> | ||
</div> | ||
<div className={clsx(`card__body ${styles.cardBody}`)}> | ||
<p classname={styles.description}>{description}</p> | ||
<div className={styles.cardDescription}> | ||
<p>{description}</p> | ||
</div> | ||
<img src={Img} className={styles.cardImg} alt={title} /> | ||
{link && ( | ||
<div className={styles.cardFooter}> | ||
|
@@ -167,3 +242,17 @@ export function HomepageGetStarted() { | |
</section> | ||
); | ||
} | ||
|
||
export function HomepageLearnMore() { | ||
return ( | ||
<section className={styles.cardSection}> | ||
<div className="container"> | ||
<div className="row"> | ||
{LearnMoreList.map((props, idx) => ( | ||
<Feature key={idx} {...props} /> | ||
))} | ||
</div> | ||
</div> | ||
</section> | ||
); | ||
} |
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.