Skip to content

Commit a59ed05

Browse files
committed
chore: update docs homepage
1 parent eab9a0e commit a59ed05

File tree

12 files changed

+71
-27
lines changed

12 files changed

+71
-27
lines changed

docs/bun.lockb

-292 Bytes
Binary file not shown.
Lines changed: 1 addition & 0 deletions
Loading
Lines changed: 1 addition & 0 deletions
Loading
Lines changed: 1 addition & 0 deletions
Loading
Lines changed: 1 addition & 0 deletions
Loading
Lines changed: 1 addition & 0 deletions
Loading

docs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,6 @@
2020
"typescript": "^5.0.0"
2121
},
2222
"dependencies": {
23-
"@grapp/nextra-theme": "^0.3.8"
23+
"@grapp/nextra-theme": "0.4.2"
2424
}
2525
}

docs/pages/index.mdx

Lines changed: 45 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,66 @@
1-
import { Homepage, Hero, Features, Feature } from '@grapp/nextra-theme';
1+
import { Homepage, Hero, Features, Feature, Highlight } from '@grapp/nextra-theme';
22

3-
<Homepage
4-
preview="/gifs/hero.gif"
5-
hero={
6-
<Hero
7-
headline=" A set of tools for creating user interfaces in Neovim"
8-
subtitle={
9-
<>
10-
NuiComponents is a library built on top of{' '}
11-
<a
12-
href="https://github.com/MunifTanjim/nui.nvim"
13-
target="_blank"
14-
rel="noopener noreferrer"
15-
className="nx-text-primary-600 nx-underline nx-decoration-from-font [text-underline-position:from-font]"
16-
>
17-
nui.nvim
18-
</a>, it aims to make UI development in Neovim more accessible, intuitive, and enjoyable.
19-
</>
20-
}
21-
/>
22-
}
23-
>
24-
<Features>
3+
import NuiComponentsLogo from '../components/svg/nui-components-logo.svg';
4+
import IconFirework from '../components/svg/icon-firework.svg';
5+
import IconLayout from '../components/svg/icon-layout.svg';
6+
import IconCheckbox from '../components/svg/icon-checkbox.svg';
7+
import IconProcess from '../components/svg/icon-process.svg';
8+
import IconExtension from '../components/svg/icon-extension.svg';
9+
10+
<Homepage>
11+
<Hero
12+
title="A set of tools for creating user interfaces in Neovim"
13+
logo={NuiComponentsLogo}
14+
description={
15+
<>
16+
NuiComponents is a library built on top of{' '}
17+
<a
18+
href="https://github.com/MunifTanjim/nui.nvim"
19+
target="_blank"
20+
rel="noopener noreferrer"
21+
className="nx-text-primary-600 nx-underline nx-decoration-from-font [text-underline-position:from-font]"
22+
>
23+
nui.nvim
24+
</a>, it aims to make UI development in Neovim more <Highlight>accessible, intuitive, and enjoyable</Highlight>.
25+
</>
26+
}
27+
>
28+
</Hero>
29+
<Features preview={
30+
<div className="lg:pr-16">
31+
<video controls={false} autoPlay={true} muted={true} loop={true} style={{ borderRadius: 8 }}>
32+
<source src="/gifs/hero.mp4" type="video/mp4" />
33+
Your browser does not support the video tag.
34+
</video>
35+
</div>
36+
}>
2537
<Feature
38+
icon={IconFirework}
39+
color="#ffa10d"
2640
title="Reactive UI"
2741
description="The library automatically handles UI updates based on input and events received."
2842
/>
2943
<Feature
44+
icon={IconLayout}
45+
color="#00e6cf"
3046
title="Flexbox"
3147
description="NuiComponents supports a simple flexbox layout system, which provides a more flexible way to layout UIs."
3248
/>
3349
<Feature
50+
icon={IconCheckbox}
51+
color="#e6008a"
3452
title="State Management"
3553
description="The library provides a state management system that allows managing data and UI state with ease."
3654
/>
37-
3855
<Feature
56+
icon={IconExtension}
57+
color="#ba95f6"
3958
title="Extensibility"
4059
description="Create your custom components by using Component API."
4160
/>
4261
<Feature
62+
icon={IconProcess}
63+
color="#ff433e"
4364
title="Reusability"
4465
description="Reuse components between different parts of UI, reduce the amount of code you need to write."
4566
/>

docs/public/gifs/hero.gif

-4.75 MB
Binary file not shown.

docs/public/gifs/hero.mp4

1.38 MB
Binary file not shown.

0 commit comments

Comments
 (0)