@unisphere/nx 4.15.8 → 5.0.0
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/utils.d.ts +2 -2
- package/dist/generators/utils.d.ts.map +1 -1
- package/dist/generators/utils.js +1 -1
- package/dist/migrations/3-15-0/add-experience-documentation.d.ts +3 -4
- package/dist/migrations/3-15-0/add-experience-documentation.d.ts.map +1 -1
- package/dist/migrations/3-15-0/add-experience-documentation.js +4 -18
- package/dist/migrations/3-23-0/update-documentation-typedoc-plugins.d.ts +3 -6
- package/dist/migrations/3-23-0/update-documentation-typedoc-plugins.d.ts.map +1 -1
- package/dist/migrations/3-23-0/update-documentation-typedoc-plugins.js +4 -166
- package/dist/migrations/4-15-2/move-cli-to-dev-dependencies.d.ts +4 -0
- package/dist/migrations/4-15-2/move-cli-to-dev-dependencies.d.ts.map +1 -1
- package/dist/migrations/4-15-2/move-cli-to-dev-dependencies.js +70 -0
- package/dist/migrations/4-15-9/templates/_publish-artifacts.template +361 -0
- package/dist/migrations/4-15-9/update-publish-artifacts-workflow.d.ts +10 -0
- package/dist/migrations/4-15-9/update-publish-artifacts-workflow.d.ts.map +1 -0
- package/dist/migrations/4-15-9/update-publish-artifacts-workflow.js +42 -0
- package/dist/migrations/5-0-0/remove-documentation.d.ts +9 -0
- package/dist/migrations/5-0-0/remove-documentation.d.ts.map +1 -0
- package/dist/migrations/5-0-0/remove-documentation.js +45 -0
- package/generators.json +0 -5
- package/migrations.json +17 -0
- package/package.json +1 -1
- package/dist/generators/add-documentation/USAGE.md +0 -64
- package/dist/generators/add-documentation/add-documentation.d.ts +0 -5
- package/dist/generators/add-documentation/add-documentation.d.ts.map +0 -1
- package/dist/generators/add-documentation/add-documentation.js +0 -145
- package/dist/generators/add-documentation/discover-typedoc-plugins.d.ts +0 -23
- package/dist/generators/add-documentation/discover-typedoc-plugins.d.ts.map +0 -1
- package/dist/generators/add-documentation/discover-typedoc-plugins.js +0 -128
- package/dist/generators/add-documentation/schema.d.ts +0 -4
- package/dist/generators/add-documentation/schema.json +0 -20
- package/dist/generators/add-documentation/templates/babel.config.js +0 -3
- package/dist/generators/add-documentation/templates/docs/changelog/overview.md +0 -9
- package/dist/generators/add-documentation/templates/docs/documentations/overview.md +0 -9
- package/dist/generators/add-documentation/templates/docs/reference/overview.md +0 -9
- package/dist/generators/add-documentation/templates/docusaurus.config.ts.template +0 -134
- package/dist/generators/add-documentation/templates/package.json.template +0 -59
- package/dist/generators/add-documentation/templates/plugins/discover-typedoc-plugins.mjs +0 -156
- package/dist/generators/add-documentation/templates/plugins/typedoc-plugins.ts.template +0 -7
- package/dist/generators/add-documentation/templates/postcss.config.js +0 -6
- package/dist/generators/add-documentation/templates/sidebars.ts +0 -9
- package/dist/generators/add-documentation/templates/src/components/demo-placeholder-card.tsx +0 -33
- package/dist/generators/add-documentation/templates/src/components/guides/experiences/genie/integrate-genie-guide.tsx +0 -149
- package/dist/generators/add-documentation/templates/src/components/guides/experiences/notifications/notifications-react-guide.tsx +0 -211
- package/dist/generators/add-documentation/templates/src/components/homepage-features/index.tsx +0 -141
- package/dist/generators/add-documentation/templates/src/components/homepage-features/styles.module.css +0 -87
- package/dist/generators/add-documentation/templates/src/components/homepage-modules/index.tsx +0 -76
- package/dist/generators/add-documentation/templates/src/components/homepage-modules/styles.module.css +0 -120
- package/dist/generators/add-documentation/templates/src/components/homepage-start-now/index.tsx +0 -22
- package/dist/generators/add-documentation/templates/src/components/homepage-start-now/styles.module.css +0 -38
- package/dist/generators/add-documentation/templates/src/components/interactive-code-panel.tsx +0 -258
- package/dist/generators/add-documentation/templates/src/components/introductions/developer-toolbox-experience.tsx +0 -84
- package/dist/generators/add-documentation/templates/src/components/introductions/hello-world-experience.tsx +0 -133
- package/dist/generators/add-documentation/templates/src/components/introductions/notificaitons-experience.tsx +0 -635
- package/dist/generators/add-documentation/templates/src/components/introductions/reactions-experience.tsx +0 -117
- package/dist/generators/add-documentation/templates/src/components/ui-shared/introduction-card.tsx +0 -117
- package/dist/generators/add-documentation/templates/src/components/ui-shared/playground-card.tsx +0 -67
- package/dist/generators/add-documentation/templates/src/components/ui-shared/use-color-mode.ts +0 -20
- package/dist/generators/add-documentation/templates/src/components/ui-shared/utils.ts +0 -8
- package/dist/generators/add-documentation/templates/src/css/custom.css +0 -710
- package/dist/generators/add-documentation/templates/src/css/hero.module.css +0 -190
- package/dist/generators/add-documentation/templates/src/pages/index.module.css +0 -59
- package/dist/generators/add-documentation/templates/src/pages/index.tsx.template +0 -79
- package/dist/generators/add-documentation/templates/src/theme/Navbar/Content/index.tsx +0 -103
- package/dist/generators/add-documentation/templates/src/theme/Navbar/Content/styles.module.css +0 -9
- package/dist/generators/add-documentation/templates/src/theme/Navbar/MobileSidebar/Header/index.tsx +0 -45
- package/dist/generators/add-documentation/templates/static/.nojekyll +0 -0
- package/dist/generators/add-documentation/templates/static/homepage/divider.svg +0 -5
- package/dist/generators/add-documentation/templates/static/homepage/icons/Architecture.svg +0 -4
- package/dist/generators/add-documentation/templates/static/homepage/icons/Cost.svg +0 -4
- package/dist/generators/add-documentation/templates/static/homepage/icons/ExternalLink.svg +0 -3
- package/dist/generators/add-documentation/templates/static/homepage/icons/Infra.svg +0 -8
- package/dist/generators/add-documentation/templates/static/homepage/icons/Redundancies.svg +0 -6
- package/dist/generators/add-documentation/templates/static/homepage/icons/Speed.svg +0 -6
- package/dist/generators/add-documentation/templates/static/homepage/icons/Standards.svg +0 -4
- package/dist/generators/add-documentation/templates/static/homepage/icons/Unified.svg +0 -12
- package/dist/generators/add-documentation/templates/static/homepage/services/custo.jpg +0 -0
- package/dist/generators/add-documentation/templates/static/homepage/services/flame.jpg +0 -0
- package/dist/generators/add-documentation/templates/static/homepage/services/keepr.jpg +0 -0
- package/dist/generators/add-documentation/templates/static/homepage/services/loggi.jpg +0 -0
- package/dist/generators/add-documentation/templates/static/homepage/services/palleto.jpg +0 -0
- package/dist/generators/add-documentation/templates/static/homepage/services/publi.jpg +0 -0
- package/dist/generators/add-documentation/templates/static/homepage/services/tinker.jpg +0 -0
- package/dist/generators/add-documentation/templates/static/img/favicon.ico +0 -0
- package/dist/generators/add-documentation/templates/static/img/logo.svg +0 -6
- package/dist/generators/add-documentation/templates/static/img/logo_dark.svg +0 -6
- package/dist/generators/add-documentation/templates/static/robots.txt +0 -5
- package/dist/generators/add-documentation/templates/tailwind.config.js +0 -30
- package/dist/generators/add-documentation/templates/tsconfig.json +0 -7
package/dist/generators/add-documentation/templates/src/components/homepage-features/index.tsx
DELETED
|
@@ -1,141 +0,0 @@
|
|
|
1
|
-
import Heading from '@theme/Heading';
|
|
2
|
-
|
|
3
|
-
type FeatureItem = {
|
|
4
|
-
title: string;
|
|
5
|
-
description: JSX.Element;
|
|
6
|
-
icon: JSX.Element;
|
|
7
|
-
};
|
|
8
|
-
|
|
9
|
-
const FeatureList: FeatureItem[] = [
|
|
10
|
-
{
|
|
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>
|
|
16
|
-
),
|
|
17
|
-
description: (
|
|
18
|
-
<>
|
|
19
|
-
Get up and running quickly with step-by-step guides, tutorials, and
|
|
20
|
-
practical examples for common use cases.
|
|
21
|
-
</>
|
|
22
|
-
),
|
|
23
|
-
},
|
|
24
|
-
{
|
|
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>
|
|
30
|
-
),
|
|
31
|
-
description: (
|
|
32
|
-
<>
|
|
33
|
-
Complete TypeScript API documentation with detailed type definitions,
|
|
34
|
-
parameters, and return values for every public interface.
|
|
35
|
-
</>
|
|
36
|
-
),
|
|
37
|
-
},
|
|
38
|
-
{
|
|
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>
|
|
44
|
-
),
|
|
45
|
-
description: (
|
|
46
|
-
<>
|
|
47
|
-
Real-world usage patterns and copy-paste-ready code snippets to
|
|
48
|
-
accelerate your development workflow.
|
|
49
|
-
</>
|
|
50
|
-
),
|
|
51
|
-
},
|
|
52
|
-
{
|
|
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>
|
|
58
|
-
),
|
|
59
|
-
description: (
|
|
60
|
-
<>
|
|
61
|
-
Understand the design decisions, module structure, and best practices
|
|
62
|
-
for building scalable applications.
|
|
63
|
-
</>
|
|
64
|
-
),
|
|
65
|
-
},
|
|
66
|
-
{
|
|
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>
|
|
72
|
-
),
|
|
73
|
-
description: (
|
|
74
|
-
<>
|
|
75
|
-
Stay up to date with the latest releases, breaking changes, migration
|
|
76
|
-
guides, and new features.
|
|
77
|
-
</>
|
|
78
|
-
),
|
|
79
|
-
},
|
|
80
|
-
{
|
|
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
|
-
),
|
|
88
|
-
description: (
|
|
89
|
-
<>
|
|
90
|
-
Leverage CLI tools, code generators, and development utilities designed
|
|
91
|
-
to streamline your workflow.
|
|
92
|
-
</>
|
|
93
|
-
),
|
|
94
|
-
},
|
|
95
|
-
];
|
|
96
|
-
|
|
97
|
-
function Feature({ title, icon, description }: FeatureItem) {
|
|
98
|
-
return (
|
|
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">
|
|
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>
|
|
101
|
-
|
|
102
|
-
<div className="relative z-10">
|
|
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}
|
|
105
|
-
</div>
|
|
106
|
-
|
|
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">
|
|
112
|
-
{description}
|
|
113
|
-
</p>
|
|
114
|
-
</div>
|
|
115
|
-
</div>
|
|
116
|
-
</div>
|
|
117
|
-
);
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
export default function HomepageFeatures(): JSX.Element {
|
|
121
|
-
return (
|
|
122
|
-
<section className="py-20 px-4 max-w-7xl mx-auto">
|
|
123
|
-
<div className="text-center mb-16">
|
|
124
|
-
<Heading as="h2" className="text-4xl md:text-5xl font-bold text-gray-900 dark:text-white mb-4">
|
|
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">
|
|
126
|
-
Everything You Need
|
|
127
|
-
</span>
|
|
128
|
-
</Heading>
|
|
129
|
-
<p className="text-xl text-gray-600 dark:text-gray-300 max-w-3xl mx-auto leading-relaxed">
|
|
130
|
-
Comprehensive documentation to help you integrate, build, and ship with confidence
|
|
131
|
-
</p>
|
|
132
|
-
</div>
|
|
133
|
-
|
|
134
|
-
<div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8">
|
|
135
|
-
{FeatureList.map((props, idx) => (
|
|
136
|
-
<Feature key={idx} {...props} />
|
|
137
|
-
))}
|
|
138
|
-
</div>
|
|
139
|
-
</section>
|
|
140
|
-
);
|
|
141
|
-
}
|
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
.features {
|
|
2
|
-
display: flex;
|
|
3
|
-
align-items: center;
|
|
4
|
-
flex-direction: column;
|
|
5
|
-
gap: 2.5rem;
|
|
6
|
-
padding: 2rem 0;
|
|
7
|
-
width: 100%;
|
|
8
|
-
max-width: 64rem;
|
|
9
|
-
margin: 0 auto;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
.featuresContainer {
|
|
13
|
-
display: grid;
|
|
14
|
-
grid-template-columns: repeat(3, 1fr);
|
|
15
|
-
gap: 1rem;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
@media screen and (max-width: 1023px) {
|
|
19
|
-
.featuresContainer {
|
|
20
|
-
grid-template-columns: repeat(2, 1fr);
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
@media screen and (max-width: 768px) {
|
|
26
|
-
.featuresContainer {
|
|
27
|
-
grid-template-columns: repeat(1, 1fr);
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
.featuresContainer :last-child:nth-last-child(1):nth-child(3n + 1) {
|
|
33
|
-
grid-column: 2;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
.featureText {
|
|
37
|
-
font-size: 1.125rem;
|
|
38
|
-
line-height: 1.35rem;
|
|
39
|
-
font-weight: 500;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
.featureCard {
|
|
43
|
-
gap: 1.5rem;
|
|
44
|
-
padding: 1.5rem;
|
|
45
|
-
border: thin solid var(--uc-border-color);
|
|
46
|
-
box-shadow: none;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
.featureHeader, .featureBody {
|
|
50
|
-
padding: 0;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
.featureTarget {
|
|
54
|
-
color: #888888;
|
|
55
|
-
font-style: italic;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
.featureTitle {
|
|
59
|
-
font-size: 1.125rem;
|
|
60
|
-
line-height: 1.35rem;
|
|
61
|
-
font-weight: 700;
|
|
62
|
-
margin-bottom: 0.75rem;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
.featureIcon {
|
|
66
|
-
width: 5.25rem;
|
|
67
|
-
height: 5.25rem;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
.heading {
|
|
71
|
-
font-size: 3.5rem;
|
|
72
|
-
font-weight: 500;
|
|
73
|
-
font-style: italic;
|
|
74
|
-
line-height: 4.375rem;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
@media screen and (max-width: 489px) {
|
|
78
|
-
.heading {
|
|
79
|
-
font-size: 2.5rem;
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
@media screen and (max-width: 369px) {
|
|
84
|
-
.heading {
|
|
85
|
-
font-size: 1.5rem;
|
|
86
|
-
}
|
|
87
|
-
}
|
package/dist/generators/add-documentation/templates/src/components/homepage-modules/index.tsx
DELETED
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
import clsx from 'clsx';
|
|
2
|
-
import Heading from '@theme/Heading';
|
|
3
|
-
import styles from './styles.module.css';
|
|
4
|
-
|
|
5
|
-
const ExternalLink = require('@site/static/homepage/icons/ExternalLink.svg').default;
|
|
6
|
-
|
|
7
|
-
type ModuleItem = {
|
|
8
|
-
title: string;
|
|
9
|
-
previewImage: string;
|
|
10
|
-
documentationUrl: string;
|
|
11
|
-
showcaseUrl: string;
|
|
12
|
-
};
|
|
13
|
-
|
|
14
|
-
const ModulesList: ModuleItem[] = [
|
|
15
|
-
{
|
|
16
|
-
title: 'Reactions Module',
|
|
17
|
-
previewImage: 'https://placehold.co/504x260?text=Reactions+Module',
|
|
18
|
-
documentationUrl: '/docs/overview/experiences/reactions',
|
|
19
|
-
showcaseUrl: '/docs/overview/experiences/reactions#showcase',
|
|
20
|
-
},
|
|
21
|
-
];
|
|
22
|
-
|
|
23
|
-
function Module({
|
|
24
|
-
title,
|
|
25
|
-
previewImage,
|
|
26
|
-
documentationUrl,
|
|
27
|
-
showcaseUrl,
|
|
28
|
-
}: ModuleItem) {
|
|
29
|
-
return (
|
|
30
|
-
<div className={clsx(styles.module)}>
|
|
31
|
-
<a
|
|
32
|
-
href={showcaseUrl}
|
|
33
|
-
className={clsx(styles.moduleShowcasePreviewContainer)}
|
|
34
|
-
>
|
|
35
|
-
<img
|
|
36
|
-
src={previewImage}
|
|
37
|
-
className={clsx(styles.modulePreviewImage)}
|
|
38
|
-
alt={`${title} module preview image`}
|
|
39
|
-
/>
|
|
40
|
-
|
|
41
|
-
<div className={clsx(styles.moduleShowcasePreviewOverlay)}>
|
|
42
|
-
<ExternalLink className={clsx(styles.moduleShowcasePreviewIcon)} />
|
|
43
|
-
</div>
|
|
44
|
-
</a>
|
|
45
|
-
<div>
|
|
46
|
-
<Heading as="h3" className={clsx(styles.moduleTitle)}>
|
|
47
|
-
{title}
|
|
48
|
-
</Heading>
|
|
49
|
-
<div className={clsx(styles.moduleNavigation)}>
|
|
50
|
-
<a href={documentationUrl} className={clsx(styles.moduleLink)}>
|
|
51
|
-
Documentation
|
|
52
|
-
</a>
|
|
53
|
-
<span>•</span>
|
|
54
|
-
<a href={showcaseUrl} className={clsx(styles.moduleLink)}>
|
|
55
|
-
Showcase
|
|
56
|
-
</a>
|
|
57
|
-
</div>
|
|
58
|
-
</div>
|
|
59
|
-
</div>
|
|
60
|
-
);
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
export default function HomepageModules(): JSX.Element {
|
|
64
|
-
return (
|
|
65
|
-
<section className={styles.modules}>
|
|
66
|
-
<Heading as="h2" className={clsx('text--center', styles.heading)}>
|
|
67
|
-
Modules catalog
|
|
68
|
-
</Heading>
|
|
69
|
-
<div className={clsx('container', styles.modulesContainer)}>
|
|
70
|
-
{ModulesList.map((props, idx) => (
|
|
71
|
-
<Module key={idx} {...props} />
|
|
72
|
-
))}
|
|
73
|
-
</div>
|
|
74
|
-
</section>
|
|
75
|
-
);
|
|
76
|
-
}
|
|
@@ -1,120 +0,0 @@
|
|
|
1
|
-
.modules {
|
|
2
|
-
display: flex;
|
|
3
|
-
align-items: center;
|
|
4
|
-
flex-direction: column;
|
|
5
|
-
gap: 2.5rem;
|
|
6
|
-
padding: 2rem 0;
|
|
7
|
-
width: 100%;
|
|
8
|
-
max-width: 64rem;
|
|
9
|
-
margin: 0 auto;
|
|
10
|
-
margin-bottom: 3rem;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
.modulesContainer {
|
|
14
|
-
display: grid;
|
|
15
|
-
grid-template-columns: repeat(2, 1fr);
|
|
16
|
-
grid-auto-rows: auto;
|
|
17
|
-
gap: 1rem;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
@media screen and (max-width: 768px) {
|
|
21
|
-
.modulesContainer {
|
|
22
|
-
grid-template-columns: repeat(1, 1fr);
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
.modulesContainer > :nth-child(2n) {
|
|
27
|
-
grid-column: span 1;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
.modulesContainer > :nth-child(2n+1):only-child {
|
|
31
|
-
justify-self: center;
|
|
32
|
-
grid-column: span 2;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
.heading {
|
|
36
|
-
font-size: 3.5rem;
|
|
37
|
-
font-weight: 500;
|
|
38
|
-
font-style: italic;
|
|
39
|
-
line-height: 4.375rem;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
@media screen and (max-width: 489px) {
|
|
43
|
-
.heading {
|
|
44
|
-
font-size: 2.5rem;
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
@media screen and (max-width: 369px) {
|
|
49
|
-
.heading {
|
|
50
|
-
font-size: 1.5rem;
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
.module {
|
|
55
|
-
max-width: 31.5rem;
|
|
56
|
-
display: flex;
|
|
57
|
-
flex-direction: column;
|
|
58
|
-
gap: 1.25rem;
|
|
59
|
-
justify-self: center;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
.moduleShowcasePreviewContainer {
|
|
63
|
-
position: relative;
|
|
64
|
-
display: inline-block;
|
|
65
|
-
overflow: hidden;
|
|
66
|
-
text-decoration: none;
|
|
67
|
-
color: inherit;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
.moduleShowcasePreviewContainer:hover .moduleShowcasePreviewIcon,
|
|
71
|
-
.moduleShowcasePreviewContainer:hover .moduleShowcasePreviewOverlay {
|
|
72
|
-
opacity: 1;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
.moduleShowcasePreviewOverlay {
|
|
76
|
-
position: absolute;
|
|
77
|
-
top: 0;
|
|
78
|
-
left: 0;
|
|
79
|
-
width: 100%;
|
|
80
|
-
height: 100%;
|
|
81
|
-
background-color: rgba(0, 0, 0, 0.5);
|
|
82
|
-
opacity: 0;
|
|
83
|
-
transition: opacity 0.3s ease;
|
|
84
|
-
display: flex;
|
|
85
|
-
justify-content: center;
|
|
86
|
-
align-items: center;
|
|
87
|
-
border-radius: 0.5rem;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
.moduleShowcasePreviewIcon {
|
|
91
|
-
position: absolute;
|
|
92
|
-
top: 50%;
|
|
93
|
-
left: 50%;
|
|
94
|
-
transform: translate(-50%, -50%);
|
|
95
|
-
opacity: 0;
|
|
96
|
-
transition: opacity 0.3s ease;
|
|
97
|
-
color: #FFFFFF;
|
|
98
|
-
width: 4rem;
|
|
99
|
-
height: 4rem;
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
.modulePreviewImage {
|
|
103
|
-
border-radius: 0.5rem;
|
|
104
|
-
border: thin solid var(--uc-border-color);
|
|
105
|
-
display: block;
|
|
106
|
-
width: 100%;
|
|
107
|
-
height: auto;
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
.moduleTitle {
|
|
111
|
-
font-size: 1.125rem;
|
|
112
|
-
font-weight: 700;
|
|
113
|
-
line-height: 1.35rem;
|
|
114
|
-
margin: 0;
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
.moduleNavigation {
|
|
118
|
-
display: flex;
|
|
119
|
-
gap: 0.5rem;
|
|
120
|
-
}
|
package/dist/generators/add-documentation/templates/src/components/homepage-start-now/index.tsx
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import clsx from 'clsx';
|
|
2
|
-
import Heading from '@theme/Heading';
|
|
3
|
-
import styles from './styles.module.css';
|
|
4
|
-
|
|
5
|
-
const Divider = require('@site/static/homepage/divider.svg').default;
|
|
6
|
-
|
|
7
|
-
export default function HomepageStartNow(): JSX.Element {
|
|
8
|
-
return (
|
|
9
|
-
<section className={styles.startNow}>
|
|
10
|
-
<Heading as="h2" className={clsx('text--center', styles.heading)}>
|
|
11
|
-
Ready to get started?
|
|
12
|
-
</Heading>
|
|
13
|
-
<a
|
|
14
|
-
className={clsx('uc-button', styles.startNowBtn)}
|
|
15
|
-
href="/docs/documentation/overview"
|
|
16
|
-
>
|
|
17
|
-
Start now
|
|
18
|
-
</a>
|
|
19
|
-
<Divider className={clsx(styles.divider)} alt="Divider image"/>
|
|
20
|
-
</section>
|
|
21
|
-
);
|
|
22
|
-
}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
.startNow {
|
|
2
|
-
display: flex;
|
|
3
|
-
flex-direction: column;
|
|
4
|
-
align-items: center;
|
|
5
|
-
gap: 3rem;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
.heading {
|
|
9
|
-
font-size: 3.5rem;
|
|
10
|
-
font-weight: 500;
|
|
11
|
-
font-style: italic;
|
|
12
|
-
line-height: 4.375rem;
|
|
13
|
-
max-width: 53.875rem;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
@media screen and (max-width: 489px) {
|
|
17
|
-
.heading {
|
|
18
|
-
font-size: 2.5rem;
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
@media screen and (max-width: 369px) {
|
|
23
|
-
.heading {
|
|
24
|
-
font-size: 1.5rem;
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
.startNowBtn {
|
|
29
|
-
padding: 1.5rem;
|
|
30
|
-
font-size: 3.5rem;
|
|
31
|
-
line-height: 3rem;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
.divider {
|
|
35
|
-
height: 6.25rem;
|
|
36
|
-
width: 100%;
|
|
37
|
-
margin: 3rem auto;
|
|
38
|
-
}
|