diff options
| author | Fabian Mastenbroek <mail.fabianm@gmail.com> | 2022-08-04 16:40:44 +0200 |
|---|---|---|
| committer | Fabian Mastenbroek <mail.fabianm@gmail.com> | 2022-09-13 16:15:59 +0200 |
| commit | fdc3200ef4718eb98bd8a713f956222a9bf85ac9 (patch) | |
| tree | 4fa8e5998bd4ee59397b26222846c554b73abe4e /site/src/pages/index.js | |
| parent | 8a94318aad4b4fa188ac49e887d564867a00111e (diff) | |
docs: Add initial version of Docusaurus based docs
This change updates the repository with a new Docusaurus-based
documentation website. This allows us to create our documentation using
Markdown, MDX and React. This will serve as the main entry point for
users visiting https://opendc.org. The actual OpenDC application will be
moved to https://app.opendc.org.
Diffstat (limited to 'site/src/pages/index.js')
| -rw-r--r-- | site/src/pages/index.js | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/site/src/pages/index.js b/site/src/pages/index.js new file mode 100644 index 00000000..9dd7457c --- /dev/null +++ b/site/src/pages/index.js @@ -0,0 +1,44 @@ +import React from 'react' +import clsx from 'clsx' +import Link from '@docusaurus/Link' +import useDocusaurusContext from '@docusaurus/useDocusaurusContext' +import Layout from '@theme/Layout' +import HomepageInto from '@site/src/components/HomepageIntro' +import HomepageFeatures from '@site/src/components/HomepageFeatures' + +import styles from './index.module.css' +import Logo from '@site/static/img/logo.svg' + +function HomepageHeader() { + const { siteConfig } = useDocusaurusContext() + return ( + <header className={clsx('hero hero--primary', styles.heroBanner)}> + <div className="container"> + <h1 className="hero__title">{siteConfig.title}</h1> + <p className="hero__subtitle">{siteConfig.tagline}</p> + <Logo role="img" width="100" height="100" alt="OpenDC logo" className={styles.logo} /> + <div className={styles.buttons}> + <Link className="button button--secondary button--lg" to="/docs/intro"> + Getting Started with OpenDC - 10min ⏱️ + </Link> + </div> + </div> + </header> + ) +} + +export default function Home() { + const { siteConfig } = useDocusaurusContext() + return ( + <Layout + title={`${siteConfig.title} cloud datacenter simulator`} + description="Collaborative Datacenter Simulation and Exploration for Everybody" + > + <HomepageHeader /> + <main> + <HomepageInto /> + <HomepageFeatures /> + </main> + </Layout> + ) +} |
