create-boltdocs 0.2.2 → 0.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,49 @@
1
+ import { Card, Cards } from 'boltdocs/client'
2
+ import { Route, FileText, Settings, Sparkles } from 'lucide-react'
3
+
4
+ const features = [
5
+ {
6
+ title: 'File-route',
7
+ description: 'Generate routes from file structure.',
8
+ Icon: Route,
9
+ },
10
+ {
11
+ title: 'Markdown',
12
+ description: 'Support Markdown for writing documentation.',
13
+ Icon: FileText,
14
+ },
15
+ {
16
+ title: 'Customizable',
17
+ description: 'Customizable to your needs.',
18
+ Icon: Settings,
19
+ },
20
+ {
21
+ title: 'Secure by design',
22
+ description: 'Boltdocs is secure by design.',
23
+ Icon: Sparkles,
24
+ },
25
+ ]
26
+
27
+ export function HomePage() {
28
+ return (
29
+ <div className="w-full h-[calc(100vh-120px)] flex items-center gap-10">
30
+ <div className="flex flex-col justify-center py-10">
31
+ <h1 className="text-5xl font-extrabold">
32
+ Power by <p className="text-purple-500 inline">Boltdocs</p>
33
+ </h1>
34
+ <p className="text-xl mt-4 text-muted">Docs generators for react.</p>
35
+ </div>
36
+ <Cards cols={4}>
37
+ {features.map((feature) => (
38
+ <Card
39
+ key={feature.title}
40
+ title={feature.title}
41
+ icon={<feature.Icon />}
42
+ >
43
+ {feature.description}
44
+ </Card>
45
+ ))}
46
+ </Cards>
47
+ </div>
48
+ )
49
+ }
@@ -0,0 +1,49 @@
1
+ import { Card, Cards } from 'boltdocs/client'
2
+ import { Route, FileText, Settings, Sparkles } from 'lucide-react'
3
+
4
+ const features = [
5
+ {
6
+ title: 'File-route',
7
+ description: 'Generate routes from file structure.',
8
+ Icon: Route,
9
+ },
10
+ {
11
+ title: 'Markdown',
12
+ description: 'Support Markdown for writing documentation.',
13
+ Icon: FileText,
14
+ },
15
+ {
16
+ title: 'Customizable',
17
+ description: 'Customizable to your needs.',
18
+ Icon: Settings,
19
+ },
20
+ {
21
+ title: 'Secure by design',
22
+ description: 'Boltdocs is secure by design.',
23
+ Icon: Sparkles,
24
+ },
25
+ ]
26
+
27
+ export function HomePage() {
28
+ return (
29
+ <div className="w-full h-[calc(100vh-120px)] flex items-center gap-10">
30
+ <div className="flex flex-col justify-center py-10">
31
+ <h1 className="text-5xl font-extrabold">
32
+ Power by <p className="text-purple-500 inline">Boltdocs</p>
33
+ </h1>
34
+ <p className="text-xl mt-4 text-muted">Docs generators for react.</p>
35
+ </div>
36
+ <Cards cols={4}>
37
+ {features.map((feature) => (
38
+ <Card
39
+ key={feature.title}
40
+ title={feature.title}
41
+ icon={<feature.Icon />}
42
+ >
43
+ {feature.description}
44
+ </Card>
45
+ ))}
46
+ </Cards>
47
+ </div>
48
+ )
49
+ }
@@ -1,6 +1,6 @@
1
1
  import { Navbar } from 'boltdocs/client'
2
2
  import { Footer } from '../../src/components/footer'
3
- import { HomePage } from '../../src/pages/home'
3
+ import { HomePage } from './home'
4
4
 
5
5
  /**
6
6
  * Custom external routes.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-boltdocs",
3
- "version": "0.2.2",
3
+ "version": "0.2.3",
4
4
  "description": "Create a new boltdocs project",
5
5
  "type": "module",
6
6
  "author": "Jesus Alcala",