From c47347ff76f115f56676f5ecad0032bfcb98a03d Mon Sep 17 00:00:00 2001 From: Xe Iaso Date: Thu, 20 Mar 2025 15:06:58 -0400 Subject: add docs site based on docusarus (#35) * add docs site based on docusarus Closes #2 Signed-off-by: Xe Iaso * docs: deploy to aeacus Signed-off-by: Xe Iaso * ready for merge Signed-off-by: Xe Iaso * docs: fix anubis port Signed-off-by: Xe Iaso --------- Signed-off-by: Xe Iaso --- docs/src/components/HomepageFeatures/index.tsx | 72 ++++++++++++++++++++++ .../components/HomepageFeatures/styles.module.css | 11 ++++ 2 files changed, 83 insertions(+) create mode 100644 docs/src/components/HomepageFeatures/index.tsx create mode 100644 docs/src/components/HomepageFeatures/styles.module.css (limited to 'docs/src/components') diff --git a/docs/src/components/HomepageFeatures/index.tsx b/docs/src/components/HomepageFeatures/index.tsx new file mode 100644 index 0000000..645f795 --- /dev/null +++ b/docs/src/components/HomepageFeatures/index.tsx @@ -0,0 +1,72 @@ +import type { ReactNode } from "react"; +import clsx from "clsx"; +import Heading from "@theme/Heading"; +import styles from "./styles.module.css"; + +type FeatureItem = { + title: string; + Svg: React.ComponentType>; + description: ReactNode; +}; + +const FeatureList: FeatureItem[] = [ + { + title: "Easy to Use", + Svg: require("@site/static/img/undraw_docusaurus_mountain.svg").default, + description: ( + <> + Anubis is easy to set up, lightweight, and helps get rid of the lowest + hanging fruit so you can sleep at night. + + ), + }, + { + title: "", + Svg: require("@site/static/img/undraw_docusaurus_tree.svg").default, + description: ( + <> + Anubis is efficient and as lightweight as possible, blocking the worst + of the bots on the internet and makes it easy to protect what you host + online. + + ), + }, + { + title: "Powered by React", + Svg: require("@site/static/img/undraw_docusaurus_react.svg").default, + description: ( + <> + Anubis uses a multi-threaded proof of work check to ensure that users + browsers are up to date and support modern standards. + + ), + }, +]; + +function Feature({ title, Svg, description }: FeatureItem) { + return ( +
+
+ +
+
+ {title} +

{description}

+
+
+ ); +} + +export default function HomepageFeatures(): ReactNode { + return ( +
+
+
+ {FeatureList.map((props, idx) => ( + + ))} +
+
+
+ ); +} diff --git a/docs/src/components/HomepageFeatures/styles.module.css b/docs/src/components/HomepageFeatures/styles.module.css new file mode 100644 index 0000000..b248eb2 --- /dev/null +++ b/docs/src/components/HomepageFeatures/styles.module.css @@ -0,0 +1,11 @@ +.features { + display: flex; + align-items: center; + padding: 2rem 0; + width: 100%; +} + +.featureSvg { + height: 200px; + width: 200px; +} -- cgit v1.2.3