Skip to content

Commit 1491df9

Browse files
committed
feat(docs): add demo to landing
1 parent 92d9f2b commit 1491df9

File tree

7 files changed

+92
-10
lines changed

7 files changed

+92
-10
lines changed

apps/docs/docs/pages/index.mdx

Lines changed: 28 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,31 @@ layout: landing
44

55
import { HomePage } from 'vocs/components'
66

7-
<HomePage.Root>
8-
<img src="/logo.svg" className="w-24" />
9-
<HomePage.Tagline>The TypeScript interface for Mina Protocol.</HomePage.Tagline>
10-
<HomePage.Description>MinaJS is the missing piece for your smooth zkApp development on Mina.</HomePage.Description>
11-
<HomePage.Buttons>
12-
<HomePage.Button href="/getting-started" variant="accent">Get started</HomePage.Button>
13-
<HomePage.Button href="https://github.com/palladians/mina-js">GitHub</HomePage.Button>
14-
</HomePage.Buttons>
15-
</HomePage.Root>
7+
<div className="flex flex-col mt-16 gap-16">
8+
<header className="flex flex-col gap-8">
9+
<img src="/logo.svg" className="w-24 hidden dark:flex" />
10+
<img src="/logo.svg" className="w-24 flex dark:hidden" />
11+
<h1 className="font-bold text-6xl leading-[5rem]">The TypeScript interface for Mina Protocol.</h1>
12+
<p className="text-xl">MinaJS is the missing piece for your smooth zkApp development on Mina.</p>
13+
<div className="flex gap-2">
14+
<a href="/getting-started" className="btn btn-lg btn-primary rounded-full">Get Started</a>
15+
<a href="https://github.com/palladians/mina-js" target="_blank" rel="noopener noreferrer" className="btn btn-lg btn-outline rounded-full">GitHub</a>
16+
</div>
17+
</header>
18+
<section>
19+
<iframe src="https://stackblitz.com/edit/minajs?embed=1&file=index.ts&hideExplorer=1&theme=dark&view=editor" className="w-full h-[500px] border-0 rounded-lg overflow-hidden" />
20+
</section>
21+
<section className="card bg-neutral">
22+
<div className="card-body gap-8">
23+
<div className="flex justify-between items-center">
24+
<h2 className="text-2xl font-semibold">Sponsors</h2>
25+
<a target="_blank" href="https://github.com/sponsors/palladians" rel="noopener noreferrer" className="btn btn-outline rounded-full">Become a sponsor</a>
26+
</div>
27+
<div className="grid grid-cols-4 gap8">
28+
<a href="https://palladians.xyz" target="_blank" rel="noopener noreferrer">
29+
<img src="/palladians.svg" />
30+
</a>
31+
</div>
32+
</div>
33+
</section>
34+
</div>
Lines changed: 18 additions & 0 deletions
Loading

apps/docs/docs/public/palladians.svg

Lines changed: 1 addition & 0 deletions
Loading

apps/docs/package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,8 @@
1313
"react-dom": "latest",
1414
"typescript": "latest",
1515
"vocs": "latest"
16+
},
17+
"devDependencies": {
18+
"daisyui": "^4.12.10"
1619
}
1720
}

apps/docs/tailwind.config.cjs

Lines changed: 41 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,48 @@
11
/** @type {import('tailwindcss').Config} */
22
module.exports = {
3+
darkMode: ["class"],
4+
daisyui: {
5+
themes: [
6+
{
7+
rosepine: {
8+
primary: "#c4a7e7",
9+
secondary: "#ebbcba",
10+
accent: "#f6c177",
11+
neutral: "#191724",
12+
"base-100": "#1f1d2e",
13+
info: "#31748f",
14+
success: "#9ccfd8",
15+
warning: "#f6c177",
16+
error: "#eb6f92",
17+
},
18+
"rosepine-moon": {
19+
primary: "#c4a7e7",
20+
secondary: "#ea9a97",
21+
accent: "#c4a7e7",
22+
neutral: "#2a273f",
23+
"base-100": "#232136",
24+
info: "#3e8fb0",
25+
success: "#9ccfd8",
26+
warning: "#f6c177",
27+
error: "#eb6f92",
28+
},
29+
"rosepine-dawn": {
30+
primary: "#907aa9",
31+
secondary: "#d7827e",
32+
accent: "#907aa9",
33+
neutral: "#faf4ed",
34+
"base-100": "#fffaf3",
35+
info: "#286983",
36+
success: "#56949f",
37+
warning: "#ea9d34",
38+
error: "#b4637a",
39+
},
40+
},
41+
],
42+
},
343
content: ["./docs/**/*.{html,md,mdx,tsx,js,jsx}"],
444
theme: {
545
extend: {},
646
},
7-
plugins: [],
47+
plugins: [require("daisyui")],
848
};

apps/docs/vocs.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ export default defineConfig({
4141
{ icon: "github", link: "https://github.com/palladians/mina-js" },
4242
{ icon: "discord", link: "https://get.pallad.co/discord" },
4343
],
44+
topNav: [{ text: "Pallad", link: "https://get.pallad.co/website" }],
4445
sidebar: [
4546
{
4647
text: "Getting Started",

bun.lockb

1.48 KB
Binary file not shown.

0 commit comments

Comments
 (0)