|
1 | | -import { Homepage, Hero, Features, Feature } from '@grapp/nextra-theme'; |
| 1 | +import { Homepage, Hero, Features, Feature, Highlight } from '@grapp/nextra-theme'; |
2 | 2 |
|
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 | + }> |
25 | 37 | <Feature |
| 38 | + icon={IconFirework} |
| 39 | + color="#ffa10d" |
26 | 40 | title="Reactive UI" |
27 | 41 | description="The library automatically handles UI updates based on input and events received." |
28 | 42 | /> |
29 | 43 | <Feature |
| 44 | + icon={IconLayout} |
| 45 | + color="#00e6cf" |
30 | 46 | title="Flexbox" |
31 | 47 | description="NuiComponents supports a simple flexbox layout system, which provides a more flexible way to layout UIs." |
32 | 48 | /> |
33 | 49 | <Feature |
| 50 | + icon={IconCheckbox} |
| 51 | + color="#e6008a" |
34 | 52 | title="State Management" |
35 | 53 | description="The library provides a state management system that allows managing data and UI state with ease." |
36 | 54 | /> |
37 | | - |
38 | 55 | <Feature |
| 56 | + icon={IconExtension} |
| 57 | + color="#ba95f6" |
39 | 58 | title="Extensibility" |
40 | 59 | description="Create your custom components by using Component API." |
41 | 60 | /> |
42 | 61 | <Feature |
| 62 | + icon={IconProcess} |
| 63 | + color="#ff433e" |
43 | 64 | title="Reusability" |
44 | 65 | description="Reuse components between different parts of UI, reduce the amount of code you need to write." |
45 | 66 | /> |
|
0 commit comments