summaryrefslogtreecommitdiff
path: root/site/src/components/HomepageIntro
diff options
context:
space:
mode:
authorFabian Mastenbroek <mail.fabianm@gmail.com>2022-09-13 17:28:57 +0200
committerGitHub <noreply@github.com>2022-09-13 17:28:57 +0200
commitff7dfda051e0103b0df453473eb0f08cdc37ae85 (patch)
tree2e80525809ecb5afe010faa99898ca479965b95a /site/src/components/HomepageIntro
parentfde9ba4fb88bada9d9873ba21904e9e1a66b0c46 (diff)
parentfd208941622cd559a0c3a196a0754a1b33db402b (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/HomepageIntro')
-rw-r--r--site/src/components/HomepageIntro/index.js57
-rw-r--r--site/src/components/HomepageIntro/styles.module.css34
2 files changed, 91 insertions, 0 deletions
diff --git a/site/src/components/HomepageIntro/index.js b/site/src/components/HomepageIntro/index.js
new file mode 100644
index 00000000..33df7256
--- /dev/null
+++ b/site/src/components/HomepageIntro/index.js
@@ -0,0 +1,57 @@
+/*
+ * Copyright (c) 2022 AtLarge Research
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to deal
+ * in the Software without restriction, including without limitation the rights
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ */
+
+import clsx from 'clsx'
+import React from 'react'
+
+import styles from './styles.module.css'
+import DatacenterImage from '@site/static/img/datacenter-drawing.png'
+
+export default function HomepageInto() {
+ return (
+ <section id="intro" className={styles.intro}>
+ <div className="container padding-vert--lg">
+ <div className="row">
+ <div className={clsx('col col--4', styles.textCol)}>
+ <h3>The datacenter (DC) industry...</h3>
+ <ul>
+ <li>Is worth over $200 bn, and growing</li>
+ <li>Has many hard-to-grasp concepts</li>
+ <li>Needs to become accessible to many</li>
+ </ul>
+ </div>
+ <div className="col col--3 text--center">
+ <img src={DatacenterImage} alt="Schematic top-down view of a datacenter" />
+ </div>
+ <div className={clsx('col col--4', styles.textCol)}>
+ <h3>OpenDC provides...</h3>
+ <ul>
+ <li>Online cloud DC modeling</li>
+ <li>Diverse and effective DC simulation</li>
+ <li>Rapid exploratory DC feedback</li>
+ </ul>
+ </div>
+ </div>
+ </div>
+ </section>
+ )
+}
diff --git a/site/src/components/HomepageIntro/styles.module.css b/site/src/components/HomepageIntro/styles.module.css
new file mode 100644
index 00000000..53c6f1bb
--- /dev/null
+++ b/site/src/components/HomepageIntro/styles.module.css
@@ -0,0 +1,34 @@
+/*
+ * Copyright (c) 2022 AtLarge Research
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to deal
+ * in the Software without restriction, including without limitation the rights
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ */
+
+.intro {
+ background: var(--ifm-color-emphasis-100);
+}
+
+.intro > :global(.container) > :global(.row) {
+ justify-content: center;
+}
+
+.textCol {
+ align-self: center;
+ max-width: 350px;
+}