aboutsummaryrefslogtreecommitdiffstats
path: root/docs/src/components
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/components
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/components')
-rw-r--r--docs/src/components/HomepageFeatures/index.js71
-rw-r--r--docs/src/components/HomepageFeatures/styles.module.css17
2 files changed, 88 insertions, 0 deletions
diff --git a/docs/src/components/HomepageFeatures/index.js b/docs/src/components/HomepageFeatures/index.js
new file mode 100644
index 00000000..c242c798
--- /dev/null
+++ b/docs/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: 'History sync',
+ Svg: require('@site/static/img/undraw_docusaurus_mountain.svg').default,
+ description: (
+ <>
+ <ul>
+ <li>Sync your shell history to all of your machines, wherever they are</li>
+ <li>End-to-end encrypted - nobody can see your data but you</li>
+ <li>Securely backed up - never lose a command again</li>
+ </ul>
+ </>
+ ),
+ },
+ {
+ title: 'Find it fast',
+ Svg: require('@site/static/img/undraw_docusaurus_tree.svg').default,
+ description: (
+ <>
+ <ul>
+ <li>Speedy terminal search UI</li>
+ <li>Configurable search method - fuzzy, prefix, etc</li>
+ <li>Easily search and filter by session, directory, or machine</li>
+ <li>Powerful command line search for integration with other tools</li>
+ </ul>
+ </>
+ ),
+ },
+ {
+ title: 'All the data',
+ Svg: require('@site/static/img/undraw_docusaurus_react.svg').default,
+ description: (
+ <>
+ <ul>
+ <li>History stored in a SQLite DB, making stats and analysis easy</li>
+ <li>Log exit code, directory, hostname, session, command duration, etc</li>
+ <li>Import old history from a number of shells or history tools</li>
+ </ul>
+ </>
+ ),
+ },
+];
+
+function Feature({ Svg, title, description }) {
+ return (
+ <div className={clsx('col col--4')}>
+ <div className={"padding-horiz--md", styles.whatisfeature}>
+ <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/docs/src/components/HomepageFeatures/styles.module.css b/docs/src/components/HomepageFeatures/styles.module.css
new file mode 100644
index 00000000..7527f330
--- /dev/null
+++ b/docs/src/components/HomepageFeatures/styles.module.css
@@ -0,0 +1,17 @@
+.features {
+ display: flex;
+ align-items: center;
+ padding: 2rem 0;
+ width: 100%;
+}
+
+.featureSvg {
+ height: 200px;
+ width: 200px;
+}
+
+.whatisfeature {
+ background-color: var(--ifm-hero-background-color);
+ padding: 2rem;
+}
+