@opencosmos/ui 1.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (260) hide show
  1. package/.claude/CLAUDE.md +239 -0
  2. package/README.md +161 -0
  3. package/dist/cli.mjs +151 -0
  4. package/dist/dates.d.mts +20 -0
  5. package/dist/dates.d.ts +20 -0
  6. package/dist/dates.js +240 -0
  7. package/dist/dates.js.map +1 -0
  8. package/dist/dates.mjs +203 -0
  9. package/dist/dates.mjs.map +1 -0
  10. package/dist/dnd.d.mts +126 -0
  11. package/dist/dnd.d.ts +126 -0
  12. package/dist/dnd.js +274 -0
  13. package/dist/dnd.js.map +1 -0
  14. package/dist/dnd.mjs +250 -0
  15. package/dist/dnd.mjs.map +1 -0
  16. package/dist/fontThemes-Dh8mtXES.d.mts +868 -0
  17. package/dist/fontThemes-Dh8mtXES.d.ts +868 -0
  18. package/dist/forms.d.mts +38 -0
  19. package/dist/forms.d.ts +38 -0
  20. package/dist/forms.js +198 -0
  21. package/dist/forms.js.map +1 -0
  22. package/dist/forms.mjs +159 -0
  23. package/dist/forms.mjs.map +1 -0
  24. package/dist/hooks-1b8WaQf1.d.mts +225 -0
  25. package/dist/hooks-CKW8vE9H.d.ts +225 -0
  26. package/dist/hooks.d.mts +3 -0
  27. package/dist/hooks.d.ts +3 -0
  28. package/dist/hooks.js +971 -0
  29. package/dist/hooks.js.map +1 -0
  30. package/dist/hooks.mjs +943 -0
  31. package/dist/hooks.mjs.map +1 -0
  32. package/dist/index-DscTIrZ2.d.mts +29 -0
  33. package/dist/index-DscTIrZ2.d.ts +29 -0
  34. package/dist/index.d.mts +3382 -0
  35. package/dist/index.d.ts +3382 -0
  36. package/dist/index.js +15146 -0
  37. package/dist/index.js.map +1 -0
  38. package/dist/index.mjs +14802 -0
  39. package/dist/index.mjs.map +1 -0
  40. package/dist/providers-CXPDMsl7.d.mts +30 -0
  41. package/dist/providers-Dn_Msjvz.d.ts +30 -0
  42. package/dist/providers.d.mts +3 -0
  43. package/dist/providers.d.ts +3 -0
  44. package/dist/providers.js +1885 -0
  45. package/dist/providers.js.map +1 -0
  46. package/dist/providers.mjs +1859 -0
  47. package/dist/providers.mjs.map +1 -0
  48. package/dist/tables.d.mts +10 -0
  49. package/dist/tables.d.ts +10 -0
  50. package/dist/tables.js +248 -0
  51. package/dist/tables.js.map +1 -0
  52. package/dist/tables.mjs +218 -0
  53. package/dist/tables.mjs.map +1 -0
  54. package/dist/tokens.d.mts +1065 -0
  55. package/dist/tokens.d.ts +1065 -0
  56. package/dist/tokens.js +2637 -0
  57. package/dist/tokens.js.map +1 -0
  58. package/dist/tokens.mjs +2555 -0
  59. package/dist/tokens.mjs.map +1 -0
  60. package/dist/utils-CIIM7dAC.d.ts +986 -0
  61. package/dist/utils-Cs04sxth.d.mts +986 -0
  62. package/dist/utils.d.mts +4 -0
  63. package/dist/utils.d.ts +4 -0
  64. package/dist/utils.js +874 -0
  65. package/dist/utils.js.map +1 -0
  66. package/dist/utils.mjs +806 -0
  67. package/dist/utils.mjs.map +1 -0
  68. package/dist/validation-Bj1ye-v_.d.mts +114 -0
  69. package/dist/validation-Bj1ye-v_.d.ts +114 -0
  70. package/dist/webgl.d.mts +104 -0
  71. package/dist/webgl.d.ts +104 -0
  72. package/dist/webgl.js +226 -0
  73. package/dist/webgl.js.map +1 -0
  74. package/dist/webgl.mjs +195 -0
  75. package/dist/webgl.mjs.map +1 -0
  76. package/package.json +267 -0
  77. package/src/cli.ts +206 -0
  78. package/src/component-registry.ts +183 -0
  79. package/src/components/actions/Button.test.tsx +61 -0
  80. package/src/components/actions/Button.tsx +70 -0
  81. package/src/components/actions/Link.tsx +78 -0
  82. package/src/components/actions/Magnetic.tsx +68 -0
  83. package/src/components/actions/Toggle.test.tsx +40 -0
  84. package/src/components/actions/Toggle.tsx +47 -0
  85. package/src/components/actions/ToggleGroup.tsx +70 -0
  86. package/src/components/actions/index.ts +5 -0
  87. package/src/components/backgrounds/FaultyTerminal.tsx +426 -0
  88. package/src/components/backgrounds/OrbBackground.tsx +424 -0
  89. package/src/components/backgrounds/WarpBackground.tsx +358 -0
  90. package/src/components/backgrounds/index.ts +3 -0
  91. package/src/components/blocks/Hero.tsx +142 -0
  92. package/src/components/blocks/social/OpenGraphCard.tsx +243 -0
  93. package/src/components/cursor/SplashCursor.tsx +1315 -0
  94. package/src/components/cursor/TargetCursor.tsx +187 -0
  95. package/src/components/cursor/index.ts +2 -0
  96. package/src/components/data-display/AspectImage.tsx +73 -0
  97. package/src/components/data-display/Avatar.test.tsx +35 -0
  98. package/src/components/data-display/Avatar.tsx +55 -0
  99. package/src/components/data-display/Badge.test.tsx +43 -0
  100. package/src/components/data-display/Badge.tsx +84 -0
  101. package/src/components/data-display/Brand.tsx +123 -0
  102. package/src/components/data-display/Calendar.tsx +70 -0
  103. package/src/components/data-display/Card.test.tsx +92 -0
  104. package/src/components/data-display/Card.tsx +115 -0
  105. package/src/components/data-display/Code.tsx +210 -0
  106. package/src/components/data-display/CollapsibleCodeBlock.tsx +238 -0
  107. package/src/components/data-display/DataTable.tsx +119 -0
  108. package/src/components/data-display/DescriptionList.tsx +41 -0
  109. package/src/components/data-display/GitHubIcon.tsx +44 -0
  110. package/src/components/data-display/Heading.test.tsx +36 -0
  111. package/src/components/data-display/Heading.tsx +83 -0
  112. package/src/components/data-display/StatCard.tsx +195 -0
  113. package/src/components/data-display/Table.tsx +133 -0
  114. package/src/components/data-display/Text.test.tsx +48 -0
  115. package/src/components/data-display/Text.tsx +144 -0
  116. package/src/components/data-display/Timeline.tsx +194 -0
  117. package/src/components/data-display/TreeView.tsx +226 -0
  118. package/src/components/data-display/Typewriter.tsx +119 -0
  119. package/src/components/data-display/VariableWeightText.tsx +130 -0
  120. package/src/components/data-display/index.ts +19 -0
  121. package/src/components/feedback/Alert.test.tsx +44 -0
  122. package/src/components/feedback/Alert.tsx +65 -0
  123. package/src/components/feedback/EmptyState.tsx +113 -0
  124. package/src/components/feedback/Progress.test.tsx +60 -0
  125. package/src/components/feedback/Progress.tsx +30 -0
  126. package/src/components/feedback/ProgressBar.tsx +158 -0
  127. package/src/components/feedback/Skeleton.test.tsx +39 -0
  128. package/src/components/feedback/Skeleton.tsx +45 -0
  129. package/src/components/feedback/Sonner.tsx +28 -0
  130. package/src/components/feedback/Spinner.test.tsx +33 -0
  131. package/src/components/feedback/Spinner.tsx +99 -0
  132. package/src/components/feedback/Stepper.tsx +307 -0
  133. package/src/components/feedback/Toast/Toast.tsx +243 -0
  134. package/src/components/feedback/Toast/index.ts +2 -0
  135. package/src/components/feedback/index.ts +9 -0
  136. package/src/components/forms/Checkbox.test.tsx +40 -0
  137. package/src/components/forms/Checkbox.tsx +31 -0
  138. package/src/components/forms/ColorPicker.tsx +118 -0
  139. package/src/components/forms/Combobox.tsx +96 -0
  140. package/src/components/forms/DragDrop.tsx +440 -0
  141. package/src/components/forms/FileUpload.tsx +252 -0
  142. package/src/components/forms/FilterButton.tsx +65 -0
  143. package/src/components/forms/Form.tsx +197 -0
  144. package/src/components/forms/Input.test.tsx +46 -0
  145. package/src/components/forms/Input.tsx +43 -0
  146. package/src/components/forms/InputOTP.tsx +81 -0
  147. package/src/components/forms/Label.test.tsx +20 -0
  148. package/src/components/forms/Label.tsx +25 -0
  149. package/src/components/forms/RadioGroup.tsx +51 -0
  150. package/src/components/forms/SearchBar.tsx +215 -0
  151. package/src/components/forms/Select.test.tsx +118 -0
  152. package/src/components/forms/Select.tsx +274 -0
  153. package/src/components/forms/Slider.tsx +29 -0
  154. package/src/components/forms/Switch.test.tsx +76 -0
  155. package/src/components/forms/Switch.tsx +30 -0
  156. package/src/components/forms/TextField.tsx +152 -0
  157. package/src/components/forms/Textarea.test.tsx +41 -0
  158. package/src/components/forms/Textarea.tsx +29 -0
  159. package/src/components/forms/ThemeSwitcher.tsx +290 -0
  160. package/src/components/forms/ThemeToggle.tsx +151 -0
  161. package/src/components/forms/index.ts +19 -0
  162. package/src/components/layout/Accordion.test.tsx +66 -0
  163. package/src/components/layout/Accordion.tsx +64 -0
  164. package/src/components/layout/AspectRatio.tsx +7 -0
  165. package/src/components/layout/Carousel.tsx +277 -0
  166. package/src/components/layout/Collapsible.test.tsx +40 -0
  167. package/src/components/layout/Collapsible.tsx +31 -0
  168. package/src/components/layout/Container.test.tsx +45 -0
  169. package/src/components/layout/Container.tsx +99 -0
  170. package/src/components/layout/CustomizerPanel.tsx +400 -0
  171. package/src/components/layout/DatePicker.tsx +57 -0
  172. package/src/components/layout/Footer/Footer.tsx +175 -0
  173. package/src/components/layout/Footer/index.ts +2 -0
  174. package/src/components/layout/GlassSurface.tsx +82 -0
  175. package/src/components/layout/Grid.test.tsx +31 -0
  176. package/src/components/layout/Grid.tsx +130 -0
  177. package/src/components/layout/Header/Header.tsx +450 -0
  178. package/src/components/layout/Header/index.ts +2 -0
  179. package/src/components/layout/PageLayout.tsx +180 -0
  180. package/src/components/layout/PageTemplate.tsx +158 -0
  181. package/src/components/layout/Resizable.tsx +48 -0
  182. package/src/components/layout/ScrollArea.tsx +53 -0
  183. package/src/components/layout/Separator.test.tsx +28 -0
  184. package/src/components/layout/Separator.tsx +29 -0
  185. package/src/components/layout/Sidebar.tsx +171 -0
  186. package/src/components/layout/Stack.test.tsx +41 -0
  187. package/src/components/layout/Stack.tsx +89 -0
  188. package/src/components/layout/glass-surface.css +60 -0
  189. package/src/components/layout/index.ts +18 -0
  190. package/src/components/motion/AnimatedBeam.tsx +159 -0
  191. package/src/components/navigation/Breadcrumb.test.tsx +57 -0
  192. package/src/components/navigation/Breadcrumb.tsx +119 -0
  193. package/src/components/navigation/Breadcrumbs.tsx +221 -0
  194. package/src/components/navigation/Command.tsx +159 -0
  195. package/src/components/navigation/Menubar.tsx +115 -0
  196. package/src/components/navigation/NavLink.tsx +55 -0
  197. package/src/components/navigation/NavigationMenu.tsx +125 -0
  198. package/src/components/navigation/Pagination.tsx +121 -0
  199. package/src/components/navigation/SecondaryNav.tsx +100 -0
  200. package/src/components/navigation/Tabs.test.tsx +47 -0
  201. package/src/components/navigation/Tabs.tsx +60 -0
  202. package/src/components/navigation/TertiaryNav.tsx +90 -0
  203. package/src/components/navigation/index.ts +10 -0
  204. package/src/components/overlays/AlertDialog.test.tsx +69 -0
  205. package/src/components/overlays/AlertDialog.tsx +166 -0
  206. package/src/components/overlays/ContextMenu.tsx +243 -0
  207. package/src/components/overlays/Dialog.test.tsx +79 -0
  208. package/src/components/overlays/Dialog.tsx +158 -0
  209. package/src/components/overlays/Drawer.tsx +128 -0
  210. package/src/components/overlays/Dropdown.tsx +253 -0
  211. package/src/components/overlays/DropdownMenu.tsx +242 -0
  212. package/src/components/overlays/HoverCard.tsx +32 -0
  213. package/src/components/overlays/Modal.tsx +250 -0
  214. package/src/components/overlays/NotificationCenter.tsx +364 -0
  215. package/src/components/overlays/Popover.test.tsx +40 -0
  216. package/src/components/overlays/Popover.tsx +46 -0
  217. package/src/components/overlays/Sheet.tsx +163 -0
  218. package/src/components/overlays/Tooltip.test.tsx +33 -0
  219. package/src/components/overlays/Tooltip.tsx +32 -0
  220. package/src/components/overlays/index.ts +12 -0
  221. package/src/dates.ts +2 -0
  222. package/src/dnd.ts +1 -0
  223. package/src/forms.ts +1 -0
  224. package/src/globals.css +187 -0
  225. package/src/hooks/index.ts +6 -0
  226. package/src/hooks/useForm.ts +247 -0
  227. package/src/hooks/useMotionPreference.test.ts +102 -0
  228. package/src/hooks/useMotionPreference.ts +78 -0
  229. package/src/hooks/useTheme.ts +58 -0
  230. package/src/hooks.ts +9 -0
  231. package/src/index.ts +168 -0
  232. package/src/lib/animations.ts +356 -0
  233. package/src/lib/breadcrumbs.ts +94 -0
  234. package/src/lib/colors.ts +493 -0
  235. package/src/lib/store/customizer.ts +482 -0
  236. package/src/lib/store/index.ts +3 -0
  237. package/src/lib/store/theme.ts +55 -0
  238. package/src/lib/syntax-parser/index.ts +50 -0
  239. package/src/lib/syntax-parser/patterns.ts +64 -0
  240. package/src/lib/syntax-parser/tokenizer.ts +117 -0
  241. package/src/lib/syntax-parser/types.ts +27 -0
  242. package/src/lib/utils.ts +6 -0
  243. package/src/lib/validation.ts +204 -0
  244. package/src/lib/webgl/Color.ts +11 -0
  245. package/src/lib/webgl/Mesh.ts +41 -0
  246. package/src/lib/webgl/Program.ts +118 -0
  247. package/src/lib/webgl/Renderer.ts +51 -0
  248. package/src/lib/webgl/Triangle.ts +27 -0
  249. package/src/lib/webgl/Vec3.ts +18 -0
  250. package/src/lib/webgl/index.ts +13 -0
  251. package/src/nativewind-env.d.ts +1 -0
  252. package/src/providers/ThemeProvider.tsx +461 -0
  253. package/src/providers/index.ts +1 -0
  254. package/src/providers.ts +7 -0
  255. package/src/tables.ts +1 -0
  256. package/src/test/setup.ts +39 -0
  257. package/src/theme.css +158 -0
  258. package/src/tokens.ts +7 -0
  259. package/src/utils.ts +12 -0
  260. package/src/webgl.ts +1 -0
@@ -0,0 +1,243 @@
1
+ import React from 'react';
2
+ import { cn } from '../../../lib/utils';
3
+
4
+ export interface GradientConfig {
5
+ type: 'linear' | 'radial';
6
+ angle?: number; // For linear gradients (default: 135deg)
7
+ position?: string; // For radial gradients (default: 'circle at 50% 50%')
8
+ colors: string[]; // Array of hex colors (2-5 colors recommended)
9
+ stops?: number[]; // Optional color stop positions in % (0-100)
10
+ }
11
+
12
+ export interface OpenGraphCardProps extends React.HTMLAttributes<HTMLDivElement> {
13
+ title?: string;
14
+ description?: string;
15
+ variant?: 'primary' | 'secondary' | 'accent' | 'sage' | 'gradient';
16
+ icon?: React.ReactNode | null; // Custom logo, icon, or image element (pass null to hide)
17
+ gradient?: GradientConfig; // Custom gradient configuration
18
+ primaryColor?: string; // Override primary color (hex)
19
+ secondaryColor?: string; // Override secondary color (hex)
20
+ accentColor?: string; // Override accent color (hex)
21
+ titleFontSize?: number; // Title font size in px (default: 96)
22
+ descriptionFontSize?: number; // Description font size in px (default: 42)
23
+ fontFamily?: string; // Font family name (default: 'sans-serif')
24
+ }
25
+
26
+ /**
27
+ * Helper: Build CSS gradient string from GradientConfig
28
+ */
29
+ function buildGradientCSS(config: GradientConfig): string {
30
+ const { type, angle = 135, position = 'circle at 50% 50%', colors, stops } = config;
31
+
32
+ // Build color stops string
33
+ const colorStops = colors.map((color, index) => {
34
+ if (stops && stops[index] !== undefined) {
35
+ return `${color} ${stops[index]}%`;
36
+ }
37
+ // Auto-distribute stops evenly if not specified
38
+ const autoStop = (index / (colors.length - 1)) * 100;
39
+ return `${color} ${autoStop}%`;
40
+ }).join(', ');
41
+
42
+ if (type === 'radial') {
43
+ return `radial-gradient(${position}, ${colorStops})`;
44
+ }
45
+ return `linear-gradient(${angle}deg, ${colorStops})`;
46
+ }
47
+
48
+ /**
49
+ * Helper: Determine if background is light (for text color)
50
+ */
51
+ function isLightColor(hex: string): boolean {
52
+ const rgb = parseInt(hex.slice(1), 16);
53
+ const r = (rgb >> 16) & 0xff;
54
+ const g = (rgb >> 8) & 0xff;
55
+ const b = (rgb >> 0) & 0xff;
56
+ const luma = 0.299 * r + 0.587 * g + 0.114 * b;
57
+ return luma > 186;
58
+ }
59
+
60
+ /**
61
+ * OpenGraphCard
62
+ *
63
+ * A specialized component designed for generating Open Graph images (1200x630px).
64
+ * Supports custom icons, gradients, and theme color overrides.
65
+ *
66
+ * NOTE: This component uses inline styles to ensure compatibility with Next.js Open Graph generation (Satori).
67
+ * CSS variables cannot be used in OG images - all colors must be explicit hex values.
68
+ */
69
+ export function OpenGraphCard({
70
+ title = 'Sage UI',
71
+ description = "The Solopreneur's Development Stack",
72
+ variant = 'sage',
73
+ icon,
74
+ gradient,
75
+ primaryColor,
76
+ secondaryColor,
77
+ accentColor,
78
+ titleFontSize = 96,
79
+ descriptionFontSize = 42,
80
+ fontFamily = 'sans-serif',
81
+ className,
82
+ ...props
83
+ }: OpenGraphCardProps) {
84
+ // Map variants to background styles
85
+ // If color overrides are provided, use them; otherwise use defaults
86
+ const backgroundStyles: Record<string, { background: string; accentColor: string; textColor?: string }> = {
87
+ primary: {
88
+ background: primaryColor
89
+ ? `linear-gradient(135deg, ${primaryColor} 0%, ${primaryColor}dd 100%)`
90
+ : 'linear-gradient(135deg, #0a0a0a 0%, #171717 100%)',
91
+ accentColor: accentColor || '#ffffff'
92
+ },
93
+ sage: {
94
+ background: primaryColor && secondaryColor
95
+ ? `radial-gradient(circle at 50% 0%, ${primaryColor} 0%, ${secondaryColor} 80%)`
96
+ : 'radial-gradient(circle at 50% 0%, #171717 0%, #0a0a0a 80%)',
97
+ accentColor: accentColor || '#ffffff'
98
+ },
99
+ secondary: {
100
+ background: secondaryColor
101
+ ? `linear-gradient(135deg, ${secondaryColor} 0%, ${secondaryColor}dd 100%)`
102
+ : 'linear-gradient(135deg, #f5f5f5 0%, #e5e5e5 100%)',
103
+ accentColor: primaryColor || '#0a0a0a',
104
+ textColor: primaryColor || '#0a0a0a'
105
+ },
106
+ accent: {
107
+ background: accentColor
108
+ ? `linear-gradient(135deg, ${accentColor} 0%, ${accentColor}dd 100%)`
109
+ : 'linear-gradient(135deg, #0070f3 0%, #0066cc 100%)',
110
+ accentColor: '#ffffff'
111
+ },
112
+ emerald: {
113
+ background: 'radial-gradient(circle at 50% 100%, #022c22 20%, #0f172a 100%)',
114
+ accentColor: '#10b981'
115
+ },
116
+ gradient: {
117
+ background: gradient
118
+ ? buildGradientCSS(gradient)
119
+ : props.style?.background?.toString() || 'linear-gradient(135deg, #2563eb 0%, #7c3aed 100%)',
120
+ accentColor: accentColor || '#ffffff'
121
+ }
122
+ };
123
+
124
+ const activeStyle = backgroundStyles[variant] || backgroundStyles.sage;
125
+
126
+ // Determine if background is light for text color
127
+ const firstColor = gradient?.colors[0] || primaryColor || '#0a0a0a';
128
+ const isLight = variant === 'secondary' || isLightColor(firstColor);
129
+
130
+ return (
131
+ <div
132
+ className={cn(className)}
133
+ style={{
134
+ display: 'flex',
135
+ flexDirection: 'column',
136
+ alignItems: 'center',
137
+ justifyContent: 'center',
138
+ width: '1200px',
139
+ height: '630px',
140
+ background: activeStyle.background,
141
+ padding: '80px',
142
+ position: 'relative',
143
+ overflow: 'hidden',
144
+ fontFamily,
145
+ color: activeStyle.textColor || 'white',
146
+ ...props.style,
147
+ }}
148
+ {...props}
149
+ >
150
+ {/* Ambient Lighting Mesh (optional, only for dark themes) */}
151
+ {!isLight && (
152
+ <div
153
+ style={{
154
+ position: 'absolute',
155
+ top: '-50%',
156
+ left: '-50%',
157
+ width: '200%',
158
+ height: '200%',
159
+ background: `radial-gradient(circle at 50% 50%, ${activeStyle.accentColor} 0%, transparent 60%)`,
160
+ opacity: 0.15,
161
+ transform: 'scale(1.5)',
162
+ pointerEvents: 'none',
163
+ }}
164
+ />
165
+ )}
166
+
167
+ {/* Content Container */}
168
+ <div
169
+ style={{
170
+ display: 'flex',
171
+ flexDirection: 'column',
172
+ alignItems: 'center',
173
+ justifyContent: 'center',
174
+ gap: '24px',
175
+ zIndex: 10,
176
+ maxWidth: '1000px',
177
+ textAlign: 'center',
178
+ }}
179
+ >
180
+ {/* Brand Logo/Icon */}
181
+ {icon !== null && (
182
+ icon !== undefined ? (
183
+ <div
184
+ style={{
185
+ display: 'flex',
186
+ alignItems: 'center',
187
+ justifyContent: 'center',
188
+ marginBottom: '16px',
189
+ }}
190
+ >
191
+ {icon}
192
+ </div>
193
+ ) : (
194
+ <div
195
+ style={{
196
+ width: '64px',
197
+ height: '64px',
198
+ borderRadius: '20px',
199
+ background: isLight ? '#0a0a0a' : 'white',
200
+ display: 'flex',
201
+ alignItems: 'center',
202
+ justifyContent: 'center',
203
+ boxShadow: '0 4px 12px rgba(0, 0, 0, 0.1)',
204
+ marginBottom: '16px',
205
+ }}
206
+ >
207
+ <div style={{ width: '24px', height: '24px', borderRadius: '50%', background: isLight ? 'white' : activeStyle.accentColor }} />
208
+ </div>
209
+ )
210
+ )}
211
+
212
+ <h1
213
+ style={{
214
+ fontSize: `${titleFontSize}px`,
215
+ fontWeight: 900,
216
+ margin: 0,
217
+ letterSpacing: '-0.04em',
218
+ lineHeight: 1.1,
219
+ textShadow: isLight ? 'none' : '0 4px 30px rgba(0,0,0,0.3)',
220
+ }}
221
+ >
222
+ {title}
223
+ </h1>
224
+
225
+ {description && (
226
+ <p
227
+ style={{
228
+ fontSize: `${descriptionFontSize}px`,
229
+ fontWeight: 500,
230
+ opacity: 0.9,
231
+ margin: 0,
232
+ letterSpacing: '-0.01em',
233
+ lineHeight: 1.4,
234
+ maxWidth: '900px',
235
+ }}
236
+ >
237
+ {description}
238
+ </p>
239
+ )}
240
+ </div>
241
+ </div>
242
+ );
243
+ }