@sp-days-framework/docusaurus-frontpage-collection 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.
Files changed (36) hide show
  1. package/docs/call-to-action.mdx +226 -0
  2. package/docs/changelog.mdx +105 -0
  3. package/docs/columns.mdx +198 -0
  4. package/docs/content-block.mdx +133 -0
  5. package/docs/course-feature.mdx +154 -0
  6. package/docs/fancy-header.mdx +83 -0
  7. package/docs/hero-banner.mdx +207 -0
  8. package/docs/icon-containers.mdx +254 -0
  9. package/docs/index.mdx +88 -0
  10. package/docs/install.mdx +187 -0
  11. package/docs/logo-docusaurus.svg +17 -0
  12. package/docs/simple-icon.mdx +235 -0
  13. package/docs/terminal.mdx +332 -0
  14. package/lib/components/Terminal/ColorText.d.ts +12 -0
  15. package/lib/components/Terminal/ColorText.d.ts.map +1 -0
  16. package/lib/components/Terminal/ColorText.js +17 -0
  17. package/lib/components/Terminal/ColorText.js.map +1 -0
  18. package/lib/components/Terminal/TerminalCommand.d.ts +4 -0
  19. package/lib/components/Terminal/TerminalCommand.d.ts.map +1 -0
  20. package/lib/components/Terminal/TerminalCommand.js +12 -0
  21. package/lib/components/Terminal/TerminalCommand.js.map +1 -0
  22. package/lib/components/Terminal/index.d.ts +7 -0
  23. package/lib/components/Terminal/index.d.ts.map +1 -0
  24. package/lib/components/Terminal/index.js +199 -0
  25. package/lib/components/Terminal/index.js.map +1 -0
  26. package/lib/components/Terminal/styles.module.css +312 -0
  27. package/lib/components/Terminal/types.d.ts +49 -0
  28. package/lib/components/Terminal/types.d.ts.map +1 -0
  29. package/lib/components/Terminal/types.js +3 -0
  30. package/lib/components/Terminal/types.js.map +1 -0
  31. package/lib/index.d.ts +3 -0
  32. package/lib/index.d.ts.map +1 -1
  33. package/lib/index.js +7 -1
  34. package/lib/index.js.map +1 -1
  35. package/package.json +6 -3
  36. package/publish-package-docs.js +12 -0
@@ -0,0 +1,226 @@
1
+ ---
2
+ sidebar_label: "Call to Action"
3
+ sidebar_position: 2.1
4
+ sidebar_custom_props:
5
+ section: "Components"
6
+ section_position: 2
7
+ ---
8
+
9
+ import {
10
+ GetStarted,
11
+ Explore,
12
+ ExploreItem,
13
+ } from "@sp-days-framework/docusaurus-frontpage-collection";
14
+
15
+ # Call to Action
16
+
17
+ A call-to-action (aka `Get Started`) component with an optional explore grid for additional resources.
18
+
19
+ <div style={{ position: 'relative', marginTop: '2rem', display: 'flex', justifyContent: 'center' }}>
20
+ <div style={{ position: 'absolute', left: '50%', marginTop: '4px', transform: 'translateX(-50%)', fontWeight: 500, color: 'var(--ifm-color-emphasis-600)' }}>
21
+ Preview
22
+ </div>
23
+ <div style={{ borderRadius: '12px', padding: '2rem', width: '-webkit-fill-available', background: 'var(--ifm-color-emphasis-200)' }}>
24
+ <GetStarted buttonText="Get Started" buttonLink="/resources">
25
+ ## Ready to Begin?
26
+
27
+ Start your learning journey today with our comprehensive course materials.
28
+
29
+ <Explore>
30
+ <ExploreItem
31
+ title="Interactive Tasks"
32
+ iconify="ci:window-check"
33
+ >
34
+ Access all course modules and lessons
35
+ </ExploreItem>
36
+ <ExploreItem
37
+ title="Resources"
38
+ iconify="mdi:book-open-variant"
39
+ >
40
+ Additional learning materials and references
41
+ </ExploreItem>
42
+ <ExploreItem
43
+ title="Presentations"
44
+ iconify="mdi:television-play"
45
+ >
46
+ View presentation slides and notes
47
+ </ExploreItem>
48
+ </Explore>
49
+ </GetStarted>
50
+ </div>
51
+ </div>
52
+
53
+ ## Features
54
+
55
+ - Central call-to-action button with pop animation
56
+ - Optional explore grid
57
+ - Responsive layout
58
+ - Icon support for explore items
59
+ - Hover effects with customizable colors
60
+ - Optional animation disable
61
+
62
+ ### When to Use
63
+
64
+ - End of landing pages to drive user action
65
+ - Course enrollment sections
66
+ - Resource navigation hubs
67
+ - Next steps or getting started sections
68
+
69
+ ## Import
70
+
71
+ ```mdx
72
+ import {
73
+ GetStarted,
74
+ Explore,
75
+ ExploreItem,
76
+ } from "@sp-days-framework/docusaurus-frontpage-collection";
77
+ ```
78
+
79
+ ## Basic Usage
80
+
81
+ ```mdx
82
+ <GetStarted buttonText="Start Learning" buttonLink="/resources/intro">
83
+ ## Ready to Begin?
84
+
85
+ Start with Module 1 and begin your journey!
86
+
87
+ <Explore>
88
+ <ExploreItem
89
+ title="Documentation"
90
+ iconify="mdi:book-open-variant"
91
+ link="/resources"
92
+ >
93
+ Comprehensive guides
94
+ </ExploreItem>
95
+ <ExploreItem
96
+ title="Examples"
97
+ iconify="mdi:code-tags"
98
+ link="/examples"
99
+ >
100
+ Sample projects
101
+ </ExploreItem>
102
+ </Explore>
103
+ </GetStarted>
104
+ ```
105
+
106
+ ## Props
107
+
108
+ ### GetStarted
109
+
110
+ | Prop | Type | Description |
111
+ | ------------ | ----------- | ---------------------------------------------------- |
112
+ | `buttonText` | `string` | Text for the CTA button |
113
+ | `buttonLink` | `string` | Link for the CTA button |
114
+ | `children` | `ReactNode` | Content displayed above button and Explore component |
115
+
116
+ ### Explore
117
+
118
+ | Prop | Type | Default | Description |
119
+ | ---------- | ----------- | --------- | -------------------------- |
120
+ | `children` | `ReactNode` | required | ExploreItem components |
121
+ | `minWidth` | `string` | `'250px'` | Minimum width for items |
122
+ | `columns` | `number` | `0` | Fixed columns (0 for auto) |
123
+
124
+ ### ExploreItem
125
+
126
+ | Prop | Type | Description |
127
+ | ----------------- | ---------------------- | ------------------------------------- |
128
+ | `title` | `string` | Item title |
129
+ | `iconify` | `IconifyConfig\|string`| Iconify icon name or configuration |
130
+ | `customSvg` | `CustomSvgConfig` | Custom SVG files for light/dark themes (supports color override) |
131
+ | `customImage` | `CustomImageConfig` | Custom image files (PNG/JPEG) for light/dark themes |
132
+ | `iconColors` | `IconColorConfig` | Icon color overrides (light/dark/hover)|
133
+ | `titleColors` | `TitleColorConfig` | Title color overrides (light/dark/hover)|
134
+ | `disableAnimation`| `boolean` | Disable hover animation (default: false)|
135
+ | `link` | `string` | Link URL |
136
+ | `children` | `ReactNode` | Description content |
137
+
138
+ ## Examples
139
+
140
+ ### Simple CTA
141
+
142
+ ```mdx
143
+ <GetStarted buttonText="Get Started" buttonLink="/resources">
144
+ Ready to learn? Click below to start!
145
+ </GetStarted>
146
+ ```
147
+
148
+ ### With Explore Grid
149
+
150
+ ```mdx
151
+ <GetStarted buttonText="Start Learning" buttonLink="/resources/module1">
152
+ ## Ready for Launch?
153
+
154
+ Begin your Docker journey today!
155
+
156
+ <Explore>
157
+ <ExploreItem title="Documentation" iconify="mdi:book" link="/resources">
158
+ Complete reference guides
159
+ </ExploreItem>
160
+ <ExploreItem title="Video Tutorials" iconify="mdi:video" link="/videos">
161
+ Step-by-step videos
162
+ </ExploreItem>
163
+ <ExploreItem title="Community" iconify="mdi:forum" link="/community">
164
+ Join the discussion
165
+ </ExploreItem>
166
+ </Explore>
167
+ </GetStarted>
168
+ ```
169
+
170
+ ### With Custom Colors
171
+
172
+ ```mdx
173
+ <Explore>
174
+ <ExploreItem
175
+ title="Documentation"
176
+ iconify="mdi:book"
177
+ iconColors={{
178
+ light: "#1976d2",
179
+ lightHover: "#115293",
180
+ dark: "#90caf9",
181
+ darkHover: "#b3d9ff"
182
+ }}
183
+ titleColors={{
184
+ light: "#333333",
185
+ lightHover: "#1976d2"
186
+ }}
187
+ link="/resources"
188
+ >
189
+ Complete reference
190
+ </ExploreItem>
191
+ </Explore>
192
+ ```
193
+
194
+ ### Disable Animations
195
+
196
+ ```mdx
197
+ <Explore>
198
+ <ExploreItem
199
+ title="Static Item"
200
+ iconify="mdi:information"
201
+ disableAnimation={true}
202
+ link="/info"
203
+ >
204
+ No hover effects
205
+ </ExploreItem>
206
+ </Explore>
207
+ ```
208
+
209
+ ### Fixed Column Layout
210
+
211
+ ```mdx
212
+ <Explore columns={2}>
213
+ <ExploreItem title="Item 1" iconify="mdi:numeric-1" link="/1">
214
+ Content
215
+ </ExploreItem>
216
+ <ExploreItem title="Item 2" iconify="mdi:numeric-2" link="/2">
217
+ Content
218
+ </ExploreItem>
219
+ <ExploreItem title="Item 3" iconify="mdi:numeric-3" link="/3">
220
+ Content
221
+ </ExploreItem>
222
+ <ExploreItem title="Item 4" iconify="mdi:numeric-4" link="/4">
223
+ Content
224
+ </ExploreItem>
225
+ </Explore>
226
+ ```
@@ -0,0 +1,105 @@
1
+ ---
2
+ sidebar_label: "Change Logs"
3
+ sidebar_position: 3
4
+ toc_max_heading_level: 2
5
+ sidebar_custom_props:
6
+ section: "Releases"
7
+ section_position: 3
8
+ ---
9
+
10
+ # Changelog
11
+
12
+ ## `@sp-days-framework/docusaurus-frontpage-collection`
13
+
14
+ [![npm version](https://img.shields.io/npm/v/@sp-days-framework/docusaurus-frontpage-collection?logo=nodedotjs)](https://www.npmjs.com/package/@sp-days-framework/docusaurus-frontpage-collection)
15
+
16
+ :::note
17
+ All packages within `@sp-days-framework` use the same version number. In some cases, a package might just be "bumped" to match the rest without any functional changes.
18
+ :::
19
+
20
+ ---
21
+
22
+ ## Version 1.1.0-beta1 ![beta](https://img.shields.io/badge/release-beta-yellow)
23
+
24
+ Display beautiful command-line examples in your documentation
25
+
26
+ <details>
27
+ <summary><strong>Beta Details</strong> (2025 December 08)</summary>
28
+
29
+ ### New Features
30
+
31
+ - **Terminal Component**: Create realistic terminal output displays in your documentation
32
+ - Perfect for showing command examples and expected outputs
33
+ - Automatic theme support (matches your site's light/dark mode)
34
+ - Customizable prompt text and colors
35
+ - Browser window styling for a polished look
36
+
37
+ :::warning Beta Feature
38
+ This component is in beta and may be replaced with a dedicated terminal UI package in future releases.
39
+ :::
40
+
41
+ ### Package Documentation
42
+
43
+ - Documentation is now bundled with the npm package, making it accessible during development and for offline reference
44
+
45
+ </details>
46
+
47
+ ---
48
+
49
+ ## Version 1.0.4 ![Release](https://img.shields.io/badge/release-production-blue)
50
+
51
+ Terminal UI component for displaying command outputs
52
+
53
+ <details>
54
+ <summary><strong>Details</strong> (2025 December 1)</summary>
55
+
56
+ ### New Features
57
+
58
+ - Implemented Terminal UI component to display expected command outputs with customizable prompts and styles
59
+
60
+ </details>
61
+
62
+ ---
63
+
64
+ ## Version 1.0.3 ![Release](https://img.shields.io/badge/release-production-blue)
65
+
66
+ Component styling improvements
67
+
68
+ <details>
69
+ <summary><strong>Details</strong> (2025 November 27)</summary>
70
+
71
+ ### Bug Fixes
72
+
73
+ - Fix `GettingStarted` component styling
74
+
75
+ </details>
76
+
77
+ ---
78
+
79
+ ## Version 1.0.2 ![Release](https://img.shields.io/badge/release-production-blue)
80
+
81
+ Minor code cleanup
82
+
83
+ <details>
84
+ <summary><strong>Details</strong> (2025 November 25)</summary>
85
+
86
+ ### Improvements
87
+
88
+ - Minor code cleanup
89
+
90
+ </details>
91
+
92
+ ---
93
+
94
+ ## Version 1.0.0 ![Release](https://img.shields.io/badge/release-production-blue)
95
+
96
+ Initial release of the Docusaurus Frontpage Collection plugin
97
+
98
+ <details>
99
+ <summary><strong>Details</strong> (2025 November 24)</summary>
100
+
101
+ ### New Features
102
+
103
+ - Initial release with frontpage collection components
104
+
105
+ </details>
@@ -0,0 +1,198 @@
1
+ ---
2
+ sidebar_label: "Columns Section"
3
+ sidebar_position: 2.2
4
+ sidebar_custom_props:
5
+ section: "Components"
6
+ section_position: 2
7
+ ---
8
+
9
+ import {
10
+ Columns,
11
+ Left,
12
+ Right,
13
+ Block,
14
+ } from "@sp-days-framework/docusaurus-frontpage-collection";
15
+
16
+ # Columns Section
17
+
18
+ Create responsive two-column layouts with customizable ratios.
19
+
20
+ <div style={{ position: 'relative', marginTop: '2rem', display: 'flex', justifyContent: 'center' }}>
21
+ <div style={{ position: 'absolute', left: '50%', marginTop: '4px', transform: 'translateX(-50%)', fontWeight: 500, color: 'var(--ifm-color-emphasis-600)' }}>
22
+ Preview
23
+ </div>
24
+ <div style={{ borderRadius: '12px', padding: '2rem 1rem 0rem 1rem', width: '-webkit-fill-available', background: 'var(--ifm-color-emphasis-200)' }}>
25
+ <Columns leftRatio="60">
26
+ <Left>
27
+ ### Main Content
28
+
29
+ This is a live example of the Columns component. The left column takes up 60% of the width, while the right column takes up 40%.
30
+
31
+ The columns will automatically stack on smaller screens for better mobile experience.
32
+ </Left>
33
+ <Right>
34
+ <Block>
35
+ ### Quick Stats
36
+
37
+ - **Responsive**: Stacks on mobile
38
+ - **Flexible**: Custom ratios
39
+ - **Equal height**: Automatic
40
+ </Block>
41
+ </Right>
42
+ </Columns>
43
+ </div>
44
+ </div>
45
+
46
+ ## Features
47
+
48
+ - Flexible column ratios
49
+ - Equal height option
50
+ - Automatic text wrapping
51
+
52
+ ### When to Use
53
+
54
+ - Side-by-side comparisons
55
+ - Main content with sidebar information
56
+ - Split layouts for text and supporting details
57
+ - Responsive two-column layouts
58
+
59
+ ## Import
60
+
61
+ ```mdx
62
+ import {
63
+ Columns,
64
+ Left,
65
+ Right,
66
+ } from "@sp-days-framework/docusaurus-frontpage-collection";
67
+ ```
68
+
69
+ ## Basic Usage
70
+
71
+ ```mdx
72
+ <Columns>
73
+ <Left>
74
+ Left column content
75
+ </Left>
76
+ <Right>
77
+ Right column content
78
+ </Right>
79
+ </Columns>
80
+ ```
81
+
82
+ ## Props
83
+
84
+ ### Columns
85
+
86
+ | Prop | Type | Default | Description |
87
+ | ------------- | ----------- | --------- | ---------------------------------------- |
88
+ | `leftRatio` | `string` | `'50'` | Width percentage for left column |
89
+ | `equalHeight` | `boolean` | `true` | Whether columns should have equal height |
90
+ | `minWidth` | `string` | `'700px'` | Minimum width before stacking |
91
+ | `noStretch` | `boolean` | `false` | Prevent columns from stretching |
92
+ | `children` | `ReactNode` | required | Left and Right components |
93
+
94
+ ### Left / Right
95
+
96
+ | Prop | Type | Description |
97
+ | ---------- | ----------- | ----------------------------- |
98
+ | `children` | `ReactNode` | Column content (supports MDX) |
99
+
100
+ ## Examples
101
+
102
+ ### 50/50 Split
103
+
104
+ ```mdx
105
+ <Columns>
106
+ <Left>
107
+ ## Left Side
108
+
109
+ Content for the left column
110
+ </Left>
111
+ <Right>
112
+ ## Right Side
113
+
114
+ Content for the right column
115
+ </Right>
116
+ </Columns>
117
+ ```
118
+
119
+ ### 60/40 Split
120
+
121
+ ```mdx
122
+ <Columns leftRatio="60">
123
+ <Left>
124
+ ## Main Content (60%)
125
+
126
+ This column takes up 60% of the width
127
+ </Left>
128
+ <Right>
129
+ ## Sidebar (40%)
130
+
131
+ This column takes up 40% of the width
132
+ </Right>
133
+ </Columns>
134
+ ```
135
+
136
+ ### 70/30 Split
137
+
138
+ ```mdx
139
+ <Columns leftRatio="70">
140
+ <Left>
141
+ ## Primary Content
142
+
143
+ Larger column for main content
144
+ </Left>
145
+ <Right>
146
+ ### Quick Stats
147
+
148
+ - Duration: 4 weeks
149
+ - Effort: 10 hrs/week
150
+ </Right>
151
+ </Columns>
152
+ ```
153
+
154
+ ### With Block Component
155
+
156
+ ```mdx
157
+ import {
158
+ Columns,
159
+ Left,
160
+ Right,
161
+ Block,
162
+ } from "@sp-days-framework/docusaurus-frontpage-collection";
163
+
164
+ <Columns leftRatio="65">
165
+ <Left>
166
+ ## Course Overview
167
+
168
+ Detailed description of the course...
169
+ </Left>
170
+ <Right>
171
+ <Block>
172
+ ### Info
173
+
174
+ - **Level**: Intermediate
175
+ - **Duration**: 6 weeks
176
+ - **Certificate**: Yes
177
+ </Block>
178
+ </Right>
179
+ </Columns>
180
+ ```
181
+
182
+ ## Responsive Behavior
183
+
184
+ The columns automatically stack vertically when the container is too narrow:
185
+
186
+ - **> 900px**: Full two-column layout
187
+ - **750px - 900px**: Reduced gap between columns
188
+ - **600px - 750px**: Further adjusted spacing
189
+ - **< 600px**: Stacks vertically
190
+
191
+ ## Content Wrapping
192
+
193
+ Text and content automatically wrap within columns:
194
+
195
+ - Long words break appropriately
196
+ - Tables become scrollable
197
+ - Images scale to fit
198
+ - Code blocks wrap or scroll
@@ -0,0 +1,133 @@
1
+ ---
2
+ sidebar_label: "Content Block"
3
+ sidebar_position: 2.3
4
+ sidebar_custom_props:
5
+ section: "Components"
6
+ section_position: 2
7
+ ---
8
+
9
+ import { Block } from "@sp-days-framework/docusaurus-frontpage-collection";
10
+
11
+ # Content Block
12
+
13
+ A simple styled block container for highlighting content.
14
+
15
+ <div style={{ position: 'relative', marginTop: '2rem', display: 'flex', justifyContent: 'center' }}>
16
+ <div style={{ position: 'absolute', left: '50%', marginTop: '4px', transform: 'translateX(-50%)', fontWeight: 500, color: 'var(--ifm-color-emphasis-600)' }}>
17
+ Preview
18
+ </div>
19
+ <div style={{ borderRadius: '12px', padding: '2rem 1.3rem', background: 'var(--ifm-color-emphasis-200)' }}>
20
+ <Block>
21
+ ### Example Block
22
+
23
+ This is a live example of the Block component with hover effect.
24
+
25
+ - **Feature 1**: Styled container
26
+ - **Feature 2**: Hover animation
27
+ - **Feature 3**: Perfect for side content
28
+ </Block>
29
+ </div>
30
+ </div>
31
+
32
+ ## Features
33
+
34
+ - Hover effect
35
+ - Works great in columns or standalone
36
+
37
+ ### When to Use
38
+
39
+ - Highlighting supplementary information
40
+ - Quick reference sections in sidebars
41
+ - Course metadata displays
42
+ - Callout boxes for important details
43
+
44
+ ## Import
45
+
46
+ ```mdx
47
+ import { Block } from "@sp-days-framework/docusaurus-frontpage-collection";
48
+ ```
49
+
50
+ ## Basic Usage
51
+
52
+ ```mdx
53
+ <Block>
54
+ ## Quick Info
55
+
56
+ - **Duration**: 4 weeks
57
+ - **Effort**: 10 hours/week
58
+ - **Level**: Intermediate
59
+ </Block>
60
+ ```
61
+
62
+ ## Props
63
+
64
+ | Prop | Type | Description |
65
+ | ----------- | ----------- | ---------------------- |
66
+ | `className` | `string` | Additional CSS classes |
67
+ | `children` | `ReactNode` | Markdown content |
68
+
69
+ ## Examples
70
+
71
+ ### Simple Block
72
+
73
+ ```mdx
74
+ <Block>
75
+ ### Important Note
76
+
77
+ Remember to complete all iconContainers before starting.
78
+ </Block>
79
+ ```
80
+
81
+ ### With Custom Class
82
+
83
+ ```mdx
84
+ <Block className="my-custom-class">Custom styled content</Block>
85
+ ```
86
+
87
+ ### In Columns
88
+
89
+ ```mdx
90
+ import {
91
+ Columns,
92
+ Left,
93
+ Right,
94
+ Block,
95
+ } from "@sp-days-framework/docusaurus-frontpage-collection";
96
+
97
+ <Columns leftRatio="65">
98
+ <Left>
99
+ Main content goes here...
100
+ </Left>
101
+ <Right>
102
+ <Block>
103
+ ### Course Stats
104
+
105
+ - 1,000+ students
106
+ - 4.8/5 rating
107
+ - Updated monthly
108
+ </Block>
109
+ </Right>
110
+ </Columns>
111
+ ```
112
+
113
+ ### Multiple Blocks
114
+
115
+ ```mdx
116
+ <Block>
117
+ ### Module 1
118
+
119
+ Introduction to Docker
120
+ </Block>
121
+
122
+ <Block>
123
+ ### Module 2
124
+
125
+ Container Management
126
+ </Block>
127
+
128
+ <Block>
129
+ ### Module 3
130
+
131
+ Image Building
132
+ </Block>
133
+ ```