From c558da5bebfebf239dde867f36cc35d56849accf Mon Sep 17 00:00:00 2001 From: Ellie Huxtable Date: Sat, 25 Feb 2023 23:29:59 +0000 Subject: Add fancy web docs (#725) * Add initial site * WIP again * Replace docs with web docs * Bring back translations * Update README.md * remove images --- docs/src/pages/index.js | 48 +++++++++++++++++++++++++++++++++++++++ docs/src/pages/index.module.css | 50 +++++++++++++++++++++++++++++++++++++++++ docs/src/pages/markdown-page.md | 7 ++++++ 3 files changed, 105 insertions(+) create mode 100644 docs/src/pages/index.js create mode 100644 docs/src/pages/index.module.css create mode 100644 docs/src/pages/markdown-page.md (limited to 'docs/src/pages') 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 ( +
+ + +
+

Making your shell magical

+

Sync, search and backup shell history with Atuin

+
+ + Get Started + +
+
+
+ ); +} + +export default function Home() { + const { siteConfig } = useDocusaurusContext(); + return ( + + +
+
+
+

What is Atuin?

+ + +
+
+
+
+ ); +} 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. -- cgit v1.3.1