Skip to content

Commit

Permalink
docs: polished site (#228)
Browse files Browse the repository at this point in the history
  • Loading branch information
Zizzamia authored Mar 6, 2024
1 parent a429311 commit 549d325
Show file tree
Hide file tree
Showing 8 changed files with 117 additions and 102 deletions.
41 changes: 9 additions & 32 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<p align="center">
<a href="https://onchainkit.xyz">
<picture>
<source media="(prefers-color-scheme: dark)" srcset="./site/docs/public/logo/v0-9.png">
<img alt="OnchainKit logo vibes" src="./site/docs/public/logo/v0-9.png" width="auto">
<source media="(prefers-color-scheme: dark)" srcset="./site/docs/public/logo/v0-10.png">
<img alt="OnchainKit logo vibes" src="./site/docs/public/logo/v0-10.png" width="auto">
</picture>
</a>
</p>
Expand Down Expand Up @@ -48,32 +48,12 @@ For documentation and guides, visit [onchainkit.xyz](https://onchainkit.xyz/).

## Features

OnchainKit offers three themes packed with React components and TypeScript utilities ready for action.
OnchainKit offers four themes packed with React components and TypeScript utilities ready for action.

- [Farcaster Kit](https://onchainkit.xyz/farcaster/introduction)
- Utilities:
- [`getFarcasterUserAddress`](https://onchainkit.xyz/farcaster/get-farcaster-user-address)
- [Frame Kit](https://onchainkit.xyz/frame/introduction)

- Components:
- [`<FrameMetadata />`](https://onchainkit.xyz/frame/frame-metadata)
- Utilities:
- [`getFrameHtmlResponse`](https://onchainkit.xyz/frame/get-frame-html-response)
- [`getFrameMessage`](https://onchainkit.xyz/frame/get-frame-message)
- [`getFrameMetadata`](https://onchainkit.xyz/frame/get-frame-metadata)
- [Framegear](https://onchainkit.xyz/frame/framegear)

- [Identity Kit](https://onchainkit.xyz/identity/introduction)

- Components:
- [`<Avatar />`](https://onchainkit.xyz/identity/avatar)
- [`<Name />`](https://onchainkit.xyz/identity/name)
- Utilities:
- [`getEASAttestations`](https://onchainkit.xyz/identity/get-eas-attestations)

- [XMTP Kit](https://onchainkit.xyz/xmtp/introduction)
- Utilities:
- [`getXmtpFrameMessage`](https://onchainkit.xyz/xmtp/get-xmtp-frame-message)
- [Farcaster](https://onchainkit.xyz/farcaster/introduction)
- [Frame](https://onchainkit.xyz/frame/introduction)
- [Identity](https://onchainkit.xyz/identity/introduction)
- [XMTP](https://onchainkit.xyz/xmtp/introduction)

## Overview

Expand Down Expand Up @@ -138,17 +118,14 @@ export default function HomePage() {

Check out the following places for more OnchainKit-related content:

- Follow @zizzamia ([X](https://twitter.com/zizzamia), [Farcaster](https://warpcast.com/zizzamia)) for project updates
- Follow @zizzamia ([X](https://twitter.com/zizzamia), [Warpcast](https://warpcast.com/zizzamia)) for project updates
- Join the discussions on our [OnchainKit warpcast channel](https://warpcast.com/~/channel/onchainkit)

## Authors

- [@zizzamia](https://github.com/zizzamia) ([X](https://twitter.com/Zizzamia))
- [@zizzamia](https://github.com/zizzamia) ([X](https://twitter.com/Zizzamia), [Warpcast](https://warpcast.com/zizzamia))
- [@cnasc](https://github.com/cnasc) ([warpcast](https://warpcast.com/cnasc))
- [@alvaroraminelli](https://github.com/alvaroraminelli) ([X](https://twitter.com/alvaroraminelli))
- [@robpolak](https://github.com/robpolak) ([X](https://twitter.com/0xr0b_eth))
- [@taycaldwell](https://github.com/taycaldwell) ([X](https://twitter.com/taycaldwell_))
- [@wespickett](https://github.com/wespickett) ([X](https://twitter.com/wespickett))
- [@mochikuan](https://github.com/mochikuan) ([X](https://twitter.com/mochikuan))

## License
Expand Down
Binary file modified site/.yarn/install-state.gz
Binary file not shown.
7 changes: 2 additions & 5 deletions site/docs/pages/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -70,17 +70,14 @@ OnchainKit offers three themes packed with React components and TypeScript utili

Check out the following places for more OnchainKit-related content:

- Follow @zizzamia ([X](https://twitter.com/zizzamia), [Farcaster](https://warpcast.com/zizzamia)) for project updates
- Follow @zizzamia ([X](https://twitter.com/zizzamia), [Warpcast](https://warpcast.com/zizzamia)) for project updates
- Join the discussions on our [OnchainKit warpcast channel](https://warpcast.com/~/channel/onchainkit)

# Authors

- [@zizzamia](https://github.com/zizzamia) ([X](https://twitter.com/Zizzamia))
- [@zizzamia](https://github.com/zizzamia) ([X](https://twitter.com/Zizzamia), [Warpcast](https://warpcast.com/zizzamia))
- [@cnasc](https://github.com/cnasc) ([warpcast](https://warpcast.com/cnasc))
- [@alvaroraminelli](https://github.com/alvaroraminelli) ([X](https://twitter.com/alvaroraminelli))
- [@robpolak](https://github.com/robpolak) ([X](https://twitter.com/0xr0b_eth))
- [@taycaldwell](https://github.com/taycaldwell) ([X](https://twitter.com/taycaldwell_))
- [@wespickett](https://github.com/wespickett) ([X](https://twitter.com/wespickett))
- [@mochikuan](https://github.com/mochikuan) ([X](https://twitter.com/mochikuan))

# License
Expand Down
Binary file added site/docs/public/logo/v0-10.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions site/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@
"preview": "vocs preview"
},
"dependencies": {
"@coinbase/onchainkit": "^0.6.1",
"@coinbase/onchainkit": "0.9.10",
"@types/react": "latest",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"tailwindcss": "^3.4.1",
"typescript": "latest",
"viem": "^2.7.10",
"vocs": "1.0.0-alpha.34"
"vocs": "1.0.0-alpha.42"
}
}
6 changes: 3 additions & 3 deletions site/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
"target": "ES2020",
"useDefineForClassFields": true,
"lib": [
"ES2020",
"DOM",
"DOM.Iterable"
"DOM.Iterable",
"esnext"
],
"module": "ESNext",
"module": "esnext",
"skipLibCheck": true,
"moduleResolution": "bundler",
"allowImportingTsExtensions": true,
Expand Down
60 changes: 45 additions & 15 deletions site/vocs.config.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { FrameMetadata } from '@coinbase/onchainkit';
import { defineConfig } from 'vocs';
import pkg from '../package.json';
import { sidebar } from './sidebar';
Expand All @@ -14,26 +15,55 @@ export default defineConfig({
description: ONCHAINKIT_DESCRIPTION,
ogImageUrl: 'https://vocs.dev/api/og?logo=%logo&title=%title&description=%description',
logoUrl: { light: '/favicon/48x48.png', dark: '/favicon/48x48.png' },
head: (
<>
<script
src={`https://www.googletagmanager.com/gtag/js?id=${GOOGLE_ANALYTICS_ID}`}
async
defer
/>
<script
id="gtag-init"
dangerouslySetInnerHTML={{
__html: `
async head({ path }) {
const analytics = (
<>
<script
src={`https://www.googletagmanager.com/gtag/js?id=${GOOGLE_ANALYTICS_ID}`}
async
defer
/>
<script
id="gtag-init"
dangerouslySetInnerHTML={{
__html: `
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', '${GOOGLE_ANALYTICS_ID}');
`,
}}
/>
</>
),
}}
/>
</>
);

if (path === '/') {
return (
<>
<FrameMetadata
buttons={[
{
action: 'link',
label: 'Docs',
target: 'https://onchainkit.xyz',
},
{
action: 'link',
label: 'Github',
target: 'https://github.com/coinbase/onchainkit',
},
]}
image={{
src: 'https://onchainkit.xyz/logo/v0-10.png',
}}
/>
{analytics}
</>
);
}

return <>{analytics}</>;
},
rootDir: './docs/',
sidebar,
socials: [
Expand Down
101 changes: 56 additions & 45 deletions site/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -325,14 +325,17 @@ __metadata:
languageName: node
linkType: hard

"@coinbase/onchainkit@npm:^0.6.1":
version: 0.6.1
resolution: "@coinbase/onchainkit@npm:0.6.1"
"@coinbase/onchainkit@npm:0.9.10":
version: 0.9.10
resolution: "@coinbase/onchainkit@npm:0.9.10"
peerDependencies:
"@xmtp/frames-validator": ^0.5.0
graphql: ^14
graphql-request: ^6
react: ^18
react-dom: ^18
viem: ^2.7.0
checksum: fd1b45b8f385f35e7a9aee5a45557511021783cd1a8fbd4c802807b92bc8be1cd72d660ede06e1ffaac9400973230f19ec652473a3ec0b3fc65df59150c696ce
checksum: 400bcdea4b175a171610565a4221874b99b2da899b3806d3e4fcece6bfee31d81966a09de3c87bc3a5ac3b3200a5520661b3ba149dbab27a0a4e42792dcc5ced
languageName: node
linkType: hard

Expand Down Expand Up @@ -1561,43 +1564,43 @@ __metadata:
languageName: node
linkType: hard

"@shikijs/core@npm:1.0.0-beta.5":
version: 1.0.0-beta.5
resolution: "@shikijs/core@npm:1.0.0-beta.5"
checksum: 729363ba94e2c1989144b5e6ec201840345f57c62b978fc7eecd026dc564b8acaf5357f29518fe2a9d40afbeee0808d17e1165601c0358549410422d68bcc786
"@shikijs/core@npm:1.1.7":
version: 1.1.7
resolution: "@shikijs/core@npm:1.1.7"
checksum: ee59b88d4c81422792651c0ca52ff378c3035f9d1e4907b58c1d6da06fad02d530775a2e6f43bb033832cd3d2a5f69c9aa4eb5b6b05311396acc503f15442f37
languageName: node
linkType: hard

"@shikijs/rehype@npm:1.0.0-beta.5":
version: 1.0.0-beta.5
resolution: "@shikijs/rehype@npm:1.0.0-beta.5"
"@shikijs/rehype@npm:^1.1.2":
version: 1.1.7
resolution: "@shikijs/rehype@npm:1.1.7"
dependencies:
"@shikijs/transformers": "npm:1.0.0-beta.5"
"@shikijs/transformers": "npm:1.1.7"
"@types/hast": "npm:^3.0.4"
hast-util-to-string: "npm:^3.0.0"
shiki: "npm:1.0.0-beta.5"
shiki: "npm:1.1.7"
unified: "npm:^11.0.4"
unist-util-visit: "npm:^5.0.0"
checksum: 1d6b099032263b13e5f1d4b79dcba0f95a2be894a2c6f2ff845d3f3f676daa799df47bca478688ef0634ee0dcd1a6a8b02639ee81e1d784c96f6c05f2ac3c00a
checksum: 61f586d15cd218309fc0bbd31235ccd234314791357599efb9e5665350234e374d2972d167665e212b04729c808c2305113fd8f6acbbdb6d53eff9437857bbdf
languageName: node
linkType: hard

"@shikijs/transformers@npm:1.0.0-beta.5":
version: 1.0.0-beta.5
resolution: "@shikijs/transformers@npm:1.0.0-beta.5"
"@shikijs/transformers@npm:1.1.7, @shikijs/transformers@npm:^1.1.2":
version: 1.1.7
resolution: "@shikijs/transformers@npm:1.1.7"
dependencies:
shiki: "npm:1.0.0-beta.5"
checksum: 230bb36df683aa61faa288fb12197de8b39d77ab0131f77b2ecf5b93fc2fcf9fe2e4d64d58a5e77b896b863fc83be810deda72f51d224a022b05763a9bec30a6
shiki: "npm:1.1.7"
checksum: be2794c35ba6d57da11e3ed509d714dd4533c2658c31182df61a7a6d38d94847564a1ae1acb9ce22dfc08702702769647ec545ba04053de8361d5019227be876
languageName: node
linkType: hard

"@shikijs/twoslash@npm:1.0.0-beta.5":
version: 1.0.0-beta.5
resolution: "@shikijs/twoslash@npm:1.0.0-beta.5"
"@shikijs/twoslash@npm:^1.1.2":
version: 1.1.7
resolution: "@shikijs/twoslash@npm:1.1.7"
dependencies:
"@shikijs/core": "npm:1.0.0-beta.5"
twoslash: "npm:^0.1.0"
checksum: 5aa799ce5a0f577f196d4c100da21dd65ac7d13124812d88a1943626b336a6ddc28491c1ded2f940cc5b8f5767f32cb337c66f2ddccb472d417d8e896ffdca7a
"@shikijs/core": "npm:1.1.7"
twoslash: "npm:^0.2.4"
checksum: 4e8726052f03a2e6048d0f5d49eca74a6e30b89ce19972c671ba8b5c38d3d990dc1fc737415f227060e225986c882ff9c2bed4dcf33dc564ccc09b45ca5417f7
languageName: node
linkType: hard

Expand Down Expand Up @@ -4834,14 +4837,14 @@ __metadata:
version: 0.0.0-use.local
resolution: "onchainkit@workspace:."
dependencies:
"@coinbase/onchainkit": "npm:^0.6.1"
"@coinbase/onchainkit": "npm:0.9.10"
"@types/react": "npm:latest"
react: "npm:^18.2.0"
react-dom: "npm:^18.2.0"
tailwindcss: "npm:^3.4.1"
typescript: "npm:latest"
viem: "npm:^2.7.10"
vocs: "npm:1.0.0-alpha.34"
vocs: "npm:1.0.0-alpha.42"
languageName: unknown
linkType: soft

Expand Down Expand Up @@ -5706,12 +5709,12 @@ __metadata:
languageName: node
linkType: hard

"shiki@npm:1.0.0-beta.5":
version: 1.0.0-beta.5
resolution: "shiki@npm:1.0.0-beta.5"
"shiki@npm:1.1.7, shiki@npm:^1.1.2":
version: 1.1.7
resolution: "shiki@npm:1.1.7"
dependencies:
"@shikijs/core": "npm:1.0.0-beta.5"
checksum: e93ea87dc83564e3aa36517cae333032883dac895cf5909c43cd6bbb4d69ad5454310185cf68da1e79e46af65105e71f8e40c2e311acc89f563122e7c81fc92d
"@shikijs/core": "npm:1.1.7"
checksum: 536f8dec961d7938f6d3a63dd6be64be082b56c1433380eda0a82cb57b5789759097947d9ef1726e521d4054a6fe2b73639e94bedaccea2044fa640667167501
languageName: node
linkType: hard

Expand Down Expand Up @@ -6092,14 +6095,22 @@ __metadata:
languageName: node
linkType: hard

"twoslash@npm:^0.1.0, twoslash@npm:~0.1.0":
version: 0.1.2
resolution: "twoslash@npm:0.1.2"
"twoslash-protocol@npm:0.2.4":
version: 0.2.4
resolution: "twoslash-protocol@npm:0.2.4"
checksum: 4f14a360a1474a07f887546b7eb5ed3664a093af26c82367cb829b6a22318281982f155514383583c43433f394eeefb221856f671d2af6383bd2f55eff2a06a7
languageName: node
linkType: hard

"twoslash@npm:^0.2.4, twoslash@npm:~0.2.2":
version: 0.2.4
resolution: "twoslash@npm:0.2.4"
dependencies:
"@typescript/vfs": "npm:1.5.0"
twoslash-protocol: "npm:0.2.4"
peerDependencies:
typescript: "*"
checksum: 73c049df3eda7b6bd22b96ca627208718d2d3acf4b2a7aacdf1651df646f2595d29a0f3f26b0ace5fcc0c884bc6cdc80c4815d0ccdfc1974f4f7b569b9210ce5
checksum: 904bf911a20f99ee74556330b1433d57a98d5cc4d98b6c59613074f3d18f0621e71767b7308827a78aea112b1b44edc3211b329760069b2f90305228401b3ebd
languageName: node
linkType: hard

Expand Down Expand Up @@ -6453,9 +6464,9 @@ __metadata:
languageName: node
linkType: hard

"vocs@npm:1.0.0-alpha.34":
version: 1.0.0-alpha.34
resolution: "vocs@npm:1.0.0-alpha.34"
"vocs@npm:1.0.0-alpha.42":
version: 1.0.0-alpha.42
resolution: "vocs@npm:1.0.0-alpha.42"
dependencies:
"@floating-ui/react": "npm:^0.26.6"
"@hono/node-server": "npm:^1.2.3"
Expand All @@ -6470,9 +6481,9 @@ __metadata:
"@radix-ui/react-navigation-menu": "npm:^1.1.4"
"@radix-ui/react-popover": "npm:^1.0.7"
"@radix-ui/react-tabs": "npm:^1.0.4"
"@shikijs/rehype": "npm:1.0.0-beta.5"
"@shikijs/transformers": "npm:1.0.0-beta.5"
"@shikijs/twoslash": "npm:1.0.0-beta.5"
"@shikijs/rehype": "npm:^1.1.2"
"@shikijs/transformers": "npm:^1.1.2"
"@shikijs/twoslash": "npm:^1.1.2"
"@vanilla-extract/css": "npm:^1.14.0"
"@vanilla-extract/dynamic": "npm:^2.1.0"
"@vanilla-extract/vite-plugin": "npm:^3.9.4"
Expand Down Expand Up @@ -6509,10 +6520,10 @@ __metadata:
remark-mdx-frontmatter: "npm:^4.0.0"
remark-parse: "npm:^11.0.0"
serve-static: "npm:^1.15.0"
shiki: "npm:1.0.0-beta.5"
shiki: "npm:^1.1.2"
tailwindcss: "npm:^3.3.3"
toml: "npm:^3.0.0"
twoslash: "npm:~0.1.0"
twoslash: "npm:~0.2.2"
ua-parser-js: "npm:^1.0.36"
unified: "npm:^11.0.4"
unist-util-visit: "npm:^5.0.0"
Expand All @@ -6522,7 +6533,7 @@ __metadata:
react-dom: ^18.2.0
bin:
vocs: _lib/cli/index.js
checksum: f3ed4142819372f24c629427255fda6e07560b149c4978951fef17a5545546c883ad5d276fe033fe89425d1fdd45b8fbc85ffa9a7c122834664ee06b23a2ad19
checksum: a022c76b1fc761ba7e32bf056b6234c077274f8a10bb146bcd29ecafd0eab0085f05dc7a8097d502f74bea49b9129fb3e49e5477d5252a8e55b36f82069cf1f2
languageName: node
linkType: hard

Expand Down

0 comments on commit 549d325

Please sign in to comment.