aboutsummaryrefslogtreecommitdiffstats
path: root/docs/src/pages/index.js
diff options
context:
space:
mode:
authorEllie Huxtable <ellie@elliehuxtable.com>2023-02-25 23:29:59 +0000
committerGitHub <noreply@github.com>2023-02-25 23:29:59 +0000
commitc558da5bebfebf239dde867f36cc35d56849accf (patch)
tree2e75e2c479fa1d89632eafd8119e084243bafa5e /docs/src/pages/index.js
parentRevert "Remove shortcut numbers (#708)" (#724) (diff)
downloadatuin-c558da5bebfebf239dde867f36cc35d56849accf.zip
Add fancy web docs (#725)
* Add initial site * WIP again * Replace docs with web docs * Bring back translations * Update README.md * remove images
Diffstat (limited to 'docs/src/pages/index.js')
-rw-r--r--docs/src/pages/index.js48
1 files changed, 48 insertions, 0 deletions
diff --git a/docs/src/pages/index.js b/docs/src/pages/index.js
new file mode 100644
index 00000000..08500787
--- /dev/null
+++ b/docs/src/pages/index.js
@@ -0,0 +1,48 @@
+import React from 'react';
+import clsx from 'clsx';
+import Link from '@docusaurus/Link';
+import useDocusaurusContext from '@docusaurus/useDocusaurusContext';
+import Layout from '@theme/Layout';
+import HomepageFeatures from '@site/src/components/HomepageFeatures';
+
+import styles from './index.module.css';
+
+function HomepageHeader() {
+ const { siteConfig } = useDocusaurusContext();
+ return (
+ <header className={clsx('hero', styles.heroBanner)}>
+ <link rel="icon" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22><text y=%22.9em%22 font-size=%2290%22>🐢</text></svg>" />
+
+ <div className="container">
+ <h1 className="hero__title">Making your shell <b className={styles.magical}>magical</b></h1>
+ <p className="hero__subtitle">Sync, search and backup shell history with Atuin</p>
+ <div className={styles.buttons}>
+ <Link
+ className="button button--primary button--lg"
+ to="/docs/setup">
+ Get Started
+ </Link>
+ </div>
+ </div>
+ </header>
+ );
+}
+
+export default function Home() {
+ const { siteConfig } = useDocusaurusContext();
+ return (
+ <Layout
+ title={`Magical Shell History`}>
+ <HomepageHeader />
+ <main>
+ <section className={styles.whatis}>
+ <div className="container">
+ <center><h1>What is <b>Atuin</b>?</h1></center>
+
+ <HomepageFeatures />
+ </div>
+ </section>
+ </main>
+ </Layout >
+ );
+}