astryx-dracula 0.4.0 → 0.5.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 (121) hide show
  1. package/astryx.integration.mjs +1 -1
  2. package/icons.mjs +17 -17
  3. package/icons.tsx +61 -62
  4. package/package.json +120 -116
  5. package/shared/auth-chrome-config.ts +6 -6
  6. package/shared/auth-chrome.tsx +168 -19
  7. package/shared/auth-copy.ts +14 -14
  8. package/shared/chaptered-doc-config.ts +48 -51
  9. package/shared/chaptered-doc.tsx +270 -292
  10. package/shared/chart-hues.ts +10 -15
  11. package/shared/chart-labels.tsx +31 -30
  12. package/shared/chart-legend.tsx +55 -57
  13. package/shared/chart-panel-style.ts +3 -3
  14. package/shared/data-bar.tsx +97 -102
  15. package/shared/format-money.ts +3 -0
  16. package/shared/gallery-image.ts +6 -6
  17. package/shared/login-demo.ts +1 -1
  18. package/shared/metric-card.tsx +123 -0
  19. package/shared/metric-delta.tsx +28 -27
  20. package/shared/order-desk.tsx +205 -216
  21. package/shared/revenue-chart.tsx +145 -165
  22. package/shared/scene-castle.tsx +206 -291
  23. package/shared/scene-frame.tsx +33 -32
  24. package/shared/scene-hues.ts +17 -25
  25. package/shared/scene-tile.tsx +88 -100
  26. package/shared/settings-data.ts +132 -104
  27. package/shared/settings-rows.tsx +143 -163
  28. package/shared/sparkline.tsx +75 -88
  29. package/shared/sso-icons.tsx +10 -22
  30. package/shared/stars.tsx +19 -0
  31. package/templates/ai-chat-landing.template.mjs +4 -4
  32. package/templates/ai-chat-landing.tsx +468 -447
  33. package/templates/ai-chat.template.mjs +4 -4
  34. package/templates/ai-chat.tsx +561 -645
  35. package/templates/blank.template.mjs +4 -4
  36. package/templates/blank.tsx +14 -12
  37. package/templates/centered-hero.template.mjs +4 -4
  38. package/templates/centered-hero.tsx +52 -67
  39. package/templates/classic-gallery.template.mjs +4 -4
  40. package/templates/classic-gallery.tsx +92 -101
  41. package/templates/contact-form.template.mjs +4 -4
  42. package/templates/contact-form.tsx +243 -280
  43. package/templates/dashboard-portfolio.template.mjs +4 -4
  44. package/templates/dashboard-portfolio.tsx +723 -634
  45. package/templates/dashboard.template.mjs +4 -4
  46. package/templates/dashboard.tsx +592 -682
  47. package/templates/detail-page.template.mjs +4 -4
  48. package/templates/detail-page.tsx +537 -598
  49. package/templates/documentation-design.template.mjs +4 -4
  50. package/templates/documentation-design.tsx +242 -709
  51. package/templates/documentation-technical.template.mjs +4 -4
  52. package/templates/documentation-technical.tsx +233 -258
  53. package/templates/documentation.template.mjs +4 -4
  54. package/templates/documentation.tsx +263 -277
  55. package/templates/editor.template.mjs +4 -4
  56. package/templates/editor.tsx +847 -899
  57. package/templates/file-explorer.template.mjs +4 -4
  58. package/templates/file-explorer.tsx +562 -602
  59. package/templates/form-two-column.template.mjs +4 -4
  60. package/templates/form-two-column.tsx +187 -208
  61. package/templates/gallery-hero.template.mjs +4 -4
  62. package/templates/gallery-hero.tsx +89 -112
  63. package/templates/ide.template.mjs +4 -4
  64. package/templates/ide.tsx +405 -462
  65. package/templates/incident-console.template.mjs +4 -4
  66. package/templates/incident-console.tsx +559 -581
  67. package/templates/kanban-board.template.mjs +4 -4
  68. package/templates/kanban-board.tsx +660 -729
  69. package/templates/library.template.mjs +4 -4
  70. package/templates/library.tsx +405 -452
  71. package/templates/login-card.template.mjs +4 -4
  72. package/templates/login-card.tsx +59 -163
  73. package/templates/login-split.template.mjs +4 -4
  74. package/templates/login-split.tsx +196 -232
  75. package/templates/login-sso.template.mjs +4 -4
  76. package/templates/login-sso.tsx +253 -277
  77. package/templates/login.template.mjs +4 -4
  78. package/templates/login.tsx +51 -149
  79. package/templates/messaging-shell.template.mjs +4 -4
  80. package/templates/messaging-shell.tsx +596 -624
  81. package/templates/mixed-gallery.template.mjs +4 -4
  82. package/templates/mixed-gallery.tsx +56 -56
  83. package/templates/payment-form.template.mjs +4 -4
  84. package/templates/payment-form.tsx +877 -990
  85. package/templates/product-detail.template.mjs +4 -4
  86. package/templates/product-detail.tsx +251 -302
  87. package/templates/product-gallery.template.mjs +4 -4
  88. package/templates/product-gallery.tsx +122 -135
  89. package/templates/product-tour.template.mjs +4 -4
  90. package/templates/product-tour.tsx +737 -794
  91. package/templates/settings-dialog.template.mjs +4 -4
  92. package/templates/settings-dialog.tsx +694 -747
  93. package/templates/settings-sidebar.template.mjs +4 -4
  94. package/templates/settings-sidebar.tsx +768 -848
  95. package/templates/settings.template.mjs +4 -4
  96. package/templates/settings.tsx +306 -230
  97. package/templates/shell-nav.template.mjs +4 -4
  98. package/templates/shell-nav.tsx +217 -277
  99. package/templates/shell-side-nav.template.mjs +4 -4
  100. package/templates/shell-side-nav.tsx +130 -231
  101. package/templates/shell-top-nav.template.mjs +4 -4
  102. package/templates/shell-top-nav.tsx +192 -248
  103. package/templates/side-gallery.template.mjs +4 -4
  104. package/templates/side-gallery.tsx +87 -94
  105. package/templates/table-grouped.template.mjs +4 -4
  106. package/templates/table-grouped.tsx +999 -1201
  107. package/templates/table-page-chart.template.mjs +4 -4
  108. package/templates/table-page-chart.tsx +398 -397
  109. package/templates/table-page-heatmap-status.template.mjs +4 -4
  110. package/templates/table-page-heatmap-status.tsx +479 -527
  111. package/templates/table-page-shoe-store-heatmap.template.mjs +4 -4
  112. package/templates/table-page-shoe-store-heatmap.tsx +746 -746
  113. package/templates/table-page.template.mjs +4 -4
  114. package/templates/table-page.tsx +393 -431
  115. package/templates/table.template.mjs +4 -4
  116. package/templates/table.tsx +93 -99
  117. package/templates/tech-report.template.mjs +4 -4
  118. package/templates/tech-report.tsx +1320 -1324
  119. package/templates/theme-showcase.template.mjs +4 -4
  120. package/templates/theme-showcase.tsx +869 -1246
  121. package/tokens.css +340 -343
@@ -7,316 +7,231 @@
7
7
  // Moons are harvest yellow in every scene. Hills live in per-scene
8
8
  // constants below.
9
9
 
10
- import {galleryImage} from 'astryx-dracula/shared/gallery-image';
10
+ import { galleryImage } from "astryx-dracula/shared/gallery-image";
11
11
 
12
- export type SceneCastleVariant = 'wide' | 'card' | 'tall' | 'rooftops';
12
+ export type SceneCastleVariant = "wide" | "card" | "tall" | "rooftops";
13
13
 
14
14
  const WIDE_HILLS = {
15
- back: 'M0 330 Q200 260 400 320 T800 300 V450 H0 Z',
16
- front: 'M0 385 Q240 320 480 375 T800 360 V450 H0 Z',
15
+ back: "M0 330 Q200 260 400 320 T800 300 V450 H0 Z",
16
+ front: "M0 385 Q240 320 480 375 T800 360 V450 H0 Z",
17
17
  } as const;
18
18
 
19
19
  const CARD_HILLS = {
20
- back: 'M0 360 Q140 300 260 350 T400 335 V500 H0 Z',
21
- front: 'M0 420 Q160 365 300 410 T400 400 V500 H0 Z',
20
+ back: "M0 360 Q140 300 260 350 T400 335 V500 H0 Z",
21
+ front: "M0 420 Q160 365 300 410 T400 400 V500 H0 Z",
22
22
  } as const;
23
23
 
24
- const TALL_HILL = 'M0 380 Q200 320 400 370 V500 H0 Z' as const;
24
+ const TALL_HILL = "M0 380 Q200 320 400 370 V500 H0 Z" as const;
25
25
 
26
26
  function WideCastle() {
27
- return (
28
- <svg
29
- style={galleryImage}
30
- viewBox="0 0 800 450"
31
- role="img"
32
- aria-label="Moonlit castle on a hill in Dracula theme colors">
33
- <rect width="800" height="450" fill="var(--dracula-bg-dark)" />
34
- {/* Stars */}
35
- <g fill="var(--dracula-comment)">
36
- <circle cx="60" cy="60" r="2.5" />
37
- <circle cx="180" cy="120" r="2" />
38
- <circle cx="330" cy="50" r="2.5" />
39
- <circle cx="470" cy="90" r="2" />
40
- <circle cx="700" cy="200" r="2.5" />
41
- <circle cx="750" cy="80" r="2" />
42
- </g>
43
- <g fill="var(--dracula-cyan)">
44
- <circle cx="120" cy="90" r="2" />
45
- <circle cx="270" cy="70" r="2.5" />
46
- <circle cx="540" cy="50" r="2" />
47
- <circle cx="660" cy="160" r="2" />
48
- </g>
49
- <g fill="var(--dracula-pink)">
50
- <circle cx="90" cy="170" r="2" />
51
- <circle cx="400" cy="130" r="2.5" />
52
- <circle cx="590" cy="200" r="2" />
53
- <circle cx="730" cy="260" r="2" />
54
- </g>
55
- {/* Harvest moon */}
56
- <circle cx="620" cy="110" r="56" fill="var(--dracula-yellow)" />
57
- <circle
58
- cx="600"
59
- cy="95"
60
- r="10"
61
- fill="var(--dracula-orange)"
62
- opacity={0.5}
63
- />
64
- <circle
65
- cx="638"
66
- cy="125"
67
- r="7"
68
- fill="var(--dracula-orange)"
69
- opacity={0.5}
70
- />
71
- {/* Bats */}
72
- <g
73
- fill="none"
74
- stroke="var(--dracula-fg)"
75
- strokeWidth={4}
76
- strokeLinecap="round">
77
- <path d="M120 130 q12 -12 24 0 q12 -12 24 0" />
78
- <path d="M210 90 q9 -9 18 0 q9 -9 18 0" />
79
- <path d="M470 160 q9 -9 18 0 q9 -9 18 0" />
80
- </g>
81
- {/* Hills */}
82
- <path d={WIDE_HILLS.back} fill="var(--dracula-selection)" />
83
- <path d={WIDE_HILLS.front} fill="var(--dracula-bg-light)" />
84
- {/* Castle */}
85
- <g>
86
- <rect
87
- x="150"
88
- y="225"
89
- width="120"
90
- height="120"
91
- rx={4}
92
- fill="var(--dracula-bg-lighter)"
93
- />
94
- <rect
95
- x="130"
96
- y="185"
97
- width="44"
98
- height="160"
99
- rx={4}
100
- fill="var(--dracula-bg-lighter)"
101
- />
102
- <rect
103
- x="246"
104
- y="185"
105
- width="44"
106
- height="160"
107
- rx={4}
108
- fill="var(--dracula-bg-lighter)"
109
- />
110
- <g fill="var(--dracula-bg-lighter)">
111
- <rect x="130" y="175" width="12" height="14" rx={2} />
112
- <rect x="149" y="175" width="12" height="14" rx={2} />
113
- <rect x="246" y="175" width="12" height="14" rx={2} />
114
- <rect x="265" y="175" width="12" height="14" rx={2} />
115
- <rect x="150" y="215" width="14" height="16" rx={2} />
116
- <rect x="173" y="215" width="14" height="16" rx={2} />
117
- <rect x="196" y="215" width="14" height="16" rx={2} />
118
- <rect x="219" y="215" width="14" height="16" rx={2} />
119
- <rect x="242" y="215" width="14" height="16" rx={2} />
120
- </g>
121
- <g fill="var(--dracula-yellow)">
122
- <rect x="168" y="255" width="14" height="20" rx={2} />
123
- <rect x="203" y="255" width="14" height="20" rx={2} />
124
- <rect x="238" y="255" width="14" height="20" rx={2} />
125
- <rect x="143" y="215" width="10" height="14" rx={2} />
126
- <rect x="259" y="215" width="10" height="14" rx={2} />
127
- </g>
128
- <path
129
- d="M195 345 v-30 a15 15 0 0 1 30 0 v30 Z"
130
- fill="var(--dracula-bg-dark)"
131
- />
132
- </g>
133
- </svg>
134
- );
27
+ return (
28
+ <svg
29
+ style={galleryImage}
30
+ viewBox="0 0 800 450"
31
+ role="img"
32
+ aria-label="Moonlit castle on a hill in Dracula theme colors"
33
+ >
34
+ <rect width="800" height="450" fill="var(--dracula-bg-dark)" />
35
+ {/* Stars */}
36
+ <g fill="var(--dracula-comment)">
37
+ <circle cx="60" cy="60" r="2.5" />
38
+ <circle cx="180" cy="120" r="2" />
39
+ <circle cx="330" cy="50" r="2.5" />
40
+ <circle cx="470" cy="90" r="2" />
41
+ <circle cx="700" cy="200" r="2.5" />
42
+ <circle cx="750" cy="80" r="2" />
43
+ </g>
44
+ <g fill="var(--dracula-cyan)">
45
+ <circle cx="120" cy="90" r="2" />
46
+ <circle cx="270" cy="70" r="2.5" />
47
+ <circle cx="540" cy="50" r="2" />
48
+ <circle cx="660" cy="160" r="2" />
49
+ </g>
50
+ <g fill="var(--dracula-pink)">
51
+ <circle cx="90" cy="170" r="2" />
52
+ <circle cx="400" cy="130" r="2.5" />
53
+ <circle cx="590" cy="200" r="2" />
54
+ <circle cx="730" cy="260" r="2" />
55
+ </g>
56
+ {/* Harvest moon */}
57
+ <circle cx="620" cy="110" r="56" fill="var(--dracula-yellow)" />
58
+ <circle cx="600" cy="95" r="10" fill="var(--dracula-orange)" opacity={0.5} />
59
+ <circle cx="638" cy="125" r="7" fill="var(--dracula-orange)" opacity={0.5} />
60
+ {/* Bats */}
61
+ <g fill="none" stroke="var(--dracula-fg)" strokeWidth={4} strokeLinecap="round">
62
+ <path d="M120 130 q12 -12 24 0 q12 -12 24 0" />
63
+ <path d="M210 90 q9 -9 18 0 q9 -9 18 0" />
64
+ <path d="M470 160 q9 -9 18 0 q9 -9 18 0" />
65
+ </g>
66
+ {/* Hills */}
67
+ <path d={WIDE_HILLS.back} fill="var(--dracula-selection)" />
68
+ <path d={WIDE_HILLS.front} fill="var(--dracula-bg-light)" />
69
+ {/* Castle */}
70
+ <g>
71
+ <rect x="150" y="225" width="120" height="120" rx={4} fill="var(--dracula-bg-lighter)" />
72
+ <rect x="130" y="185" width="44" height="160" rx={4} fill="var(--dracula-bg-lighter)" />
73
+ <rect x="246" y="185" width="44" height="160" rx={4} fill="var(--dracula-bg-lighter)" />
74
+ <g fill="var(--dracula-bg-lighter)">
75
+ <rect x="130" y="175" width="12" height="14" rx={2} />
76
+ <rect x="149" y="175" width="12" height="14" rx={2} />
77
+ <rect x="246" y="175" width="12" height="14" rx={2} />
78
+ <rect x="265" y="175" width="12" height="14" rx={2} />
79
+ <rect x="150" y="215" width="14" height="16" rx={2} />
80
+ <rect x="173" y="215" width="14" height="16" rx={2} />
81
+ <rect x="196" y="215" width="14" height="16" rx={2} />
82
+ <rect x="219" y="215" width="14" height="16" rx={2} />
83
+ <rect x="242" y="215" width="14" height="16" rx={2} />
84
+ </g>
85
+ <g fill="var(--dracula-yellow)">
86
+ <rect x="168" y="255" width="14" height="20" rx={2} />
87
+ <rect x="203" y="255" width="14" height="20" rx={2} />
88
+ <rect x="238" y="255" width="14" height="20" rx={2} />
89
+ <rect x="143" y="215" width="10" height="14" rx={2} />
90
+ <rect x="259" y="215" width="10" height="14" rx={2} />
91
+ </g>
92
+ <path d="M195 345 v-30 a15 15 0 0 1 30 0 v30 Z" fill="var(--dracula-bg-dark)" />
93
+ </g>
94
+ </svg>
95
+ );
135
96
  }
136
97
 
137
98
  function CardCastle() {
138
- return (
139
- <svg
140
- style={galleryImage}
141
- viewBox="0 0 400 500"
142
- role="img"
143
- aria-label="Moonlit castle on midnight hills">
144
- <rect width="400" height="500" fill="var(--dracula-bg-dark)" />
145
- {/* Stars */}
146
- <g fill="var(--dracula-comment)">
147
- <circle cx="50" cy="60" r="2.5" />
148
- <circle cx="140" cy="130" r="2" />
149
- <circle cx="240" cy="50" r="2.5" />
150
- <circle cx="330" cy="110" r="2" />
151
- <circle cx="300" cy="200" r="2.5" />
152
- </g>
153
- <g fill="var(--dracula-cyan)">
154
- <circle cx="95" cy="90" r="2" />
155
- <circle cx="200" cy="100" r="2.5" />
156
- <circle cx="360" cy="60" r="2" />
157
- </g>
158
- <circle cx="290" cy="120" r="52" fill="var(--dracula-yellow)" />
159
- <circle
160
- cx="272"
161
- cy="106"
162
- r="9"
163
- fill="var(--dracula-orange)"
164
- opacity={0.5}
165
- />
166
- <g
167
- fill="none"
168
- stroke="var(--dracula-fg)"
169
- strokeWidth={3}
170
- strokeLinecap="round">
171
- <path d="M70 170 q12 -12 24 0 q12 -12 24 0" />
172
- <path d="M150 130 q9 -9 18 0 q9 -9 18 0" />
173
- </g>
174
- <path d={CARD_HILLS.back} fill="var(--dracula-selection)" />
175
- <path d={CARD_HILLS.front} fill="var(--dracula-bg-light)" />
176
- <g>
177
- <rect
178
- x="140"
179
- y="270"
180
- width="120"
181
- height="110"
182
- rx={4}
183
- fill="var(--dracula-bg-lighter)"
184
- />
185
- <rect
186
- x="118"
187
- y="235"
188
- width="44"
189
- height="145"
190
- rx={4}
191
- fill="var(--dracula-bg-lighter)"
192
- />
193
- <rect
194
- x="238"
195
- y="235"
196
- width="44"
197
- height="145"
198
- rx={4}
199
- fill="var(--dracula-bg-lighter)"
200
- />
201
- <g fill="var(--dracula-yellow)">
202
- <rect x="160" y="300" width="14" height="20" rx={2} />
203
- <rect x="196" y="300" width="14" height="20" rx={2} />
204
- <rect x="232" y="300" width="14" height="20" rx={2} />
205
- <rect x="131" y="262" width="10" height="14" rx={2} />
206
- <rect x="253" y="262" width="10" height="14" rx={2} />
207
- </g>
208
- <path
209
- d="M185 380 v-28 a15 15 0 0 1 30 0 v28 Z"
210
- fill="var(--dracula-bg-dark)"
211
- />
212
- </g>
213
- </svg>
214
- );
99
+ return (
100
+ <svg
101
+ style={galleryImage}
102
+ viewBox="0 0 400 500"
103
+ role="img"
104
+ aria-label="Moonlit castle on midnight hills"
105
+ >
106
+ <rect width="400" height="500" fill="var(--dracula-bg-dark)" />
107
+ {/* Stars */}
108
+ <g fill="var(--dracula-comment)">
109
+ <circle cx="50" cy="60" r="2.5" />
110
+ <circle cx="140" cy="130" r="2" />
111
+ <circle cx="240" cy="50" r="2.5" />
112
+ <circle cx="330" cy="110" r="2" />
113
+ <circle cx="300" cy="200" r="2.5" />
114
+ </g>
115
+ <g fill="var(--dracula-cyan)">
116
+ <circle cx="95" cy="90" r="2" />
117
+ <circle cx="200" cy="100" r="2.5" />
118
+ <circle cx="360" cy="60" r="2" />
119
+ </g>
120
+ <circle cx="290" cy="120" r="52" fill="var(--dracula-yellow)" />
121
+ <circle cx="272" cy="106" r="9" fill="var(--dracula-orange)" opacity={0.5} />
122
+ <g fill="none" stroke="var(--dracula-fg)" strokeWidth={3} strokeLinecap="round">
123
+ <path d="M70 170 q12 -12 24 0 q12 -12 24 0" />
124
+ <path d="M150 130 q9 -9 18 0 q9 -9 18 0" />
125
+ </g>
126
+ <path d={CARD_HILLS.back} fill="var(--dracula-selection)" />
127
+ <path d={CARD_HILLS.front} fill="var(--dracula-bg-light)" />
128
+ <g>
129
+ <rect x="140" y="270" width="120" height="110" rx={4} fill="var(--dracula-bg-lighter)" />
130
+ <rect x="118" y="235" width="44" height="145" rx={4} fill="var(--dracula-bg-lighter)" />
131
+ <rect x="238" y="235" width="44" height="145" rx={4} fill="var(--dracula-bg-lighter)" />
132
+ <g fill="var(--dracula-yellow)">
133
+ <rect x="160" y="300" width="14" height="20" rx={2} />
134
+ <rect x="196" y="300" width="14" height="20" rx={2} />
135
+ <rect x="232" y="300" width="14" height="20" rx={2} />
136
+ <rect x="131" y="262" width="10" height="14" rx={2} />
137
+ <rect x="253" y="262" width="10" height="14" rx={2} />
138
+ </g>
139
+ <path d="M185 380 v-28 a15 15 0 0 1 30 0 v28 Z" fill="var(--dracula-bg-dark)" />
140
+ </g>
141
+ </svg>
142
+ );
215
143
  }
216
144
 
217
145
  function TallPines() {
218
- return (
219
- <svg
220
- style={galleryImage}
221
- viewBox="0 0 400 500"
222
- role="img"
223
- aria-label="Harvest moon over midnight pines">
224
- <rect width="400" height="500" fill="var(--dracula-bg-dark)" />
225
- {/* Stars */}
226
- <g fill="var(--dracula-pink)">
227
- <circle cx="60" cy="80" r="2" />
228
- <circle cx="160" cy="50" r="2.5" />
229
- <circle cx="320" cy="70" r="2" />
230
- <circle cx="90" cy="190" r="2.5" />
231
- <circle cx="250" cy="160" r="2" />
232
- </g>
233
- <g fill="var(--dracula-cyan)">
234
- <circle cx="110" cy="120" r="2" />
235
- <circle cx="220" cy="90" r="2" />
236
- <circle cx="350" cy="150" r="2.5" />
237
- </g>
238
- <circle cx="200" cy="190" r="72" fill="var(--dracula-yellow)" />
239
- <circle
240
- cx="176"
241
- cy="170"
242
- r="12"
243
- fill="var(--dracula-orange)"
244
- opacity={0.5}
245
- />
246
- <circle
247
- cx="222"
248
- cy="210"
249
- r="8"
250
- fill="var(--dracula-orange)"
251
- opacity={0.5}
252
- />
253
- <g
254
- fill="none"
255
- stroke="var(--dracula-fg)"
256
- strokeWidth={3}
257
- strokeLinecap="round">
258
- <path d="M90 260 q12 -12 24 0 q12 -12 24 0" />
259
- <path d="M260 250 q9 -9 18 0 q9 -9 18 0" />
260
- </g>
261
- <path d={TALL_HILL} fill="var(--dracula-selection)" />
262
- <g fill="var(--dracula-bg-light)">
263
- <path d="M70 500 V400 l28 -44 28 44 v100 Z" />
264
- <path d="M170 500 V420 l28 -44 28 44 v80 Z" />
265
- <path d="M270 500 V410 l28 -44 28 44 v90 Z" />
266
- </g>
267
- <g fill="var(--dracula-yellow)">
268
- <rect x="81" y="442" width="8" height="12" rx={2} />
269
- <rect x="181" y="458" width="8" height="12" rx={2} />
270
- <rect x="281" y="450" width="8" height="12" rx={2} />
271
- </g>
272
- </svg>
273
- );
146
+ return (
147
+ <svg
148
+ style={galleryImage}
149
+ viewBox="0 0 400 500"
150
+ role="img"
151
+ aria-label="Harvest moon over midnight pines"
152
+ >
153
+ <rect width="400" height="500" fill="var(--dracula-bg-dark)" />
154
+ {/* Stars */}
155
+ <g fill="var(--dracula-pink)">
156
+ <circle cx="60" cy="80" r="2" />
157
+ <circle cx="160" cy="50" r="2.5" />
158
+ <circle cx="320" cy="70" r="2" />
159
+ <circle cx="90" cy="190" r="2.5" />
160
+ <circle cx="250" cy="160" r="2" />
161
+ </g>
162
+ <g fill="var(--dracula-cyan)">
163
+ <circle cx="110" cy="120" r="2" />
164
+ <circle cx="220" cy="90" r="2" />
165
+ <circle cx="350" cy="150" r="2.5" />
166
+ </g>
167
+ <circle cx="200" cy="190" r="72" fill="var(--dracula-yellow)" />
168
+ <circle cx="176" cy="170" r="12" fill="var(--dracula-orange)" opacity={0.5} />
169
+ <circle cx="222" cy="210" r="8" fill="var(--dracula-orange)" opacity={0.5} />
170
+ <g fill="none" stroke="var(--dracula-fg)" strokeWidth={3} strokeLinecap="round">
171
+ <path d="M90 260 q12 -12 24 0 q12 -12 24 0" />
172
+ <path d="M260 250 q9 -9 18 0 q9 -9 18 0" />
173
+ </g>
174
+ <path d={TALL_HILL} fill="var(--dracula-selection)" />
175
+ <g fill="var(--dracula-bg-light)">
176
+ <path d="M70 500 V400 l28 -44 28 44 v100 Z" />
177
+ <path d="M170 500 V420 l28 -44 28 44 v80 Z" />
178
+ <path d="M270 500 V410 l28 -44 28 44 v90 Z" />
179
+ </g>
180
+ <g fill="var(--dracula-yellow)">
181
+ <rect x="81" y="442" width="8" height="12" rx={2} />
182
+ <rect x="181" y="458" width="8" height="12" rx={2} />
183
+ <rect x="281" y="450" width="8" height="12" rx={2} />
184
+ </g>
185
+ </svg>
186
+ );
274
187
  }
275
188
 
276
189
  function Rooftops() {
277
- return (
278
- <svg
279
- style={galleryImage}
280
- viewBox="0 0 400 300"
281
- preserveAspectRatio="xMidYMid slice"
282
- role="img"
283
- aria-label="Harvest moon over the castle rooftops">
284
- <rect width="400" height="300" fill="var(--dracula-bg)" />
285
- <g fill="var(--dracula-fg)">
286
- <circle cx="68" cy="52" r="2" />
287
- <circle cx="330" cy="70" r="2" />
288
- </g>
289
- <g fill="var(--dracula-comment)">
290
- <circle cx="140" cy="36" r="1.5" />
291
- <circle cx="292" cy="34" r="1.5" />
292
- <circle cx="360" cy="140" r="1.5" />
293
- </g>
294
- <circle cx="200" cy="118" r="52" fill="var(--dracula-yellow)" />
295
- <circle cx="182" cy="104" r="44" fill="var(--dracula-bg)" />
296
- <g
297
- fill="var(--dracula-current-line)"
298
- stroke="var(--dracula-comment)"
299
- strokeWidth="3"
300
- strokeLinejoin="round">
301
- <rect x="20" y="220" width="110" height="80" />
302
- <path d="M20 220 L75 178 L130 220 Z" />
303
- <rect x="150" y="200" width="100" height="100" />
304
- <path d="M150 200 L200 162 L250 200 Z" />
305
- <rect x="270" y="228" width="110" height="72" />
306
- <path d="M270 228 L325 190 L380 228 Z" />
307
- </g>
308
- <g fill="var(--dracula-yellow)">
309
- <rect x="58" y="244" width="14" height="18" />
310
- <rect x="188" y="224" width="14" height="18" />
311
- <rect x="312" y="250" width="14" height="18" />
312
- </g>
313
- </svg>
314
- );
190
+ return (
191
+ <svg
192
+ style={galleryImage}
193
+ viewBox="0 0 400 300"
194
+ preserveAspectRatio="xMidYMid slice"
195
+ role="img"
196
+ aria-label="Harvest moon over the castle rooftops"
197
+ >
198
+ <rect width="400" height="300" fill="var(--dracula-bg)" />
199
+ <g fill="var(--dracula-fg)">
200
+ <circle cx="68" cy="52" r="2" />
201
+ <circle cx="330" cy="70" r="2" />
202
+ </g>
203
+ <g fill="var(--dracula-comment)">
204
+ <circle cx="140" cy="36" r="1.5" />
205
+ <circle cx="292" cy="34" r="1.5" />
206
+ <circle cx="360" cy="140" r="1.5" />
207
+ </g>
208
+ <circle cx="200" cy="118" r="52" fill="var(--dracula-yellow)" />
209
+ <circle cx="182" cy="104" r="44" fill="var(--dracula-bg)" />
210
+ <g
211
+ fill="var(--dracula-current-line)"
212
+ stroke="var(--dracula-comment)"
213
+ strokeWidth="3"
214
+ strokeLinejoin="round"
215
+ >
216
+ <rect x="20" y="220" width="110" height="80" />
217
+ <path d="M20 220 L75 178 L130 220 Z" />
218
+ <rect x="150" y="200" width="100" height="100" />
219
+ <path d="M150 200 L200 162 L250 200 Z" />
220
+ <rect x="270" y="228" width="110" height="72" />
221
+ <path d="M270 228 L325 190 L380 228 Z" />
222
+ </g>
223
+ <g fill="var(--dracula-yellow)">
224
+ <rect x="58" y="244" width="14" height="18" />
225
+ <rect x="188" y="224" width="14" height="18" />
226
+ <rect x="312" y="250" width="14" height="18" />
227
+ </g>
228
+ </svg>
229
+ );
315
230
  }
316
231
 
317
- export function SceneCastle({variant}: {variant: SceneCastleVariant}) {
318
- if (variant === 'wide') return <WideCastle />;
319
- if (variant === 'card') return <CardCastle />;
320
- if (variant === 'rooftops') return <Rooftops />;
321
- return <TallPines />;
232
+ export function SceneCastle({ variant }: { variant: SceneCastleVariant }) {
233
+ if (variant === "wide") return <WideCastle />;
234
+ if (variant === "card") return <CardCastle />;
235
+ if (variant === "rooftops") return <Rooftops />;
236
+ return <TallPines />;
322
237
  }
@@ -47,42 +47,43 @@
47
47
  //
48
48
  // Not interactive. A scene is artwork, not a control: no hover, no focus ring.
49
49
 
50
- import type {CSSProperties, ReactNode} from 'react';
50
+ import type { CSSProperties, ReactNode } from "react";
51
51
 
52
52
  export interface SceneFrameProps {
53
- /** Accessible name for the art. Required and unique per instance: four or
54
- * more scenes sharing one name is the a11y defect the Sparkline `label` prop
55
- * was extracted to fix. */
56
- label: string;
57
- /** Scene contents. Any <defs> and gradient ids belong to the caller. */
58
- children: ReactNode;
59
- /** @default '0 0 400 225' */
60
- viewBox?: string;
61
- /** Backdrop fill painted behind the scene. @default 'var(--dracula-bg-dark)' */
62
- fill?: string;
63
- /** Paints the backdrop rect. Set false when the scene draws its own. @default true */
64
- hasBackdrop?: boolean;
65
- /** Forwarded to the root svg. */
66
- style?: CSSProperties;
53
+ /** Accessible name for the art. Required and unique per instance: four or
54
+ * more scenes sharing one name is the a11y defect the Sparkline `label` prop
55
+ * was extracted to fix. */
56
+ label: string;
57
+ /** Scene contents. Any <defs> and gradient ids belong to the caller. */
58
+ children: ReactNode;
59
+ /** @default '0 0 400 225' */
60
+ viewBox?: string;
61
+ /** Backdrop fill painted behind the scene. @default 'var(--dracula-bg-dark)' */
62
+ fill?: string;
63
+ /** Paints the backdrop rect. Set false when the scene draws its own. @default true */
64
+ hasBackdrop?: boolean;
65
+ /** Forwarded to the root svg. */
66
+ style?: CSSProperties;
67
67
  }
68
68
 
69
69
  export function SceneFrame({
70
- label,
71
- children,
72
- viewBox = '0 0 400 225',
73
- fill = 'var(--dracula-bg-dark)',
74
- hasBackdrop = true,
75
- style,
70
+ label,
71
+ children,
72
+ viewBox = "0 0 400 225",
73
+ fill = "var(--dracula-bg-dark)",
74
+ hasBackdrop = true,
75
+ style,
76
76
  }: SceneFrameProps) {
77
- return (
78
- <svg
79
- viewBox={viewBox}
80
- preserveAspectRatio="xMidYMid slice"
81
- style={{width: '100%', height: '100%', display: 'block', ...style}}
82
- role="img"
83
- aria-label={label}>
84
- {hasBackdrop ? <rect width="100%" height="100%" fill={fill} /> : null}
85
- {children}
86
- </svg>
87
- );
77
+ return (
78
+ <svg
79
+ viewBox={viewBox}
80
+ preserveAspectRatio="xMidYMid slice"
81
+ style={{ width: "100%", height: "100%", display: "block", ...style }}
82
+ role="img"
83
+ aria-label={label}
84
+ >
85
+ {hasBackdrop ? <rect width="100%" height="100%" fill={fill} /> : null}
86
+ {children}
87
+ </svg>
88
+ );
88
89
  }