diff options
| author | Fabian Mastenbroek <mail.fabianm@gmail.com> | 2022-09-13 17:28:57 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-09-13 17:28:57 +0200 |
| commit | ff7dfda051e0103b0df453473eb0f08cdc37ae85 (patch) | |
| tree | 2e80525809ecb5afe010faa99898ca479965b95a /site/src/components/HomepageFeatures | |
| parent | fde9ba4fb88bada9d9873ba21904e9e1a66b0c46 (diff) | |
| parent | fd208941622cd559a0c3a196a0754a1b33db402b (diff) | |
merge: Add documentation using Docusaurus (#97)
This pull request implements the new OpenDC documentation website using Docusaurus 2.
## Implementation Notes :hammer_and_pick:
* Add initial Docusaurus website.
* Migrate existing docs to Docusaurus.
* Configure Prettier for Docusaurus.
* Add tutorials to OpenDC website (#28)
* Add deployment workflow via GitHub actions
## External Dependencies :four_leaf_clover:
* Docusaurus 2
Closes #28
Diffstat (limited to 'site/src/components/HomepageFeatures')
| -rw-r--r-- | site/src/components/HomepageFeatures/index.js | 71 | ||||
| -rw-r--r-- | site/src/components/HomepageFeatures/screenshot-construction.png | bin | 0 -> 217107 bytes | |||
| -rw-r--r-- | site/src/components/HomepageFeatures/screenshot-explore.png | bin | 0 -> 249975 bytes | |||
| -rw-r--r-- | site/src/components/HomepageFeatures/screenshot-results.png | bin | 0 -> 234713 bytes | |||
| -rw-r--r-- | site/src/components/HomepageFeatures/styles.module.css | 11 |
5 files changed, 82 insertions, 0 deletions
diff --git a/site/src/components/HomepageFeatures/index.js b/site/src/components/HomepageFeatures/index.js new file mode 100644 index 00000000..5beee68d --- /dev/null +++ b/site/src/components/HomepageFeatures/index.js @@ -0,0 +1,71 @@ +import React from 'react' +import clsx from 'clsx' +import styles from './styles.module.css' + +const FeatureList = [ + { + title: 'Easy to Use', + Svg: () => <img src={require('./screenshot-construction.png').default} alt="Building a datacenter in OpenDC" />, + description: ( + <> + OpenDC is designed from the ground up to be easily installed and used via its online interface to get + your experiments running quickly. + </> + ), + }, + { + title: 'Versatile Models', + Svg: () => ( + <img src={require('./screenshot-explore.png').default} alt="Explore alternative scenarios with OpenDC" /> + ), + description: ( + <> + Explore scenarios around emerging datacenter technologies such as <em>cloud computing</em>,{' '} + <em>serverless computing</em>, <em>big data</em>, and <em>machine learning</em>. + </> + ), + }, + { + title: 'Simplified Analysis', + Svg: () => ( + <img + src={require('./screenshot-results.png').default} + alt="Automated plots and visual summaries generated by OpenDC" + /> + ), + description: ( + <> + Investigate datacenter performance using the automated plots and visual summaries provided + out-of-the-box by OpenDC. + </> + ), + }, +] + +function Feature({ Svg, title, description }) { + return ( + <div className={clsx('col col--4')}> + <div className="text--center"> + <Svg className={styles.featureSvg} role="img" /> + </div> + <div className="text--center padding-horiz--md"> + <h3>{title}</h3> + <p>{description}</p> + </div> + </div> + ) +} + +export default function HomepageFeatures() { + return ( + <section className={styles.features}> + <div className="container"> + <div className="row"> + {FeatureList.map((props, idx) => ( + <Feature key={idx} {...props} /> + ))} + </div> + </div> + </section> + ) +} diff --git a/site/src/components/HomepageFeatures/screenshot-construction.png b/site/src/components/HomepageFeatures/screenshot-construction.png Binary files differnew file mode 100644 index 00000000..8e26526b --- /dev/null +++ b/site/src/components/HomepageFeatures/screenshot-construction.png diff --git a/site/src/components/HomepageFeatures/screenshot-explore.png b/site/src/components/HomepageFeatures/screenshot-explore.png Binary files differnew file mode 100644 index 00000000..307aaa1f --- /dev/null +++ b/site/src/components/HomepageFeatures/screenshot-explore.png diff --git a/site/src/components/HomepageFeatures/screenshot-results.png b/site/src/components/HomepageFeatures/screenshot-results.png Binary files differnew file mode 100644 index 00000000..f7e5858a --- /dev/null +++ b/site/src/components/HomepageFeatures/screenshot-results.png diff --git a/site/src/components/HomepageFeatures/styles.module.css b/site/src/components/HomepageFeatures/styles.module.css new file mode 100644 index 00000000..509d8c75 --- /dev/null +++ b/site/src/components/HomepageFeatures/styles.module.css @@ -0,0 +1,11 @@ +.features { + display: flex; + align-items: center; + padding: 2rem 0; + width: 100%; +} + +.featureSvg { + height: 200px; + width: 200px; +} |
