astro-component-kit 0.3.1 → 0.4.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.
Files changed (115) hide show
  1. package/README.md +33 -14
  2. package/package.json +2 -2
  3. package/src/components/index.ts +16 -202
  4. package/src/components/lib/buttons/NeonBorderButton.astro +162 -0
  5. package/src/components/lib/buttons/RippleButton.astro +199 -0
  6. package/src/components/lib/buttons/SlideRevealButton.astro +159 -0
  7. package/src/components/lib/buttons/index.ts +4 -0
  8. package/src/components/lib/cards/GithubRepoCard.astro +176 -0
  9. package/src/components/lib/cards/PricingCompareMiniCard.astro +196 -0
  10. package/src/components/lib/cards/StatsTrendCard.astro +149 -0
  11. package/src/components/lib/cards/index.ts +3 -0
  12. package/src/components/lib/charts/ActivityRings.astro +105 -0
  13. package/src/components/lib/charts/BoxPlotChart.astro +109 -0
  14. package/src/components/lib/charts/BubbleChart.astro +101 -0
  15. package/src/components/lib/charts/BulletChart.astro +160 -0
  16. package/src/components/lib/charts/BumpChart.astro +92 -0
  17. package/src/components/lib/charts/CandlestickChart.astro +105 -0
  18. package/src/components/lib/charts/ChartFrame.astro +373 -0
  19. package/src/components/lib/charts/DivergingBarChart.astro +98 -0
  20. package/src/components/lib/charts/DumbbellChart.astro +92 -0
  21. package/src/components/lib/charts/ForecastLineChart.astro +125 -0
  22. package/src/components/lib/charts/FunnelChart.astro +122 -0
  23. package/src/components/lib/charts/GaugeChart.astro +111 -0
  24. package/src/components/lib/charts/GoalProgressChart.astro +97 -0
  25. package/src/components/lib/charts/GroupedBarChart.astro +125 -0
  26. package/src/components/lib/charts/HeatmapChart.astro +131 -0
  27. package/src/components/lib/charts/HistogramChart.astro +111 -0
  28. package/src/components/lib/charts/HorizontalBarChart.astro +155 -0
  29. package/src/components/lib/charts/KpiStatTile.astro +116 -0
  30. package/src/components/lib/charts/KpiTrendGrid.astro +60 -0
  31. package/src/components/lib/charts/LineChart.astro +160 -0
  32. package/src/components/lib/charts/LinearProgressGauge.astro +136 -0
  33. package/src/components/lib/charts/LollipopChart.astro +100 -0
  34. package/src/components/lib/charts/MeterGauge.astro +122 -0
  35. package/src/components/lib/charts/MetricDeltaTable.astro +125 -0
  36. package/src/components/lib/charts/PieChart.astro +135 -0
  37. package/src/components/lib/charts/PolarAreaChart.astro +85 -0
  38. package/src/components/lib/charts/PopulationPyramid.astro +122 -0
  39. package/src/components/lib/charts/PunchCardChart.astro +89 -0
  40. package/src/components/lib/charts/RadarChart.astro +94 -0
  41. package/src/components/lib/charts/RadarMetricChart.astro +168 -0
  42. package/src/components/lib/charts/RadialBarChart.astro +124 -0
  43. package/src/components/lib/charts/RangeAreaChart.astro +113 -0
  44. package/src/components/lib/charts/RetentionCohortTable.astro +126 -0
  45. package/src/components/lib/charts/SankeyChart.astro +128 -0
  46. package/src/components/lib/charts/ScatterPlot.astro +139 -0
  47. package/src/components/lib/charts/SegmentedBarChart.astro +119 -0
  48. package/src/components/lib/charts/SlopeChart.astro +105 -0
  49. package/src/components/lib/charts/SparklineChart.astro +87 -0
  50. package/src/components/lib/charts/StackedAreaChart.astro +130 -0
  51. package/src/components/lib/charts/StackedBarChart.astro +136 -0
  52. package/src/components/lib/charts/SunburstChart.astro +103 -0
  53. package/src/components/lib/charts/TreemapChart.astro +94 -0
  54. package/src/components/lib/charts/WaffleChart.astro +121 -0
  55. package/src/components/lib/charts/WaterfallChart.astro +118 -0
  56. package/src/components/lib/charts/chart-tooltip.ts +75 -0
  57. package/src/components/lib/charts/chart-utils.ts +271 -0
  58. package/src/components/lib/charts/index.ts +46 -0
  59. package/src/components/lib/data/ActivityHeatmapGrid.astro +157 -0
  60. package/src/components/lib/data/MetricComparisonRow.astro +109 -0
  61. package/src/components/lib/data/StatusTimelineFeed.astro +168 -0
  62. package/src/components/lib/data/index.ts +3 -0
  63. package/src/components/lib/feedback/ProgressRingCounter.astro +118 -0
  64. package/src/components/lib/feedback/ToastNotificationGroup.astro +173 -0
  65. package/src/components/lib/feedback/index.ts +2 -0
  66. package/src/components/lib/forms/GlassInlineToggleGroup.astro +161 -0
  67. package/src/components/lib/forms/PasswordStrengthInput.astro +242 -0
  68. package/src/components/lib/forms/PhoneCountryInput.astro +145 -0
  69. package/src/components/lib/forms/TagsAutocompleteInput.astro +249 -0
  70. package/src/components/lib/forms/index.ts +5 -0
  71. package/src/components/lib/layout/DiagonalSectionDivider.astro +69 -0
  72. package/src/components/lib/layout/HolyGrailGrid.astro +125 -0
  73. package/src/components/lib/layout/index.ts +3 -1
  74. package/src/components/lib/navigation/QuickJumpDock.astro +125 -0
  75. package/src/components/lib/navigation/StepBreadcrumbBar.astro +151 -0
  76. package/src/components/lib/navigation/SubNavbarPills.astro +102 -0
  77. package/src/components/lib/navigation/index.ts +3 -0
  78. package/src/components/lib/overlays/CookiePreferencesDrawer.astro +226 -0
  79. package/src/components/lib/overlays/FloatingFeedbackWidget.astro +203 -0
  80. package/src/components/lib/overlays/ImageCompareSlider.astro +172 -0
  81. package/src/components/lib/overlays/index.ts +3 -0
  82. package/src/components/lib/sections/BlogGridSection.astro +131 -0
  83. package/src/components/lib/sections/CareersOpenings.astro +139 -0
  84. package/src/components/lib/sections/ChangelogSection.astro +144 -0
  85. package/src/components/lib/sections/ContactSplitMap.astro +139 -0
  86. package/src/components/lib/sections/CtaNewsletterSection.astro +163 -0
  87. package/src/components/lib/sections/CtaSplitImage.astro +147 -0
  88. package/src/components/lib/sections/FaqTwoColumn.astro +119 -0
  89. package/src/components/lib/sections/FeatureAlternatingRows.astro +190 -0
  90. package/src/components/lib/sections/FeatureIconGrid.astro +155 -0
  91. package/src/components/lib/sections/FeatureTabsShowcase.astro +180 -0
  92. package/src/components/lib/sections/FooterMegaSection.astro +155 -0
  93. package/src/components/lib/sections/HeroDashboardPreview.astro +180 -0
  94. package/src/components/lib/sections/HeroMinimalCentered.astro +175 -0
  95. package/src/components/lib/sections/HeroShowcaseSplit.astro +304 -0
  96. package/src/components/lib/sections/HeroTerminal.astro +251 -0
  97. package/src/components/lib/sections/HeroWaitlist.astro +229 -0
  98. package/src/components/lib/sections/HowItWorksSteps.astro +178 -0
  99. package/src/components/lib/sections/IntegrationsGrid.astro +167 -0
  100. package/src/components/lib/sections/LogoCloudSection.astro +96 -0
  101. package/src/components/lib/sections/LogoWallGrid.astro +91 -0
  102. package/src/components/lib/sections/PricingSinglePlan.astro +157 -0
  103. package/src/components/lib/sections/PricingToggleCards.astro +171 -0
  104. package/src/components/lib/sections/StatsCounterBand.astro +122 -0
  105. package/src/components/lib/sections/StatsDashboardSection.astro +83 -0
  106. package/src/components/lib/sections/TestimonialCarousel.astro +165 -0
  107. package/src/components/lib/sections/TestimonialFeatured.astro +120 -0
  108. package/src/components/lib/sections/TestimonialGridSection.astro +188 -0
  109. package/src/components/lib/sections/index.ts +29 -0
  110. package/src/components/lib/typography/AnimatedCounterText.astro +102 -0
  111. package/src/components/lib/typography/CurvedPathHeading.astro +86 -0
  112. package/src/components/lib/typography/GradientTextMarquee.astro +105 -0
  113. package/src/components/lib/typography/HackerDecodeText.astro +85 -0
  114. package/src/components/lib/typography/index.ts +4 -0
  115. package/src/styles/global.css +18 -1
@@ -0,0 +1,304 @@
1
+ ---
2
+ /**
3
+ * HeroShowcaseSplit — Two-column modern landing hero section with install command, action CTAs, and interactive preview widget.
4
+ *
5
+ * @param {string} badge - Header lead badge. Default is 'NEW: ASTRO 5 SUITE'.
6
+ * @param {string} title - Primary headline string.
7
+ * @param {string} subtitle - Subtitle paragraph text.
8
+ * @param {string} primaryCtaText - Primary CTA button text.
9
+ * @param {string} primaryCtaHref - Primary CTA link.
10
+ * @param {string} secondaryCtaText - Secondary button text.
11
+ * @param {string} secondaryCtaHref - Secondary link.
12
+ */
13
+ interface Props {
14
+ badge?: string;
15
+ title?: string;
16
+ subtitle?: string;
17
+ primaryCtaText?: string;
18
+ primaryCtaHref?: string;
19
+ secondaryCtaText?: string;
20
+ secondaryCtaHref?: string;
21
+ }
22
+
23
+ const {
24
+ badge = 'NEW: ASTRO 5 PRODUCTION SUITE',
25
+ title = 'Craft stunning web apps at lightspeed',
26
+ subtitle = 'A cohesive collection of 150+ dark-mode first, accessible Astro components. Zero dependencies, pure vanilla CSS, full TypeScript support.',
27
+ primaryCtaText = 'Explore Components',
28
+ primaryCtaHref = '/docs/glass-button',
29
+ secondaryCtaText = 'View on GitHub',
30
+ secondaryCtaHref = 'https://github.com/konstantinWDK/astro-components',
31
+ } = Astro.props;
32
+ ---
33
+
34
+ <section class="split-hero">
35
+ <div class="split-hero__inner">
36
+ <div class="split-hero__content">
37
+ <div class="split-hero__badge">
38
+ <span class="dot"></span>
39
+ <span>{badge}</span>
40
+ </div>
41
+
42
+ <h1 class="split-hero__title">{title}</h1>
43
+ <p class="split-hero__subtitle">{subtitle}</p>
44
+
45
+ <div class="split-hero__actions">
46
+ <a href={primaryCtaHref} class="btn btn--primary">
47
+ {primaryCtaText}
48
+ <span aria-hidden="true">→</span>
49
+ </a>
50
+ <a href={secondaryCtaHref} target="_blank" rel="noopener" class="btn btn--secondary">
51
+ {secondaryCtaText}
52
+ </a>
53
+ </div>
54
+
55
+ <div class="split-hero__install">
56
+ <span class="prompt">$</span>
57
+ <code>npm install astro-component-kit</code>
58
+ </div>
59
+ </div>
60
+
61
+ <div class="split-hero__visual">
62
+ <div class="glass-device">
63
+ <div class="glass-device__bar">
64
+ <span class="d-dot d-dot--red"></span>
65
+ <span class="d-dot d-dot--yellow"></span>
66
+ <span class="d-dot d-dot--green"></span>
67
+ <span class="glass-device__url">astrocomponents.dev/preview</span>
68
+ </div>
69
+ <div class="glass-device__body">
70
+ <slot>
71
+ <div class="mock-widget">
72
+ <span class="mock-icon">⚡</span>
73
+ <h4>Production SSR Ready</h4>
74
+ <p>Zero JavaScript hydration overhead by default.</p>
75
+ <div class="mock-metrics">
76
+ <div><span>Score</span><strong>100</strong></div>
77
+ <div><span>A11y</span><strong>AA</strong></div>
78
+ <div><span>Speed</span><strong>0.2s</strong></div>
79
+ </div>
80
+ </div>
81
+ </slot>
82
+ </div>
83
+ </div>
84
+ </div>
85
+ </div>
86
+ </section>
87
+
88
+ <style>
89
+ .split-hero {
90
+ position: relative;
91
+ padding: 6rem 1.5rem;
92
+ width: 100%;
93
+ overflow: hidden;
94
+ font-family: var(--font-sans, system-ui, sans-serif);
95
+ }
96
+
97
+ .split-hero__inner {
98
+ max-width: 1240px;
99
+ margin: 0 auto;
100
+ display: grid;
101
+ grid-template-columns: 1.1fr 0.9fr;
102
+ gap: 4rem;
103
+ align-items: center;
104
+ }
105
+
106
+ .split-hero__content {
107
+ display: flex;
108
+ flex-direction: column;
109
+ align-items: flex-start;
110
+ }
111
+
112
+ .split-hero__badge {
113
+ display: inline-flex;
114
+ align-items: center;
115
+ gap: 8px;
116
+ padding: 0.35rem 0.85rem;
117
+ background: rgba(184, 134, 11, 0.12);
118
+ border: 1px solid rgba(184, 134, 11, 0.35);
119
+ border-radius: var(--r-full, 9999px);
120
+ font-size: 0.75rem;
121
+ font-weight: 800;
122
+ color: var(--c-accent, #fef3c7);
123
+ margin-bottom: 1.5rem;
124
+ letter-spacing: 0.05em;
125
+ }
126
+
127
+ .split-hero__badge .dot {
128
+ width: 6px;
129
+ height: 6px;
130
+ border-radius: 50%;
131
+ background: #d4a017;
132
+ box-shadow: 0 0 8px #d4a017;
133
+ }
134
+
135
+ .split-hero__title {
136
+ font-size: clamp(2.4rem, 5vw, 3.8rem);
137
+ font-weight: 900;
138
+ line-height: 1.1;
139
+ letter-spacing: -0.04em;
140
+ color: var(--c-text-1, #ffffff);
141
+ margin: 0 0 1.25rem 0;
142
+ }
143
+
144
+ .split-hero__subtitle {
145
+ font-size: 1.05rem;
146
+ color: var(--c-text-2, #a3a3a3);
147
+ line-height: 1.65;
148
+ margin: 0 0 2rem 0;
149
+ max-width: 540px;
150
+ }
151
+
152
+ .split-hero__actions {
153
+ display: flex;
154
+ flex-wrap: wrap;
155
+ gap: 12px;
156
+ margin-bottom: 2rem;
157
+ }
158
+
159
+ .btn {
160
+ display: inline-flex;
161
+ align-items: center;
162
+ gap: 8px;
163
+ padding: 0.85rem 1.8rem;
164
+ font-size: 0.92rem;
165
+ font-weight: 700;
166
+ border-radius: var(--r-md, 12px);
167
+ text-decoration: none;
168
+ transition: all 0.25s ease;
169
+ }
170
+
171
+ .btn--primary {
172
+ background: linear-gradient(135deg, #d4a017, #b8860b);
173
+ color: #050505;
174
+ box-shadow: 0 4px 20px rgba(184, 134, 11, 0.35);
175
+ }
176
+ .btn--primary:hover {
177
+ transform: translateY(-2px);
178
+ box-shadow: 0 8px 30px rgba(184, 134, 11, 0.5);
179
+ }
180
+
181
+ .btn--secondary {
182
+ background: rgba(255, 255, 255, 0.04);
183
+ backdrop-filter: blur(12px);
184
+ border: 1px solid rgba(255, 255, 255, 0.1);
185
+ color: var(--c-text-1, #ffffff);
186
+ }
187
+ .btn--secondary:hover {
188
+ background: rgba(255, 255, 255, 0.08);
189
+ border-color: rgba(255, 255, 255, 0.2);
190
+ transform: translateY(-2px);
191
+ }
192
+
193
+ .split-hero__install {
194
+ display: inline-flex;
195
+ align-items: center;
196
+ gap: 10px;
197
+ padding: 0.6rem 1.1rem;
198
+ background: rgba(0, 0, 0, 0.4);
199
+ border: 1px solid rgba(255, 255, 255, 0.08);
200
+ border-radius: var(--r-md, 10px);
201
+ font-family: var(--font-mono, monospace);
202
+ font-size: 0.85rem;
203
+ color: var(--c-primary-light, #d4a017);
204
+ }
205
+
206
+ .split-hero__install .prompt {
207
+ color: var(--c-text-3, #737373);
208
+ }
209
+
210
+ /* Visual mock preview container */
211
+ .glass-device {
212
+ background: rgba(14, 14, 18, 0.85);
213
+ backdrop-filter: blur(24px);
214
+ border: 1px solid rgba(255, 255, 255, 0.12);
215
+ border-radius: var(--r-xl, 24px);
216
+ box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
217
+ overflow: hidden;
218
+ }
219
+
220
+ .glass-device__bar {
221
+ display: flex;
222
+ align-items: center;
223
+ gap: 6px;
224
+ padding: 0.8rem 1rem;
225
+ background: rgba(0, 0, 0, 0.3);
226
+ border-bottom: 1px solid rgba(255, 255, 255, 0.06);
227
+ }
228
+
229
+ .d-dot { width: 10px; height: 10px; border-radius: 50%; }
230
+ .d-dot--red { background: #ef4444; }
231
+ .d-dot--yellow { background: #f59e0b; }
232
+ .d-dot--green { background: #10b981; }
233
+
234
+ .glass-device__url {
235
+ margin-left: auto;
236
+ font-size: 0.75rem;
237
+ color: var(--c-text-3, #737373);
238
+ font-family: var(--font-mono, monospace);
239
+ }
240
+
241
+ .glass-device__body {
242
+ padding: 2.5rem;
243
+ }
244
+
245
+ .mock-widget {
246
+ text-align: center;
247
+ display: flex;
248
+ flex-direction: column;
249
+ align-items: center;
250
+ gap: 12px;
251
+ }
252
+
253
+ .mock-icon {
254
+ font-size: 2.5rem;
255
+ background: rgba(184, 134, 11, 0.15);
256
+ border: 1px solid rgba(184, 134, 11, 0.3);
257
+ width: 64px;
258
+ height: 64px;
259
+ border-radius: 50%;
260
+ display: grid;
261
+ place-items: center;
262
+ }
263
+
264
+ .mock-widget h4 {
265
+ font-size: 1.25rem;
266
+ font-weight: 800;
267
+ color: var(--c-text-1, #ffffff);
268
+ margin: 0;
269
+ }
270
+
271
+ .mock-widget p {
272
+ font-size: 0.85rem;
273
+ color: var(--c-text-2, #a3a3a3);
274
+ margin: 0;
275
+ max-width: 280px;
276
+ }
277
+
278
+ .mock-metrics {
279
+ display: flex;
280
+ gap: 24px;
281
+ margin-top: 1rem;
282
+ padding-top: 1rem;
283
+ border-top: 1px solid rgba(255, 255, 255, 0.08);
284
+ width: 100%;
285
+ justify-content: center;
286
+ }
287
+
288
+ .mock-metrics div {
289
+ display: flex;
290
+ flex-direction: column;
291
+ align-items: center;
292
+ gap: 2px;
293
+ }
294
+
295
+ .mock-metrics span { font-size: 0.7rem; color: var(--c-text-3, #737373); text-transform: uppercase; }
296
+ .mock-metrics strong { font-size: 1.1rem; color: var(--c-primary-light, #d4a017); }
297
+
298
+ @media (max-width: 900px) {
299
+ .split-hero__inner {
300
+ grid-template-columns: 1fr;
301
+ gap: 3rem;
302
+ }
303
+ }
304
+ </style>
@@ -0,0 +1,251 @@
1
+ ---
2
+ /**
3
+ * HeroTerminal — Developer-focused split hero with an animated terminal showing
4
+ * install and build commands, plus a copyable install snippet.
5
+ *
6
+ * @param {string} eyebrow - Small label above the title.
7
+ * @param {string} title - Headline.
8
+ * @param {string} subtitle - Supporting paragraph.
9
+ * @param {string} command - Install command shown in the copy field.
10
+ * @param {Array<{type: 'cmd'|'out'|'ok', text: string}>} lines - Terminal transcript.
11
+ * @param {{label: string, href: string}} primary - Primary CTA.
12
+ * @param {string} variant - Terminal style (default|glass|minimal).
13
+ * @param {string} size - Vertical rhythm (sm|md|lg).
14
+ * @param {string} className - Extra CSS class.
15
+ */
16
+ interface Line { type: 'cmd' | 'out' | 'ok'; text: string }
17
+ interface Props {
18
+ eyebrow?: string;
19
+ title?: string;
20
+ subtitle?: string;
21
+ command?: string;
22
+ lines?: Line[];
23
+ primary?: { label: string; href: string };
24
+ variant?: 'default' | 'glass' | 'minimal';
25
+ size?: 'sm' | 'md' | 'lg';
26
+ className?: string;
27
+ }
28
+
29
+ const {
30
+ eyebrow = 'For developers',
31
+ title = 'From zero to production in one command',
32
+ subtitle = 'Scaffold a fully accessible Astro site with sections, charts and design tokens already wired up.',
33
+ command = 'npm create astro@latest -- --template kit',
34
+ lines = [
35
+ { type: 'cmd', text: 'npm create astro@latest -- --template kit' },
36
+ { type: 'out', text: 'Scaffolding project in ./my-site …' },
37
+ { type: 'ok', text: '50 sections installed' },
38
+ { type: 'ok', text: '45 SVG charts installed' },
39
+ { type: 'cmd', text: 'npm run build' },
40
+ { type: 'out', text: '12 pages built in 1.84s' },
41
+ { type: 'ok', text: 'Lighthouse: 100 · 100 · 100 · 100' },
42
+ ],
43
+ primary = { label: 'Get started', href: '#' },
44
+ variant = 'default',
45
+ size = 'md',
46
+ className = '',
47
+ } = Astro.props;
48
+
49
+ const id = `ht-${Math.random().toString(36).slice(2, 8)}`;
50
+ ---
51
+
52
+ <section class={`ht ht--${variant} ht--${size} ${className}`} aria-labelledby={id}>
53
+ <div class="ht__inner">
54
+ <div class="ht__copy">
55
+ <p class="ht__eyebrow">{eyebrow}</p>
56
+ <h1 id={id} class="ht__title">{title}</h1>
57
+ <p class="ht__subtitle">{subtitle}</p>
58
+ <div class="ht__install">
59
+ <code class="ht__cmd"><span aria-hidden="true">$ </span>{command}</code>
60
+ <button type="button" class="ht__copy-btn" data-copy={command} aria-label="Copy install command">
61
+ <svg class="ht__icon-copy" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true"><rect x="9" y="9" width="13" height="13" rx="2" /><path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1" /></svg>
62
+ <svg class="ht__icon-ok" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" aria-hidden="true"><path d="M20 6 9 17l-5-5" /></svg>
63
+ </button>
64
+ <span class="ht__status" role="status" aria-live="polite"></span>
65
+ </div>
66
+ <a class="ht__btn" href={primary.href}>
67
+ {primary.label}
68
+ <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" aria-hidden="true"><path d="M5 12h14M13 6l6 6-6 6" /></svg>
69
+ </a>
70
+ </div>
71
+
72
+ <div class="ht__terminal" role="img" aria-label={`Terminal transcript: ${lines.map((l) => l.text).join('. ')}`}>
73
+ <div class="ht__bar" aria-hidden="true">
74
+ <span></span><span></span><span></span>
75
+ <p>~/my-site — zsh</p>
76
+ </div>
77
+ <ol class="ht__lines" aria-hidden="true">
78
+ {lines.map((l, i) => (
79
+ <li class={`ht__line ht__line--${l.type}`} style={`--i:${i}`}>
80
+ {l.type === 'cmd' && <span class="ht__prompt">❯</span>}
81
+ {l.type === 'ok' && <span class="ht__ok">✓</span>}
82
+ {l.text}
83
+ </li>
84
+ ))}
85
+ <li class="ht__line ht__cursor" style={`--i:${lines.length}`}><span class="ht__prompt">❯</span><span class="ht__caret"></span></li>
86
+ </ol>
87
+ </div>
88
+ </div>
89
+ </section>
90
+
91
+ <script>
92
+ document.querySelectorAll<HTMLButtonElement>('.ht__copy-btn').forEach((btn) => {
93
+ btn.addEventListener('click', async () => {
94
+ const status = btn.parentElement?.querySelector('.ht__status');
95
+ try {
96
+ await navigator.clipboard.writeText(btn.dataset.copy || '');
97
+ btn.classList.add('is-copied');
98
+ if (status) status.textContent = 'Copied to clipboard';
99
+ setTimeout(() => {
100
+ btn.classList.remove('is-copied');
101
+ if (status) status.textContent = '';
102
+ }, 1800);
103
+ } catch {
104
+ if (status) status.textContent = 'Copy failed — select the text manually';
105
+ }
106
+ });
107
+ });
108
+ </script>
109
+
110
+ <style>
111
+ .ht {
112
+ --ht-py: 5.5rem;
113
+ padding: var(--ht-py) var(--sp-6, 1.5rem);
114
+ background: radial-gradient(ellipse 50% 60% at 85% 40%, rgba(57, 135, 229, 0.08), transparent 70%), var(--c-bg, #050505);
115
+ }
116
+ .ht--sm { --ht-py: 3.5rem; }
117
+ .ht--lg { --ht-py: 7.5rem; }
118
+ .ht__inner {
119
+ max-width: 1180px;
120
+ margin: 0 auto;
121
+ display: grid;
122
+ grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
123
+ gap: 4rem;
124
+ align-items: center;
125
+ }
126
+ .ht__eyebrow {
127
+ margin: 0 0 1rem;
128
+ font-family: var(--font-mono, monospace);
129
+ font-size: 0.8125rem;
130
+ color: var(--c-primary-light, #d4a017);
131
+ letter-spacing: 0.04em;
132
+ }
133
+ .ht__title {
134
+ margin: 0 0 1.25rem;
135
+ font-size: clamp(2.25rem, 4.5vw, 3.5rem);
136
+ font-weight: 800;
137
+ letter-spacing: -0.03em;
138
+ line-height: 1.08;
139
+ color: var(--c-text-1, #fff);
140
+ text-wrap: balance;
141
+ }
142
+ .ht__subtitle { margin: 0 0 2rem; font-size: 1.0625rem; line-height: 1.65; color: var(--c-text-2, #a3a3a3); max-width: 520px; }
143
+ .ht__install {
144
+ display: flex;
145
+ align-items: center;
146
+ gap: 0.5rem;
147
+ max-width: 520px;
148
+ padding: 0.4rem 0.4rem 0.4rem 1rem;
149
+ border-radius: var(--r-md, 12px);
150
+ border: 1px solid var(--c-border, rgba(255, 255, 255, 0.08));
151
+ background: rgba(255, 255, 255, 0.025);
152
+ margin-bottom: 1.5rem;
153
+ position: relative;
154
+ }
155
+ .ht__cmd {
156
+ flex: 1;
157
+ min-width: 0;
158
+ overflow-x: auto;
159
+ white-space: nowrap;
160
+ font-family: var(--font-mono, monospace);
161
+ font-size: 0.875rem;
162
+ color: var(--c-text-1, #fff);
163
+ }
164
+ .ht__cmd span { color: var(--c-text-3, #737373); }
165
+ .ht__copy-btn {
166
+ display: grid;
167
+ place-items: center;
168
+ width: 44px;
169
+ height: 44px;
170
+ flex-shrink: 0;
171
+ border: 0;
172
+ border-radius: var(--r-sm, 8px);
173
+ background: rgba(255, 255, 255, 0.05);
174
+ color: var(--c-text-2, #a3a3a3);
175
+ cursor: pointer;
176
+ transition: background 0.2s ease, color 0.2s ease;
177
+ }
178
+ .ht__copy-btn:hover { background: rgba(255, 255, 255, 0.1); color: var(--c-text-1, #fff); }
179
+ .ht__copy-btn:focus-visible, .ht__btn:focus-visible { outline: 2px solid var(--c-primary-light, #d4a017); outline-offset: 2px; }
180
+ .ht__icon-ok { display: none; color: var(--chart-pos, #34c38f); }
181
+ .ht__copy-btn.is-copied .ht__icon-copy { display: none; }
182
+ .ht__copy-btn.is-copied .ht__icon-ok { display: block; }
183
+ .ht__status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
184
+ .ht__btn {
185
+ display: inline-flex;
186
+ align-items: center;
187
+ gap: 0.5rem;
188
+ min-height: 48px;
189
+ padding: 0 1.5rem;
190
+ border-radius: var(--r-md, 12px);
191
+ background: var(--c-text-1, #fff);
192
+ color: #0a0a0a;
193
+ font-weight: 650;
194
+ text-decoration: none;
195
+ transition: transform 0.2s ease;
196
+ }
197
+ .ht__btn:hover { transform: translateY(-1px); color: #0a0a0a; }
198
+
199
+ .ht__terminal {
200
+ border-radius: var(--r-lg, 20px);
201
+ border: 1px solid rgba(255, 255, 255, 0.09);
202
+ background: #0b0b0d;
203
+ box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.02) inset;
204
+ overflow: hidden;
205
+ }
206
+ .ht--glass .ht__terminal { background: rgba(14, 14, 18, 0.6); backdrop-filter: blur(18px); }
207
+ .ht--minimal .ht__terminal { box-shadow: none; }
208
+ .ht__bar {
209
+ display: flex;
210
+ align-items: center;
211
+ gap: 0.45rem;
212
+ padding: 0.85rem 1rem;
213
+ border-bottom: 1px solid rgba(255, 255, 255, 0.06);
214
+ }
215
+ .ht__bar span { width: 11px; height: 11px; border-radius: 50%; background: rgba(255, 255, 255, 0.12); }
216
+ .ht__bar p { margin: 0 auto; font-size: 0.75rem; color: var(--c-text-3, #737373); font-family: var(--font-mono, monospace); transform: translateX(-1.5rem); }
217
+ .ht__lines {
218
+ list-style: none;
219
+ margin: 0;
220
+ padding: 1.25rem 1.25rem 1.5rem;
221
+ font-family: var(--font-mono, monospace);
222
+ font-size: 0.8125rem;
223
+ line-height: 1.9;
224
+ min-height: 260px;
225
+ }
226
+ .ht__line {
227
+ display: flex;
228
+ gap: 0.6rem;
229
+ opacity: 0;
230
+ animation: ht-in 0.35s ease forwards;
231
+ animation-delay: calc(var(--i) * 0.45s + 0.3s);
232
+ white-space: nowrap;
233
+ overflow: hidden;
234
+ text-overflow: ellipsis;
235
+ }
236
+ .ht__line--cmd { color: var(--c-text-1, #fff); }
237
+ .ht__line--out { color: var(--c-text-3, #8a8a8a); padding-left: 1.2rem; }
238
+ .ht__line--ok { color: var(--c-text-2, #c4c4c4); padding-left: 1.2rem; }
239
+ .ht__prompt { color: var(--c-primary-light, #d4a017); }
240
+ .ht__ok { color: var(--chart-pos, #34c38f); }
241
+ .ht__caret { width: 8px; height: 1.1em; align-self: center; background: var(--c-text-1, #fff); animation: ht-blink 1s steps(1) infinite; }
242
+ @keyframes ht-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
243
+ @keyframes ht-blink { 50% { opacity: 0; } }
244
+ @media (max-width: 900px) {
245
+ .ht__inner { grid-template-columns: minmax(0, 1fr); gap: 3rem; }
246
+ }
247
+ @media (prefers-reduced-motion: reduce) {
248
+ .ht__line { animation: none; opacity: 1; }
249
+ .ht__caret { animation: none; }
250
+ }
251
+ </style>