Skip to content

Commit 695b48c

Browse files
Dmitry Stremousclaude
authored andcommitted
Add Spotlight plugin with user-facing copy and icon improvements
Adds @cloudimage/spotlight (v1.0.6) to the plugins hub with data model, SVG illustration, icon sprite, hero count update, and footer link. Rewrites description and features to use user-facing language instead of implementation details, replaces crosshair icon with a screen-highlight metaphor, and swaps font-dependent text badge for a cross-browser dot. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent db1b3dc commit 695b48c

2 files changed

Lines changed: 65 additions & 1 deletion

File tree

app.js

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,31 @@ const PLUGINS = [
156156
repo: 'https://github.com/scaleflex/cloudimage-carousel',
157157
},
158158
},
159+
{
160+
id: 'cloudimage-spotlight',
161+
name: 'Spotlight',
162+
npmPackage: '@cloudimage/spotlight',
163+
version: '1.0.6',
164+
tagline: 'Screenshot-based interactive experience player',
165+
description:
166+
'Guided product tours with scene navigation, zoom, highlight overlays, annotations, and deep linking.',
167+
icon: 'icon-spotlight',
168+
accentColor: '#7c5cff',
169+
features: [
170+
'Scene Navigation',
171+
'Zoom',
172+
'Highlight Overlay',
173+
'Annotations',
174+
'Deep Linking',
175+
'Autoplay',
176+
'React Support',
177+
'Accessibility',
178+
],
179+
links: {
180+
demo: 'https://scaleflex.github.io/cloudimage-spotlight/',
181+
repo: 'https://github.com/scaleflex/cloudimage-spotlight',
182+
},
183+
},
159184
];
160185

161186
/* --------------------------------------------------------------------------
@@ -348,6 +373,36 @@ function getPluginIllustration(pluginId) {
348373
</circle>
349374
<defs><linearGradient id="grad-carousel" x1="0" y1="0" x2="200" y2="160"><stop stop-color="#f59e0b"/><stop offset="1" stop-color="#e05cff"/></linearGradient></defs>
350375
</svg>`,
376+
377+
'cloudimage-spotlight': `
378+
<svg viewBox="0 0 200 160" fill="none" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="Spotlight interactive experience illustration">
379+
<!-- Screenshot frame -->
380+
<rect x="15" y="10" width="170" height="110" rx="8" stroke="url(#grad-spotlight)" stroke-width="2" opacity="0.3"/>
381+
<rect x="23" y="18" width="154" height="94" rx="4" stroke="url(#grad-spotlight)" stroke-width="1" opacity="0.12"/>
382+
<!-- Dimmed overlay -->
383+
<rect x="23" y="18" width="154" height="94" rx="4" fill="url(#grad-spotlight)" opacity="0.04"/>
384+
<!-- Spotlight cut-out region -->
385+
<rect x="55" y="35" width="90" height="55" rx="6" stroke="url(#grad-spotlight)" stroke-width="2" opacity="0.5" fill="url(#grad-spotlight)" fill-opacity="0.08"/>
386+
<!-- Spotlight glow -->
387+
<rect x="55" y="35" width="90" height="55" rx="6" stroke="url(#grad-spotlight)" stroke-width="1" opacity="0.15">
388+
<animate attributeName="opacity" values="0.15;0.05;0.15" dur="3s" repeatCount="indefinite"/>
389+
</rect>
390+
<!-- Region badge -->
391+
<circle cx="60" cy="40" r="8" fill="url(#grad-spotlight)" opacity="0.7"/>
392+
<circle cx="60" cy="40" r="3" fill="#fff" opacity="0.9"/>
393+
<!-- Annotation panel below -->
394+
<rect x="30" y="126" width="140" height="28" rx="6" fill="url(#grad-spotlight)" opacity="0.06" stroke="url(#grad-spotlight)" stroke-width="1" stroke-opacity="0.2"/>
395+
<line x1="42" y1="135" x2="95" y2="135" stroke="url(#grad-spotlight)" stroke-width="2" opacity="0.3" stroke-linecap="round"/>
396+
<line x1="42" y1="143" x2="120" y2="143" stroke="url(#grad-spotlight)" stroke-width="1.5" opacity="0.15" stroke-linecap="round"/>
397+
<!-- Scene dots -->
398+
<circle cx="88" cy="118" r="3" fill="url(#grad-spotlight)" opacity="0.6"/>
399+
<circle cx="100" cy="118" r="3" fill="url(#grad-spotlight)" opacity="0.2"/>
400+
<circle cx="112" cy="118" r="3" fill="url(#grad-spotlight)" opacity="0.2"/>
401+
<!-- Navigation arrow -->
402+
<path d="M160 118 L166 118" stroke="url(#grad-spotlight)" stroke-width="2" stroke-linecap="round" opacity="0.4"/>
403+
<path d="M163 115 L166 118 L163 121" stroke="url(#grad-spotlight)" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" opacity="0.4"/>
404+
<defs><linearGradient id="grad-spotlight" x1="0" y1="0" x2="200" y2="160"><stop stop-color="#7c5cff"/><stop offset="1" stop-color="#2c99ff"/></linearGradient></defs>
405+
</svg>`,
351406
};
352407

353408
return illustrations[pluginId] || '';

index.html

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,14 @@
138138
<path d="M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z"/>
139139
</symbol>
140140

141+
<!-- Spotlight icon -->
142+
<symbol id="icon-spotlight" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
143+
<rect x="3" y="3" width="18" height="14" rx="2"/>
144+
<rect x="7" y="7" width="6" height="5" rx="1" opacity="0.5"/>
145+
<circle cx="10" cy="9.5" r="1.5" fill="currentColor" stroke="none" opacity="0.6"/>
146+
<path d="M6 21l4-4h4l4 4"/>
147+
</symbol>
148+
141149
<!-- Chevron down icon -->
142150
<symbol id="icon-chevron-down" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
143151
<polyline points="6 9 12 15 18 9"/>
@@ -215,7 +223,7 @@ <h1 class="hero__title">
215223
</div>
216224

217225
<div class="hero__stats">
218-
<span class="hero__stat"><strong>6</strong> Plugins</span>
226+
<span class="hero__stat"><strong>7</strong> Plugins</span>
219227
<span class="hero__stat"><strong>Zero</strong> Dependencies</span>
220228
<span class="hero__stat"><strong>WCAG 2.1</strong> AA</span>
221229
</div>
@@ -366,6 +374,7 @@ <h4>Plugins</h4>
366374
<li><a href="https://scaleflex.github.io/cloudimage-video-hotspot/" target="_blank" rel="noopener noreferrer">Video Hotspot</a></li>
367375
<li><a href="https://scaleflex.github.io/cloudimage-before-after/" target="_blank" rel="noopener noreferrer">Before / After</a></li>
368376
<li><a href="https://scaleflex.github.io/cloudimage-carousel/" target="_blank" rel="noopener noreferrer">Carousel</a></li>
377+
<li><a href="https://scaleflex.github.io/cloudimage-spotlight/" target="_blank" rel="noopener noreferrer">Spotlight</a></li>
369378
</ul>
370379
</div>
371380
<div class="footer__col fade-in-up">

0 commit comments

Comments
 (0)