diff options
Diffstat (limited to '')
| -rw-r--r-- | docs/src/pages/index.js | 48 | ||||
| -rw-r--r-- | docs/src/pages/index.module.css | 50 | ||||
| -rw-r--r-- | docs/src/pages/markdown-page.md | 7 |
3 files changed, 105 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 > + ); +} diff --git a/docs/src/pages/index.module.css b/docs/src/pages/index.module.css new file mode 100644 index 00000000..fc7eb14e --- /dev/null +++ b/docs/src/pages/index.module.css @@ -0,0 +1,50 @@ +/** + * CSS files with the .module.css suffix will be treated as CSS modules + * and scoped locally. + */ + +.heroBanner { + padding: 4rem 0; + text-align: center; + position: relative; + overflow: hidden; +} + +.heroBanner h1 { + font-size: 3rem; +} + +@media screen and (max-width: 996px) { + .heroBanner { + padding: 2rem; + } +} + +.buttons { + display: flex; + align-items: center; + justify-content: center; +} + +.magical{ + background-image: linear-gradient(90deg, rgb(79, 30, 218) 0%,rgb(104, 100, 218) 33%,rgb(35, 219, 162) 100%); + background-clip: text; + + -webkit-background-clip: text; + -moz-background-clip: text; + -webkit-text-fill-color: transparent; + -moz-text-fill-color: transparent; +} + +.whatis { + padding: 4rem; + +} + +.whatis h1 { + font-size: 2em; +} + +.whatisfeature { + background-color: var(--ifm-hero-background-color); +} diff --git a/docs/src/pages/markdown-page.md b/docs/src/pages/markdown-page.md new file mode 100644 index 00000000..9756c5b6 --- /dev/null +++ b/docs/src/pages/markdown-page.md @@ -0,0 +1,7 @@ +--- +title: Markdown page example +--- + +# Markdown page example + +You don't need React to write simple standalone pages. |
