diff --git a/docs/pages/KeyPoint.tsx b/docs/pages/KeyPoint.tsx new file mode 100644 index 00000000..7d2b85da --- /dev/null +++ b/docs/pages/KeyPoint.tsx @@ -0,0 +1,13 @@ +import { FC, PropsWithChildren } from "react"; + +export const KeyPoint: FC> = ({ + title, + children, +}) => ( +
+
+ {title} +
+
{children}
+
+); diff --git a/docs/pages/index.mdx b/docs/pages/index.mdx index dd8cff5b..712ef096 100644 --- a/docs/pages/index.mdx +++ b/docs/pages/index.mdx @@ -1,15 +1,48 @@ --- layout: landing +content: + width: 60rem --- import { HomePage } from 'vocs/components' +import { KeyPoint } from './KeyPoint'; - - - - Typescript API to interact with polkadot chains. - - Get started - GitHub - + +
+
+ + Typescript API to interact with polkadot chains. + + Get started + GitHub + +
+ + +
+ +
+ + Built from the ground up for the light client, allowing running a node from the browser. + + + IDEs show all the type information for every operation of a chain. + + + Minimal impact on the main bundle (under 50kB) + +
+ +
+

Features

+
    +
  • Connect to the chain through a light client or a WebSocket connection
  • +
  • Perform storage queries or runtime calls
  • +
  • Generate the types of a chain through its current metadata
  • +
  • Compatibility checks
  • +
  • Multiple connections to different chains
  • +
  • Transaction API in read-only and read/write mode
  • +
  • Promise-based or Observable-based API for your needs
  • +
+
\ No newline at end of file diff --git a/docs/styles.css b/docs/styles.css new file mode 100644 index 00000000..98a3263c --- /dev/null +++ b/docs/styles.css @@ -0,0 +1,3 @@ +@layer vocs_preflight { @tailwind base; } +@tailwind components; +@tailwind utilities; diff --git a/tailwind.config.cjs b/tailwind.config.cjs new file mode 100644 index 00000000..18b644b4 --- /dev/null +++ b/tailwind.config.cjs @@ -0,0 +1,8 @@ +/** @type {import('tailwindcss').Config} */ +module.exports = { + content: ["./docs/**/*.{html,md,mdx,tsx,js,jsx}"], + theme: { + extend: {}, + }, + plugins: [], +};