Skip to content

Commit 3376bcc

Browse files
committed
docs: Imroved the docs page.
1 parent 42f4aaf commit 3376bcc

1 file changed

Lines changed: 29 additions & 14 deletions

File tree

apps/docs/src/components/IndexPage.tsx

Lines changed: 29 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -10,22 +10,29 @@ import {
1010
import { FC, PropsWithChildren } from 'react'
1111
import Layout from '~~/components/layout/Layout'
1212

13-
// You need a Sui client. You can re-use the Sui client of your project
14-
// (it's not recommended to create a new one).
1513
const client = new SuiClient({ url: getFullnodeUrl('mainnet') })
16-
17-
// Now you can use it to create a SuiNS client.
1814
const suinsClient = new SuinsClient({
1915
client,
2016
network: 'mainnet',
2117
})
2218

2319
const DOCS_URL = 'https://github.com/suiware/kit/tree/main/packages/kit#readme'
20+
const SUI_DAPP_STARTER_URL = 'https://sui-dapp-starter.dev'
2421

2522
const IndexPage: FC = () => {
2623
return (
2724
<Layout>
28-
<div className="flex flex-col items-start justify-start gap-6 p-8">
25+
<div className="flex flex-col items-start justify-start gap-6 px-8">
26+
<div className="mx-auto mb-6">
27+
<a
28+
href={DOCS_URL}
29+
className="text-md border border-sds-blue p-2 font-bold text-sds-blue rounded"
30+
target="_blank"
31+
>
32+
GITHUB DOCS
33+
</a>
34+
</div>
35+
2936
<section>
3037
<h2 className="my-2 text-2xl text-gray-700">Components</h2>
3138

@@ -71,16 +78,24 @@ const IndexPage: FC = () => {
7178
</a>
7279
</div>
7380
</section>
74-
</div>
7581

76-
<div className="mx-auto p-6">
77-
<a
78-
href={DOCS_URL}
79-
className="text-md border border-sds-blue p-2 font-bold text-sds-blue"
80-
target="_blank"
81-
>
82-
GITHUB DOCS
83-
</a>
82+
<section>
83+
<h2 className="my-2 text-2xl text-gray-700">Usage examples</h2>
84+
85+
<div className="my-2">
86+
<ul className="list-disc pl-4">
87+
<li>
88+
<a
89+
href={SUI_DAPP_STARTER_URL}
90+
className="text-sds-blue"
91+
target="_blank"
92+
>
93+
Sui dApp Starter
94+
</a>
95+
</li>
96+
</ul>
97+
</div>
98+
</section>
8499
</div>
85100
</Layout>
86101
)

0 commit comments

Comments
 (0)