@unisphere/nx 4.5.8 → 4.6.1
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.
- package/dist/generators/add-documentation/add-documentation.d.ts.map +1 -1
- package/dist/generators/add-documentation/add-documentation.js +11 -0
- package/dist/generators/add-documentation/templates/docs/changelog/overview.md +2 -1
- package/dist/generators/add-documentation/templates/docs/documentations/overview.md +9 -0
- package/dist/generators/add-documentation/templates/docs/{api → reference}/overview.md +2 -1
- package/dist/generators/add-documentation/templates/docusaurus.config.ts.template +41 -24
- package/dist/generators/add-documentation/templates/sidebars.ts +3 -3
- package/dist/generators/add-documentation/templates/src/components/homepage-features/index.tsx +56 -154
- package/dist/generators/add-documentation/templates/src/components/homepage-start-now/index.tsx +1 -1
- package/dist/generators/add-documentation/templates/src/css/custom.css +223 -0
- package/dist/generators/add-documentation/templates/src/pages/index.tsx.template +33 -145
- package/dist/generators/add-documentation/templates/src/theme/Navbar/Content/index.tsx +61 -103
- package/dist/generators/add-documentation/templates/src/theme/Navbar/Content/styles.module.css +3 -126
- package/dist/migrations/4-6-0/templates/custom.css +710 -0
- package/dist/migrations/4-6-0/templates/navbar-content-styles.module.css +9 -0
- package/dist/migrations/4-6-0/templates/navbar-content.tsx +103 -0
- package/dist/migrations/4-6-0/templates/sidebars.ts.template +9 -0
- package/dist/migrations/4-6-0/update-documentation-structure.d.ts +3 -0
- package/dist/migrations/4-6-0/update-documentation-structure.d.ts.map +1 -0
- package/dist/migrations/4-6-0/update-documentation-structure.js +238 -0
- package/dist/migrations/4-6-1/add-documentation-workflow.d.ts +3 -0
- package/dist/migrations/4-6-1/add-documentation-workflow.d.ts.map +1 -0
- package/dist/migrations/4-6-1/add-documentation-workflow.js +49 -0
- package/dist/migrations/4-6-1/templates/documentation-workflow.template +68 -0
- package/migrations.json +16 -0
- package/package.json +1 -1
- package/dist/generators/add-documentation/templates/docs/getting-started/overview.md +0 -8
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add-documentation.d.ts","sourceRoot":"","sources":["../../../src/generators/add-documentation/add-documentation.ts"],"names":[],"mappings":"AAAA,OAAO,EAA8B,IAAI,EAAiB,MAAM,YAAY,CAAC;AAG7E,OAAO,EAAE,+BAA+B,EAAE,MAAM,UAAU,CAAC;AAsB3D,wBAAsB,yBAAyB,CAC7C,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,+BAA+B,
|
|
1
|
+
{"version":3,"file":"add-documentation.d.ts","sourceRoot":"","sources":["../../../src/generators/add-documentation/add-documentation.ts"],"names":[],"mappings":"AAAA,OAAO,EAA8B,IAAI,EAAiB,MAAM,YAAY,CAAC;AAG7E,OAAO,EAAE,+BAA+B,EAAE,MAAM,UAAU,CAAC;AAsB3D,wBAAsB,yBAAyB,CAC7C,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,+BAA+B,qCAgKzC;AAED,eAAe,yBAAyB,CAAC"}
|
|
@@ -72,6 +72,17 @@ async function addDocumentationGenerator(tree, options) {
|
|
|
72
72
|
tmpl: '',
|
|
73
73
|
};
|
|
74
74
|
(0, devkit_1.generateFiles)(tree, path.join(__dirname, 'templates'), projectRoot, templateVariables);
|
|
75
|
+
// Write .gitignore explicitly — npm strips .gitignore files from published packages
|
|
76
|
+
tree.write(`${projectRoot}/.gitignore`, `# Dependencies
|
|
77
|
+
node_modules
|
|
78
|
+
|
|
79
|
+
# Production
|
|
80
|
+
build
|
|
81
|
+
|
|
82
|
+
# Generated files
|
|
83
|
+
.docusaurus
|
|
84
|
+
.cache-loader
|
|
85
|
+
`);
|
|
75
86
|
// Update .unisphere configuration
|
|
76
87
|
(0, utils_1.updateUnisphereConfig)(tree, 'documentation', fullDocumentationName, {
|
|
77
88
|
sourceRoot: projectRoot,
|
|
@@ -19,10 +19,9 @@ const config: Config = {
|
|
|
19
19
|
baseUrl: '/<%= experienceName__lowerDashCase %>',
|
|
20
20
|
<% } -%>
|
|
21
21
|
|
|
22
|
-
onBrokenLinks: '
|
|
22
|
+
onBrokenLinks: 'warn',
|
|
23
23
|
onBrokenMarkdownLinks: 'warn',
|
|
24
24
|
|
|
25
|
-
// Prevent search engine crawling and indexing
|
|
26
25
|
noIndex: true,
|
|
27
26
|
|
|
28
27
|
i18n: {
|
|
@@ -34,21 +33,46 @@ const config: Config = {
|
|
|
34
33
|
[
|
|
35
34
|
'classic',
|
|
36
35
|
{
|
|
37
|
-
docs:
|
|
38
|
-
|
|
39
|
-
exclude: [],
|
|
40
|
-
},
|
|
36
|
+
docs: false,
|
|
37
|
+
blog: false,
|
|
41
38
|
theme: {
|
|
42
39
|
customCss: './src/css/custom.css',
|
|
43
40
|
},
|
|
44
|
-
// Disable sitemap generation
|
|
45
41
|
sitemap: {
|
|
46
42
|
ignorePatterns: ['**'],
|
|
47
43
|
},
|
|
48
44
|
} satisfies Preset.Options,
|
|
49
45
|
],
|
|
50
46
|
],
|
|
51
|
-
plugins:
|
|
47
|
+
plugins: [
|
|
48
|
+
[
|
|
49
|
+
'@docusaurus/plugin-content-docs',
|
|
50
|
+
{
|
|
51
|
+
path: 'docs/documentations',
|
|
52
|
+
routeBasePath: 'documentations',
|
|
53
|
+
sidebarPath: './sidebars.ts',
|
|
54
|
+
},
|
|
55
|
+
],
|
|
56
|
+
[
|
|
57
|
+
'@docusaurus/plugin-content-docs',
|
|
58
|
+
{
|
|
59
|
+
id: 'reference',
|
|
60
|
+
path: 'docs/reference',
|
|
61
|
+
routeBasePath: 'reference',
|
|
62
|
+
sidebarPath: './sidebars.ts',
|
|
63
|
+
},
|
|
64
|
+
],
|
|
65
|
+
[
|
|
66
|
+
'@docusaurus/plugin-content-docs',
|
|
67
|
+
{
|
|
68
|
+
id: 'changelog',
|
|
69
|
+
path: 'docs/changelog',
|
|
70
|
+
routeBasePath: 'changelog',
|
|
71
|
+
sidebarPath: './sidebars.ts',
|
|
72
|
+
},
|
|
73
|
+
],
|
|
74
|
+
...typedocPlugins,
|
|
75
|
+
],
|
|
52
76
|
themes: [
|
|
53
77
|
'@docusaurus/theme-mermaid',
|
|
54
78
|
[
|
|
@@ -57,6 +81,7 @@ const config: Config = {
|
|
|
57
81
|
hashed: true,
|
|
58
82
|
indexBlog: false,
|
|
59
83
|
forceIgnoreNoIndex: true,
|
|
84
|
+
docsRouteBasePath: ['documentations', 'reference', 'changelog'],
|
|
60
85
|
},
|
|
61
86
|
],
|
|
62
87
|
],
|
|
@@ -72,9 +97,9 @@ const config: Config = {
|
|
|
72
97
|
image: 'img/social-card.png',
|
|
73
98
|
navbar: {
|
|
74
99
|
<% if (hasSubName) { -%>
|
|
75
|
-
title: '<%= experienceName__humanReadable %> | <%= subNameKebab %>
|
|
100
|
+
title: '<%= experienceName__humanReadable %> | <%= subNameKebab %>',
|
|
76
101
|
<% } else { -%>
|
|
77
|
-
title: '<%= experienceName__humanReadable %>
|
|
102
|
+
title: '<%= experienceName__humanReadable %>',
|
|
78
103
|
<% } -%>
|
|
79
104
|
logo: {
|
|
80
105
|
alt: 'Logo',
|
|
@@ -83,30 +108,22 @@ const config: Config = {
|
|
|
83
108
|
},
|
|
84
109
|
items: [
|
|
85
110
|
{
|
|
86
|
-
|
|
87
|
-
|
|
111
|
+
to: 'documentations/overview',
|
|
112
|
+
label: 'Documentations',
|
|
88
113
|
position: 'left',
|
|
89
|
-
label: 'Getting Started',
|
|
90
114
|
},
|
|
91
115
|
{
|
|
92
|
-
|
|
93
|
-
|
|
116
|
+
to: 'reference/overview',
|
|
117
|
+
label: 'Reference',
|
|
94
118
|
position: 'left',
|
|
95
|
-
label: 'API',
|
|
96
119
|
},
|
|
97
120
|
{
|
|
98
|
-
|
|
99
|
-
sidebarId: 'changelog',
|
|
100
|
-
position: 'left',
|
|
121
|
+
to: 'changelog/overview',
|
|
101
122
|
label: 'Changelog',
|
|
123
|
+
position: 'left',
|
|
102
124
|
},
|
|
103
125
|
],
|
|
104
126
|
},
|
|
105
|
-
footer: {
|
|
106
|
-
style: 'dark',
|
|
107
|
-
links: [],
|
|
108
|
-
copyright: `Copyright © ${new Date().getFullYear()} Kaltura. Built with Docusaurus.`,
|
|
109
|
-
},
|
|
110
127
|
prism: {
|
|
111
128
|
theme: prismThemes.github,
|
|
112
129
|
darkTheme: prismThemes.dracula,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { SidebarsConfig } from '@docusaurus/plugin-content-docs';
|
|
2
2
|
|
|
3
3
|
const sidebars: SidebarsConfig = {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
changelog: [{ type: 'autogenerated', dirName: '
|
|
4
|
+
documentations: [{ type: 'autogenerated', dirName: '.' }],
|
|
5
|
+
reference: [{ type: 'autogenerated', dirName: '.' }],
|
|
6
|
+
changelog: [{ type: 'autogenerated', dirName: '.' }],
|
|
7
7
|
};
|
|
8
8
|
|
|
9
9
|
export default sidebars;
|
package/dist/generators/add-documentation/templates/src/components/homepage-features/index.tsx
CHANGED
|
@@ -1,176 +1,116 @@
|
|
|
1
|
-
import clsx from 'clsx';
|
|
2
1
|
import Heading from '@theme/Heading';
|
|
3
|
-
import styles from './styles.module.css';
|
|
4
2
|
|
|
5
3
|
type FeatureItem = {
|
|
6
4
|
title: string;
|
|
7
|
-
target: string;
|
|
8
5
|
description: JSX.Element;
|
|
9
|
-
|
|
6
|
+
icon: JSX.Element;
|
|
10
7
|
};
|
|
11
8
|
|
|
12
9
|
const FeatureList: FeatureItem[] = [
|
|
13
10
|
{
|
|
14
|
-
title: '
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
Access detailed guides, tutorials, and examples to get started quickly,
|
|
20
|
-
whether you're new to web development or an experienced developer.
|
|
21
|
-
</>
|
|
11
|
+
title: 'Quick Start Guides',
|
|
12
|
+
icon: (
|
|
13
|
+
<svg className="w-8 h-8 text-white" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
|
14
|
+
<path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M13 10V3L4 14h7v7l9-11h-7z" />
|
|
15
|
+
</svg>
|
|
22
16
|
),
|
|
23
|
-
},
|
|
24
|
-
{
|
|
25
|
-
title: 'Compliance and Standards',
|
|
26
|
-
target: 'Product managers',
|
|
27
|
-
Svg: require('@site/static/homepage/icons/Standards.svg').default,
|
|
28
17
|
description: (
|
|
29
18
|
<>
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
and recovery handling, providing a robust and compliant platform
|
|
33
|
-
experience.
|
|
19
|
+
Get up and running quickly with step-by-step guides, tutorials, and
|
|
20
|
+
practical examples for common use cases.
|
|
34
21
|
</>
|
|
35
22
|
),
|
|
36
23
|
},
|
|
37
24
|
{
|
|
38
|
-
title: '
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
Benefit from highly reusable components and modules designed to ensure
|
|
44
|
-
consistency and reduce development time.
|
|
45
|
-
</>
|
|
25
|
+
title: 'API Reference',
|
|
26
|
+
icon: (
|
|
27
|
+
<svg className="w-8 h-8 text-white" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
|
28
|
+
<path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M10 20l4-16m4 4l4 4-4 4M6 16l-4-4 4-4" />
|
|
29
|
+
</svg>
|
|
46
30
|
),
|
|
47
|
-
},
|
|
48
|
-
{
|
|
49
|
-
title: 'Kaltura Player Integration',
|
|
50
|
-
target: 'Product managers',
|
|
51
|
-
Svg: require('@site/static/homepage/icons/Architecture.svg').default,
|
|
52
31
|
description: (
|
|
53
32
|
<>
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
This enables displaying visual elements on the player area, player seek
|
|
57
|
-
bar, and content modules based on the current playback time.
|
|
33
|
+
Complete TypeScript API documentation with detailed type definitions,
|
|
34
|
+
parameters, and return values for every public interface.
|
|
58
35
|
</>
|
|
59
36
|
),
|
|
60
37
|
},
|
|
61
38
|
{
|
|
62
|
-
title: '
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
Effortlessly create and configure an Unisphere workspace at runtime in
|
|
68
|
-
the application, allowing you to adapt to changes and updates without
|
|
69
|
-
significant code modifications.
|
|
70
|
-
</>
|
|
39
|
+
title: 'Code Examples',
|
|
40
|
+
icon: (
|
|
41
|
+
<svg className="w-8 h-8 text-white" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
|
42
|
+
<path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2" />
|
|
43
|
+
</svg>
|
|
71
44
|
),
|
|
72
|
-
},
|
|
73
|
-
{
|
|
74
|
-
title: 'Enhanced Developer Experience',
|
|
75
|
-
target: 'Developers',
|
|
76
|
-
Svg: require('@site/static/homepage/icons/Unified.svg').default,
|
|
77
45
|
description: (
|
|
78
46
|
<>
|
|
79
|
-
|
|
80
|
-
development workflow.
|
|
81
|
-
playground applications, Storybook integration, and runtime features
|
|
82
|
-
like theming and translation infrastructure.
|
|
47
|
+
Real-world usage patterns and copy-paste-ready code snippets to
|
|
48
|
+
accelerate your development workflow.
|
|
83
49
|
</>
|
|
84
50
|
),
|
|
85
51
|
},
|
|
86
52
|
{
|
|
87
|
-
title: '
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
For more advanced needs, directly consume components and modules from
|
|
93
|
-
NPM or Yarn. Customize these elements to perfectly suit your specific
|
|
94
|
-
requirements.
|
|
95
|
-
</>
|
|
53
|
+
title: 'Architecture & Patterns',
|
|
54
|
+
icon: (
|
|
55
|
+
<svg className="w-8 h-8 text-white" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
|
56
|
+
<path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M19 11H5m14 0a2 2 0 012 2v6a2 2 0 01-2 2H5a2 2 0 01-2-2v-6a2 2 0 012-2m14 0V9a2 2 0 00-2-2M5 11V9a2 2 0 012-2m0 0V5a2 2 0 012-2h6a2 2 0 012 2v2M7 7h10" />
|
|
57
|
+
</svg>
|
|
96
58
|
),
|
|
97
|
-
},
|
|
98
|
-
{
|
|
99
|
-
title: 'Version Control',
|
|
100
|
-
target: 'Developers',
|
|
101
|
-
Svg: require('@site/static/homepage/icons/Architecture.svg').default,
|
|
102
59
|
description: (
|
|
103
60
|
<>
|
|
104
|
-
|
|
105
|
-
|
|
61
|
+
Understand the design decisions, module structure, and best practices
|
|
62
|
+
for building scalable applications.
|
|
106
63
|
</>
|
|
107
64
|
),
|
|
108
65
|
},
|
|
109
66
|
{
|
|
110
|
-
title: '
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
Effortlessly create and configure an Unisphere workspace at runtime in
|
|
116
|
-
the application, allowing you to adapt to changes and updates without
|
|
117
|
-
significant code modifications.
|
|
118
|
-
</>
|
|
67
|
+
title: 'Changelog & Releases',
|
|
68
|
+
icon: (
|
|
69
|
+
<svg className="w-8 h-8 text-white" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
|
70
|
+
<path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-3 7h3m-3 4h3m-6-4h.01M9 16h.01" />
|
|
71
|
+
</svg>
|
|
119
72
|
),
|
|
120
|
-
},
|
|
121
|
-
{
|
|
122
|
-
title: 'Streamlined Delivery',
|
|
123
|
-
target: 'Professional services',
|
|
124
|
-
Svg: require('@site/static/homepage/icons/Speed.svg').default,
|
|
125
73
|
description: (
|
|
126
74
|
<>
|
|
127
|
-
|
|
128
|
-
and
|
|
75
|
+
Stay up to date with the latest releases, breaking changes, migration
|
|
76
|
+
guides, and new features.
|
|
129
77
|
</>
|
|
130
78
|
),
|
|
131
79
|
},
|
|
132
80
|
{
|
|
133
|
-
title: '
|
|
134
|
-
|
|
135
|
-
|
|
81
|
+
title: 'Developer Tools',
|
|
82
|
+
icon: (
|
|
83
|
+
<svg className="w-8 h-8 text-white" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
|
84
|
+
<path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.066 2.573c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.573 1.066c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.066-2.573c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z" />
|
|
85
|
+
<path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M15 12a3 3 0 11-6 0 3 3 0 016 0z" />
|
|
86
|
+
</svg>
|
|
87
|
+
),
|
|
136
88
|
description: (
|
|
137
89
|
<>
|
|
138
|
-
|
|
139
|
-
|
|
90
|
+
Leverage CLI tools, code generators, and development utilities designed
|
|
91
|
+
to streamline your workflow.
|
|
140
92
|
</>
|
|
141
93
|
),
|
|
142
94
|
},
|
|
143
95
|
];
|
|
144
96
|
|
|
145
|
-
function Feature({ title,
|
|
97
|
+
function Feature({ title, icon, description }: FeatureItem) {
|
|
146
98
|
return (
|
|
147
99
|
<div className="group relative bg-white dark:bg-gray-800 rounded-2xl p-8 shadow-sm hover:shadow-xl border border-gray-100 dark:border-gray-700 transition-all duration-300 hover:-translate-y-1">
|
|
148
|
-
{/* Gradient background on hover */}
|
|
149
100
|
<div className="absolute inset-0 bg-gradient-to-br from-blue-50/50 to-purple-100/50 dark:from-blue-900/20 dark:to-purple-800/20 rounded-2xl opacity-0 group-hover:opacity-100 transition-opacity duration-300"></div>
|
|
150
101
|
|
|
151
102
|
<div className="relative z-10">
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
<Svg className="w-8 h-8 text-white" role="img" />
|
|
103
|
+
<div className="w-14 h-14 mb-6 bg-gradient-to-br from-blue-500 to-purple-400 rounded-xl flex items-center justify-center shadow-lg group-hover:shadow-xl transition-shadow duration-300">
|
|
104
|
+
{icon}
|
|
155
105
|
</div>
|
|
156
106
|
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
</Heading>
|
|
163
|
-
<div className="inline-flex items-center px-3 py-1 bg-blue-50 dark:bg-blue-900/30 text-blue-700 dark:text-blue-300 text-sm font-medium rounded-full">
|
|
164
|
-
<svg className="w-4 h-4 mr-1" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
|
165
|
-
<path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M4.318 6.318a4.5 4.5 0 000 6.364L12 20.364l7.682-7.682a4.5 4.5 0 00-6.364-6.364L12 7.636l-1.318-1.318a4.5 4.5 0 00-6.364 0z" />
|
|
166
|
-
</svg>
|
|
167
|
-
{target} love this
|
|
168
|
-
</div>
|
|
169
|
-
</div>
|
|
170
|
-
|
|
171
|
-
<div className="text-gray-600 dark:text-gray-300 leading-relaxed">
|
|
107
|
+
<div className="space-y-3">
|
|
108
|
+
<Heading as="h3" className="text-xl font-bold text-gray-900 dark:text-white mb-0 group-hover:text-blue-600 dark:group-hover:text-blue-400 transition-colors duration-200">
|
|
109
|
+
{title}
|
|
110
|
+
</Heading>
|
|
111
|
+
<p className="text-gray-600 dark:text-gray-300 leading-relaxed mb-0">
|
|
172
112
|
{description}
|
|
173
|
-
</
|
|
113
|
+
</p>
|
|
174
114
|
</div>
|
|
175
115
|
</div>
|
|
176
116
|
</div>
|
|
@@ -180,60 +120,22 @@ function Feature({ title, target, Svg, description }: FeatureItem) {
|
|
|
180
120
|
export default function HomepageFeatures(): JSX.Element {
|
|
181
121
|
return (
|
|
182
122
|
<section className="py-20 px-4 max-w-7xl mx-auto">
|
|
183
|
-
{/* Modern section header */}
|
|
184
123
|
<div className="text-center mb-16">
|
|
185
124
|
<Heading as="h2" className="text-4xl md:text-5xl font-bold text-gray-900 dark:text-white mb-4">
|
|
186
125
|
<span className="text-transparent bg-clip-text bg-gradient-to-r from-blue-600 to-purple-400 dark:from-blue-400 dark:to-purple-300">
|
|
187
|
-
|
|
188
|
-
</span>
|
|
189
|
-
{' '}
|
|
190
|
-
<span className="text-transparent bg-clip-text bg-gradient-to-r from-purple-400 to-pink-400 dark:from-purple-300 dark:to-pink-300">
|
|
191
|
-
Advantage
|
|
126
|
+
Everything You Need
|
|
192
127
|
</span>
|
|
193
128
|
</Heading>
|
|
194
129
|
<p className="text-xl text-gray-600 dark:text-gray-300 max-w-3xl mx-auto leading-relaxed">
|
|
195
|
-
|
|
130
|
+
Comprehensive documentation to help you integrate, build, and ship with confidence
|
|
196
131
|
</p>
|
|
197
132
|
</div>
|
|
198
133
|
|
|
199
|
-
{/* Features grid with modern responsive design */}
|
|
200
134
|
<div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8">
|
|
201
135
|
{FeatureList.map((props, idx) => (
|
|
202
136
|
<Feature key={idx} {...props} />
|
|
203
137
|
))}
|
|
204
138
|
</div>
|
|
205
|
-
|
|
206
|
-
{/* Call-to-action section */}
|
|
207
|
-
<div className="mt-16 text-center">
|
|
208
|
-
<div className="bg-gradient-to-r from-blue-50 to-purple-100 dark:from-gray-800 dark:to-gray-700 rounded-2xl p-8">
|
|
209
|
-
<h3 className="text-2xl font-bold text-gray-900 dark:text-white mb-4">
|
|
210
|
-
Ready to get started?
|
|
211
|
-
</h3>
|
|
212
|
-
<p className="text-gray-600 dark:text-gray-300 mb-6 max-w-2xl mx-auto">
|
|
213
|
-
Join thousands of developers who are already building amazing applications with Unisphere
|
|
214
|
-
</p>
|
|
215
|
-
<div className="flex flex-col sm:flex-row gap-4 justify-center">
|
|
216
|
-
<a
|
|
217
|
-
href="/docs/documentation/overview"
|
|
218
|
-
className="inline-flex items-center px-6 py-3 bg-gradient-to-r from-blue-600 to-blue-700 hover:from-blue-700 hover:to-blue-800 text-white font-semibold rounded-lg shadow-md hover:shadow-lg transition-all duration-200 transform hover:-translate-y-0.5"
|
|
219
|
-
>
|
|
220
|
-
<svg className="w-5 h-5 mr-2" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
|
221
|
-
<path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M13 10V3L4 14h7v7l9-11h-7z" />
|
|
222
|
-
</svg>
|
|
223
|
-
Get Started
|
|
224
|
-
</a>
|
|
225
|
-
<a
|
|
226
|
-
href="/docs/documentation/overview"
|
|
227
|
-
className="inline-flex items-center px-6 py-3 bg-white dark:bg-gray-600 text-gray-700 dark:text-gray-200 font-semibold rounded-lg border border-gray-200 dark:border-gray-500 hover:border-gray-300 dark:hover:border-gray-400 shadow-md hover:shadow-lg transition-all duration-200 transform hover:-translate-y-0.5"
|
|
228
|
-
>
|
|
229
|
-
<svg className="w-5 h-5 mr-2" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
|
230
|
-
<path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z" />
|
|
231
|
-
</svg>
|
|
232
|
-
Learn About Unisphere
|
|
233
|
-
</a>
|
|
234
|
-
</div>
|
|
235
|
-
</div>
|
|
236
|
-
</div>
|
|
237
139
|
</section>
|
|
238
140
|
);
|
|
239
141
|
}
|
package/dist/generators/add-documentation/templates/src/components/homepage-start-now/index.tsx
CHANGED
|
@@ -8,7 +8,7 @@ export default function HomepageStartNow(): JSX.Element {
|
|
|
8
8
|
return (
|
|
9
9
|
<section className={styles.startNow}>
|
|
10
10
|
<Heading as="h2" className={clsx('text--center', styles.heading)}>
|
|
11
|
-
Ready to
|
|
11
|
+
Ready to get started?
|
|
12
12
|
</Heading>
|
|
13
13
|
<a
|
|
14
14
|
className={clsx('uc-button', styles.startNowBtn)}
|