oberconcejo/VS-CODE / .agents/skills/app-store-screenshots
app-store-screenshots
FlaggedUse when building App Store or Google Play screenshot pages, generating exportable marketing screenshots for iOS, macOS, and/or Android apps, or scaffolding a screenshot editor with Next.js. Triggers on app store, mac app store, play store, screenshots, marketing assets, html-to-image, phone mockup, mac mockup, android screenshots, feature graphic.
template/src/components/editor/sidebar.tsx
View on GitHub"use client";
import * as React from "react";
import {
DndContext,
KeyboardSensor,
PointerSensor,
closestCenter,
useSensor,
useSensors,
type DragEndEvent,
} from "@dnd-kit/core";
import {
SortableContext,
arrayMove,
sortableKeyboardCoordinates,
verticalListSortingStrategy,
} from "@dnd-kit/sortable";
import { Plus } from "lucide-react";
import { Button } from "@/components/ui/button";
import type { Device, Orientation, Scene, Slide, Theme } from "@/lib/types";
import { isCreative } from "@/lib/constants";
import { newSlide } from "@/lib/defaults";
import { SlideThumb } from "./slide-thumb";
type Props = {
slides: Slide[];
activeId: string | null;
device: Device;
orientation: Orientation;
theme: Theme;
locale: string;
appName?: string;
appIcon?: string;
fontFamily?: string;
connectedCanvas: boolean;
scene?: Scene;
disabled?: boolean;
onReorder: (next: Slide[]) => void;
onSelect: (id: string) => void;
onDelete: (id: string) => void;
onDuplicate: (id: string) => void;
onAdd: (slide: Slide) => void;
};
export function Sidebar({
slides,
activeId,
device,
orientation,
theme,
locale,
appName,
appIcon,
fontFamily,
connectedCanvas,
scene,
disabled,
onReorder,
onSelect,
onDelete,
onDuplicate,
onAdd,
}: Props) {
const sensors = useSensors(
useSensor(PointerSensor, { activationConstraint: { distance: 4 } }),
useSensor(KeyboardSensor, { coordinateGetter: sortableKeyboardCoordinates }),
);
const handleDragEnd = (e: DragEndEvent) => {
const { active, over } = e;
if (!over || active.id === over.id) return;
const oldIdx = slides.findIndex((s) => s.id === active.id);
const newIdx = slides.findIndex((s) => s.id === over.id);
if (oldIdx === -1 || newIdx === -1) return;
onReorder(arrayMove(slides, oldIdx, newIdx));
};
return (
<div className="flex h-full flex-col">
<div className="border-b p-3">
<h2 className="text-sm font-semibold">Screens</h2>
<p className="text-xs text-muted-foreground">
{slides.length} screen{slides.length === 1 ? "" : "s"} · drag to reorder
</p>
</div>
<div className="flex-1 overflow-y-auto p-2">
<DndContext sensors={sensors} collisionDetection={closestCenter} onDragEnd={handleDragEnd}>
<SortableContext items={slides.map((s) => s.id)} strategy={verticalListSortingStrategy}>
<div className="space-y-1.5">
{slides.map((slide, i) => (
<SlideThumb
key={slide.id}
slide={slide}
slides={slides}
index={i}
active={slide.id === activeId}
device={device}
orientation={orientation}
theme={theme}
locale={locale}
appName={appName}
appIcon={appIcon}
fontFamily={fontFamily}
connectedCanvas={connectedCanvas}
scene={scene}
onSelect={() => onSelect(slide.id)}
onDelete={() => onDelete(slide.id)}
onDuplicate={() => onDuplicate(slide.id)}
/>
))}
{slides.length === 0 && (
<div className="rounded-lg border border-dashed p-6 text-center">
<p className="text-xs font-medium text-foreground">No screens yet</p>
<p className="mt-1 text-[11px] text-muted-foreground">
Click <span className="font-semibold">Add screen</span> to get started.
</p>
</div>
)}
</div>
</SortableContext>
</DndContext>
</div>
<div className="border-t bg-card p-3">
<Button
type="button"
className="w-full"
variant="default"
onClick={() =>
onAdd(
newSlide(
device === "feature-graphic"
? "feature-graphic"
: device === "mac" || device.endsWith("-landscape") || isCreative(device)
? "split-landscape"
: "device-bottom",
),
)
}
disabled={disabled}
>
<Plus className="h-4 w-4" /> Add screen
</Button>
</div>
</div>
);
}
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack." | Stars: 197k | Updated | Claude CodeCodex | Verified | Install |
| ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |