@sp-days-framework/create-sp-days 1.0.3 → 1.1.0-beta1
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/README.md +14 -0
- package/bin/index.js +2 -0
- package/docs/advanced-config.mdx +387 -0
- package/docs/changelog.mdx +106 -0
- package/docs/index.mdx +205 -0
- package/docs/install.mdx +199 -0
- package/docs/sidebar-sections.mdx +268 -0
- package/docs/sp-days-plugin-color-light.svg +53 -0
- package/lib/.tsbuildinfo +1 -0
- package/lib/.tsbuildinfo-build +1 -0
- package/lib/index.d.ts +1 -0
- package/lib/index.js +36 -7
- package/package.json +31 -7
- package/publish-package-docs.js +12 -0
- package/templates/addon-resources/resources/api-reference.mdx +132 -0
- package/templates/addon-resources/resources/best-practice.mdx +407 -0
- package/templates/addon-resources/resources/cheat-sheet.mdx +120 -0
- package/templates/addon-resources/resources/cli-reference.mdx +280 -0
- package/templates/addon-resources/resources/configuration-guide.mdx +211 -0
- package/templates/addon-resources/resources/environment-setup.mdx +317 -0
- package/templates/addon-resources/resources/faq.mdx +146 -0
- package/templates/addon-resources/resources/glossary.mdx +78 -0
- package/templates/addon-resources/resources/index.mdx +67 -16
- package/templates/addon-resources/resources/quick-start.mdx +193 -0
- package/templates/addon-resources/resources/troubleshooting.mdx +263 -0
- package/templates/addon-resources/resources/useful-links.mdx +61 -0
- package/templates/page-course/README.md +62 -0
- package/templates/page-course/docusaurus.config.ts +65 -5
- package/templates/page-course/package.json +12 -2
- package/templates/page-course/sidebarSections.js +118 -0
- package/tsconfig.base.client.json +10 -0
- package/tsconfig.base.json +71 -0
- package/tsconfig.build.json +9 -0
- package/templates/addon-resources/resources/frontpage-collection/components/Columns.mdx +0 -191
- package/templates/addon-resources/resources/frontpage-collection/components/ContentBlock.mdx +0 -126
- package/templates/addon-resources/resources/frontpage-collection/components/CourseFeature.mdx +0 -147
- package/templates/addon-resources/resources/frontpage-collection/components/FancyHeader.mdx +0 -76
- package/templates/addon-resources/resources/frontpage-collection/components/GetStarted.mdx +0 -222
- package/templates/addon-resources/resources/frontpage-collection/components/HeroBanner.mdx +0 -205
- package/templates/addon-resources/resources/frontpage-collection/components/IconContainer.mdx +0 -249
- package/templates/addon-resources/resources/frontpage-collection/components/Iconify.mdx +0 -228
- package/templates/addon-resources/resources/frontpage-collection/components/_category_.yml +0 -2
- package/templates/addon-resources/resources/frontpage-collection/index.mdx +0 -85
- package/templates/addon-resources/resources/frontpage-collection/setup/index.mdx +0 -185
- package/templates/addon-resources/resources/interactive-tasks/creating-tasks.mdx +0 -292
- package/templates/addon-resources/resources/interactive-tasks/examples/_category_.yml +0 -3
- package/templates/addon-resources/resources/interactive-tasks/examples/advanced-usage.mdx +0 -304
- package/templates/addon-resources/resources/interactive-tasks/examples/basic-usage.mdx +0 -128
- package/templates/addon-resources/resources/interactive-tasks/index.mdx +0 -93
- package/templates/addon-resources/resources/interactive-tasks/setup/advanced-configuration.mdx +0 -150
- package/templates/addon-resources/resources/interactive-tasks/setup/index.mdx +0 -174
- package/templates/addon-resources/resources/interactive-tasks/task-progression.mdx +0 -140
- package/templates/addon-resources/resources/slidev-integration/index.mdx +0 -106
- package/templates/addon-resources/resources/slidev-integration/setup/advanced-configuration.mdx +0 -144
- package/templates/addon-resources/resources/slidev-integration/setup/index.mdx +0 -200
- package/templates/addon-resources/resources/sykehuspartner-theme/index.mdx +0 -105
- package/templates/addon-resources/resources/sykehuspartner-theme/layouts/_category_.yml +0 -2
- package/templates/addon-resources/resources/sykehuspartner-theme/layouts/content/_category_.yml +0 -2
- package/templates/addon-resources/resources/sykehuspartner-theme/layouts/content/center.mdx +0 -33
- package/templates/addon-resources/resources/sykehuspartner-theme/layouts/content/default.mdx +0 -59
- package/templates/addon-resources/resources/sykehuspartner-theme/layouts/content/full.mdx +0 -49
- package/templates/addon-resources/resources/sykehuspartner-theme/layouts/image/_category_.yml +0 -2
- package/templates/addon-resources/resources/sykehuspartner-theme/layouts/image/image-left.mdx +0 -37
- package/templates/addon-resources/resources/sykehuspartner-theme/layouts/image/image-right.mdx +0 -37
- package/templates/addon-resources/resources/sykehuspartner-theme/layouts/image/image.mdx +0 -56
- package/templates/addon-resources/resources/sykehuspartner-theme/layouts/multi-column/_category_.yml +0 -2
- package/templates/addon-resources/resources/sykehuspartner-theme/layouts/multi-column/three-cols-header.mdx +0 -49
- package/templates/addon-resources/resources/sykehuspartner-theme/layouts/multi-column/three-cols.mdx +0 -47
- package/templates/addon-resources/resources/sykehuspartner-theme/layouts/multi-column/two-cols-header.mdx +0 -43
- package/templates/addon-resources/resources/sykehuspartner-theme/layouts/multi-column/two-cols.mdx +0 -38
- package/templates/addon-resources/resources/sykehuspartner-theme/layouts/section/_category_.yml +0 -2
- package/templates/addon-resources/resources/sykehuspartner-theme/layouts/section/cover.mdx +0 -43
- package/templates/addon-resources/resources/sykehuspartner-theme/layouts/section/end.mdx +0 -33
- package/templates/addon-resources/resources/sykehuspartner-theme/layouts/section/intro.mdx +0 -49
- package/templates/addon-resources/resources/sykehuspartner-theme/layouts/section/section.mdx +0 -41
- package/templates/addon-resources/resources/sykehuspartner-theme/layouts/special/_category_.yml +0 -2
- package/templates/addon-resources/resources/sykehuspartner-theme/layouts/special/about-me.mdx +0 -92
- package/templates/addon-resources/resources/sykehuspartner-theme/layouts/special/fact.mdx +0 -47
- package/templates/addon-resources/resources/sykehuspartner-theme/layouts/special/quote.mdx +0 -27
- package/templates/addon-resources/resources/sykehuspartner-theme/layouts/special/statement.mdx +0 -28
- package/templates/addon-resources/resources/sykehuspartner-theme/setup/advanced-configuration.mdx +0 -79
- package/templates/addon-resources/resources/sykehuspartner-theme/setup/index.mdx +0 -104
- package/templates/addon-resources/resources/sykehuspartner-theme/syntax-and-icons.mdx +0 -89
- package/templates/addon-slidev/package.json +0 -54
package/templates/addon-resources/resources/frontpage-collection/components/IconContainer.mdx
DELETED
|
@@ -1,249 +0,0 @@
|
|
|
1
|
-
import Tabs from "@theme/Tabs";
|
|
2
|
-
import TabItem from "@theme/TabItem";
|
|
3
|
-
import {
|
|
4
|
-
IconContainersSection,
|
|
5
|
-
IconContainerBlock,
|
|
6
|
-
} from "@sp-days-framework/docusaurus-frontpage-collection";
|
|
7
|
-
|
|
8
|
-
# Icon Containers Block
|
|
9
|
-
|
|
10
|
-
Display icon containers in a responsive grid with icons and links.
|
|
11
|
-
|
|
12
|
-
<div className="preview">
|
|
13
|
-
<div className="container">
|
|
14
|
-
<IconContainersSection>
|
|
15
|
-
<IconContainerBlock
|
|
16
|
-
title="Git Knowledge"
|
|
17
|
-
iconify="mdi:git"
|
|
18
|
-
link="/resources"
|
|
19
|
-
/>
|
|
20
|
-
<IconContainerBlock
|
|
21
|
-
title="Terminal Skills"
|
|
22
|
-
iconify="mdi:console"
|
|
23
|
-
link="/resources"
|
|
24
|
-
/>
|
|
25
|
-
</IconContainersSection>
|
|
26
|
-
</div>
|
|
27
|
-
</div>
|
|
28
|
-
|
|
29
|
-
## Features
|
|
30
|
-
|
|
31
|
-
- Responsive grid layout
|
|
32
|
-
- Icon support (Iconify or custom images)
|
|
33
|
-
- Clickable cards with hover animations
|
|
34
|
-
- Customizable icon and title colors
|
|
35
|
-
- Optional animation disable
|
|
36
|
-
|
|
37
|
-
## Import
|
|
38
|
-
|
|
39
|
-
<Tabs>
|
|
40
|
-
<TabItem value="individual" label="Individual import" default>
|
|
41
|
-
```mdx
|
|
42
|
-
import {
|
|
43
|
-
IconContainersSection,
|
|
44
|
-
IconContainerBlock,
|
|
45
|
-
} from "@sp-days-framework/docusaurus-frontpage-collection";
|
|
46
|
-
```
|
|
47
|
-
</TabItem>
|
|
48
|
-
<TabItem value="default" label="Default import">
|
|
49
|
-
```mdx
|
|
50
|
-
import IconContainersSection, { IconContainerBlock } from "@sp-days-framework/docusaurus-frontpage-collection/lib/components/IconContainer";
|
|
51
|
-
```
|
|
52
|
-
</TabItem>
|
|
53
|
-
</Tabs>
|
|
54
|
-
|
|
55
|
-
## Basic Usage
|
|
56
|
-
|
|
57
|
-
```mdx
|
|
58
|
-
<IconContainersSection>
|
|
59
|
-
<IconContainerBlock
|
|
60
|
-
title="Programming Basics"
|
|
61
|
-
iconify="mdi:code-braces"
|
|
62
|
-
link="/docs/programming"
|
|
63
|
-
/>
|
|
64
|
-
<IconContainerBlock
|
|
65
|
-
title="Development Tools"
|
|
66
|
-
iconify="mdi:tools"
|
|
67
|
-
link="/docs/tools"
|
|
68
|
-
/>
|
|
69
|
-
</IconContainersSection>
|
|
70
|
-
```
|
|
71
|
-
|
|
72
|
-
## Props
|
|
73
|
-
|
|
74
|
-
### IconContainersSection
|
|
75
|
-
|
|
76
|
-
| Prop | Type | Default | Description |
|
|
77
|
-
| ---------------- | ----------- | --------- | ----------------------------- |
|
|
78
|
-
| `children` | `ReactNode` | required | IconContainerBlock components |
|
|
79
|
-
| `minWidth` | `string` | `'200px'` | Minimum width for each block |
|
|
80
|
-
| `maxItemsPerRow` | `string` | `'auto'` | Max items per row |
|
|
81
|
-
|
|
82
|
-
### IconContainerBlock
|
|
83
|
-
|
|
84
|
-
| Prop | Type | Description |
|
|
85
|
-
| ----------------- | ---------------------- | ---------------------------------------------- |
|
|
86
|
-
| `id` | `string` | Optional unique identifier for the item |
|
|
87
|
-
| `title` | `string` | Title of the item |
|
|
88
|
-
| `iconify` | `IconifyConfig\|string`| Iconify icon name or configuration |
|
|
89
|
-
| `customSvg` | `CustomSvgConfig` | Custom SVG files for light/dark themes (supports color override) |
|
|
90
|
-
| `customImage` | `CustomImageConfig` | Custom image files (PNG/JPEG) for light/dark themes |
|
|
91
|
-
| `iconColors` | `IconColorConfig` | Icon color overrides (light/dark/hover) |
|
|
92
|
-
| `titleColors` | `TitleColorConfig` | Title color overrides (light/dark/hover) |
|
|
93
|
-
| `disableAnimation`| `boolean` | Disable hover animation (default: false) |
|
|
94
|
-
| `link` | `string` | Link URL when clicked |
|
|
95
|
-
|
|
96
|
-
## Examples
|
|
97
|
-
|
|
98
|
-
### With Iconify Icons
|
|
99
|
-
|
|
100
|
-
```mdx
|
|
101
|
-
<IconContainersSection>
|
|
102
|
-
<IconContainerBlock
|
|
103
|
-
title="Linux Knowledge"
|
|
104
|
-
iconify="mdi:linux"
|
|
105
|
-
link="/docs/linux"
|
|
106
|
-
/>
|
|
107
|
-
<IconContainerBlock
|
|
108
|
-
title="Git Basics"
|
|
109
|
-
iconify="mdi:git"
|
|
110
|
-
link="/docs/git"
|
|
111
|
-
/>
|
|
112
|
-
<IconContainerBlock
|
|
113
|
-
title="Docker Basics"
|
|
114
|
-
iconify="mdi:docker"
|
|
115
|
-
link="/docs/docker"
|
|
116
|
-
/>
|
|
117
|
-
</IconContainersSection>
|
|
118
|
-
```
|
|
119
|
-
|
|
120
|
-
### With Custom Colors
|
|
121
|
-
|
|
122
|
-
```mdx
|
|
123
|
-
<IconContainersSection>
|
|
124
|
-
<IconContainerBlock
|
|
125
|
-
title="Linux Knowledge"
|
|
126
|
-
iconify="mdi:linux"
|
|
127
|
-
iconColors={{
|
|
128
|
-
light: "#FCC624",
|
|
129
|
-
lightHover: "#DB9D0C",
|
|
130
|
-
dark: "#FFD65A",
|
|
131
|
-
darkHover: "#FFE89E"
|
|
132
|
-
}}
|
|
133
|
-
titleColors={{
|
|
134
|
-
light: "#333333",
|
|
135
|
-
lightHover: "#FCC624"
|
|
136
|
-
}}
|
|
137
|
-
link="/docs/linux"
|
|
138
|
-
/>
|
|
139
|
-
</IconContainersSection>
|
|
140
|
-
```
|
|
141
|
-
|
|
142
|
-
### With Custom SVG Images
|
|
143
|
-
|
|
144
|
-
```mdx
|
|
145
|
-
<IconContainersSection>
|
|
146
|
-
<IconContainerBlock
|
|
147
|
-
title="VS Code"
|
|
148
|
-
customSvg={{
|
|
149
|
-
light: "img/vscode-light.svg",
|
|
150
|
-
dark: "img/vscode-dark.svg",
|
|
151
|
-
}}
|
|
152
|
-
link="/docs/vscode"
|
|
153
|
-
/>
|
|
154
|
-
</IconContainersSection>
|
|
155
|
-
```
|
|
156
|
-
|
|
157
|
-
### With Custom PNG/JPEG Images
|
|
158
|
-
|
|
159
|
-
```mdx
|
|
160
|
-
<IconContainersSection>
|
|
161
|
-
<IconContainerBlock
|
|
162
|
-
title="VS Code"
|
|
163
|
-
customImage={{
|
|
164
|
-
light: "img/vscode-light.png",
|
|
165
|
-
dark: "img/vscode-dark.png",
|
|
166
|
-
}}
|
|
167
|
-
link="/docs/vscode"
|
|
168
|
-
/>
|
|
169
|
-
</IconContainersSection>
|
|
170
|
-
```
|
|
171
|
-
|
|
172
|
-
### Disable Animations
|
|
173
|
-
|
|
174
|
-
```mdx
|
|
175
|
-
<IconContainersSection>
|
|
176
|
-
<IconContainerBlock
|
|
177
|
-
title="Static Item"
|
|
178
|
-
iconify="mdi:information"
|
|
179
|
-
disableAnimation={true}
|
|
180
|
-
link="/docs/info"
|
|
181
|
-
/>
|
|
182
|
-
</IconContainersSection>
|
|
183
|
-
```
|
|
184
|
-
|
|
185
|
-
### Custom Layout
|
|
186
|
-
|
|
187
|
-
```mdx
|
|
188
|
-
<IconContainersSection minWidth="250px" maxItemsPerRow="2">
|
|
189
|
-
<IconContainerBlock
|
|
190
|
-
title="Requirement 1"
|
|
191
|
-
iconify="mdi:check"
|
|
192
|
-
link="/docs/req1"
|
|
193
|
-
/>
|
|
194
|
-
<IconContainerBlock
|
|
195
|
-
title="Requirement 2"
|
|
196
|
-
iconify="mdi:check"
|
|
197
|
-
link="/docs/req2"
|
|
198
|
-
/>
|
|
199
|
-
<IconContainerBlock
|
|
200
|
-
title="Requirement 3"
|
|
201
|
-
iconify="mdi:check"
|
|
202
|
-
link="/docs/req3"
|
|
203
|
-
/>
|
|
204
|
-
<IconContainerBlock
|
|
205
|
-
title="Requirement 4"
|
|
206
|
-
iconify="mdi:check"
|
|
207
|
-
link="/docs/req4"
|
|
208
|
-
/>
|
|
209
|
-
</IconContainersSection>
|
|
210
|
-
```
|
|
211
|
-
|
|
212
|
-
## Complete Example
|
|
213
|
-
|
|
214
|
-
```mdx
|
|
215
|
-
---
|
|
216
|
-
title: Course Icon Containers
|
|
217
|
-
---
|
|
218
|
-
|
|
219
|
-
import {
|
|
220
|
-
FancyHeader,
|
|
221
|
-
IconContainersSection,
|
|
222
|
-
IconContainerBlock,
|
|
223
|
-
} from "@sp-days-framework/docusaurus-frontpage-collection";
|
|
224
|
-
|
|
225
|
-
<FancyHeader>Icon Containers</FancyHeader>
|
|
226
|
-
|
|
227
|
-
Before starting this course, make sure you have:
|
|
228
|
-
|
|
229
|
-
<IconContainersSection>
|
|
230
|
-
<IconContainerBlock
|
|
231
|
-
id="programming"
|
|
232
|
-
title="Programming Basics"
|
|
233
|
-
iconify="mdi:code-braces"
|
|
234
|
-
link="/docs/programming-basics"
|
|
235
|
-
/>
|
|
236
|
-
<IconContainerBlock
|
|
237
|
-
id="terminal"
|
|
238
|
-
title="Terminal Usage"
|
|
239
|
-
iconify="mdi:console"
|
|
240
|
-
link="/docs/terminal"
|
|
241
|
-
/>
|
|
242
|
-
<IconContainerBlock
|
|
243
|
-
id="editor"
|
|
244
|
-
title="Code Editor"
|
|
245
|
-
iconify="mdi:file-code"
|
|
246
|
-
link="/docs/editor-setup"
|
|
247
|
-
/>
|
|
248
|
-
</IconContainersSection>
|
|
249
|
-
```
|
|
@@ -1,228 +0,0 @@
|
|
|
1
|
-
import Tabs from "@theme/Tabs";
|
|
2
|
-
import TabItem from "@theme/TabItem";
|
|
3
|
-
import { Iconify } from "@sp-days-framework/docusaurus-frontpage-collection";
|
|
4
|
-
|
|
5
|
-
# Iconify
|
|
6
|
-
|
|
7
|
-
A simple component for adding Iconify icons to your MDX pages and documentation with theme-aware colors and flexible sizing.
|
|
8
|
-
|
|
9
|
-
<div className="preview">
|
|
10
|
-
<div className="container">
|
|
11
|
-
<Iconify icon="mdi:tools" />
|
|
12
|
-
</div>
|
|
13
|
-
</div>
|
|
14
|
-
|
|
15
|
-
## Features
|
|
16
|
-
|
|
17
|
-
- **Theme-Aware Colors** - Automatic light/dark mode support
|
|
18
|
-
- **Flexible Sizing** - Control width, or let it default to 200px
|
|
19
|
-
- **Alignment Control** - Left, center, or right alignment on the page
|
|
20
|
-
- **Aspect Ratio** - Always maintains proper icon proportions
|
|
21
|
-
|
|
22
|
-
## Import
|
|
23
|
-
|
|
24
|
-
<Tabs>
|
|
25
|
-
<TabItem value="individual" label="Individual import" default>
|
|
26
|
-
```mdx
|
|
27
|
-
import { Iconify } from "@sp-days-framework/docusaurus-frontpage-collection";
|
|
28
|
-
```
|
|
29
|
-
</TabItem>
|
|
30
|
-
<TabItem value="default" label="Default import">
|
|
31
|
-
```mdx
|
|
32
|
-
import Iconify from "@sp-days-framework/docusaurus-frontpage-collection/lib/components/Iconify";
|
|
33
|
-
```
|
|
34
|
-
</TabItem>
|
|
35
|
-
</Tabs>
|
|
36
|
-
|
|
37
|
-
## Basic Usage
|
|
38
|
-
|
|
39
|
-
```mdx
|
|
40
|
-
<Iconify icon="mdi:tools" />
|
|
41
|
-
```
|
|
42
|
-
|
|
43
|
-
## Props
|
|
44
|
-
|
|
45
|
-
| Prop | Type | Default | Description |
|
|
46
|
-
| ------------ | ----------------------------- | ---------- | ---------------------------------------------- |
|
|
47
|
-
| `icon` | `string` | required | Iconify icon name (e.g., "mdi:tools") |
|
|
48
|
-
| `width` | `string` | `"200px"` | Icon width (e.g., "300px", "10rem") |
|
|
49
|
-
| `alignment` | `'left' \| 'center' \| 'right'` | `'center'` | Alignment of icon on the page |
|
|
50
|
-
| `iconColors` | `IconifyImageColorConfig` | primary | Color configuration for light/dark themes |
|
|
51
|
-
| `className` | `string` | - | Additional CSS class |
|
|
52
|
-
| `style` | `CSSProperties` | - | Additional inline styles |
|
|
53
|
-
|
|
54
|
-
### IconifyImageColorConfig
|
|
55
|
-
|
|
56
|
-
| Property | Type | Description |
|
|
57
|
-
| -------- | -------- | ----------------------------------------------------- |
|
|
58
|
-
| `light` | `string` | Icon color in light mode (default: --ifm-color-primary) |
|
|
59
|
-
| `dark` | `string` | Icon color in dark mode (default: --ifm-color-primary) |
|
|
60
|
-
|
|
61
|
-
:::tip
|
|
62
|
-
If only `light` is specified, `dark` will default to `--ifm-color-primary`. If only `dark` is specified, `light` will default to `--ifm-color-primary`.
|
|
63
|
-
:::
|
|
64
|
-
|
|
65
|
-
## Examples
|
|
66
|
-
|
|
67
|
-
### Default Settings
|
|
68
|
-
|
|
69
|
-
Default size (200px x 200px) and center alignment:
|
|
70
|
-
|
|
71
|
-
```mdx
|
|
72
|
-
<Iconify icon="mdi:docker" />
|
|
73
|
-
```
|
|
74
|
-
|
|
75
|
-
<Iconify icon="mdi:docker" />
|
|
76
|
-
|
|
77
|
-
### Custom Size
|
|
78
|
-
|
|
79
|
-
Control the size with `width`. The icon maintains aspect ratio:
|
|
80
|
-
|
|
81
|
-
```mdx
|
|
82
|
-
<Iconify icon="mdi:kubernetes" width="300px" />
|
|
83
|
-
```
|
|
84
|
-
|
|
85
|
-
<Iconify icon="mdi:kubernetes" width="300px" />
|
|
86
|
-
|
|
87
|
-
### Custom Alignment
|
|
88
|
-
|
|
89
|
-
Control where the icon appears on the page:
|
|
90
|
-
|
|
91
|
-
```mdx
|
|
92
|
-
<Iconify icon="mdi:git" alignment="left" width="150px" />
|
|
93
|
-
```
|
|
94
|
-
|
|
95
|
-
<Iconify icon="mdi:git" alignment="left" width="150px" />
|
|
96
|
-
|
|
97
|
-
```mdx
|
|
98
|
-
<Iconify icon="mdi:github" alignment="right" width="150px" />
|
|
99
|
-
```
|
|
100
|
-
|
|
101
|
-
<Iconify icon="mdi:github" alignment="right" width="150px" />
|
|
102
|
-
|
|
103
|
-
### Custom Colors
|
|
104
|
-
|
|
105
|
-
Specify different colors for light and dark themes:
|
|
106
|
-
|
|
107
|
-
```mdx
|
|
108
|
-
<Iconify
|
|
109
|
-
icon="mdi:docker"
|
|
110
|
-
iconColors={{
|
|
111
|
-
light: "#2496ED",
|
|
112
|
-
dark: "#2496ED"
|
|
113
|
-
}}
|
|
114
|
-
width="250px"
|
|
115
|
-
/>
|
|
116
|
-
```
|
|
117
|
-
|
|
118
|
-
<Iconify
|
|
119
|
-
icon="mdi:docker"
|
|
120
|
-
iconColors={{
|
|
121
|
-
light: "#2496ED",
|
|
122
|
-
dark: "#2496ED"
|
|
123
|
-
}}
|
|
124
|
-
width="250px"
|
|
125
|
-
/>
|
|
126
|
-
|
|
127
|
-
```mdx
|
|
128
|
-
<Iconify
|
|
129
|
-
icon="mdi:kubernetes"
|
|
130
|
-
iconColors={{
|
|
131
|
-
light: "#326CE5",
|
|
132
|
-
dark: "#76A9FA"
|
|
133
|
-
}}
|
|
134
|
-
width="250px"
|
|
135
|
-
/>
|
|
136
|
-
```
|
|
137
|
-
|
|
138
|
-
<Iconify
|
|
139
|
-
icon="mdi:kubernetes"
|
|
140
|
-
iconColors={{
|
|
141
|
-
light: "#326CE5",
|
|
142
|
-
dark: "#76A9FA"
|
|
143
|
-
}}
|
|
144
|
-
width="250px"
|
|
145
|
-
/>
|
|
146
|
-
|
|
147
|
-
### Only Specify One Color
|
|
148
|
-
|
|
149
|
-
If you only specify `light`, the dark mode defaults to primary color:
|
|
150
|
-
|
|
151
|
-
```mdx
|
|
152
|
-
<Iconify
|
|
153
|
-
icon="mdi:react"
|
|
154
|
-
iconColors={{
|
|
155
|
-
light: "#61DAFB"
|
|
156
|
-
}}
|
|
157
|
-
width="200px"
|
|
158
|
-
/>
|
|
159
|
-
```
|
|
160
|
-
|
|
161
|
-
<Iconify
|
|
162
|
-
icon="mdi:react"
|
|
163
|
-
iconColors={{
|
|
164
|
-
light: "#61DAFB"
|
|
165
|
-
}}
|
|
166
|
-
width="200px"
|
|
167
|
-
/>
|
|
168
|
-
|
|
169
|
-
## Finding Icons
|
|
170
|
-
|
|
171
|
-
Browse the full Iconify icon collection at [Iconify Icon Sets](https://icon-sets.iconify.design/).
|
|
172
|
-
|
|
173
|
-
Popular icon sets include:
|
|
174
|
-
- **Material Design Icons** - `mdi:icon-name`
|
|
175
|
-
- **Font Awesome** - `fa:icon-name` or `fa-brands:icon-name`
|
|
176
|
-
- **Simple Icons** - `simple-icons:brand-name`
|
|
177
|
-
- **Heroicons** - `heroicons:icon-name`
|
|
178
|
-
- **Lucide** - `lucide:icon-name`
|
|
179
|
-
|
|
180
|
-
## Use Cases
|
|
181
|
-
|
|
182
|
-
### In Documentation
|
|
183
|
-
|
|
184
|
-
Add visual elements to your documentation:
|
|
185
|
-
|
|
186
|
-
```mdx
|
|
187
|
-
## Prerequisites
|
|
188
|
-
|
|
189
|
-
Before starting, you'll need:
|
|
190
|
-
|
|
191
|
-
<Iconify icon="mdi:docker" width="100px" />
|
|
192
|
-
|
|
193
|
-
Docker installed on your system.
|
|
194
|
-
```
|
|
195
|
-
|
|
196
|
-
### In Landing Pages
|
|
197
|
-
|
|
198
|
-
Create visual interest on landing pages:
|
|
199
|
-
|
|
200
|
-
```mdx
|
|
201
|
-
---
|
|
202
|
-
title: Course Overview
|
|
203
|
-
---
|
|
204
|
-
|
|
205
|
-
# Welcome to Our Course
|
|
206
|
-
|
|
207
|
-
<Iconify icon="mdi:school" width="300px" />
|
|
208
|
-
|
|
209
|
-
Learn the fundamentals with hands-on examples.
|
|
210
|
-
```
|
|
211
|
-
|
|
212
|
-
### Multiple Icons in a Row
|
|
213
|
-
|
|
214
|
-
Place multiple icons side-by-side using markdown or HTML:
|
|
215
|
-
|
|
216
|
-
```mdx
|
|
217
|
-
<div style={{ display: 'flex', justifyContent: 'center', gap: '2rem' }}>
|
|
218
|
-
<Iconify icon="mdi:docker" width="150px" alignment="center" />
|
|
219
|
-
<Iconify icon="mdi:kubernetes" width="150px" alignment="center" />
|
|
220
|
-
<Iconify icon="mdi:git" width="150px" alignment="center" />
|
|
221
|
-
</div>
|
|
222
|
-
```
|
|
223
|
-
|
|
224
|
-
<div style={{ display: 'flex', justifyContent: 'center', gap: '2rem' }}>
|
|
225
|
-
<Iconify icon="mdi:docker" width="150px" alignment="center" />
|
|
226
|
-
<Iconify icon="mdi:kubernetes" width="150px" alignment="center" />
|
|
227
|
-
<Iconify icon="mdi:git" width="150px" alignment="center" />
|
|
228
|
-
</div>
|
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: Frontpage Collection
|
|
3
|
-
sidebar_class_name: sidebar-logo-docusaurus
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
import { Iconify } from "@sp-days-framework/docusaurus-frontpage-collection";
|
|
7
|
-
|
|
8
|
-
<div align="center">
|
|
9
|
-
<div className="resourceLandingPage">
|
|
10
|
-
<Iconify icon="logos:docusaurus" width="105px"/>
|
|
11
|
-
</div>
|
|
12
|
-
<div align="center">
|
|
13
|
-
# Frontpage Collection
|
|
14
|
-
</div>
|
|
15
|
-
<div align="center">
|
|
16
|
-
<p>
|
|
17
|
-
*Collection of React components for Docusaurus.
|
|
18
|
-
<br/> Designed for creating landing pages using the `.mdx` file format.*
|
|
19
|
-
</p>
|
|
20
|
-
<h4>
|
|
21
|
-
[Setup](./setup/index.mdx)
|
|
22
|
-
·
|
|
23
|
-
[NPM Package](https://www.npmjs.com/package/@sp-days-framework/docusaurus-frontpage-collection)
|
|
24
|
-
·
|
|
25
|
-
[Source Code](https://github.com/helse-sorost/sp-days-framework)
|
|
26
|
-
</h4>
|
|
27
|
-
</div>
|
|
28
|
-
</div>
|
|
29
|
-
|
|
30
|
-
---
|
|
31
|
-
|
|
32
|
-
## Features
|
|
33
|
-
|
|
34
|
-
- **Pre-built Components** - Professional React components ready to use
|
|
35
|
-
- **Icon System** - Support for Iconify icons and custom images
|
|
36
|
-
- **Theme-Aware** - Automatic light/dark mode support with customizable colors
|
|
37
|
-
- **Responsive Design** - Mobile-friendly layouts that adapt to all screen sizes
|
|
38
|
-
- **MDX Integration** - Works seamlessly with Docusaurus MDX pages
|
|
39
|
-
|
|
40
|
-
## Getting Started
|
|
41
|
-
|
|
42
|
-
Import and use components in your MDX pages:
|
|
43
|
-
|
|
44
|
-
```mdx title="src/pages/index.mdx"
|
|
45
|
-
---
|
|
46
|
-
title: Course Homepage
|
|
47
|
-
hide_table_of_contents: true
|
|
48
|
-
---
|
|
49
|
-
|
|
50
|
-
import {
|
|
51
|
-
HeroBanner,
|
|
52
|
-
CourseFeature,
|
|
53
|
-
Included,
|
|
54
|
-
NotIncluded
|
|
55
|
-
} from "@sp-days-framework/docusaurus-frontpage-collection";
|
|
56
|
-
|
|
57
|
-
<HeroBanner
|
|
58
|
-
bannerText="Learn Docker with our hands-on course"
|
|
59
|
-
iconify="mdi:docker"
|
|
60
|
-
/>
|
|
61
|
-
|
|
62
|
-
<CourseFeature>
|
|
63
|
-
<Included>
|
|
64
|
-
- Hands-on exercises
|
|
65
|
-
- Real-world examples
|
|
66
|
-
</Included>
|
|
67
|
-
<NotIncluded>
|
|
68
|
-
- Prerequisites knowledge
|
|
69
|
-
- Development environment
|
|
70
|
-
</NotIncluded>
|
|
71
|
-
</CourseFeature>
|
|
72
|
-
```
|
|
73
|
-
|
|
74
|
-
See [Setup](./setup/index.mdx) for installation and configuration.
|
|
75
|
-
|
|
76
|
-
## Available Components
|
|
77
|
-
|
|
78
|
-
- **[Block](./components/ContentBlock.mdx)** - Simple styled content block
|
|
79
|
-
- **[Columns](./components/Columns.mdx)** - Two-column responsive layout
|
|
80
|
-
- **[CourseFeature](./components/CourseFeature.mdx)** - Display course features with included/not included sections
|
|
81
|
-
- **[FancyHeader](./components/FancyHeader.mdx)** - Header with decorative underline
|
|
82
|
-
- **[GetStarted](./components/GetStarted.mdx)** - Call-to-action section with explore items
|
|
83
|
-
- **[HeroBanner](./components/HeroBanner.mdx)** - Full-width banner with title and icon
|
|
84
|
-
- **[IconContainersSection](./components/IconContainer.mdx)** - Display icon containers in a grid
|
|
85
|
-
- **[Iconify](./components/Iconify.mdx)** - Add Iconify icons to pages with theme-aware colors
|