Skip to content

end to end app store screenshot creation using AI

feat: initial improvements to UI

Parth Jadhavc2405222e36c
diff --git a/skills/app-store-screenshots/SKILL.md b/skills/app-store-screenshots/SKILL.md
index bbff096..81f1e47 100644
--- a/skills/app-store-screenshots/SKILL.md
+++ b/skills/app-store-screenshots/SKILL.md
@@ -1,13 +1,21 @@
---
name: app-store-screenshots
-description: Use when building App Store or Google Play screenshot pages, generating exportable marketing screenshots for iOS and/or Android apps, or creating programmatic screenshot generators with Next.js. Triggers on app store, play store, screenshots, marketing assets, html-to-image, phone mockup, android screenshots, feature graphic.
+description: Use when building App Store or Google Play screenshot pages, generating exportable marketing screenshots for iOS and/or Android apps, or scaffolding a screenshot editor with Next.js. Triggers on app store, play store, screenshots, marketing assets, html-to-image, phone mockup, android screenshots, feature graphic.
---
# App Store & Google Play Screenshots Generator
## Overview
-Build a Next.js page that renders App Store **and** Google Play screenshots as **advertisements** (not UI showcases) and exports them via `html-to-image` at Apple's and Google's required resolutions. Screenshots are the single most important conversion asset on both stores.
+Scaffold a pre-built Next.js + ShadCN editor that lets the user design and export App Store **and** Google Play screenshots as **advertisements** (not UI showcases). The editor handles all the heavy lifting:
+
+- Live preview at the canvas's true resolution (scaled to fit)
+- Drag-to-reorder slides, inline text editing, layout switcher per slide
+- Drop-target screenshot picker (file → embedded data URI)
+- Auto-save to `localStorage` (debounced)
+- Easy iOS ↔ Android platform switch — separate slide decks live side by side
+- One-click bulk PNG export at every Apple/Google-required resolution via `html-to-image`
+- Light/dark variant toggle per slide, theme presets, locale select
Supported devices out of the box:
- **iPhone** (portrait) — Apple App Store
@@ -15,239 +23,123 @@ Supported devices out of the box:
- **Android Phone** (portrait) — Google Play
- **Android Tablet 7"** (portrait + landscape) — Google Play
- **Android Tablet 10"** (portrait + landscape) — Google Play
-- **Feature Graphic** (landscape banner, 1024×500) — Google Play store listing header
+- **Feature Graphic** (1024×500 banner) — Google Play store listing header
## Core Principle
-**Screenshots are advertisements, not documentation.** Every screenshot sells one idea. If you're showing UI, you're doing it wrong — you're selling a *feeling*, an *outcome*, or killing a *pain point*.
+**Screenshots are advertisements, not documentation.** Every screenshot sells one idea. If you're showing UI, you're doing it wrong — you're selling a *feeling*, an *outcome*, or killing a *pain point*. Use this skill's interactive editor to iterate on copy and layout fast; do not hand-craft the page from scratch.
+
+## What This Skill Does
+
+1. **Copies a pre-built template** from `template/` (co-located with this `SKILL.md`) into the user's working directory.
+2. Installs dependencies with the user's package manager.
+3. Drops the user's screenshots into `public/screenshots/...` and their app icon into `public/`.
+4. (Optionally) prefills `src/lib/defaults.ts` with the user's app name and starting copy so the first preview is meaningful.
+5. Starts the dev server and tells the user to open the editor in the browser.
-## Step 1: Ask the User These Questions
+You should NOT write `page.tsx`, device frames, or export logic by hand. They live in the template.
-Before writing ANY code, ask the user all of these. Do not proceed until you have answers:
+## Step 1: Gather Input (Before Scaffolding)
+
+Ask the user these. Do not proceed until you have answers:
### Required
1. **App screenshots** — "Where are your app screenshots? (PNG files of actual device captures)"
2. **App icon** — "Where is your app icon PNG?"
-3. **Brand colors** — "What are your brand colors? (accent color, text color, background preference)"
-4. **Font** — "What font does your app use? (or what font do you want for the screenshots?)"
-5. **Feature list** — "List your app's features in priority order. What's the #1 thing your app does?"
-6. **Number of slides** — "How many screenshots do you want? (Apple allows up to 10, Google Play up to 8)"
-7. **Style direction** — "What style do you want? Examples: warm/organic, dark/moody, clean/minimal, bold/colorful, gradient-heavy, flat. Share App Store screenshot references if you have any."
+3. **App name** — "What's the app called?"
+4. **Feature list** — "List your app's features in priority order. What's the #1 thing your app does?"
+5. **Style direction** — "What style do you want? Examples: warm/organic, dark/moody, clean/minimal, bold/colorful. The template ships with `clean-light`, `dark-bold`, `warm-editorial`, and `ocean-fresh` presets — pick one or describe a custom palette."
### Optional
-8. **Target stores** — "Are you targeting Apple App Store only, Google Play only, or both? This determines which devices we generate screenshots for."
-9. **iPad screenshots** — "Do you also have iPad screenshots? If so, we'll generate iPad App Store screenshots too (recommended for universal apps)."
-10. **Android tablet screenshots** — "Do you have Android tablet screenshots? If yes, what tablet sizes — 7" and/or 10"? Do you have them in portrait, landscape, or both orientations?"
-11. **Feature Graphic** — "Do you want a Google Play Feature Graphic (1024×500 banner shown at the top of your Play Store listing)? This is separate from phone screenshots."
-12. **Component assets** — "Do you have any UI element PNGs (cards, widgets, etc.) you want as floating decorations? If not, that's fine — we'll skip them."
-13. **Localized screenshots** — "Do you want screenshots in multiple languages? This helps your listing rank in regional App Stores even if your app is English-only. If yes: which languages? (e.g. en, de, es, pt, ja, ar, he)"
-14. **Theme preset system** — "Do you want one art direction, or reusable visual themes (for example: clean-light, dark-bold, warm-editorial) so you can swap screenshot looks quickly?"
-15. **Additional instructions** — "Any specific requirements, constraints, or preferences?"
-
-### Derived from answers (do NOT ask — decide yourself)
-
-Based on the user's style direction, brand colors, and app aesthetic, decide:
-- **Background style**: gradient direction, colors, whether light or dark base
-- **Decorative elements**: blobs, glows, geometric shapes, or none — match the style
-- **Dark vs light slides**: how many of each, which features suit dark treatment
-- **Typography treatment**: weight, tracking, line height — match the brand personality
-- **Color palette**: derive text colors, secondary colors, shadow tints from the brand colors
-- **Theme preset names**: turn vague style requests into reusable theme ids the user can switch between
-- **RTL behavior**: if any locale is RTL (`ar`, `he`, `fa`, `ur`), mirror layout intentionally instead of just translating the text
-- **Landscape slide layouts**: for tablet landscape slides, use caption-left + device-right composition (never try to fit two tablets side-by-side in landscape — there's not enough horizontal room)
+6. **Target stores** — Apple App Store only, Google Play only, or both? Determines which platform decks to seed.
+7. **iPad / Android tablet screenshots** — If yes, what sizes and orientations?
+8. **Feature Graphic** — Want a 1024×500 Play Store banner too?
+9. **Localized screenshots** — Languages? (e.g. en, de, es, pt, ja, ar, he)
+10. **Number of slides** — Apple allows up to 10, Google Play up to 8.
+11. **Brand colors / font** — If they want a custom theme beyond the four presets.
+12. **Additional instructions** — Anything specific.
-**IMPORTANT:** If the user gives additional instructions at any point during the process, follow them. User instructions always override skill defaults.
+**IMPORTANT:** If the user gives instructions at any point, follow them. They override skill defaults.
-## Step 2: Set Up the Project
+## Step 2: Scaffold the Template
### Detect Package Manager
-Check what's available, use this priority: **bun > pnpm > yarn > npm**
+Priority: **bun > pnpm > yarn > npm**.
```bash
-# Check in order
-which bun && echo "use bun" || which pnpm && echo "use pnpm" || which yarn && echo "use yarn" || echo "use npm"
+which bun && echo bun || which pnpm && echo pnpm || which yarn && echo yarn || echo npm
```
-### Scaffold (if no existing Next.js project)
+### Copy the Template
-```bash
-# With bun:
-bunx create-next-app@latest . --typescript --tailwind --app --src-dir --no-eslint --import-alias "@/*"
-bun add html-to-image
-
-# With pnpm:
-pnpx create-next-app@latest . --typescript --tailwind --app --src-dir --no-eslint --import-alias "@/*"
-pnpm add html-to-image
-
-# With yarn:
-yarn create next-app . --typescript --tailwind --app --src-dir --no-eslint --import-alias "@/*"
-yarn add html-to-image
+The template lives at `<this skill dir>/template/` — when the skill is installed, the whole folder is already on disk. Copy its contents (NOT the folder itself) into the user's working directory. The trailing `/.` copies dotfiles like `.gitignore` too.
-# With npm:
-npx create-next-app@latest . --typescript --tailwind --app --src-dir --no-eslint --import-alias "@/*"
-npm install html-to-image
+```bash
+# Replace <SKILL_DIR> with the absolute path to this skill (the directory containing SKILL.md).
+cp -R "<SKILL_DIR>/template/." "$PWD/"
```
-### Copy the Phone Mockup
-
-The skill includes a pre-measured iPhone mockup at `mockup.png` (co-located with this SKILL.md). Copy it to the project's `public/` directory. All other device frames (Android Phone, Android Tablets, iPad) are rendered with CSS — no additional mockup PNGs needed.
+If the target directory already has a `package.json`, ask the user before overwriting. For an in-place upgrade, copy only the files the user hasn't customized.
-### File Structure
+### Install Dependencies
-#### iPhone-only app (default)
-
-```
-project/
-├── public/
-│ ├── mockup.png # iPhone frame (included with skill)
-│ ├── app-icon.png # User's app icon
-│ └── screenshots/
-│ ├── en/
-│ │ ├── home.png
-│ │ ├── feature-1.png
-│ │ └── ...
-│ ├── de/
-│ └── {locale}/
-├── src/app/
-│ ├── layout.tsx # Font setup
-│ └── page.tsx # The screenshot generator (single file)
-└── package.json
-```
-
-If iPad screenshots are localized too, mirror the same locale structure:
-
-```
-└── screenshots-ipad/
- ├── en/
- ├── de/
- └── {locale}/
+```bash
+bun install # or pnpm install / yarn / npm install
```
-Single-language apps can omit the locale folder entirely — paths become `screenshots/home.png`.
+### Drop the User's Assets
-#### Multi-platform app (iOS + Android)
-
-When the user needs both Apple and Android screenshots, use a platform-based structure so every device's images are clearly separated:
+Move the user's screenshots into the layout the template expects:
```
+public/
+├── app-icon.png # ← user's app icon
+├── mockup.png # ← already copied by the template (iPhone bezel)
└── screenshots/
├── apple/
- │ ├── iphone/
- │ │ ├── en/
- │ │ └── {locale}/
- │ └── ipad/
- │ ├── en/
- │ └── {locale}/
+ │ ├── iphone/{locale}/01.png … N.png
+ │ └── ipad/{locale}/01.png … N.png
└── android/
- ├── phone/
- │ ├── en/
- │ └── {locale}/
- ├── tablet-7/
- │ ├── portrait/
- │ │ └── {locale}/
- │ └── landscape/
- │ └── {locale}/
- └── tablet-10/
- ├── portrait/
- │ └── {locale}/
- └── landscape/
- └── {locale}/
+ ├── phone/{locale}/01.png … N.png
+ ├── tablet-7/{portrait|landscape}/{locale}/...
+ └── tablet-10/{portrait|landscape}/{locale}/...
```
-**Only create subdirectories for devices the user actually has screenshots for.** An empty directory will cause broken image placeholders in the generator.
-
-**Use the iPhone-only structure by default.** Switch to the platform-based structure only when the user confirms they're targeting Android as well.
+The default sample slides reference filenames `01.png`–`05.png` per device under `en/`. If the user names their screenshots differently, either rename them or update `src/lib/defaults.ts` so the initial deck points at the right files. The user can also drag-drop files directly into the editor at runtime — those become embedded data URIs and don't need to live on disk.
-**The entire generator is a single `page.tsx` file.** No routing, no extra layouts, no API routes.
+### (Optional) Seed Initial Copy
-### Multi-language: Locale Select
+If the user provided headlines, edit `src/lib/defaults.ts` to set:
+- `appName`
+- `tagline`
+- `themeId` (one of `"clean-light" | "dark-bold" | "warm-editorial" | "ocean-fresh"`, or add a new entry to `THEMES` in `src/lib/constants.ts`)
+- Starter slides per device with the user's `label` + `headline` + screenshot paths
-Add a `LOCALES` array and a `<select>` locale picker to the toolbar. Every slide src uses a `base` variable — no hardcoded locale paths:
+Otherwise, leave the defaults — the user can rewrite copy in the editor.
-```tsx
-const LOCALES = ["en", "de", "es", "tr"] as const; // use whatever langs were defined
-type Locale = typeof LOCALES[number];
+### Start the Dev Server
-// In ScreenshotsPage:
-const [locale, setLocale] = useState<Locale>("en");
-// base is derived per-device from locale:
-const base = (platform: string) => `/screenshots/${platform}/${locale}`;
-
-// Toolbar:
-<select value={locale} onChange={e => setLocale(e.target.value as Locale)}>
- {LOCALES.map(l => <option key={l} value={l}>{l.toUpperCase()}</option>)}
-</select>
-
-// In every slide — unchanged between single and multi-language:
-<Phone src={`${base("apple/iphone")}/home.png`} alt="Home" />
-```
-
-Use a `<select>` rather than inline tabs for locale — it scales cleanly to many languages without overflowing the toolbar.
-
-### Theme Presets
-
-```tsx
-const THEMES = {
- "clean-light": { bg: "#F6F1EA", fg: "#171717", accent: "#5B7CFA", muted: "#6B7280" },
- "dark-bold": { bg: "#0B1020", fg: "#F8FAFC", accent: "#8B5CF6", muted: "#94A3B8" },
- "warm-editorial": { bg: "#F7E8DA", fg: "#2B1D17", accent: "#D97706", muted: "#7C5A47" },
-} as const;
-
-type ThemeId = keyof typeof THEMES;
-const [themeId, setThemeId] = useState<ThemeId>("clean-light");
-const theme = THEMES[themeId];
-```
-
-Use theme tokens everywhere instead of hardcoded colors.
-
-### Font Setup
-
-```tsx
-// src/app/layout.tsx
-import { YourFont } from "next/font/google";
-const font = YourFont({ subsets: ["latin"] });
-
-export default function Layout({ children }: { children: React.ReactNode }) {
- return <html><body className={font.className}>{children}</body></html>;
-}
+```bash
+bun dev # → http://localhost:3000
```
-## Step 3: Plan the Slides
-
-### Screenshot Framework (Narrative Arc)
-
-Adapt this framework to the user's requested slide count. Not all slots are required — pick what fits:
-
-| Slot | Purpose | Notes |
-|------|---------|-------|
-| #1 | **Hero / Main Benefit** | App icon + tagline + home screen. This is the ONLY one most people see. |
-| #2 | **Differentiator** | What makes this app unique vs competitors |
-| #3 | **Ecosystem** | Widgets, extensions, watch — beyond the main app. Skip if N/A. |
-| #4+ | **Core Features** | One feature per slide, most important first |
-| 2nd to last | **Trust Signal** | Identity/craft — "made for people who [X]" |
-| Last | **More Features** | Pills listing extras + coming soon. Skip if few features. |
+Tell the user to open the URL and start editing. The editor auto-saves; they can close the tab and resume.
-**Rules:**
-- Each slide sells ONE idea. Never two features on one slide.
-- Vary layouts across slides — never repeat the same template structure.
-- Include 1-2 contrast slides (inverted bg) for visual rhythm.
-- **Landscape tablets**: use caption-left + device-right layout. The wide canvas rewards asymmetric composition. Never try two devices side-by-side in landscape — there's not enough room.
+## Step 3: Coach the User on Copy
-## Step 4: Write Copy FIRST
-
-Get all headlines approved before building layouts. Bad copy ruins good design.
+Inside the editor the user will write headlines themselves, but they often need guidance. Apply these rules when reviewing their copy or generating suggestions.
### The Iron Rules
1. **One idea per headline.** Never join two things with "and."
2. **Short, common words.** 1-2 syllables. No jargon unless it's domain-specific.
3. **3-5 words per line.** Must be readable at thumbnail size in the App Store.
-4. **Line breaks are intentional.** Control where lines break with `<br />`.
+4. **Line breaks are intentional.** Newlines in the textarea map directly to visible breaks.
-### Three Approaches (pick one per slide)
+### Three Approaches
| Type | What it does | Example |
|------|-------------|---------|
@@ -255,799 +147,134 @@ Get all headlines approved before building layouts. Bad copy ruins good design.
| **State an outcome** | What your life looks like after | "A home for every coffee you buy." |
| **Kill a pain** | Name a problem and destroy it | "Never waste a great bag of coffee." |
-### What NEVER Works
-
-- **Feature lists as headlines**: "Log every item with tags, categories, and notes"
-- **Two ideas joined by "and"**: "Track X and never miss Y"
-- **Vague aspirational**: "Every item, tracked"
-- **Marketing buzzwords**: "AI-powered tips" (unless it's actually AI)
-
-### Bad-to-Better Headline Examples
+### Bad-to-Better
-| Weak | Better | Why it wins |
-|------|--------|-------------|
+| Weak | Better | Why |
+|------|--------|-----|
| Track habits and stay motivated | Keep your streak alive | one idea, faster to parse |
| Organize tasks with AI summaries | Turn notes into next steps | outcome-first, less jargon |
| Save recipes with tags and favorites | Find dinner fast | sells the benefit, not the UI |
-| Manage budgets and never miss payments | See where money goes | cleaner promise, no dual claim |
-### Copy Process
+### Narrative Arc
-1. Write 3 options per slide using the three approaches
-2. Read each at arm's length — if you can't parse it in 1 second, it's too complex
-3. Check: does each line have 3-5 words? If not, adjust line breaks
-4. Present options to the user with reasoning for each
+The user's slide deck should follow a rough arc (skip slots that don't fit):
-### Example Prompt Shapes
+| Slot | Purpose |
+|------|---------|
+| #1 | **Hero / Main Benefit** — the ONLY slide most people see |
+| #2 | **Differentiator** — what makes the app unique |
+| #3 | **Ecosystem** — widgets, watch, extensions (skip if N/A) |
+| #4+ | **Core Features** — one per slide, most important first |
+| 2nd-to-last | **Trust Signal** — "made for people who [X]" |
+| Last | **More Features** — pills listing extras (skip if few features) |
-If the user gives a weak or underspecified request, reshape it internally into something like:
+### Layout Variation
-```text
-Build App Store screenshots for my habit tracker.
-The app helps people stay consistent with simple daily routines.
-I want 6 slides, clean/minimal style, warm neutrals, and a calm premium feel.
-```
+Vary the `layout` field across slides. The editor exposes:
+- `hero` — centered headline + bottom-anchored device
+- `device-bottom` — same composition, smaller headline
+- `device-top` — flipped, device above caption (good contrast slide)
+- `two-devices` — back + front phones layered
+- `no-device` — big standalone headline (use sparingly)
+- `split-landscape` — caption left + device right (tablet landscape only)
+- `feature-graphic` — Play Store banner (1024×500)
-```text
-Generate App Store screenshots for my personal finance app.
-The app's main strengths are fast expense capture, clear monthly trends, and shared budgets.
-I want a sharp, modern style with high contrast and 7 slides.
-```
+Never repeat the same layout twice in a row. Use 1-2 `inverted` (dark) slides for visual rhythm.
-```text
-Create exportable App Store screenshots for my AI note-taking app.
-The core value is turning messy voice notes into clean summaries and action items.
-I want bold copy, dark backgrounds, and a polished tech-forward look.
-```
-
-The pattern is:
-
-1. app category + core outcome
-2. top features in priority order
-3. desired slide count
-4. style direction
-
-### Localization Rules
-
-- Do not literally translate headlines if the result becomes long or awkward — re-write for the target market.
-- Re-check line breaks per locale; German, French, and Portuguese often need shorter claims.
-- For RTL languages (`ar`, `he`, `fa`, `ur`), set `dir="rtl"` on the canvas and mirror asymmetric layouts intentionally.
-
-### Reference Apps for Copy Style
-
-- **Raycast** — specific, descriptive, one concrete value per slide
-- **Turf** — ultra-simple action verbs, conversational
-- **Mela / Notion** — warm, minimal, elegant
-
-## Step 5: Build the Page
-
-### Architecture
-
-```
-page.tsx
-├── Constants (canvas dimensions, export sizes, frame ratios)
-├── Width formula functions (phoneW, tabletPW, tabletLW, ipadW)
-├── LOCALES / RTL_LOCALES / THEMES / COPY_BY_LOCALE
-├── Image preload cache (preloadAllImages + img() helper)
-├── Device frame components:
-│ ├── Phone — iPhone (mockup.png + pre-measured overlay)
-│ ├── AndroidPhone — Android phone (CSS-only)
-│ ├── AndroidTabletP — Android tablet portrait (CSS-only)
-│ ├── AndroidTabletL — Android tablet landscape (CSS-only)
-│ └── IPad — iPad (CSS-only)
-├── Caption component (label + headline, scales from canvasW)
-├── Decorative components (blobs, glows — based on style direction)
-├── Slide components (makeSlide1..N factories for portrait,
-│ makeTabLSlide1..N factories for landscape)
-├── Slide registries (IPHONE_SLIDES, ANDROID_SLIDES, ANDROID_7P_SLIDES,
-│ ANDROID_7L_SLIDES, ANDROID_10P_SLIDES, ANDROID_10L_SLIDES, IPAD_SLIDES)
-├── ScreenshotPreview — ResizeObserver scaling + hover export
-└── ScreenshotsPage — grid + toolbar + export logic
-```
-
-### Canvas Dimensions
-
-Design at the **largest** required resolution for each device category. Smaller sizes are achieved by re-rendering at the target resolution on export.
-
-```typescript
-// Apple
-const W = 1320; const H = 2868; // iPhone (6.9" — largest required)
-const IPAD_W = 2064; const IPAD_H = 2752; // iPad 13" — largest required
-
-// Android phone
-const AW = 1080; const AH = 1920; // Android phone
-
-// Android tablet — portrait
-const AT7P_W = 1200; const AT7P_H = 1920; // 7" portrait
-const AT10P_W = 1600; const AT10P_H = 2560; // 10" portrait
-
-// Android tablet — landscape
-const AT7L_W = 1920; const AT7L_H = 1200; // 7" landscape
-const AT10L_W = 2560; const AT10L_H = 1600; // 10" landscape
-
-// Feature Graphic
-const FGW = 1024; const FGH = 500;
-```
-
-### Export Sizes
+## Step 4: Localization
-#### iPhone (Apple required, portrait)
+The editor exposes a locale dropdown; switching it changes the `locale` field on the project state. Screenshots are looked up under `public/screenshots/.../{locale}/...`, so put localized PNGs in matching folders.
-```typescript
-const IPHONE_SIZES = [
- { label: '6.9"', w: 1320, h: 2868 },
- { label: '6.5"', w: 1284, h: 2778 },
- { label: '6.3"', w: 1206, h: 2622 },
- { label: '6.1"', w: 1125, h: 2436 },
-] as const;
-```
-
-#### iPad (Apple required, portrait)
-
-```typescript
-const IPAD_SIZES = [
- { label: '13" iPad', w: 2064, h: 2752 },
- { label: '12.9" iPad Pro', w: 2048, h: 2732 },
-] as const;
-```
-
-#### Android (Google Play recommended)
-
-```typescript
-const ANDROID_SIZES = [{ label: "Phone", w: 1080, h: 1920 }] as const;
-const ANDROID_7P_SIZES = [{ label: '7" Portrait', w: 1200, h: 1920 }] as const;
-const ANDROID_7L_SIZES = [{ label: '7" Landscape', w: 1920, h: 1200 }] as const;
-const ANDROID_10P_SIZES= [{ label: '10" Portrait', w: 1600, h: 2560 }] as const;
-const ANDROID_10L_SIZES= [{ label: '10" Landscape', w: 2560, h: 1600 }] as const;
-const FG_SIZES = [{ label: "Feature Graphic", w: 1024, h: 500 }] as const;
-```
-
-### Device Type
-
-```typescript
-type Device = "iphone" | "android" | "android-7" | "android-10" | "ipad" | "feature-graphic";
-type Orientation = "portrait" | "landscape";
-```
-
-### Frame Aspect Ratios
-
-```typescript
-const MK_RATIO = 1022 / 2082; // iPhone mockup (width/height)
-const TAB_P_RATIO = 0.667; // tablet portrait frame (5:8 screen)
-const TAB_L_RATIO = 1.5; // tablet landscape frame (8:5 screen)
-const IPAD_RATIO = 0.770; // iPad frame (770/1000)
-```
-
-### Width Formula Functions
-
-These functions determine how wide to render a device frame relative to the canvas. They auto-scale so the device fills the canvas proportionally regardless of canvas aspect ratio:
-
-```typescript
-type WidthFn = (cW: number, cH: number) => number;
-
-// Returns a fraction of canvas width (0–1)
-function phoneW(cW: number, cH: number, clamp = 0.84) {
- return Math.min(clamp, 0.72 * (cH / cW) * MK_RATIO);
-}
-function phoneW2(cW: number, cH: number) { return phoneW(cW, cH, 0.66); } // smaller, for two-phone slides
-
-function tabletPW(cW: number, cH: number, clamp = 0.80) {
- return Math.min(clamp, 0.72 * (cH / cW) * TAB_P_RATIO);
-}
-function tabletPW2(cW: number, cH: number) { return tabletPW(cW, cH, 0.64); }
-
-function tabletLW(cW: number, cH: number, clamp = 0.62) {
- return Math.min(clamp, 0.75 * (cH / cW) * TAB_L_RATIO);
-}
-
-function ipadW(cW: number, cH: number, clamp = 0.75) {
- return Math.min(clamp, 0.72 * (cH / cW) * IPAD_RATIO);
-}
-function ipadW2(cW: number, cH: number) { return ipadW(cW, cH, 0.60); }
-```
+- Don't literally translate — rewrite for the target market.
+- Re-check line breaks per locale; German/French/Portuguese often need shorter claims.
+- For RTL (`ar`, `he`, `fa`, `ur`), the template handles direction inversion through CSS — let the user verify each slide looks intentional, not just flipped.
-Usage: `width: \`${phoneW(cW, cH) * 100}%\``
+## Step 5: Export Time
-### Rendering Strategy
+Inside the editor, the user picks a device, picks a target size from the dropdown, and hits **Export all**. PNGs download with zero-padded numbered filenames. Repeat per device.
-Each screenshot is designed at full resolution. Two copies exist:
+If exports come out blank or with black screen rectangles:
+- Verify source screenshots are RGB (not RGBA). The template flattens via `objectFit: cover`, but truly transparent sources can still produce black regions.
+- Confirm preload completed — check the browser console for `preloadImages` errors.
+- The export double-call (`toPng` twice in a row) is built-in; do not remove it.
-1. **Preview**: CSS `transform: scale()` via `ResizeObserver` to fit a grid card
-2. **Export**: Offscreen at `position: absolute; left: -9999px` at true resolution
-
-**Critical:** Wrap the entire page in `overflowX: "hidden"` to prevent offscreen export elements from causing horizontal scroll:
-
-```tsx
-<div style={{ minHeight: "100vh", background: "#f3f4f6", position: "relative", overflowX: "hidden" }}>
-```
-
-### Device Frame Components
-
-#### iPhone (PNG mockup)
-
-The included `mockup.png` has these pre-measured values:
-
-```typescript
-const MK_W = 1022; const MK_H = 2082;
-const SC_L = (52 / MK_W) * 100; // screen left %
-const SC_T = (46 / MK_H) * 100; // screen top %
-const SC_W = (918 / MK_W) * 100; // screen width %
-const SC_H = (1990 / MK_H) * 100; // screen height %
-const SC_RX = (126 / 918) * 100; // border-radius x %
-const SC_RY = (126 / 1990) * 100; // border-radius y %
-```
-
-```tsx
-function Phone({ src, alt, style }: { src: string; alt: string; style?: React.CSSProperties }) {
- return (
- <div style={{ position: "relative", aspectRatio: `${MK_W}/${MK_H}`, ...style }}>
- <img src={img("/mockup.png")} alt="" style={{ display: "block", width: "100%", height: "100%" }} draggable={false} />
- <div style={{
- position: "absolute", zIndex: 10, overflow: "hidden",
- left: `${SC_L}%`, top: `${SC_T}%`, width: `${SC_W}%`, height: `${SC_H}%`,
- borderRadius: `${SC_RX}% / ${SC_RY}%`,
- }}>
- <img src={src} alt={alt} style={{ display: "block", width: "100%", height: "100%", objectFit: "cover", objectPosition: "top" }} draggable={false} />
- </div>
- </div>
- );
-}
-```
-
-#### Android Phone (CSS-only)
-
-```tsx
-function AndroidPhone({ src, alt, style }: { src: string; alt: string; style?: React.CSSProperties }) {
- return (
- <div style={{ position: "relative", aspectRatio: "9/19.5", ...style }}>
- <div style={{
- width: "100%", height: "100%",
- borderRadius: "8% / 4%",
- background: "linear-gradient(160deg, #2a2a2e 0%, #18181b 100%)",
- boxShadow: "inset 0 0 0 1px rgba(255,255,255,0.08), 0 8px 40px rgba(0,0,0,0.55)",
- position: "relative", overflow: "hidden",
- }}>
- {/* Punch-hole camera */}
- <div style={{
- position: "absolute", top: "1.5%", left: "50%",
- transform: "translateX(-50%)", width: "3%", height: "1.4%",
- borderRadius: "50%", background: "#0d0d0f",
- border: "1px solid rgba(255,255,255,0.06)", zIndex: 20,
- }} />
- {/* Screen */}
- <div style={{
- position: "absolute", left: "3.5%", top: "2%",
- width: "93%", height: "96%",
- borderRadius: "5.5% / 2.6%", overflow: "hidden", background: "#000",
- }}>
- <img src={src} alt={alt} style={{ display: "block", width: "100%", height: "100%", objectFit: "cover", objectPosition: "top" }} draggable={false} />
- </div>
- </div>
- </div>
- );
-}
-```
-
-#### Android Tablet — Portrait (CSS-only)
-
-```tsx
-function AndroidTabletP({ src, alt, style }: { src: string; alt: string; style?: React.CSSProperties }) {
- return (
- <div style={{ position: "relative", aspectRatio: "5/8", ...style }}>
- <div style={{
- width: "100%", height: "100%",
- borderRadius: "4.5% / 2.8%",
- background: "linear-gradient(160deg, #2a2a2e 0%, #18181b 100%)",
- boxShadow: "inset 0 0 0 1px rgba(255,255,255,0.08), 0 8px 48px rgba(0,0,0,0.6)",
- position: "relative", overflow: "hidden",
- }}>
- {/* Camera dot */}
- <div style={{
- position: "absolute", top: "1.2%", left: "50%",
- transform: "translateX(-50%)", width: "1.4%", height: "0.88%",
- borderRadius: "50%", background: "#0d0d0f",
- border: "1px solid rgba(255,255,255,0.07)", zIndex: 20,
- }} />
- {/* Bezel highlight */}
- <div style={{
- position: "absolute", inset: 0, borderRadius: "4.5% / 2.8%",
- border: "1px solid rgba(255,255,255,0.05)", pointerEvents: "none", zIndex: 15,
- }} />
- {/* Screen */}
- <div style={{
- position: "absolute", left: "3.5%", top: "2.2%",
- width: "93%", height: "95.6%",
- borderRadius: "2.5% / 1.6%", overflow: "hidden", background: "#000",
- }}>
- <img src={src} alt={alt} style={{ display: "block", width: "100%", height: "100%", objectFit: "cover", objectPosition: "top" }} draggable={false} />
- </div>
- </div>
- </div>
- );
-}
-```
-
-#### Android Tablet — Landscape (CSS-only)
-
-Same as portrait but with a rotated aspect ratio and camera on the left side:
-
-```tsx
-function AndroidTabletL({ src, alt, style }: { src: string; alt: string; style?: React.CSSProperties }) {
- return (
- <div style={{ position: "relative", aspectRatio: "8/5", ...style }}>
- <div style={{
- width: "100%", height: "100%",
- borderRadius: "2.8% / 4.5%",
- background: "linear-gradient(160deg, #2a2a2e 0%, #18181b 100%)",
- boxShadow: "inset 0 0 0 1px rgba(255,255,255,0.08), 0 8px 48px rgba(0,0,0,0.6)",
- position: "relative", overflow: "hidden",
- }}>
- {/* Camera dot — left side in landscape */}
- <div style={{
- position: "absolute", left: "1.2%", top: "50%",
- transform: "translateY(-50%)", width: "0.88%", height: "1.4%",
- borderRadius: "50%", background: "#0d0d0f",
- border: "1px solid rgba(255,255,255,0.07)", zIndex: 20,
- }} />
- <div style={{
- position: "absolute", inset: 0, borderRadius: "2.8% / 4.5%",
- border: "1px solid rgba(255,255,255,0.05)", pointerEvents: "none", zIndex: 15,
- }} />
- {/* Screen */}
- <div style={{
- position: "absolute", left: "2.2%", top: "3.5%",
- width: "95.6%", height: "93%",
- borderRadius: "1.6% / 2.5%", overflow: "hidden", background: "#000",
- }}>
- <img src={src} alt={alt} style={{ display: "block", width: "100%", height: "100%", objectFit: "cover", objectPosition: "top" }} draggable={false} />
- </div>
- </div>
- </div>
- );
-}
-```
-
-#### iPad (CSS-only)
-
-**Critical dimension:** Frame aspect ratio must be `770/1000` so the inner screen (92% × 94.4%) matches the 3:4 aspect ratio of iPad screenshots.
-
-```tsx
-function IPad({ src, alt, style }: { src: string; alt: string; style?: React.CSSProperties }) {
- return (
- <div style={{ position: "relative", aspectRatio: "770/1000", ...style }}>
- <div style={{
- width: "100%", height: "100%", borderRadius: "5% / 3.6%",
- background: "linear-gradient(180deg, #2C2C2E 0%, #1C1C1E 100%)",
- position: "relative", overflow: "hidden",
- boxShadow: "inset 0 0 0 1px rgba(255,255,255,0.1), 0 8px 40px rgba(0,0,0,0.6)",
- }}>
- <div style={{
- position: "absolute", top: "1.2%", left: "50%",
- transform: "translateX(-50%)", width: "0.9%", height: "0.65%",
- borderRadius: "50%", background: "#111113",
- border: "1px solid rgba(255,255,255,0.08)", zIndex: 20,
- }} />
- <div style={{
- position: "absolute", inset: 0, borderRadius: "5% / 3.6%",
- border: "1px solid rgba(255,255,255,0.06)", pointerEvents: "none", zIndex: 15,
- }} />
- <div style={{
- position: "absolute", left: "4%", top: "2.8%",
- width: "92%", height: "94.4%",
- borderRadius: "2.2% / 1.6%", overflow: "hidden", background: "#000",
- }}>
- <img src={src} alt={alt} style={{ display: "block", width: "100%", height: "100%", objectFit: "cover", objectPosition: "top" }} draggable={false} />
- </div>
- </div>
- </div>
- );
-}
-```
-
-### Slide Factory Pattern
-
-Instead of writing separate slide components for every device, use factory functions. Each factory accepts a device component, its width function, the screenshot base path, and the frame ratio:
-
-```typescript
-type SlideProps = { cW: number; cH: number; locale: string };
-type SlideDef = { id: string; component: (p: SlideProps) => JSX.Element };
-type PhoneComp = (p: { src: string; alt: string; style?: React.CSSProperties }) => JSX.Element;
-
-function makeSlide1(
- PhoneComp: PhoneComp,
- widthFn: WidthFn,
- basePath: string,
- _frameRatio: number,
-): SlideDef {
- return {
- id: "hero",
- component: ({ cW, cH }) => {
- const fw = widthFn(cW, cH) * 100;
- return (
- <div style={{ width: "100%", height: "100%", position: "relative", background: "...", overflow: "hidden" }}>
- <Caption cW={cW} label="YOUR APP" headline={<>"Sell one<br />idea here."</>} />
- <PhoneComp
- src={img(`/${basePath}/home.png`)}
- alt="Home"
- style={{
- position: "absolute", bottom: 0,
- width: `${fw}%`,
- left: "50%", transform: `translateX(-50%) translateY(13%)`,
- }}
- />
- </div>
- );
- },
- };
-}
-```
-
-Build `makeSlide2..N` with the same signature. Then build registries:
-
-```typescript
-const mkTabP = (base: string) => [
- makeSlide1(AndroidTabletP, tabletPW, base, TAB_P_RATIO),
- makeSlide2(AndroidTabletP, tabletPW, base, TAB_P_RATIO),
- // ...
-];
-const mkTabL = (base: string) => [
- makeTabLSlide1(AndroidTabletL, tabletLW, base),
- makeTabLSlide2(AndroidTabletL, tabletLW, base),
- // ...
-];
-
-const IPHONE_SLIDES = [makeSlide1(Phone, phoneW, "screenshots/apple/iphone", MK_RATIO), ...];
-const ANDROID_SLIDES = [makeSlide1(AndroidPhone, phoneW, "screenshots/android/phone", MK_RATIO), ...];
-const ANDROID_7P_SLIDES = mkTabP("screenshots/android/tablet-7/portrait");
-const ANDROID_7L_SLIDES = mkTabL("screenshots/android/tablet-7/landscape");
-const ANDROID_10P_SLIDES = mkTabP("screenshots/android/tablet-10/portrait");
-const ANDROID_10L_SLIDES = mkTabL("screenshots/android/tablet-10/landscape");
-const IPAD_SLIDES = [makeSlide1(IPad, ipadW, "screenshots/apple/ipad", IPAD_RATIO), ...];
-```
-
-### Landscape Slide Layout
-
-Landscape tablet canvases are wide (e.g. 2560×1600). Use a **caption-left + device-right** layout. Never try two devices side-by-side — there isn't enough room.
-
-```tsx
-function makeTabLSlide1(PhoneComp: PhoneComp, widthFn: WidthFn, basePath: string): SlideDef {
- return {
- id: "hero-landscape",
- component: ({ cW, cH }) => {
- const fw = widthFn(cW, cH) * 100;
- return (
- <div style={{ width: "100%", height: "100%", position: "relative", background: "...", overflow: "hidden" }}>
- {/* Caption — left 34% of canvas */}
- <div style={{ position: "absolute", top: "50%", left: "5%", width: "34%", transform: "translateY(-50%)" }}>
- <Caption cW={cW} label="FEATURE" headline={<>"One idea<br />per slide."</>} />
- </div>
- {/* Device — right side */}
- <PhoneComp
- src={img(`/${basePath}/home.png`)}
- alt="Home"
- style={{
- position: "absolute",
- right: "-3%",
- top: "50%",
- width: `${fw}%`,
- transform: "translateY(-50%)",
- }}
- />
- </div>
- );
- },
- };
-}
-```
-
-### Feature Graphic Component
-
-The Feature Graphic is a **1024×500 landscape banner** shown at the top of the Google Play store listing. It has no device frame — it's a pure graphic with the app name, tagline, icon, and decorative elements.
-
-```tsx
-function FeatureGraphicSlide({ cW, cH }: { cW: number; cH: number }) {
- return (
- <div style={{
- width: "100%", height: "100%", position: "relative", overflow: "hidden",
- background: "linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%)",
- display: "flex", alignItems: "center", justifyContent: "space-between",
- padding: `0 ${cW * 0.06}px`,
- }}>
- {/* Left: app icon + name + tagline */}
- <div style={{ display: "flex", alignItems: "center", gap: cW * 0.03 }}>
- <img src={img("/app-icon.png")} alt="App Icon"
- style={{ width: cW * 0.12, height: cW * 0.12, borderRadius: cW * 0.022 }}
- draggable={false} />
- <div>
- <div style={{ fontSize: cW * 0.05, fontWeight: 800, color: "#fff", lineHeight: 1.1 }}>AppName</div>
- <div style={{ fontSize: cW * 0.025, color: "rgba(255,255,255,0.7)", marginTop: cW * 0.008 }}>Your tagline here.</div>
- </div>
- </div>
- {/* Right: decorative / supporting visual */}
- </div>
- );
-}
-```
-
-### Device Resolution Dispatch
-
-In the main component, derive canvas dimensions, export sizes, and slide registry from the current device + orientation state:
-
-```typescript
-const { cW, cH, currentSizes, slides } = (() => {
- if (device === "android-7") {
- return orientation === "landscape"
- ? { cW: AT7L_W, cH: AT7L_H, currentSizes: ANDROID_7L_SIZES, slides: ANDROID_7L_SLIDES }
- : { cW: AT7P_W, cH: AT7P_H, currentSizes: ANDROID_7P_SIZES, slides: ANDROID_7P_SLIDES };
- }
- if (device === "android-10") {
- return orientation === "landscape"
- ? { cW: AT10L_W, cH: AT10L_H, currentSizes: ANDROID_10L_SIZES, slides: ANDROID_10L_SLIDES }
- : { cW: AT10P_W, cH: AT10P_H, currentSizes: ANDROID_10P_SIZES, slides: ANDROID_10P_SLIDES };
- }
- if (device === "android") return { cW: AW, cH: AH, currentSizes: ANDROID_SIZES, slides: ANDROID_SLIDES };
- if (device === "ipad") return { cW: IPAD_W, cH: IPAD_H, currentSizes: IPAD_SIZES, slides: IPAD_SLIDES };
- if (device === "feature-graphic") return { cW: FGW, cH: FGH, currentSizes: FG_SIZES, slides: [FG_SLIDE] };
- return { cW: W, cH: H, currentSizes: IPHONE_SIZES, slides: IPHONE_SLIDES };
-})();
-```
-
-### Toolbar Layout
-
-The toolbar has two sections: a **scrollable controls area** (left, `flex: 1`) and a **fixed export button** (right, always visible). Never wrap them in a single scrollable row — the button must always be reachable.
-
-```tsx
-{/* Toolbar */}
-<div style={{ position: "sticky", top: 0, zIndex: 50, background: "white", borderBottom: "1px solid #e5e7eb", display: "flex", alignItems: "center" }}>
-
- {/* Scrollable controls */}
- <div style={{ flex: 1, display: "flex", alignItems: "center", gap: 10, padding: "10px 16px", overflowX: "auto", minWidth: 0 }}>
- <span style={{ fontWeight: 700, fontSize: 14, whiteSpace: "nowrap" }}>My App · Screenshots</span>
-
- {/* Locale */}
- <select value={locale} onChange={e => setLocale(e.target.value as Locale)} style={{ fontSize: 12, border: "1px solid #e5e7eb", borderRadius: 6, padding: "5px 10px" }}>
- {LOCALES.map(l => <option key={l} value={l}>{l.toUpperCase()}</option>)}
- </select>
-
- {/* Device tabs */}
- <div style={{ display: "flex", gap: 4, background: "#f3f4f6", borderRadius: 8, padding: 4, flexShrink: 0 }}>
- {(["iphone", "android", "ipad", "feature-graphic"] as Device[]).map(d => (
- <button key={d} onClick={() => { setDevice(d); setSizeIdx(0); }}
- style={{ padding: "4px 14px", borderRadius: 6, border: "none", cursor: "pointer", fontSize: 12, fontWeight: 600, whiteSpace: "nowrap", background: device === d ? "white" : "transparent", color: device === d ? "#2563eb" : "#6b7280" }}>
- {d === "iphone" ? "iPhone" : d === "android" ? "Android" : d === "ipad" ? "iPad" : "Feature Graphic"}
- </button>
- ))}
- {/* Android tablet dropdown — inside the device tab group */}
- <select
- value={isTablet ? device : ""}
- onChange={e => { if (e.target.value) { setDevice(e.target.value as Device); setSizeIdx(0); } }}
- style={{ fontSize: 12, border: "none", borderRadius: 6, padding: "4px 10px", cursor: "pointer", background: isTablet ? "white" : "transparent", color: isTablet ? "#2563eb" : "#6b7280" }}>
- <option value="" disabled>Android Tab.</option>
- <option value="android-7">Android 7"</option>
- <option value="android-10">Android 10"</option>
- </select>
- </div>
-
- {/* Orientation — tablets only */}
- {isTablet && (
- <div style={{ display: "flex", gap: 4, background: "#f3f4f6", borderRadius: 8, padding: 4, flexShrink: 0 }}>
- {(["portrait", "landscape"] as Orientation[]).map(o => (
- <button key={o} onClick={() => { setOrientation(o); setSizeIdx(0); }}
- style={{ padding: "4px 12px", borderRadius: 6, border: "none", cursor: "pointer", fontSize: 12, fontWeight: 600, background: orientation === o ? "white" : "transparent", color: orientation === o ? "#2563eb" : "#6b7280" }}>
- {o === "portrait" ? "Portrait ↕" : "Landscape ↔"}
- </button>
- ))}
- </div>
- )}
-
- {/* Export size */}
- {device !== "feature-graphic" && (
- <select value={sizeIdx} onChange={e => setSizeIdx(Number(e.target.value))} style={{ fontSize: 12, border: "1px solid #e5e7eb", borderRadius: 6, padding: "4px 10px" }}>
- {currentSizes.map((s, i) => <option key={i} value={i}>{s.label} — {s.w}×{s.h}</option>)}
- </select>
- )}
- </div>
-
- {/* Export button — always at right edge, never scrolls away */}
- <div style={{ flexShrink: 0, padding: "10px 16px", borderLeft: "1px solid #e5e7eb" }}>
- <button onClick={exportAll} disabled={!!exporting}
- style={{ padding: "7px 20px", background: exporting ? "#93c5fd" : "#2563eb", color: "white", border: "none", borderRadius: 8, fontSize: 12, fontWeight: 600, cursor: exporting ? "default" : "pointer", whiteSpace: "nowrap" }}>
- {exporting ? `Exporting… ${exporting}` : "Export All"}
- </button>
- </div>
-</div>
-```
-
-`isTablet` helper:
-
-```typescript
-const isTablet = device === "android-7" || device === "android-10";
-```
-
-### Typography (Resolution-Independent)
-
-All sizing relative to canvas width `cW`:
-
-| Element | Size | Weight | Line Height |
-|---------|------|--------|-------------|
-| Category label | `cW * 0.028` | 600 | default |
-| Headline | `cW * 0.09` to `cW * 0.1` | 700 | 1.0 |
-| Hero headline | `cW * 0.1` | 700 | 0.92 |
-| Feature Graphic name | `cW * 0.05` | 800 | 1.1 |
-
-### Phone Placement Patterns (Portrait)
-
-Vary across slides — NEVER use the same layout twice in a row:
-
-**Centered device** (hero, single-feature):
-```
-bottom: 0, width: "82-86%" (phone) / "70-75%" (tablet) / "65-70%" (iPad)
-left: "50%", transform: "translateX(-50%) translateY(13%)"
-```
-
-**Two devices layered** (comparison):
-```
-Back: left: "-8%", width: "65%", rotate(-4deg), opacity: 0.55
-Front: right: "-4%", width: "82%", translateY(10%)
-```
-
-**Landscape tablet** (always caption-left + device-right):
-```
-Caption: position: absolute, top: 50%, left: 5%, width: 34%, transform: translateY(-50%)
-Device: position: absolute, right: "-3%", top: 50%, width: fw%, transform: translateY(-50%)
-```
-
-### "More Features" Slide (Optional)
-
-Dark/contrast background with app icon, headline ("And so much more."), and feature pills. Can include a "Coming Soon" section with dimmer pills. Works identically across all device types.
-
-## Step 6: Export
-
-### Why html-to-image, NOT html2canvas
-
-`html2canvas` breaks on CSS filters, gradients, drop-shadow, backdrop-filter, and complex clipping. `html-to-image` uses native browser SVG serialization — handles all CSS faithfully.
-
-### Pre-load Images as Data URIs (CRITICAL)
-
-`html-to-image` clones the DOM into an SVG `<foreignObject>`. During cloning it re-fetches every `<img>` src. These re-fetches are non-deterministic — some hit the browser cache, some silently fail, causing transparent/black rectangles in exports.
-
-**Fix:** Convert all images to base64 data URIs at page load. Use those as `src` everywhere.
-
-```typescript
-const IMAGE_PATHS = [
- "/mockup.png",
- "/app-icon.png",
- "/screenshots/apple/iphone/en/home.png",
- // ... all images used in any slide across all devices/locales
-];
-
-const imageCache: Record<string, string> = {};
-
-async function preloadAllImages() {
- await Promise.all(IMAGE_PATHS.map(async (path) => {
- const resp = await fetch(path);
- const blob = await resp.blob();
- const dataUrl = await new Promise<string>((resolve) => {
- const reader = new FileReader();
- reader.onloadend = () => resolve(reader.result as string);
- reader.readAsDataURL(blob);
- });
- imageCache[path] = dataUrl;
- }));
-}
-
-// Use in every <img> src:
-function img(path: string): string {
- return imageCache[path] || path;
-}
-```
-
-Gate rendering on preload completion:
-
-```typescript
-const [ready, setReady] = useState(false);
-useEffect(() => { preloadAllImages().then(() => setReady(true)); }, []);
-if (!ready) return <p>Loading images…</p>;
-```
-
-### Export Implementation
-
-```typescript
-import { toPng } from "html-to-image";
-
-async function captureSlide(el: HTMLElement, w: number, h: number): Promise<string> {
- el.style.left = "0px";
- el.style.opacity = "1";
- el.style.zIndex = "-1";
-
- const opts = { width: w, height: h, pixelRatio: 1, cacheBust: true };
-
- // CRITICAL: Double-call — first warms up fonts/images, second produces clean output
- await toPng(el, opts);
- const dataUrl = await toPng(el, opts);
-
- el.style.left = "-9999px";
- el.style.opacity = "";
- el.style.zIndex = "";
- return dataUrl;
-}
-```
-
-### Export All (Bulk)
-
-```typescript
-async function exportAll() {
- if (device === "feature-graphic") { await exportFG(); return; }
- const size = currentSizes[sizeIdx];
- for (let i = 0; i < slides.length; i++) {
- setExporting(`${i + 1}/${slides.length}`);
- const el = exportRefs.current[i];
- if (!el) continue;
- const dataUrl = await captureSlide(el, size.w, size.h);
- const a = document.createElement("a");
- a.href = dataUrl;
- a.download = `${String(i + 1).padStart(2, "0")}-${slides[i].id}-${locale}-${size.w}x${size.h}.png`;
- a.click();
- await new Promise(r => setTimeout(r, 300));
- }
- setExporting(null);
-}
-```
-
-### Key Export Rules
-
-- **Double-call trick**: First `toPng()` loads fonts/images lazily. Second produces clean output. Without this, exports are blank.
-- **On-screen for capture**: Temporarily move to `left: 0` before `toPng` — offscreen elements don't render.
-- **Offscreen container**: Use `position: absolute; left: -9999px` (not `fixed`) inside a `overflowX: hidden` wrapper.
-- **300ms delay** between sequential exports — prevents browser throttling.
-- **Numbered filenames**: Zero-padded prefix so files sort correctly: `01-hero-en-1320x2868.png`.
-- **Pre-loaded data URIs**: Always use `img()` helper. Never use raw file paths in slide components.
-- **RGB source images**: Ensure source screenshots are RGB (not RGBA). RGBA PNGs can produce transparent/black regions in exports.
-
-## Step 7: Final QA Gate
+## Step 6: Final QA Gate
### Message Quality
-- **One idea per slide**: if a headline sells two ideas, split it or simplify it
-- **First slide is strongest**: the hero slide must communicate the main benefit immediately
-- **Readable in one second**: if you cannot parse it instantly at arm's length, rewrite it
+- One idea per slide
+- Hero slide communicates the main benefit in one second
+- Readable at arm's length at thumbnail size
### Visual Quality
-- **No repeated layouts in sequence**: adjacent slides should not feel templated
-- **Landscape slides feel designed**: caption-left + device-right with intentional negative space
-- **Decorative elements support the story**: add energy without covering app UI
-- **Visual rhythm exists**: at least one contrast slide when the set is long enough
+- No two adjacent slides share the same layout
+- Landscape tablet slides use `split-landscape` — never two devices side-by-side
+- At least one contrast (`inverted: true`) slide when the deck is long enough
### Export Quality
-- **No clipped text or assets** after scaling to export size
-- **Screenshots correctly aligned** inside every device frame
-- **Filenames sort correctly** with zero-padded numeric prefixes
-- **Feature Graphic exports** cleanly at 1024×500 (no device frame)
-- **Theme tokens are applied consistently** across all slides in the same preset
-- **Localized copy still fits** after translation, especially on long-word languages
-- **RTL slides feel designed, not just flipped**
-
-### Hand-off Behavior
-
-When you present the finished work:
-
-1. briefly explain the narrative arc across the slides
-2. mention any slides that intentionally use contrast or different layout treatment
-3. call out any assumptions you made about brand tone, copy, or missing assets
+- No clipped text or assets after scaling to export size
+- Screenshots correctly aligned inside every device frame
+- Filenames sort correctly (zero-padded numeric prefixes)
+- Feature Graphic exports cleanly at 1024×500 (no device frame)
## Common Mistakes
| Mistake | Fix |
|---------|-----|
-| All slides look the same | Vary device position (center, left, right, two-device, no-device) |
-| Landscape slides look broken | Use caption-left + single device-right — never two devices side-by-side |
-| Copy is too complex | "One second at arm's length" test |
-| Floating elements block the phone | Move off-screen edges or above the device |
-| Plain white/black background | Use gradients — even subtle ones add depth |
-| Headlines use "and" | Split into two slides or pick one idea |
-| Export is blank | Use double-call trick; move element on-screen before capture |
-| Phone screens black in export | Images not inlined — use `preloadAllImages()` + `img()` helper |
-| Some slides missing images | Non-deterministic fetch race — same fix as above |
-| Export button scrolls off toolbar | Split toolbar: scrollable controls left (`flex: 1`), fixed button right (`flex-shrink: 0`) |
-| Page has horizontal scroll | Add `overflowX: "hidden"` on the outermost wrapper div |
-| Screenshots rejected by App Store | Source PNGs have alpha channel — flatten to RGB (composite onto black) |
-| Android tablet orientation ignored | Derive `cW/cH/slides` from `device + orientation` combo, not just `device` |
+| Edited `page.tsx` instead of using the editor | Roll back the edit; let users iterate in the browser |
+| Tried to rebuild device frames from scratch | They're in `src/components/editor/device-frames.tsx` — modify there |
+| Pasted screenshots into git directly | `public/screenshots/...` is fine to commit; data-URI uploads stored in `localStorage` aren't shareable across machines |
+| Wrong directory layout for tablet screenshots | See Step 2 — `android/tablet-7/portrait/{locale}/...` etc. |
+| Reset wiped the deck | Reset clears `localStorage`; export first or back up `localStorage` JSON before resetting |
+| Export is blank | Source PNGs probably have alpha — flatten to RGB |
+| `bun dev` port collision | Template defaults to `next dev`; let Next pick the next free port (3001+) |
+
+## Template Reference
+
+The template structure (after copy):
+
+```
+project/
+├── package.json
+├── tsconfig.json
+├── next.config.mjs
+├── tailwind.config.ts
+├── postcss.config.mjs
+├── components.json # ShadCN config (for future `shadcn add`)
+├── public/
+│ ├── mockup.png # iPhone bezel (do NOT replace without re-measuring PHONE_SCREEN)
+│ ├── app-icon.png # → user supplies
+│ └── screenshots/...
+└── src/
+ ├── app/
+ │ ├── layout.tsx # Font + root layout
+ │ ├── page.tsx # Renders <ScreenshotEditor />
+ │ └── globals.css # Tailwind + ShadCN tokens
+ ├── components/
+ │ ├── editor/
+ │ │ ├── screenshot-editor.tsx # Top-level editor (state, autosave, export)
+ │ │ ├── toolbar.tsx # Platform tabs, device select, theme, locale, export
+ │ │ ├── sidebar.tsx # Slide list with @dnd-kit reordering
+ │ │ ├── slide-thumb.tsx # Draggable slide card
+ │ │ ├── preview-stage.tsx # ResizeObserver-scaled live preview
+ │ │ ├── inspector.tsx # Right-pane controls for active slide
+ │ │ ├── screenshot-picker.tsx # File drop + picker
+ │ │ ├── slide-canvas.tsx # Data-driven slide renderer (all layouts)
+ │ │ └── device-frames.tsx # Phone, AndroidPhone, IPad, tablets
+ │ └── ui/ # Minimal ShadCN primitives (button, select, etc.)
+ └── lib/
+ ├── constants.ts # Canvas sizes, export sizes, themes, frame ratios
+ ├── defaults.ts # Initial slide decks per device
+ ├── types.ts # Slide / ProjectState / Theme types
+ ├── storage.ts # useProject() — localStorage autosave hook
+ ├── image-cache.ts # preloadImages + img() helper
+ └── utils.ts # cn() helper
+```
+
+## Hand-off Behavior
+
+When you finish scaffolding:
+
+1. State the URL and that the dev server is running.
+2. Mention which platforms have starter decks seeded (iOS, Android, both).
+3. Call out any user-supplied screenshots that didn't match the expected filenames (so they can rename or use the in-editor drop target).
+4. Point the user at the **Export all** button once they're happy with the layouts.
diff --git a/skills/app-store-screenshots/template/.gitignore b/skills/app-store-screenshots/template/.gitignore
new file mode 100644
index 0000000..064b3d8
--- /dev/null
+++ b/skills/app-store-screenshots/template/.gitignore
@@ -0,0 +1,7 @@
+node_modules
+.next
+out
+.DS_Store
+*.tsbuildinfo
+next-env.d.ts
+.env*.local
diff --git a/skills/app-store-screenshots/template/README.md b/skills/app-store-screenshots/template/README.md
new file mode 100644
index 0000000..5d032bc
--- /dev/null
+++ b/skills/app-store-screenshots/template/README.md
@@ -0,0 +1,48 @@
+# App Store Screenshots — Editor Template
+
+A pre-built Next.js + ShadCN editor for generating App Store and Google Play screenshots. Scaffolded by the `app-store-screenshots` skill.
+
+## Quick start
+
+```bash
+bun install # or pnpm / yarn / npm
+bun dev # http://localhost:3000
+```
+
+## What's inside
+
+- **Visual editor** (`src/components/editor/`) — drag-to-reorder, click-to-edit text, screenshot drop targets, per-slide layout switcher, dark/light toggle.
+- **Device frames** (`src/components/editor/device-frames.tsx`) — iPhone (PNG mockup), iPad, Android phone, Android tablet (portrait + landscape), feature graphic.
+- **Auto-save** — every change is persisted to `localStorage` (key: `app-store-screenshots:project:v1`) within 400ms.
+- **Multi-device decks** — iOS and Android slide decks live side by side; switching the platform tab preserves both.
+- **One-click export** — bulk PNG export at any required App Store / Play Store resolution using `html-to-image`.
+
+## Adding screenshots
+
+Two ways:
+
+1. **Drop a file in the inspector** — opens the image picker (drag-and-drop supported); the image is embedded as a data URI and stored in `localStorage`. No filesystem changes required.
+2. **Reference a static file** — put PNGs under `public/screenshots/{platform}/{device}/{locale}/` and reference them by path. Default sample slides expect:
+ - `public/screenshots/apple/iphone/en/01.png` … `05.png`
+ - `public/screenshots/android/phone/en/01.png` … `05.png`
+ - `public/screenshots/apple/ipad/en/01.png`
+
+## Exporting
+
+The toolbar dropdown lists every Apple/Google-required size for the current device. Click **Export all** to download a numbered set of PNGs (e.g. `01-hero-iphone-en-1320x2868.png`).
+
+## Customizing
+
+| Where | What |
+|-------|------|
+| `src/lib/constants.ts` | Canvas dimensions, export sizes, frame ratios, themes, locales |
+| `src/lib/defaults.ts` | Initial slides shown when localStorage is empty |
+| `src/components/editor/slide-canvas.tsx` | Add new layouts (factory in `renderLayout`) |
+| `src/components/editor/device-frames.tsx` | Tweak device chrome (bezel radii, camera dots) |
+| `src/app/layout.tsx` | Swap the font (`next/font/google`) |
+
+## Notes
+
+- `mockup.png` is the iPhone bezel overlay; replacing it requires re-measuring the `PHONE_SCREEN` constants.
+- Image preloading converts every static path to a base64 data URI before exports run — this prevents the html-to-image race where some slide screenshots come out black.
+- Reset via the toolbar's circular arrow icon clears `localStorage` and reloads the default slides.
diff --git a/skills/app-store-screenshots/template/bun.lock b/skills/app-store-screenshots/template/bun.lock
new file mode 100644
index 0000000..b3c88c7
--- /dev/null
+++ b/skills/app-store-screenshots/template/bun.lock
@@ -0,0 +1,454 @@
+{
+ "lockfileVersion": 1,
+ "configVersion": 1,
+ "workspaces": {
+ "": {
+ "name": "app-store-screenshots",
+ "dependencies": {
+ "@dnd-kit/core": "^6.1.0",
+ "@dnd-kit/sortable": "^8.0.0",
+ "@dnd-kit/utilities": "^3.2.2",
+ "@radix-ui/react-dialog": "^1.1.2",
+ "@radix-ui/react-dropdown-menu": "^2.1.2",
+ "@radix-ui/react-label": "^2.1.0",
+ "@radix-ui/react-popover": "^1.1.2",
+ "@radix-ui/react-select": "^2.1.2",
+ "@radix-ui/react-slot": "^1.1.0",
+ "@radix-ui/react-tabs": "^1.1.1",
+ "@radix-ui/react-tooltip": "^1.1.4",
+ "class-variance-authority": "^0.7.0",
+ "clsx": "^2.1.1",
+ "html-to-image": "^1.11.11",
+ "lucide-react": "^0.460.0",
+ "next": "15.0.3",
+ "react": "19.0.0-rc-66855b96-20241106",
+ "react-dom": "19.0.0-rc-66855b96-20241106",
+ "sonner": "^1.7.0",
+ "tailwind-merge": "^2.5.4",
+ "tailwindcss-animate": "^1.0.7",
+ },
+ "devDependencies": {
+ "@types/node": "^22",
+ "@types/react": "^18",
+ "@types/react-dom": "^18",
+ "autoprefixer": "^10.4.20",
+ "postcss": "^8.4.49",
+ "tailwindcss": "^3.4.15",
+ "typescript": "^5.6.3",
+ },
+ },
+ },
+ "packages": {
+ "@alloc/quick-lru": ["@alloc/[email protected]", "", {}, "sha512-UrcABB+4bUrFABwbluTIBErXwvbsU/V7TZWfmbgJfbkwiBuziS9gxdODUyuiecfdGQ85jglMW6juS3+z5TsKLw=="],
+
+ "@dnd-kit/accessibility": ["@dnd-kit/[email protected]", "", { "dependencies": { "tslib": "^2.0.0" }, "peerDependencies": { "react": ">=16.8.0" } }, "sha512-2P+YgaXF+gRsIihwwY1gCsQSYnu9Zyj2py8kY5fFvUM1qm2WA2u639R6YNVfU4GWr+ZM5mqEsfHZZLoRONbemw=="],
+
+ "@dnd-kit/core": ["@dnd-kit/[email protected]", "", { "dependencies": { "@dnd-kit/accessibility": "^3.1.1", "@dnd-kit/utilities": "^3.2.2", "tslib": "^2.0.0" }, "peerDependencies": { "react": ">=16.8.0", "react-dom": ">=16.8.0" } }, "sha512-xkGBRQQab4RLwgXxoqETICr6S5JlogafbhNsidmrkVv2YRs5MLwpjoF2qpiGjQt8S9AoxtIV603s0GIUpY5eYQ=="],
+
+ "@dnd-kit/sortable": ["@dnd-kit/[email protected]", "", { "dependencies": { "@dnd-kit/utilities": "^3.2.2", "tslib": "^2.0.0" }, "peerDependencies": { "@dnd-kit/core": "^6.1.0", "react": ">=16.8.0" } }, "sha512-U3jk5ebVXe1Lr7c2wU7SBZjcWdQP+j7peHJfCspnA81enlu88Mgd7CC8Q+pub9ubP7eKVETzJW+IBAhsqbSu/g=="],
+
+ "@dnd-kit/utilities": ["@dnd-kit/[email protected]", "", { "dependencies": { "tslib": "^2.0.0" }, "peerDependencies": { "react": ">=16.8.0" } }, "sha512-+MKAJEOfaBe5SmV6t34p80MMKhjvUz0vRrvVJbPT0WElzaOJ/1xs+D+KDv+tD/NE5ujfrChEcshd4fLn0wpiqg=="],
+
+ "@emnapi/runtime": ["@emnapi/[email protected]", "", { "dependencies": { "tslib": "^2.4.0" } }, "sha512-ewvYlk86xUoGI0zQRNq/mC+16R1QeDlKQy21Ki3oSYXNgLb45GV1P6A0M+/s6nyCuNDqe5VpaY84BzXGwVbwFA=="],
+
+ "@floating-ui/core": ["@floating-ui/[email protected]", "", { "dependencies": { "@floating-ui/utils": "^0.2.11" } }, "sha512-1Ih4WTWyw0+lKyFMcBHGbb5U5FtuHJuujoyyr5zTaWS5EYMeT6Jb2AuDeftsCsEuchO+mM2ij5+q9crhydzLhQ=="],
+
+ "@floating-ui/dom": ["@floating-ui/[email protected]", "", { "dependencies": { "@floating-ui/core": "^1.7.5", "@floating-ui/utils": "^0.2.11" } }, "sha512-9gZSAI5XM36880PPMm//9dfiEngYoC6Am2izES1FF406YFsjvyBMmeJ2g4SAju3xWwtuynNRFL2s9hgxpLI5SQ=="],
+
+ "@floating-ui/react-dom": ["@floating-ui/[email protected]", "", { "dependencies": { "@floating-ui/dom": "^1.7.6" }, "peerDependencies": { "react": ">=16.8.0", "react-dom": ">=16.8.0" } }, "sha512-cC52bHwM/n/CxS87FH0yWdngEZrjdtLW/qVruo68qg+prK7ZQ4YGdut2GyDVpoGeAYe/h899rVeOVm6Oi40k2A=="],
+
+ "@floating-ui/utils": ["@floating-ui/[email protected]", "", {}, "sha512-RiB/yIh78pcIxl6lLMG0CgBXAZ2Y0eVHqMPYugu+9U0AeT6YBeiJpf7lbdJNIugFP5SIjwNRgo4DhR1Qxi26Gg=="],
+
+ "@img/sharp-darwin-arm64": ["@img/[email protected]", "", { "optionalDependencies": { "@img/sharp-libvips-darwin-arm64": "1.0.4" }, "os": "darwin", "cpu": "arm64" }, "sha512-UT4p+iz/2H4twwAoLCqfA9UH5pI6DggwKEGuaPy7nCVQ8ZsiY5PIcrRvD1DzuY3qYL07NtIQcWnBSY/heikIFQ=="],
+
+ "@img/sharp-darwin-x64": ["@img/[email protected]", "", { "optionalDependencies": { "@img/sharp-libvips-darwin-x64": "1.0.4" }, "os": "darwin", "cpu": "x64" }, "sha512-fyHac4jIc1ANYGRDxtiqelIbdWkIuQaI84Mv45KvGRRxSAa7o7d1ZKAOBaYbnepLC1WqxfpimdeWfvqqSGwR2Q=="],
+
+ "@img/sharp-libvips-darwin-arm64": ["@img/[email protected]", "", { "os": "darwin", "cpu": "arm64" }, "sha512-XblONe153h0O2zuFfTAbQYAX2JhYmDHeWikp1LM9Hul9gVPjFY427k6dFEcOL72O01QxQsWi761svJ/ev9xEDg=="],
+
+ "@img/sharp-libvips-darwin-x64": ["@img/[email protected]", "", { "os": "darwin", "cpu": "x64" }, "sha512-xnGR8YuZYfJGmWPvmlunFaWJsb9T/AO2ykoP3Fz/0X5XV2aoYBPkX6xqCQvUTKKiLddarLaxpzNe+b1hjeWHAQ=="],
+
+ "@img/sharp-libvips-linux-arm": ["@img/[email protected]", "", { "os": "linux", "cpu": "arm" }, "sha512-gvcC4ACAOPRNATg/ov8/MnbxFDJqf/pDePbBnuBDcjsI8PssmjoKMAz4LtLaVi+OnSb5FK/yIOamqDwGmXW32g=="],
+
+ "@img/sharp-libvips-linux-arm64": ["@img/[email protected]", "", { "os": "linux", "cpu": "arm64" }, "sha512-9B+taZ8DlyyqzZQnoeIvDVR/2F4EbMepXMc/NdVbkzsJbzkUjhXv/70GQJ7tdLA4YJgNP25zukcxpX2/SueNrA=="],
+
+ "@img/sharp-libvips-linux-s390x": ["@img/[email protected]", "", { "os": "linux", "cpu": "s390x" }, "sha512-u7Wz6ntiSSgGSGcjZ55im6uvTrOxSIS8/dgoVMoiGE9I6JAfU50yH5BoDlYA1tcuGS7g/QNtetJnxA6QEsCVTA=="],
+
+ "@img/sharp-libvips-linux-x64": ["@img/[email protected]", "", { "os": "linux", "cpu": "x64" }, "sha512-MmWmQ3iPFZr0Iev+BAgVMb3ZyC4KeFc3jFxnNbEPas60e1cIfevbtuyf9nDGIzOaW9PdnDciJm+wFFaTlj5xYw=="],
+
+ "@img/sharp-libvips-linuxmusl-arm64": ["@img/[email protected]", "", { "os": "linux", "cpu": "arm64" }, "sha512-9Ti+BbTYDcsbp4wfYib8Ctm1ilkugkA/uscUn6UXK1ldpC1JjiXbLfFZtRlBhjPZ5o1NCLiDbg8fhUPKStHoTA=="],
+
+ "@img/sharp-libvips-linuxmusl-x64": ["@img/[email protected]", "", { "os": "linux", "cpu": "x64" }, "sha512-viYN1KX9m+/hGkJtvYYp+CCLgnJXwiQB39damAO7WMdKWlIhmYTfHjwSbQeUK/20vY154mwezd9HflVFM1wVSw=="],
+
+ "@img/sharp-linux-arm": ["@img/[email protected]", "", { "optionalDependencies": { "@img/sharp-libvips-linux-arm": "1.0.5" }, "os": "linux", "cpu": "arm" }, "sha512-JTS1eldqZbJxjvKaAkxhZmBqPRGmxgu+qFKSInv8moZ2AmT5Yib3EQ1c6gp493HvrvV8QgdOXdyaIBrhvFhBMQ=="],
+
+ "@img/sharp-linux-arm64": ["@img/[email protected]", "", { "optionalDependencies": { "@img/sharp-libvips-linux-arm64": "1.0.4" }, "os": "linux", "cpu": "arm64" }, "sha512-JMVv+AMRyGOHtO1RFBiJy/MBsgz0x4AWrT6QoEVVTyh1E39TrCUpTRI7mx9VksGX4awWASxqCYLCV4wBZHAYxA=="],
+
+ "@img/sharp-linux-s390x": ["@img/[email protected]", "", { "optionalDependencies": { "@img/sharp-libvips-linux-s390x": "1.0.4" }, "os": "linux", "cpu": "s390x" }, "sha512-y/5PCd+mP4CA/sPDKl2961b+C9d+vPAveS33s6Z3zfASk2j5upL6fXVPZi7ztePZ5CuH+1kW8JtvxgbuXHRa4Q=="],
+
+ "@img/sharp-linux-x64": ["@img/[email protected]", "", { "optionalDependencies": { "@img/sharp-libvips-linux-x64": "1.0.4" }, "os": "linux", "cpu": "x64" }, "sha512-opC+Ok5pRNAzuvq1AG0ar+1owsu842/Ab+4qvU879ippJBHvyY5n2mxF1izXqkPYlGuP/M556uh53jRLJmzTWA=="],
+
+ "@img/sharp-linuxmusl-arm64": ["@img/[email protected]", "", { "optionalDependencies": { "@img/sharp-libvips-linuxmusl-arm64": "1.0.4" }, "os": "linux", "cpu": "arm64" }, "sha512-XrHMZwGQGvJg2V/oRSUfSAfjfPxO+4DkiRh6p2AFjLQztWUuY/o8Mq0eMQVIY7HJ1CDQUJlxGGZRw1a5bqmd1g=="],
+
+ "@img/sharp-linuxmusl-x64": ["@img/[email protected]", "", { "optionalDependencies": { "@img/sharp-libvips-linuxmusl-x64": "1.0.4" }, "os": "linux", "cpu": "x64" }, "sha512-WT+d/cgqKkkKySYmqoZ8y3pxx7lx9vVejxW/W4DOFMYVSkErR+w7mf2u8m/y4+xHe7yY9DAXQMWQhpnMuFfScw=="],
+
+ "@img/sharp-wasm32": ["@img/[email protected]", "", { "dependencies": { "@emnapi/runtime": "^1.2.0" }, "cpu": "none" }, "sha512-ykUW4LVGaMcU9lu9thv85CbRMAwfeadCJHRsg2GmeRa/cJxsVY9Rbd57JcMxBkKHag5U/x7TSBpScF4U8ElVzg=="],
+
+ "@img/sharp-win32-ia32": ["@img/[email protected]", "", { "os": "win32", "cpu": "ia32" }, "sha512-T36PblLaTwuVJ/zw/LaH0PdZkRz5rd3SmMHX8GSmR7vtNSP5Z6bQkExdSK7xGWyxLw4sUknBuugTelgw2faBbQ=="],
+
+ "@img/sharp-win32-x64": ["@img/[email protected]", "", { "os": "win32", "cpu": "x64" }, "sha512-MpY/o8/8kj+EcnxwvrP4aTJSWw/aZ7JIGR4aBeZkZw5B7/Jn+tY9/VNwtcoGmdT7GfggGIU4kygOMSbYnOrAbg=="],
+
+ "@jridgewell/gen-mapping": ["@jridgewell/[email protected]", "", { "dependencies": { "@jridgewell/sourcemap-codec": "^1.5.0", "@jridgewell/trace-mapping": "^0.3.24" } }, "sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA=="],
+
+ "@jridgewell/resolve-uri": ["@jridgewell/[email protected]", "", {}, "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw=="],
+
+ "@jridgewell/sourcemap-codec": ["@jridgewell/[email protected]", "", {}, "sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og=="],
+
+ "@jridgewell/trace-mapping": ["@jridgewell/[email protected]", "", { "dependencies": { "@jridgewell/resolve-uri": "^3.1.0", "@jridgewell/sourcemap-codec": "^1.4.14" } }, "sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw=="],
+
+ "@next/env": ["@next/[email protected]", "", {}, "sha512-t9Xy32pjNOvVn2AS+Utt6VmyrshbpfUMhIjFO60gI58deSo/KgLOp31XZ4O+kY/Is8WAGYwA5gR7kOb1eORDBA=="],
+
+ "@next/swc-darwin-arm64": ["@next/[email protected]", "", { "os": "darwin", "cpu": "arm64" }, "sha512-s3Q/NOorCsLYdCKvQlWU+a+GeAd3C8Rb3L1YnetsgwXzhc3UTWrtQpB/3eCjFOdGUj5QmXfRak12uocd1ZiiQw=="],
+
+ "@next/swc-darwin-x64": ["@next/[email protected]", "", { "os": "darwin", "cpu": "x64" }, "sha512-Zxl/TwyXVZPCFSf0u2BNj5sE0F2uR6iSKxWpq4Wlk/Sv9Ob6YCKByQTkV2y6BCic+fkabp9190hyrDdPA/dNrw=="],
+
+ "@next/swc-linux-arm64-gnu": ["@next/[email protected]", "", { "os": "linux", "cpu": "arm64" }, "sha512-T5+gg2EwpsY3OoaLxUIofmMb7ohAUlcNZW0fPQ6YAutaWJaxt1Z1h+8zdl4FRIOr5ABAAhXtBcpkZNwUcKI2fw=="],
+
+ "@next/swc-linux-arm64-musl": ["@next/[email protected]", "", { "os": "linux", "cpu": "arm64" }, "sha512-WkAk6R60mwDjH4lG/JBpb2xHl2/0Vj0ZRu1TIzWuOYfQ9tt9NFsIinI1Epma77JVgy81F32X/AeD+B2cBu/YQA=="],
+
+ "@next/swc-linux-x64-gnu": ["@next/[email protected]", "", { "os": "linux", "cpu": "x64" }, "sha512-gWL/Cta1aPVqIGgDb6nxkqy06DkwJ9gAnKORdHWX1QBbSZZB+biFYPFti8aKIQL7otCE1pjyPaXpFzGeG2OS2w=="],
+
+ "@next/swc-linux-x64-musl": ["@next/[email protected]", "", { "os": "linux", "cpu": "x64" }, "sha512-QQEMwFd8r7C0GxQS62Zcdy6GKx999I/rTO2ubdXEe+MlZk9ZiinsrjwoiBL5/57tfyjikgh6GOU2WRQVUej3UA=="],
+
+ "@next/swc-win32-arm64-msvc": ["@next/[email protected]", "", { "os": "win32", "cpu": "arm64" }, "sha512-9TEp47AAd/ms9fPNgtgnT7F3M1Hf7koIYYWCMQ9neOwjbVWJsHZxrFbI3iEDJ8rf1TDGpmHbKxXf2IFpAvheIQ=="],
+
+ "@next/swc-win32-x64-msvc": ["@next/[email protected]", "", { "os": "win32", "cpu": "x64" }, "sha512-VNAz+HN4OGgvZs6MOoVfnn41kBzT+M+tB+OK4cww6DNyWS6wKaDpaAm/qLeOUbnMh0oVx1+mg0uoYARF69dJyA=="],
+
+ "@nodelib/fs.scandir": ["@nodelib/[email protected]", "", { "dependencies": { "@nodelib/fs.stat": "2.0.5", "run-parallel": "^1.1.9" } }, "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g=="],
+
+ "@nodelib/fs.stat": ["@nodelib/[email protected]", "", {}, "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A=="],
+
+ "@nodelib/fs.walk": ["@nodelib/[email protected]", "", { "dependencies": { "@nodelib/fs.scandir": "2.1.5", "fastq": "^1.6.0" } }, "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg=="],
+
+ "@radix-ui/number": ["@radix-ui/[email protected]", "", {}, "sha512-MkKCwxlXTgz6CFoJx3pCwn07GKp36+aZyu/u2Ln2VrA5DcdyCZkASEDBTd8x5whTQQL5CiYf4prXKLcgQdv29g=="],
+
+ "@radix-ui/primitive": ["@radix-ui/[email protected]", "", {}, "sha512-JTF99U/6XIjCBo0wqkU5sK10glYe27MRRsfwoiq5zzOEZLHU3A3KCMa5X/azekYRCJ0HlwI0crAXS/5dEHTzDg=="],
+
+ "@radix-ui/react-arrow": ["@radix-ui/[email protected]", "", { "dependencies": { "@radix-ui/react-primitive": "2.1.3" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-F+M1tLhO+mlQaOWspE8Wstg+z6PwxwRd8oQ8IXceWz92kfAmalTRf0EjrouQeo7QssEPfCn05B4Ihs1K9WQ/7w=="],
+
+ "@radix-ui/react-collection": ["@radix-ui/[email protected]", "", { "dependencies": { "@radix-ui/react-compose-refs": "1.1.2", "@radix-ui/react-context": "1.1.2", "@radix-ui/react-primitive": "2.1.3", "@radix-ui/react-slot": "1.2.3" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-Fh9rGN0MoI4ZFUNyfFVNU4y9LUz93u9/0K+yLgA2bwRojxM8JU1DyvvMBabnZPBgMWREAJvU2jjVzq+LrFUglw=="],
+
+ "@radix-ui/react-compose-refs": ["@radix-ui/[email protected]", "", { "peerDependencies": { "@types/react": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react"] }, "sha512-z4eqJvfiNnFMHIIvXP3CY57y2WJs5g2v3X0zm9mEJkrkNv4rDxu+sg9Jh8EkXyeqBkB7SOcboo9dMVqhyrACIg=="],
+
+ "@radix-ui/react-context": ["@radix-ui/[email protected]", "", { "peerDependencies": { "@types/react": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react"] }, "sha512-jCi/QKUM2r1Ju5a3J64TH2A5SpKAgh0LpknyqdQ4m6DCV0xJ2HG1xARRwNGPQfi1SLdLWZ1OJz6F4OMBBNiGJA=="],
+
+ "@radix-ui/react-dialog": ["@radix-ui/[email protected]", "", { "dependencies": { "@radix-ui/primitive": "1.1.3", "@radix-ui/react-compose-refs": "1.1.2", "@radix-ui/react-context": "1.1.2", "@radix-ui/react-dismissable-layer": "1.1.11", "@radix-ui/react-focus-guards": "1.1.3", "@radix-ui/react-focus-scope": "1.1.7", "@radix-ui/react-id": "1.1.1", "@radix-ui/react-portal": "1.1.9", "@radix-ui/react-presence": "1.1.5", "@radix-ui/react-primitive": "2.1.3", "@radix-ui/react-slot": "1.2.3", "@radix-ui/react-use-controllable-state": "1.2.2", "aria-hidden": "^1.2.4", "react-remove-scroll": "^2.6.3" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-TCglVRtzlffRNxRMEyR36DGBLJpeusFcgMVD9PZEzAKnUs1lKCgX5u9BmC2Yg+LL9MgZDugFFs1Vl+Jp4t/PGw=="],
+
+ "@radix-ui/react-direction": ["@radix-ui/[email protected]", "", { "peerDependencies": { "@types/react": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react"] }, "sha512-1UEWRX6jnOA2y4H5WczZ44gOOjTEmlqv1uNW4GAJEO5+bauCBhv8snY65Iw5/VOS/ghKN9gr2KjnLKxrsvoMVw=="],
+
+ "@radix-ui/react-dismissable-layer": ["@radix-ui/[email protected]", "", { "dependencies": { "@radix-ui/primitive": "1.1.3", "@radix-ui/react-compose-refs": "1.1.2", "@radix-ui/react-primitive": "2.1.3", "@radix-ui/react-use-callback-ref": "1.1.1", "@radix-ui/react-use-escape-keydown": "1.1.1" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-Nqcp+t5cTB8BinFkZgXiMJniQH0PsUt2k51FUhbdfeKvc4ACcG2uQniY/8+h1Yv6Kza4Q7lD7PQV0z0oicE0Mg=="],
+
+ "@radix-ui/react-dropdown-menu": ["@radix-ui/[email protected]", "", { "dependencies": { "@radix-ui/primitive": "1.1.3", "@radix-ui/react-compose-refs": "1.1.2", "@radix-ui/react-context": "1.1.2", "@radix-ui/react-id": "1.1.1", "@radix-ui/react-menu": "2.1.16", "@radix-ui/react-primitive": "2.1.3", "@radix-ui/react-use-controllable-state": "1.2.2" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-1PLGQEynI/3OX/ftV54COn+3Sud/Mn8vALg2rWnBLnRaGtJDduNW/22XjlGgPdpcIbiQxjKtb7BkcjP00nqfJw=="],
+
+ "@radix-ui/react-focus-guards": ["@radix-ui/[email protected]", "", { "peerDependencies": { "@types/react": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react"] }, "sha512-0rFg/Rj2Q62NCm62jZw0QX7a3sz6QCQU0LpZdNrJX8byRGaGVTqbrW9jAoIAHyMQqsNpeZ81YgSizOt5WXq0Pw=="],
+
+ "@radix-ui/react-focus-scope": ["@radix-ui/[email protected]", "", { "dependencies": { "@radix-ui/react-compose-refs": "1.1.2", "@radix-ui/react-primitive": "2.1.3", "@radix-ui/react-use-callback-ref": "1.1.1" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-t2ODlkXBQyn7jkl6TNaw/MtVEVvIGelJDCG41Okq/KwUsJBwQ4XVZsHAVUkK4mBv3ewiAS3PGuUWuY2BoK4ZUw=="],
+
+ "@radix-ui/react-id": ["@radix-ui/[email protected]", "", { "dependencies": { "@radix-ui/react-use-layout-effect": "1.1.1" }, "peerDependencies": { "@types/react": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react"] }, "sha512-kGkGegYIdQsOb4XjsfM97rXsiHaBwco+hFI66oO4s9LU+PLAC5oJ7khdOVFxkhsmlbpUqDAvXw11CluXP+jkHg=="],
+
+ "@radix-ui/react-label": ["@radix-ui/[email protected]", "", { "dependencies": { "@radix-ui/react-primitive": "2.1.4" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-FmXs37I6hSBVDlO4y764TNz1rLgKwjJMQ0EGte6F3Cb3f4bIuHB/iLa/8I9VKkmOy+gNHq8rql3j686ACVV21A=="],
+
+ "@radix-ui/react-menu": ["@radix-ui/[email protected]", "", { "dependencies": { "@radix-ui/primitive": "1.1.3", "@radix-ui/react-collection": "1.1.7", "@radix-ui/react-compose-refs": "1.1.2", "@radix-ui/react-context": "1.1.2", "@radix-ui/react-direction": "1.1.1", "@radix-ui/react-dismissable-layer": "1.1.11", "@radix-ui/react-focus-guards": "1.1.3", "@radix-ui/react-focus-scope": "1.1.7", "@radix-ui/react-id": "1.1.1", "@radix-ui/react-popper": "1.2.8", "@radix-ui/react-portal": "1.1.9", "@radix-ui/react-presence": "1.1.5", "@radix-ui/react-primitive": "2.1.3", "@radix-ui/react-roving-focus": "1.1.11", "@radix-ui/react-slot": "1.2.3", "@radix-ui/react-use-callback-ref": "1.1.1", "aria-hidden": "^1.2.4", "react-remove-scroll": "^2.6.3" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-72F2T+PLlphrqLcAotYPp0uJMr5SjP5SL01wfEspJbru5Zs5vQaSHb4VB3ZMJPimgHHCHG7gMOeOB9H3Hdmtxg=="],
+
+ "@radix-ui/react-popover": ["@radix-ui/[email protected]", "", { "dependencies": { "@radix-ui/primitive": "1.1.3", "@radix-ui/react-compose-refs": "1.1.2", "@radix-ui/react-context": "1.1.2", "@radix-ui/react-dismissable-layer": "1.1.11", "@radix-ui/react-focus-guards": "1.1.3", "@radix-ui/react-focus-scope": "1.1.7", "@radix-ui/react-id": "1.1.1", "@radix-ui/react-popper": "1.2.8", "@radix-ui/react-portal": "1.1.9", "@radix-ui/react-presence": "1.1.5", "@radix-ui/react-primitive": "2.1.3", "@radix-ui/react-slot": "1.2.3", "@radix-ui/react-use-controllable-state": "1.2.2", "aria-hidden": "^1.2.4", "react-remove-scroll": "^2.6.3" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-kr0X2+6Yy/vJzLYJUPCZEc8SfQcf+1COFoAqauJm74umQhta9M7lNJHP7QQS3vkvcGLQUbWpMzwrXYwrYztHKA=="],
+
+ "@radix-ui/react-popper": ["@radix-ui/[email protected]", "", { "dependencies": { "@floating-ui/react-dom": "^2.0.0", "@radix-ui/react-arrow": "1.1.7", "@radix-ui/react-compose-refs": "1.1.2", "@radix-ui/react-context": "1.1.2", "@radix-ui/react-primitive": "2.1.3", "@radix-ui/react-use-callback-ref": "1.1.1", "@radix-ui/react-use-layout-effect": "1.1.1", "@radix-ui/react-use-rect": "1.1.1", "@radix-ui/react-use-size": "1.1.1", "@radix-ui/rect": "1.1.1" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-0NJQ4LFFUuWkE7Oxf0htBKS6zLkkjBH+hM1uk7Ng705ReR8m/uelduy1DBo0PyBXPKVnBA6YBlU94MBGXrSBCw=="],
+
+ "@radix-ui/react-portal": ["@radix-ui/[email protected]", "", { "dependencies": { "@radix-ui/react-primitive": "2.1.3", "@radix-ui/react-use-layout-effect": "1.1.1" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-bpIxvq03if6UNwXZ+HTK71JLh4APvnXntDc6XOX8UVq4XQOVl7lwok0AvIl+b8zgCw3fSaVTZMpAPPagXbKmHQ=="],
+
+ "@radix-ui/react-presence": ["@radix-ui/[email protected]", "", { "dependencies": { "@radix-ui/react-compose-refs": "1.1.2", "@radix-ui/react-use-layout-effect": "1.1.1" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-/jfEwNDdQVBCNvjkGit4h6pMOzq8bHkopq458dPt2lMjx+eBQUohZNG9A7DtO/O5ukSbxuaNGXMjHicgwy6rQQ=="],
+
+ "@radix-ui/react-primitive": ["@radix-ui/[email protected]", "", { "dependencies": { "@radix-ui/react-slot": "1.2.3" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-m9gTwRkhy2lvCPe6QJp4d3G1TYEUHn/FzJUtq9MjH46an1wJU+GdoGC5VLof8RX8Ft/DlpshApkhswDLZzHIcQ=="],
+
+ "@radix-ui/react-roving-focus": ["@radix-ui/[email protected]", "", { "dependencies": { "@radix-ui/primitive": "1.1.3", "@radix-ui/react-collection": "1.1.7", "@radix-ui/react-compose-refs": "1.1.2", "@radix-ui/react-context": "1.1.2", "@radix-ui/react-direction": "1.1.1", "@radix-ui/react-id": "1.1.1", "@radix-ui/react-primitive": "2.1.3", "@radix-ui/react-use-callback-ref": "1.1.1", "@radix-ui/react-use-controllable-state": "1.2.2" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-7A6S9jSgm/S+7MdtNDSb+IU859vQqJ/QAtcYQcfFC6W8RS4IxIZDldLR0xqCFZ6DCyrQLjLPsxtTNch5jVA4lA=="],
+
+ "@radix-ui/react-select": ["@radix-ui/[email protected]", "", { "dependencies": { "@radix-ui/number": "1.1.1", "@radix-ui/primitive": "1.1.3", "@radix-ui/react-collection": "1.1.7", "@radix-ui/react-compose-refs": "1.1.2", "@radix-ui/react-context": "1.1.2", "@radix-ui/react-direction": "1.1.1", "@radix-ui/react-dismissable-layer": "1.1.11", "@radix-ui/react-focus-guards": "1.1.3", "@radix-ui/react-focus-scope": "1.1.7", "@radix-ui/react-id": "1.1.1", "@radix-ui/react-popper": "1.2.8", "@radix-ui/react-portal": "1.1.9", "@radix-ui/react-primitive": "2.1.3", "@radix-ui/react-slot": "1.2.3", "@radix-ui/react-use-callback-ref": "1.1.1", "@radix-ui/react-use-controllable-state": "1.2.2", "@radix-ui/react-use-layout-effect": "1.1.1", "@radix-ui/react-use-previous": "1.1.1", "@radix-ui/react-visually-hidden": "1.2.3", "aria-hidden": "^1.2.4", "react-remove-scroll": "^2.6.3" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-I30RydO+bnn2PQztvo25tswPH+wFBjehVGtmagkU78yMdwTwVf12wnAOF+AeP8S2N8xD+5UPbGhkUfPyvT+mwQ=="],
+
+ "@radix-ui/react-slot": ["@radix-ui/[email protected]", "", { "dependencies": { "@radix-ui/react-compose-refs": "1.1.2" }, "peerDependencies": { "@types/react": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react"] }, "sha512-Jl+bCv8HxKnlTLVrcDE8zTMJ09R9/ukw4qBs/oZClOfoQk/cOTbDn+NceXfV7j09YPVQUryJPHurafcSg6EVKA=="],
+
+ "@radix-ui/react-tabs": ["@radix-ui/[email protected]", "", { "dependencies": { "@radix-ui/primitive": "1.1.3", "@radix-ui/react-context": "1.1.2", "@radix-ui/react-direction": "1.1.1", "@radix-ui/react-id": "1.1.1", "@radix-ui/react-presence": "1.1.5", "@radix-ui/react-primitive": "2.1.3", "@radix-ui/react-roving-focus": "1.1.11", "@radix-ui/react-use-controllable-state": "1.2.2" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-7xdcatg7/U+7+Udyoj2zodtI9H/IIopqo+YOIcZOq1nJwXWBZ9p8xiu5llXlekDbZkca79a/fozEYQXIA4sW6A=="],
+
+ "@radix-ui/react-tooltip": ["@radix-ui/[email protected]", "", { "dependencies": { "@radix-ui/primitive": "1.1.3", "@radix-ui/react-compose-refs": "1.1.2", "@radix-ui/react-context": "1.1.2", "@radix-ui/react-dismissable-layer": "1.1.11", "@radix-ui/react-id": "1.1.1", "@radix-ui/react-popper": "1.2.8", "@radix-ui/react-portal": "1.1.9", "@radix-ui/react-presence": "1.1.5", "@radix-ui/react-primitive": "2.1.3", "@radix-ui/react-slot": "1.2.3", "@radix-ui/react-use-controllable-state": "1.2.2", "@radix-ui/react-visually-hidden": "1.2.3" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-tY7sVt1yL9ozIxvmbtN5qtmH2krXcBCfjEiCgKGLqunJHvgvZG2Pcl2oQ3kbcZARb1BGEHdkLzcYGO8ynVlieg=="],
+
+ "@radix-ui/react-use-callback-ref": ["@radix-ui/[email protected]", "", { "peerDependencies": { "@types/react": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react"] }, "sha512-FkBMwD+qbGQeMu1cOHnuGB6x4yzPjho8ap5WtbEJ26umhgqVXbhekKUQO+hZEL1vU92a3wHwdp0HAcqAUF5iDg=="],
+
+ "@radix-ui/react-use-controllable-state": ["@radix-ui/[email protected]", "", { "dependencies": { "@radix-ui/react-use-effect-event": "0.0.2", "@radix-ui/react-use-layout-effect": "1.1.1" }, "peerDependencies": { "@types/react": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react"] }, "sha512-BjasUjixPFdS+NKkypcyyN5Pmg83Olst0+c6vGov0diwTEo6mgdqVR6hxcEgFuh4QrAs7Rc+9KuGJ9TVCj0Zzg=="],
+
+ "@radix-ui/react-use-effect-event": ["@radix-ui/[email protected]", "", { "dependencies": { "@radix-ui/react-use-layout-effect": "1.1.1" }, "peerDependencies": { "@types/react": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react"] }, "sha512-Qp8WbZOBe+blgpuUT+lw2xheLP8q0oatc9UpmiemEICxGvFLYmHm9QowVZGHtJlGbS6A6yJ3iViad/2cVjnOiA=="],
+
+ "@radix-ui/react-use-escape-keydown": ["@radix-ui/[email protected]", "", { "dependencies": { "@radix-ui/react-use-callback-ref": "1.1.1" }, "peerDependencies": { "@types/react": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react"] }, "sha512-Il0+boE7w/XebUHyBjroE+DbByORGR9KKmITzbR7MyQ4akpORYP/ZmbhAr0DG7RmmBqoOnZdy2QlvajJ2QA59g=="],
+
+ "@radix-ui/react-use-layout-effect": ["@radix-ui/[email protected]", "", { "peerDependencies": { "@types/react": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react"] }, "sha512-RbJRS4UWQFkzHTTwVymMTUv8EqYhOp8dOOviLj2ugtTiXRaRQS7GLGxZTLL1jWhMeoSCf5zmcZkqTl9IiYfXcQ=="],
+
+ "@radix-ui/react-use-previous": ["@radix-ui/[email protected]", "", { "peerDependencies": { "@types/react": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react"] }, "sha512-2dHfToCj/pzca2Ck724OZ5L0EVrr3eHRNsG/b3xQJLA2hZpVCS99bLAX+hm1IHXDEnzU6by5z/5MIY794/a8NQ=="],
+
+ "@radix-ui/react-use-rect": ["@radix-ui/[email protected]", "", { "dependencies": { "@radix-ui/rect": "1.1.1" }, "peerDependencies": { "@types/react": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react"] }, "sha512-QTYuDesS0VtuHNNvMh+CjlKJ4LJickCMUAqjlE3+j8w+RlRpwyX3apEQKGFzbZGdo7XNG1tXa+bQqIE7HIXT2w=="],
+
+ "@radix-ui/react-use-size": ["@radix-ui/[email protected]", "", { "dependencies": { "@radix-ui/react-use-layout-effect": "1.1.1" }, "peerDependencies": { "@types/react": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react"] }, "sha512-ewrXRDTAqAXlkl6t/fkXWNAhFX9I+CkKlw6zjEwk86RSPKwZr3xpBRso655aqYafwtnbpHLj6toFzmd6xdVptQ=="],
+
+ "@radix-ui/react-visually-hidden": ["@radix-ui/[email protected]", "", { "dependencies": { "@radix-ui/react-primitive": "2.1.3" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-pzJq12tEaaIhqjbzpCuv/OypJY/BPavOofm+dbab+MHLajy277+1lLm6JFcGgF5eskJ6mquGirhXY2GD/8u8Ug=="],
+
+ "@radix-ui/rect": ["@radix-ui/[email protected]", "", {}, "sha512-HPwpGIzkl28mWyZqG52jiqDJ12waP11Pa1lGoiyUkIEuMLBP0oeK/C89esbXrxsky5we7dfd8U58nm0SgAWpVw=="],
+
+ "@swc/counter": ["@swc/[email protected]", "", {}, "sha512-e2BR4lsJkkRlKZ/qCHPw9ZaSxc0MVUd7gtbtaB7aMvHeJVYe8sOB8DBZkP2DtISHGSku9sCK6T6cnY0CtXrOCQ=="],
+
+ "@swc/helpers": ["@swc/[email protected]", "", { "dependencies": { "tslib": "^2.4.0" } }, "sha512-UoKGxQ3r5kYI9dALKJapMmuK+1zWM/H17Z1+iwnNmzcJRnfFuevZs375TA5rW31pu4BS4NoSy1fRsexDXfWn5w=="],
+
+ "@types/node": ["@types/[email protected]", "", { "dependencies": { "undici-types": "~6.21.0" } }, "sha512-dyh/xO2Fh5bYrfWaaqGrRQQGkNdmYw6AmaAUvYeUMNTWQtvb796ikLdmTchRmOlOiIJ1TDXfWgVx1QkUlQ6Hew=="],
+
+ "@types/prop-types": ["@types/[email protected]", "", {}, "sha512-F6bEyamV9jKGAFBEmlQnesRPGOQqS2+Uwi0Em15xenOxHaf2hv6L8YCVn3rPdPJOiJfPiCnLIRyvwVaqMY3MIw=="],
+
+ "@types/react": ["@types/[email protected]", "", { "dependencies": { "@types/prop-types": "*", "csstype": "^3.2.2" } }, "sha512-z9VXpC7MWrhfWipitjNdgCauoMLRdIILQsAEV+ZesIzBq/oUlxk0m3ApZuMFCXdnS4U7KrI+l3WRUEGQ8K1QKw=="],
+
+ "@types/react-dom": ["@types/[email protected]", "", { "peerDependencies": { "@types/react": "^18.0.0" } }, "sha512-MEe3UeoENYVFXzoXEWsvcpg6ZvlrFNlOQ7EOsvhI3CfAXwzPfO8Qwuxd40nepsYKqyyVQnTdEfv68q91yLcKrQ=="],
+
+ "any-promise": ["[email protected]", "", {}, "sha512-7UvmKalWRt1wgjL1RrGxoSJW/0QZFIegpeGvZG9kjp8vrRu55XTHbwnqq2GpXm9uLbcuhxm3IqX9OB4MZR1b2A=="],
+
+ "anymatch": ["[email protected]", "", { "dependencies": { "normalize-path": "^3.0.0", "picomatch": "^2.0.4" } }, "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw=="],
+
+ "arg": ["[email protected]", "", {}, "sha512-PYjyFOLKQ9y57JvQ6QLo8dAgNqswh8M1RMJYdQduT6xbWSgK36P/Z/v+p888pM69jMMfS8Xd8F6I1kQ/I9HUGg=="],
+
+ "aria-hidden": ["[email protected]", "", { "dependencies": { "tslib": "^2.0.0" } }, "sha512-ik3ZgC9dY/lYVVM++OISsaYDeg1tb0VtP5uL3ouh1koGOaUMDPpbFIei4JkFimWUFPn90sbMNMXQAIVOlnYKJA=="],
+
+ "autoprefixer": ["[email protected]", "", { "dependencies": { "browserslist": "^4.28.2", "caniuse-lite": "^1.0.30001787", "fraction.js": "^5.3.4", "picocolors": "^1.1.1", "postcss-value-parser": "^4.2.0" }, "peerDependencies": { "postcss": "^8.1.0" }, "bin": { "autoprefixer": "bin/autoprefixer" } }, "sha512-FMhOoZV4+qR6aTUALKX2rEqGG+oyATvwBt9IIzVR5rMa2HRWPkxf+P+PAJLD1I/H5/II+HuZcBJYEFBpq39ong=="],
+
+ "baseline-browser-mapping": ["[email protected]", "", { "bin": { "baseline-browser-mapping": "dist/cli.cjs" } }, "sha512-xjOFN16Ha1+Rz4nFYKqHU/LSB+gx/Vi3yQLX7r7sAW+Wa+8hhF2h4pvqTrTMc8+WcDBEunnUurr46Jvv0jk3Vg=="],
+
+ "binary-extensions": ["[email protected]", "", {}, "sha512-Ceh+7ox5qe7LJuLHoY0feh3pHuUDHAcRUeyL2VYghZwfpkNIy/+8Ocg0a3UuSoYzavmylwuLWQOf3hl0jjMMIw=="],
+
+ "braces": ["[email protected]", "", { "dependencies": { "fill-range": "^7.1.1" } }, "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA=="],
+
+ "browserslist": ["[email protected]", "", { "dependencies": { "baseline-browser-mapping": "^2.10.12", "caniuse-lite": "^1.0.30001782", "electron-to-chromium": "^1.5.328", "node-releases": "^2.0.36", "update-browserslist-db": "^1.2.3" }, "bin": { "browserslist": "cli.js" } }, "sha512-48xSriZYYg+8qXna9kwqjIVzuQxi+KYWp2+5nCYnYKPTr0LvD89Jqk2Or5ogxz0NUMfIjhh2lIUX/LyX9B4oIg=="],
+
+ "busboy": ["[email protected]", "", { "dependencies": { "streamsearch": "^1.1.0" } }, "sha512-8SFQbg/0hQ9xy3UNTB0YEnsNBbWfhf7RtnzpL7TkBiTBRfrQ9Fxcnz7VJsleJpyp6rVLvXiuORqjlHi5q+PYuA=="],
+
+ "camelcase-css": ["[email protected]", "", {}, "sha512-QOSvevhslijgYwRx6Rv7zKdMF8lbRmx+uQGx2+vDc+KI/eBnsy9kit5aj23AgGu3pa4t9AgwbnXWqS+iOY+2aA=="],
+
+ "caniuse-lite": ["[email protected]", "", {}, "sha512-hVLMUZFgR4JJ6ACt1uEESvQN1/dBVqPAKY0hgrV70eN3391K6juAfTjKZLKvOMsx8PxA7gsY1/tLMMTcfFLLpw=="],
+
+ "chokidar": ["[email protected]", "", { "dependencies": { "anymatch": "~3.1.2", "braces": "~3.0.2", "glob-parent": "~5.1.2", "is-binary-path": "~2.1.0", "is-glob": "~4.0.1", "normalize-path": "~3.0.0", "readdirp": "~3.6.0" }, "optionalDependencies": { "fsevents": "~2.3.2" } }, "sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw=="],
+
+ "class-variance-authority": ["[email protected]", "", { "dependencies": { "clsx": "^2.1.1" } }, "sha512-Ka+9Trutv7G8M6WT6SeiRWz792K5qEqIGEGzXKhAE6xOWAY6pPH8U+9IY3oCMv6kqTmLsv7Xh/2w2RigkePMsg=="],
+
+ "client-only": ["[email protected]", "", {}, "sha512-IV3Ou0jSMzZrd3pZ48nLkT9DA7Ag1pnPzaiQhpW7c3RbcqqzvzzVu+L8gfqMp/8IM2MQtSiqaCxrrcfu8I8rMA=="],
+
+ "clsx": ["[email protected]", "", {}, "sha512-eYm0QWBtUrBWZWG0d386OGAw16Z995PiOVo2B7bjWSbHedGl5e0ZWaq65kOGgUSNesEIDkB9ISbTg/JK9dhCZA=="],
+
+ "color": ["[email protected]", "", { "dependencies": { "color-convert": "^2.0.1", "color-string": "^1.9.0" } }, "sha512-1rXeuUUiGGrykh+CeBdu5Ie7OJwinCgQY0bc7GCRxy5xVHy+moaqkpL/jqQq0MtQOeYcrqEz4abc5f0KtU7W4A=="],
+
+ "color-convert": ["[email protected]", "", { "dependencies": { "color-name": "~1.1.4" } }, "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ=="],
+
+ "color-name": ["[email protected]", "", {}, "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA=="],
+
+ "color-string": ["[email protected]", "", { "dependencies": { "color-name": "^1.0.0", "simple-swizzle": "^0.2.2" } }, "sha512-shrVawQFojnZv6xM40anx4CkoDP+fZsw/ZerEMsW/pyzsRbElpsL/DBVW7q3ExxwusdNXI3lXpuhEZkzs8p5Eg=="],
+
+ "commander": ["[email protected]", "", {}, "sha512-NOKm8xhkzAjzFx8B2v5OAHT+u5pRQc2UCa2Vq9jYL/31o2wi9mxBA7LIFs3sV5VSC49z6pEhfbMULvShKj26WA=="],
+
+ "cssesc": ["[email protected]", "", { "bin": { "cssesc": "bin/cssesc" } }, "sha512-/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg=="],
+
+ "csstype": ["[email protected]", "", {}, "sha512-z1HGKcYy2xA8AGQfwrn0PAy+PB7X/GSj3UVJW9qKyn43xWa+gl5nXmU4qqLMRzWVLFC8KusUX8T/0kCiOYpAIQ=="],
+
+ "detect-libc": ["[email protected]", "", {}, "sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ=="],
+
+ "detect-node-es": ["[email protected]", "", {}, "sha512-ypdmJU/TbBby2Dxibuv7ZLW3Bs1QEmM7nHjEANfohJLvE0XVujisn1qPJcZxg+qDucsr+bP6fLD1rPS3AhJ7EQ=="],
+
+ "didyoumean": ["[email protected]", "", {}, "sha512-gxtyfqMg7GKyhQmb056K7M3xszy/myH8w+B4RT+QXBQsvAOdc3XymqDDPHx1BgPgsdAA5SIifona89YtRATDzw=="],
+
+ "dlv": ["[email protected]", "", {}, "sha512-+HlytyjlPKnIG8XuRG8WvmBP8xs8P71y+SKKS6ZXWoEgLuePxtDoUEiH7WkdePWrQ5JBpE6aoVqfZfJUQkjXwA=="],
+
+ "electron-to-chromium": ["[email protected]", "", {}, "sha512-NHlTIQDK8fmVwHwuIzmXYEJ1Ewq3D9wDNc0cWXxDGysP6Pb21giwGNkxiTifyKy/4SoPuN5l6GLP1W9Sv7zB2g=="],
+
+ "es-errors": ["[email protected]", "", {}, "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw=="],
+
+ "escalade": ["[email protected]", "", {}, "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA=="],
+
+ "fast-glob": ["[email protected]", "", { "dependencies": { "@nodelib/fs.stat": "^2.0.2", "@nodelib/fs.walk": "^1.2.3", "glob-parent": "^5.1.2", "merge2": "^1.3.0", "micromatch": "^4.0.8" } }, "sha512-7MptL8U0cqcFdzIzwOTHoilX9x5BrNqye7Z/LuC7kCMRio1EMSyqRK3BEAUD7sXRq4iT4AzTVuZdhgQ2TCvYLg=="],
+
+ "fastq": ["[email protected]", "", { "dependencies": { "reusify": "^1.0.4" } }, "sha512-GGToxJ/w1x32s/D2EKND7kTil4n8OVk/9mycTc4VDza13lOvpUZTGX3mFSCtV9ksdGBVzvsyAVLM6mHFThxXxw=="],
+
+ "fdir": ["[email protected]", "", { "peerDependencies": { "picomatch": "^3 || ^4" }, "optionalPeers": ["picomatch"] }, "sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg=="],
+
+ "fill-range": ["[email protected]", "", { "dependencies": { "to-regex-range": "^5.0.1" } }, "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg=="],
+
+ "fraction.js": ["[email protected]", "", {}, "sha512-1X1NTtiJphryn/uLQz3whtY6jK3fTqoE3ohKs0tT+Ujr1W59oopxmoEh7Lu5p6vBaPbgoM0bzveAW4Qi5RyWDQ=="],
+
+ "fsevents": ["[email protected]", "", { "os": "darwin" }, "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw=="],
+
+ "function-bind": ["[email protected]", "", {}, "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA=="],
+
+ "get-nonce": ["[email protected]", "", {}, "sha512-FJhYRoDaiatfEkUK8HKlicmu/3SGFD51q3itKDGoSTysQJBnfOcxU5GxnhE1E6soB76MbT0MBtnKJuXyAx+96Q=="],
+
+ "glob-parent": ["[email protected]", "", { "dependencies": { "is-glob": "^4.0.3" } }, "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A=="],
+
+ "hasown": ["[email protected]", "", { "dependencies": { "function-bind": "^1.1.2" } }, "sha512-ej4AhfhfL2Q2zpMmLo7U1Uv9+PyhIZpgQLGT1F9miIGmiCJIoCgSmczFdrc97mWT4kVY72KA+WnnhJ5pghSvSg=="],
+
+ "html-to-image": ["[email protected]", "", {}, "sha512-cuOPoI7WApyhBElTTb9oqsawRvZ0rHhaHwghRLlTuffoD1B2aDemlCruLeZrUIIdvG7gs9xeELEPm6PhuASqrg=="],
+
+ "is-arrayish": ["[email protected]", "", {}, "sha512-m6UrgzFVUYawGBh1dUsWR5M2Clqic9RVXC/9f8ceNlv2IcO9j9J/z8UoCLPqtsPBFNzEpfR3xftohbfqDx8EQA=="],
+
+ "is-binary-path": ["[email protected]", "", { "dependencies": { "binary-extensions": "^2.0.0" } }, "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw=="],
+
+ "is-core-module": ["[email protected]", "", { "dependencies": { "hasown": "^2.0.3" } }, "sha512-evOr8xfXKxE6qSR0hSXL2r3sd7ALj8+7jQEUvPYcm5sgZFdJ+AYzT6yNmJenvIYQBgIGwfwz08sL8zoL7yq2BA=="],
+
+ "is-extglob": ["[email protected]", "", {}, "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ=="],
+
+ "is-glob": ["[email protected]", "", { "dependencies": { "is-extglob": "^2.1.1" } }, "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg=="],
+
+ "is-number": ["[email protected]", "", {}, "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng=="],
+
+ "jiti": ["[email protected]", "", { "bin": { "jiti": "bin/jiti.js" } }, "sha512-/imKNG4EbWNrVjoNC/1H5/9GFy+tqjGBHCaSsN+P2RnPqjsLmv6UD3Ej+Kj8nBWaRAwyk7kK5ZUc+OEatnTR3A=="],
+
+ "lilconfig": ["[email protected]", "", {}, "sha512-/vlFKAoH5Cgt3Ie+JLhRbwOsCQePABiU3tJ1egGvyQ+33R/vcwM2Zl2QR/LzjsBeItPt3oSVXapn+m4nQDvpzw=="],
+
+ "lines-and-columns": ["[email protected]", "", {}, "sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg=="],
+
+ "lucide-react": ["[email protected]", "", { "peerDependencies": { "react": "^16.5.1 || ^17.0.0 || ^18.0.0 || ^19.0.0-rc" } }, "sha512-BVtq/DykVeIvRTJvRAgCsOwaGL8Un3Bxh8MbDxMhEWlZay3T4IpEKDEpwt5KZ0KJMHzgm6jrltxlT5eXOWXDHg=="],
+
+ "merge2": ["[email protected]", "", {}, "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg=="],
+
+ "micromatch": ["[email protected]", "", { "dependencies": { "braces": "^3.0.3", "picomatch": "^2.3.1" } }, "sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA=="],
+
+ "mz": ["[email protected]", "", { "dependencies": { "any-promise": "^1.0.0", "object-assign": "^4.0.1", "thenify-all": "^1.0.0" } }, "sha512-z81GNO7nnYMEhrGh9LeymoE4+Yr0Wn5McHIZMK5cfQCl+NDX08sCZgUc9/6MHni9IWuFLm1Z3HTCXu2z9fN62Q=="],
+
+ "nanoid": ["[email protected]", "", { "bin": { "nanoid": "bin/nanoid.cjs" } }, "sha512-ZB9RH/39qpq5Vu6Y+NmUaFhQR6pp+M2Xt76XBnEwDaGcVAqhlvxrl3B2bKS5D3NH3QR76v3aSrKaF/Kiy7lEtQ=="],
+
+ "next": ["[email protected]", "", { "dependencies": { "@next/env": "15.0.3", "@swc/counter": "0.1.3", "@swc/helpers": "0.5.13", "busboy": "1.6.0", "caniuse-lite": "^1.0.30001579", "postcss": "8.4.31", "styled-jsx": "5.1.6" }, "optionalDependencies": { "@next/swc-darwin-arm64": "15.0.3", "@next/swc-darwin-x64": "15.0.3", "@next/swc-linux-arm64-gnu": "15.0.3", "@next/swc-linux-arm64-musl": "15.0.3", "@next/swc-linux-x64-gnu": "15.0.3", "@next/swc-linux-x64-musl": "15.0.3", "@next/swc-win32-arm64-msvc": "15.0.3", "@next/swc-win32-x64-msvc": "15.0.3", "sharp": "^0.33.5" }, "peerDependencies": { "@opentelemetry/api": "^1.1.0", "@playwright/test": "^1.41.2", "babel-plugin-react-compiler": "*", "react": "^18.2.0 || 19.0.0-rc-66855b96-20241106", "react-dom": "^18.2.0 || 19.0.0-rc-66855b96-20241106", "sass": "^1.3.0" }, "optionalPeers": ["@opentelemetry/api", "@playwright/test", "babel-plugin-react-compiler", "sass"], "bin": { "next": "dist/bin/next" } }, "sha512-ontCbCRKJUIoivAdGB34yCaOcPgYXr9AAkV/IwqFfWWTXEPUgLYkSkqBhIk9KK7gGmgjc64B+RdoeIDM13Irnw=="],
+
+ "node-releases": ["[email protected]", "", {}, "sha512-5WUyunoPMsvvEhS8AxHtRzP+oA8UCkJ7YRxatWKjngndhDGLiqEVAQKWjFAiAiuL8zMRGzGSJxFnLetoa43qGQ=="],
+
+ "normalize-path": ["[email protected]", "", {}, "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA=="],
+
+ "object-assign": ["[email protected]", "", {}, "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg=="],
+
+ "object-hash": ["[email protected]", "", {}, "sha512-RSn9F68PjH9HqtltsSnqYC1XXoWe9Bju5+213R98cNGttag9q9yAOTzdbsqvIa7aNm5WffBZFpWYr2aWrklWAw=="],
+
+ "path-parse": ["[email protected]", "", {}, "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw=="],
+
+ "picocolors": ["[email protected]", "", {}, "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA=="],
+
+ "picomatch": ["[email protected]", "", {}, "sha512-V7+vQEJ06Z+c5tSye8S+nHUfI51xoXIXjHQ99cQtKUkQqqO1kO/KCJUfZXuB47h/YBlDhah2H3hdUGXn8ie0oA=="],
+
+ "pify": ["[email protected]", "", {}, "sha512-udgsAY+fTnvv7kI7aaxbqwWNb0AHiB0qBO89PZKPkoTmGOgdbrHDKD+0B2X4uTfJ/FT1R09r9gTsjUjNJotuog=="],
+
+ "pirates": ["[email protected]", "", {}, "sha512-TfySrs/5nm8fQJDcBDuUng3VOUKsd7S+zqvbOTiGXHfxX4wK31ard+hoNuvkicM/2YFzlpDgABOevKSsB4G/FA=="],
+
+ "postcss": ["[email protected]", "", { "dependencies": { "nanoid": "^3.3.11", "picocolors": "^1.1.1", "source-map-js": "^1.2.1" } }, "sha512-SoSL4+OSEtR99LHFZQiJLkT59C5B1amGO1NzTwj7TT1qCUgUO6hxOvzkOYxD+vMrXBM3XJIKzokoERdqQq/Zmg=="],
+
+ "postcss-import": ["[email protected]", "", { "dependencies": { "postcss-value-parser": "^4.0.0", "read-cache": "^1.0.0", "resolve": "^1.1.7" }, "peerDependencies": { "postcss": "^8.0.0" } }, "sha512-hpr+J05B2FVYUAXHeK1YyI267J/dDDhMU6B6civm8hSY1jYJnBXxzKDKDswzJmtLHryrjhnDjqqp/49t8FALew=="],
+
+ "postcss-js": ["[email protected]", "", { "dependencies": { "camelcase-css": "^2.0.1" }, "peerDependencies": { "postcss": "^8.4.21" } }, "sha512-oIAOTqgIo7q2EOwbhb8UalYePMvYoIeRY2YKntdpFQXNosSu3vLrniGgmH9OKs/qAkfoj5oB3le/7mINW1LCfw=="],
+
+ "postcss-load-config": ["[email protected]", "", { "dependencies": { "lilconfig": "^3.1.1" }, "peerDependencies": { "jiti": ">=1.21.0", "postcss": ">=8.0.9", "tsx": "^4.8.1", "yaml": "^2.4.2" }, "optionalPeers": ["jiti", "postcss", "tsx", "yaml"] }, "sha512-oPtTM4oerL+UXmx+93ytZVN82RrlY/wPUV8IeDxFrzIjXOLF1pN+EmKPLbubvKHT2HC20xXsCAH2Z+CKV6Oz/g=="],
+
+ "postcss-nested": ["[email protected]", "", { "dependencies": { "postcss-selector-parser": "^6.1.1" }, "peerDependencies": { "postcss": "^8.2.14" } }, "sha512-HQbt28KulC5AJzG+cZtj9kvKB93CFCdLvog1WFLf1D+xmMvPGlBstkpTEZfK5+AN9hfJocyBFCNiqyS48bpgzQ=="],
+
+ "postcss-selector-parser": ["[email protected]", "", { "dependencies": { "cssesc": "^3.0.0", "util-deprecate": "^1.0.2" } }, "sha512-Q8qQfPiZ+THO/3ZrOrO0cJJKfpYCagtMUkXbnEfmgUjwXg6z/WBeOyS9APBBPCTSiDV+s4SwQGu8yFsiMRIudg=="],
+
+ "postcss-value-parser": ["[email protected]", "", {}, "sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ=="],
+
+ "queue-microtask": ["[email protected]", "", {}, "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A=="],
+
+ "react": ["[email protected]", "", {}, "sha512-klH7xkT71SxRCx4hb1hly5FJB21Hz0ACyxbXYAECEqssUjtJeFUAaI2U1DgJAzkGEnvEm3DkxuBchMC/9K4ipg=="],
+
+ "react-dom": ["[email protected]", "", { "dependencies": { "scheduler": "0.25.0-rc-66855b96-20241106" }, "peerDependencies": { "react": "19.0.0-rc-66855b96-20241106" } }, "sha512-D25vdaytZ1wFIRiwNU98NPQ/upS2P8Co4/oNoa02PzHbh8deWdepjm5qwZM/46OdSiGv4WSWwxP55RO9obqJEQ=="],
+
+ "react-remove-scroll": ["[email protected]", "", { "dependencies": { "react-remove-scroll-bar": "^2.3.7", "react-style-singleton": "^2.2.3", "tslib": "^2.1.0", "use-callback-ref": "^1.3.3", "use-sidecar": "^1.1.3" }, "peerDependencies": { "@types/react": "*", "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react"] }, "sha512-Iqb9NjCCTt6Hf+vOdNIZGdTiH1QSqr27H/Ek9sv/a97gfueI/5h1s3yRi1nngzMUaOOToin5dI1dXKdXiF+u0Q=="],
+
+ "react-remove-scroll-bar": ["[email protected]", "", { "dependencies": { "react-style-singleton": "^2.2.2", "tslib": "^2.0.0" }, "peerDependencies": { "@types/react": "*", "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0" }, "optionalPeers": ["@types/react"] }, "sha512-9r+yi9+mgU33AKcj6IbT9oRCO78WriSj6t/cF8DWBZJ9aOGPOTEDvdUDz1FwKim7QXWwmHqtdHnRJfhAxEG46Q=="],
+
+ "react-style-singleton": ["[email protected]", "", { "dependencies": { "get-nonce": "^1.0.0", "tslib": "^2.0.0" }, "peerDependencies": { "@types/react": "*", "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react"] }, "sha512-b6jSvxvVnyptAiLjbkWLE/lOnR4lfTtDAl+eUC7RZy+QQWc6wRzIV2CE6xBuMmDxc2qIihtDCZD5NPOFl7fRBQ=="],
+
+ "read-cache": ["[email protected]", "", { "dependencies": { "pify": "^2.3.0" } }, "sha512-Owdv/Ft7IjOgm/i0xvNDZ1LrRANRfew4b2prF3OWMQLxLfu3bS8FVhCsrSCMK4lR56Y9ya+AThoTpDCTxCmpRA=="],
+
+ "readdirp": ["[email protected]", "", { "dependencies": { "picomatch": "^2.2.1" } }, "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA=="],
+
+ "resolve": ["[email protected]", "", { "dependencies": { "es-errors": "^1.3.0", "is-core-module": "^2.16.1", "path-parse": "^1.0.7", "supports-preserve-symlinks-flag": "^1.0.0" }, "bin": { "resolve": "bin/resolve" } }, "sha512-TyeJ1zif53BPfHootBGwPRYT1RUt6oGWsaQr8UyZW/eAm9bKoijtvruSDEmZHm92CwS9nj7/fWttqPCgzep8CA=="],
+
+ "reusify": ["[email protected]", "", {}, "sha512-g6QUff04oZpHs0eG5p83rFLhHeV00ug/Yf9nZM6fLeUrPguBTkTQOdpAWWspMh55TZfVQDPaN3NQJfbVRAxdIw=="],
+
+ "run-parallel": ["[email protected]", "", { "dependencies": { "queue-microtask": "^1.2.2" } }, "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA=="],
+
+ "scheduler": ["[email protected]", "", {}, "sha512-HQXp/Mnp/MMRSXMQF7urNFla+gmtXW/Gr1KliuR0iboTit4KvZRY8KYaq5ccCTAOJiUqQh2rE2F3wgUekmgdlA=="],
+
+ "semver": ["[email protected]", "", { "bin": { "semver": "bin/semver.js" } }, "sha512-AcM7dV/5ul4EekoQ29Agm5vri8JNqRyj39o0qpX6vDF2GZrtutZl5RwgD1XnZjiTAfncsJhMI48QQH3sN87YNA=="],
+
+ "sharp": ["[email protected]", "", { "dependencies": { "color": "^4.2.3", "detect-libc": "^2.0.3", "semver": "^7.6.3" }, "optionalDependencies": { "@img/sharp-darwin-arm64": "0.33.5", "@img/sharp-darwin-x64": "0.33.5", "@img/sharp-libvips-darwin-arm64": "1.0.4", "@img/sharp-libvips-darwin-x64": "1.0.4", "@img/sharp-libvips-linux-arm": "1.0.5", "@img/sharp-libvips-linux-arm64": "1.0.4", "@img/sharp-libvips-linux-s390x": "1.0.4", "@img/sharp-libvips-linux-x64": "1.0.4", "@img/sharp-libvips-linuxmusl-arm64": "1.0.4", "@img/sharp-libvips-linuxmusl-x64": "1.0.4", "@img/sharp-linux-arm": "0.33.5", "@img/sharp-linux-arm64": "0.33.5", "@img/sharp-linux-s390x": "0.33.5", "@img/sharp-linux-x64": "0.33.5", "@img/sharp-linuxmusl-arm64": "0.33.5", "@img/sharp-linuxmusl-x64": "0.33.5", "@img/sharp-wasm32": "0.33.5", "@img/sharp-win32-ia32": "0.33.5", "@img/sharp-win32-x64": "0.33.5" } }, "sha512-haPVm1EkS9pgvHrQ/F3Xy+hgcuMV0Wm9vfIBSiwZ05k+xgb0PkBQpGsAA/oWdDobNaZTH5ppvHtzCFbnSEwHVw=="],
+
+ "simple-swizzle": ["[email protected]", "", { "dependencies": { "is-arrayish": "^0.3.1" } }, "sha512-nAu1WFPQSMNr2Zn9PGSZK9AGn4t/y97lEm+MXTtUDwfP0ksAIX4nO+6ruD9Jwut4C49SB1Ws+fbXsm/yScWOHw=="],
+
+ "sonner": ["[email protected]", "", { "peerDependencies": { "react": "^18.0.0 || ^19.0.0 || ^19.0.0-rc", "react-dom": "^18.0.0 || ^19.0.0 || ^19.0.0-rc" } }, "sha512-DIS8z4PfJRbIyfVFDVnK9rO3eYDtse4Omcm6bt0oEr5/jtLgysmjuBl1frJ9E/EQZrFmKx2A8m/s5s9CRXIzhw=="],
+
+ "source-map-js": ["[email protected]", "", {}, "sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA=="],
+
+ "streamsearch": ["[email protected]", "", {}, "sha512-Mcc5wHehp9aXz1ax6bZUyY5afg9u2rv5cqQI3mRrYkGC8rW2hM02jWuwjtL++LS5qinSyhj2QfLyNsuc+VsExg=="],
+
+ "styled-jsx": ["[email protected]", "", { "dependencies": { "client-only": "0.0.1" }, "peerDependencies": { "@babel/core": "*", "babel-plugin-macros": "*", "react": ">= 16.8.0 || 17.x.x || ^18.0.0-0 || ^19.0.0-0" }, "optionalPeers": ["@babel/core", "babel-plugin-macros"] }, "sha512-qSVyDTeMotdvQYoHWLNGwRFJHC+i+ZvdBRYosOFgC+Wg1vx4frN2/RG/NA7SYqqvKNLf39P2LSRA2pu6n0XYZA=="],
+
+ "sucrase": ["[email protected]", "", { "dependencies": { "@jridgewell/gen-mapping": "^0.3.2", "commander": "^4.0.0", "lines-and-columns": "^1.1.6", "mz": "^2.7.0", "pirates": "^4.0.1", "tinyglobby": "^0.2.11", "ts-interface-checker": "^0.1.9" }, "bin": { "sucrase": "bin/sucrase", "sucrase-node": "bin/sucrase-node" } }, "sha512-DhuTmvZWux4H1UOnWMB3sk0sbaCVOoQZjv8u1rDoTV0HTdGem9hkAZtl4JZy8P2z4Bg0nT+YMeOFyVr4zcG5Tw=="],
+
+ "supports-preserve-symlinks-flag": ["[email protected]", "", {}, "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w=="],
+
+ "tailwind-merge": ["[email protected]", "", {}, "sha512-Oo6tHdpZsGpkKG88HJ8RR1rg/RdnEkQEfMoEk2x1XRI3F1AxeU+ijRXpiVUF4UbLfcxxRGw6TbUINKYdWVsQTQ=="],
+
+ "tailwindcss": ["[email protected]", "", { "dependencies": { "@alloc/quick-lru": "^5.2.0", "arg": "^5.0.2", "chokidar": "^3.6.0", "didyoumean": "^1.2.2", "dlv": "^1.1.3", "fast-glob": "^3.3.2", "glob-parent": "^6.0.2", "is-glob": "^4.0.3", "jiti": "^1.21.7", "lilconfig": "^3.1.3", "micromatch": "^4.0.8", "normalize-path": "^3.0.0", "object-hash": "^3.0.0", "picocolors": "^1.1.1", "postcss": "^8.4.47", "postcss-import": "^15.1.0", "postcss-js": "^4.0.1", "postcss-load-config": "^4.0.2 || ^5.0 || ^6.0", "postcss-nested": "^6.2.0", "postcss-selector-parser": "^6.1.2", "resolve": "^1.22.8", "sucrase": "^3.35.0" }, "bin": { "tailwind": "lib/cli.js", "tailwindcss": "lib/cli.js" } }, "sha512-3ofp+LL8E+pK/JuPLPggVAIaEuhvIz4qNcf3nA1Xn2o/7fb7s/TYpHhwGDv1ZU3PkBluUVaF8PyCHcm48cKLWQ=="],
+
+ "tailwindcss-animate": ["[email protected]", "", { "peerDependencies": { "tailwindcss": ">=3.0.0 || insiders" } }, "sha512-bl6mpH3T7I3UFxuvDEXLxy/VuFxBk5bbzplh7tXI68mwMokNYd1t9qPBHlnyTwfa4JGC4zP516I1hYYtQ/vspA=="],
+
+ "thenify": ["[email protected]", "", { "dependencies": { "any-promise": "^1.0.0" } }, "sha512-RVZSIV5IG10Hk3enotrhvz0T9em6cyHBLkH/YAZuKqd8hRkKhSfCGIcP2KUY0EPxndzANBmNllzWPwak+bheSw=="],
+
+ "thenify-all": ["[email protected]", "", { "dependencies": { "thenify": ">= 3.1.0 < 4" } }, "sha512-RNxQH/qI8/t3thXJDwcstUO4zeqo64+Uy/+sNVRBx4Xn2OX+OZ9oP+iJnNFqplFra2ZUVeKCSa2oVWi3T4uVmA=="],
+
+ "tinyglobby": ["[email protected]", "", { "dependencies": { "fdir": "^6.5.0", "picomatch": "^4.0.4" } }, "sha512-pn99VhoACYR8nFHhxqix+uvsbXineAasWm5ojXoN8xEwK5Kd3/TrhNn1wByuD52UxWRLy8pu+kRMniEi6Eq9Zg=="],
+
+ "to-regex-range": ["[email protected]", "", { "dependencies": { "is-number": "^7.0.0" } }, "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ=="],
+
+ "ts-interface-checker": ["[email protected]", "", {}, "sha512-Y/arvbn+rrz3JCKl9C4kVNfTfSm2/mEp5FSz5EsZSANGPSlQrpRI5M4PKF+mJnE52jOO90PnPSc3Ur3bTQw0gA=="],
+
+ "tslib": ["[email protected]", "", {}, "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w=="],
+
+ "typescript": ["[email protected]", "", { "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" } }, "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw=="],
+
+ "undici-types": ["[email protected]", "", {}, "sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ=="],
+
+ "update-browserslist-db": ["[email protected]", "", { "dependencies": { "escalade": "^3.2.0", "picocolors": "^1.1.1" }, "peerDependencies": { "browserslist": ">= 4.21.0" }, "bin": { "update-browserslist-db": "cli.js" } }, "sha512-Js0m9cx+qOgDxo0eMiFGEueWztz+d4+M3rGlmKPT+T4IS/jP4ylw3Nwpu6cpTTP8R1MAC1kF4VbdLt3ARf209w=="],
+
+ "use-callback-ref": ["[email protected]", "", { "dependencies": { "tslib": "^2.0.0" }, "peerDependencies": { "@types/react": "*", "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react"] }, "sha512-jQL3lRnocaFtu3V00JToYz/4QkNWswxijDaCVNZRiRTO3HQDLsdu1ZtmIUvV4yPp+rvWm5j0y0TG/S61cuijTg=="],
+
+ "use-sidecar": ["[email protected]", "", { "dependencies": { "detect-node-es": "^1.1.0", "tslib": "^2.0.0" }, "peerDependencies": { "@types/react": "*", "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react"] }, "sha512-Fedw0aZvkhynoPYlA5WXrMCAMm+nSWdZt6lzJQ7Ok8S6Q+VsHmHpRWndVRJ8Be0ZbkfPc5LRYH+5XrzXcEeLRQ=="],
+
+ "util-deprecate": ["[email protected]", "", {}, "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw=="],
+
+ "@radix-ui/react-collection/@radix-ui/react-slot": ["@radix-ui/[email protected]", "", { "dependencies": { "@radix-ui/react-compose-refs": "1.1.2" }, "peerDependencies": { "@types/react": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react"] }, "sha512-aeNmHnBxbi2St0au6VBVC7JXFlhLlOnvIIlePNniyUNAClzmtAUEY8/pBiK3iHjufOlwA+c20/8jngo7xcrg8A=="],
+
+ "@radix-ui/react-dialog/@radix-ui/react-slot": ["@radix-ui/[email protected]", "", { "dependencies": { "@radix-ui/react-compose-refs": "1.1.2" }, "peerDependencies": { "@types/react": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react"] }, "sha512-aeNmHnBxbi2St0au6VBVC7JXFlhLlOnvIIlePNniyUNAClzmtAUEY8/pBiK3iHjufOlwA+c20/8jngo7xcrg8A=="],
+
+ "@radix-ui/react-label/@radix-ui/react-primitive": ["@radix-ui/[email protected]", "", { "dependencies": { "@radix-ui/react-slot": "1.2.4" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-9hQc4+GNVtJAIEPEqlYqW5RiYdrr8ea5XQ0ZOnD6fgru+83kqT15mq2OCcbe8KnjRZl5vF3ks69AKz3kh1jrhg=="],
+
+ "@radix-ui/react-menu/@radix-ui/react-slot": ["@radix-ui/[email protected]", "", { "dependencies": { "@radix-ui/react-compose-refs": "1.1.2" }, "peerDependencies": { "@types/react": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react"] }, "sha512-aeNmHnBxbi2St0au6VBVC7JXFlhLlOnvIIlePNniyUNAClzmtAUEY8/pBiK3iHjufOlwA+c20/8jngo7xcrg8A=="],
+
+ "@radix-ui/react-popover/@radix-ui/react-slot": ["@radix-ui/[email protected]", "", { "dependencies": { "@radix-ui/react-compose-refs": "1.1.2" }, "peerDependencies": { "@types/react": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react"] }, "sha512-aeNmHnBxbi2St0au6VBVC7JXFlhLlOnvIIlePNniyUNAClzmtAUEY8/pBiK3iHjufOlwA+c20/8jngo7xcrg8A=="],
+
+ "@radix-ui/react-primitive/@radix-ui/react-slot": ["@radix-ui/[email protected]", "", { "dependencies": { "@radix-ui/react-compose-refs": "1.1.2" }, "peerDependencies": { "@types/react": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react"] }, "sha512-aeNmHnBxbi2St0au6VBVC7JXFlhLlOnvIIlePNniyUNAClzmtAUEY8/pBiK3iHjufOlwA+c20/8jngo7xcrg8A=="],
+
+ "@radix-ui/react-select/@radix-ui/react-slot": ["@radix-ui/[email protected]", "", { "dependencies": { "@radix-ui/react-compose-refs": "1.1.2" }, "peerDependencies": { "@types/react": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react"] }, "sha512-aeNmHnBxbi2St0au6VBVC7JXFlhLlOnvIIlePNniyUNAClzmtAUEY8/pBiK3iHjufOlwA+c20/8jngo7xcrg8A=="],
+
+ "@radix-ui/react-tooltip/@radix-ui/react-slot": ["@radix-ui/[email protected]", "", { "dependencies": { "@radix-ui/react-compose-refs": "1.1.2" }, "peerDependencies": { "@types/react": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react"] }, "sha512-aeNmHnBxbi2St0au6VBVC7JXFlhLlOnvIIlePNniyUNAClzmtAUEY8/pBiK3iHjufOlwA+c20/8jngo7xcrg8A=="],
+
+ "chokidar/glob-parent": ["[email protected]", "", { "dependencies": { "is-glob": "^4.0.1" } }, "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow=="],
+
+ "fast-glob/glob-parent": ["[email protected]", "", { "dependencies": { "is-glob": "^4.0.1" } }, "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow=="],
+
+ "next/postcss": ["[email protected]", "", { "dependencies": { "nanoid": "^3.3.6", "picocolors": "^1.0.0", "source-map-js": "^1.0.2" } }, "sha512-PS08Iboia9mts/2ygV3eLpY5ghnUcfLV/EXTOW1E2qYxJKGGBUtNjN76FYHnMs36RmARn41bC0AZmn+rR0OVpQ=="],
+
+ "tinyglobby/picomatch": ["[email protected]", "", {}, "sha512-QP88BAKvMam/3NxH6vj2o21R6MjxZUAd6nlwAS/pnGvN9IVLocLHxGYIzFhg6fUQ+5th6P4dv4eW9jX3DSIj7A=="],
+ }
+}
diff --git a/skills/app-store-screenshots/template/components.json b/skills/app-store-screenshots/template/components.json
new file mode 100644
index 0000000..405a08c
--- /dev/null
+++ b/skills/app-store-screenshots/template/components.json
@@ -0,0 +1,21 @@
+{
+ "$schema": "https://ui.shadcn.com/schema.json",
+ "style": "new-york",
+ "rsc": true,
+ "tsx": true,
+ "tailwind": {
+ "config": "tailwind.config.ts",
+ "css": "src/app/globals.css",
+ "baseColor": "neutral",
+ "cssVariables": true,
+ "prefix": ""
+ },
+ "aliases": {
+ "components": "@/components",
+ "utils": "@/lib/utils",
+ "ui": "@/components/ui",
+ "lib": "@/lib",
+ "hooks": "@/hooks"
+ },
+ "iconLibrary": "lucide"
+}
diff --git a/skills/app-store-screenshots/template/next.config.mjs b/skills/app-store-screenshots/template/next.config.mjs
new file mode 100644
index 0000000..61cd5ed
--- /dev/null
+++ b/skills/app-store-screenshots/template/next.config.mjs
@@ -0,0 +1,6 @@
+/** @type {import('next').NextConfig} */
+const nextConfig = {
+ reactStrictMode: false,
+};
+
+export default nextConfig;
diff --git a/skills/app-store-screenshots/template/package.json b/skills/app-store-screenshots/template/package.json
new file mode 100644
index 0000000..21e1526
--- /dev/null
+++ b/skills/app-store-screenshots/template/package.json
@@ -0,0 +1,42 @@
+{
+ "name": "app-store-screenshots",
+ "version": "0.1.0",
+ "private": true,
+ "scripts": {
+ "dev": "next dev",
+ "build": "next build",
+ "start": "next start"
+ },
+ "dependencies": {
+ "@dnd-kit/core": "^6.1.0",
+ "@dnd-kit/sortable": "^8.0.0",
+ "@dnd-kit/utilities": "^3.2.2",
+ "@radix-ui/react-dialog": "^1.1.2",
+ "@radix-ui/react-dropdown-menu": "^2.1.2",
+ "@radix-ui/react-label": "^2.1.0",
+ "@radix-ui/react-popover": "^1.1.2",
+ "@radix-ui/react-select": "^2.1.2",
+ "@radix-ui/react-slot": "^1.1.0",
+ "@radix-ui/react-tabs": "^1.1.1",
+ "@radix-ui/react-tooltip": "^1.1.4",
+ "class-variance-authority": "^0.7.0",
+ "clsx": "^2.1.1",
+ "html-to-image": "^1.11.11",
+ "lucide-react": "^0.460.0",
+ "next": "15.0.3",
+ "react": "19.0.0-rc-66855b96-20241106",
+ "react-dom": "19.0.0-rc-66855b96-20241106",
+ "sonner": "^1.7.0",
+ "tailwind-merge": "^2.5.4",
+ "tailwindcss-animate": "^1.0.7"
+ },
+ "devDependencies": {
+ "@types/node": "^22",
+ "@types/react": "^18",
+ "@types/react-dom": "^18",
+ "autoprefixer": "^10.4.20",
+ "postcss": "^8.4.49",
+ "tailwindcss": "^3.4.15",
+ "typescript": "^5.6.3"
+ }
+}
diff --git a/skills/app-store-screenshots/template/postcss.config.mjs b/skills/app-store-screenshots/template/postcss.config.mjs
new file mode 100644
index 0000000..2aa7205
--- /dev/null
+++ b/skills/app-store-screenshots/template/postcss.config.mjs
@@ -0,0 +1,6 @@
+export default {
+ plugins: {
+ tailwindcss: {},
+ autoprefixer: {},
+ },
+};
diff --git a/skills/app-store-screenshots/template/public/mockup.png b/skills/app-store-screenshots/template/public/mockup.png
new file mode 100644
index 0000000..07c4a2a
Binary files /dev/null and b/skills/app-store-screenshots/template/public/mockup.png differ
diff --git a/skills/app-store-screenshots/template/public/screenshots/android/phone/en/.gitkeep b/skills/app-store-screenshots/template/public/screenshots/android/phone/en/.gitkeep
new file mode 100644
index 0000000..e69de29
diff --git a/skills/app-store-screenshots/template/public/screenshots/apple/ipad/en/.gitkeep b/skills/app-store-screenshots/template/public/screenshots/apple/ipad/en/.gitkeep
new file mode 100644
index 0000000..e69de29
diff --git a/skills/app-store-screenshots/template/public/screenshots/apple/iphone/en/.gitkeep b/skills/app-store-screenshots/template/public/screenshots/apple/iphone/en/.gitkeep
new file mode 100644
index 0000000..e69de29
diff --git a/skills/app-store-screenshots/template/src/app/globals.css b/skills/app-store-screenshots/template/src/app/globals.css
new file mode 100644
index 0000000..c1d8c31
--- /dev/null
+++ b/skills/app-store-screenshots/template/src/app/globals.css
@@ -0,0 +1,66 @@
+@tailwind base;
+@tailwind components;
+@tailwind utilities;
+
+@layer base {
+ :root {
+ --background: 0 0% 100%;
+ --foreground: 0 0% 9%;
+ --card: 0 0% 100%;
+ --card-foreground: 0 0% 9%;
+ --popover: 0 0% 100%;
+ --popover-foreground: 0 0% 9%;
+ --primary: 240 5% 10%;
+ --primary-foreground: 0 0% 98%;
+ --secondary: 240 5% 96%;
+ --secondary-foreground: 240 6% 10%;
+ --muted: 240 5% 96%;
+ --muted-foreground: 240 4% 46%;
+ --accent: 240 5% 96%;
+ --accent-foreground: 240 6% 10%;
+ --destructive: 0 84% 60%;
+ --destructive-foreground: 0 0% 98%;
+ --border: 240 6% 90%;
+ --input: 240 6% 90%;
+ --ring: 240 5% 65%;
+ --radius: 0.5rem;
+ }
+
+ .dark {
+ --background: 240 10% 4%;
+ --foreground: 0 0% 98%;
+ --card: 240 10% 4%;
+ --card-foreground: 0 0% 98%;
+ --popover: 240 10% 4%;
+ --popover-foreground: 0 0% 98%;
+ --primary: 0 0% 98%;
+ --primary-foreground: 240 6% 10%;
+ --secondary: 240 4% 16%;
+ --secondary-foreground: 0 0% 98%;
+ --muted: 240 4% 16%;
+ --muted-foreground: 240 5% 65%;
+ --accent: 240 4% 16%;
+ --accent-foreground: 0 0% 98%;
+ --destructive: 0 63% 31%;
+ --destructive-foreground: 0 0% 98%;
+ --border: 240 4% 16%;
+ --input: 240 4% 16%;
+ --ring: 240 5% 84%;
+ }
+}
+
+@layer base {
+ * {
+ @apply border-border;
+ }
+ body {
+ @apply bg-background text-foreground;
+ -webkit-font-smoothing: antialiased;
+ -moz-osx-font-smoothing: grayscale;
+ }
+
+ [contenteditable]:empty::before {
+ content: attr(data-placeholder);
+ opacity: 0.4;
+ }
+}
diff --git a/skills/app-store-screenshots/template/src/app/layout.tsx b/skills/app-store-screenshots/template/src/app/layout.tsx
new file mode 100644
index 0000000..dd21acf
--- /dev/null
+++ b/skills/app-store-screenshots/template/src/app/layout.tsx
@@ -0,0 +1,18 @@
+import type { Metadata } from "next";
+import { Inter } from "next/font/google";
+import "./globals.css";
+
+const font = Inter({ subsets: ["latin"] });
+
+export const metadata: Metadata = {
+ title: "App Store Screenshots",
+ description: "Design and export App Store + Google Play screenshots.",
+};
+
+export default function RootLayout({ children }: { children: React.ReactNode }) {
+ return (
+ <html lang="en">
+ <body className={font.className}>{children}</body>
+ </html>
+ );
+}
diff --git a/skills/app-store-screenshots/template/src/app/page.tsx b/skills/app-store-screenshots/template/src/app/page.tsx
new file mode 100644
index 0000000..a23984c
--- /dev/null
+++ b/skills/app-store-screenshots/template/src/app/page.tsx
@@ -0,0 +1,5 @@
+import { ScreenshotEditor } from "@/components/editor/screenshot-editor";
+
+export default function Page() {
+ return <ScreenshotEditor />;
+}
diff --git a/skills/app-store-screenshots/template/src/components/editor/device-frames.tsx b/skills/app-store-screenshots/template/src/components/editor/device-frames.tsx
new file mode 100644
index 0000000..342ad0b
--- /dev/null
+++ b/skills/app-store-screenshots/template/src/components/editor/device-frames.tsx
@@ -0,0 +1,290 @@
+"use client";
+import * as React from "react";
+import { PHONE_SCREEN } from "@/lib/constants";
+import { img } from "@/lib/image-cache";
+
+type FrameProps = {
+ src: string;
+ alt?: string;
+ style?: React.CSSProperties;
+};
+
+// iPhone — uses pre-measured mockup.png overlay
+export function Phone({ src, alt = "", style }: FrameProps) {
+ return (
+ <div style={{ position: "relative", aspectRatio: "1022 / 2082", ...style }}>
+ <img
+ src={img("/mockup.png")}
+ alt=""
+ style={{ display: "block", width: "100%", height: "100%" }}
+ draggable={false}
+ />
+ <div
+ style={{
+ position: "absolute",
+ zIndex: 10,
+ overflow: "hidden",
+ left: `${PHONE_SCREEN.L}%`,
+ top: `${PHONE_SCREEN.T}%`,
+ width: `${PHONE_SCREEN.W}%`,
+ height: `${PHONE_SCREEN.H}%`,
+ borderRadius: `${PHONE_SCREEN.RX}% / ${PHONE_SCREEN.RY}%`,
+ background: "#111",
+ }}
+ >
+ {src ? (
+ <img
+ src={img(src)}
+ alt={alt}
+ style={{ display: "block", width: "100%", height: "100%", objectFit: "cover", objectPosition: "top" }}
+ draggable={false}
+ />
+ ) : (
+ <EmptySlot />
+ )}
+ </div>
+ </div>
+ );
+}
+
+export function AndroidPhone({ src, alt = "", style }: FrameProps) {
+ return (
+ <div style={{ position: "relative", aspectRatio: "9 / 19.5", ...style }}>
+ <div
+ style={{
+ width: "100%",
+ height: "100%",
+ borderRadius: "8% / 4%",
+ background: "linear-gradient(160deg, #2a2a2e 0%, #18181b 100%)",
+ boxShadow: "inset 0 0 0 1px rgba(255,255,255,0.08), 0 8px 40px rgba(0,0,0,0.55)",
+ position: "relative",
+ overflow: "hidden",
+ }}
+ >
+ <div
+ style={{
+ position: "absolute",
+ top: "1.5%",
+ left: "50%",
+ transform: "translateX(-50%)",
+ width: "3%",
+ height: "1.4%",
+ borderRadius: "50%",
+ background: "#0d0d0f",
+ border: "1px solid rgba(255,255,255,0.06)",
+ zIndex: 20,
+ }}
+ />
+ <div
+ style={{
+ position: "absolute",
+ left: "3.5%",
+ top: "2%",
+ width: "93%",
+ height: "96%",
+ borderRadius: "5.5% / 2.6%",
+ overflow: "hidden",
+ background: "#000",
+ }}
+ >
+ {src ? (
+ <img
+ src={img(src)}
+ alt={alt}
+ style={{ display: "block", width: "100%", height: "100%", objectFit: "cover", objectPosition: "top" }}
+ draggable={false}
+ />
+ ) : (
+ <EmptySlot />
+ )}
+ </div>
+ </div>
+ </div>
+ );
+}
+
+export function AndroidTabletP({ src, alt = "", style }: FrameProps) {
+ return (
+ <div style={{ position: "relative", aspectRatio: "5 / 8", ...style }}>
+ <div
+ style={{
+ width: "100%",
+ height: "100%",
+ borderRadius: "4.5% / 2.8%",
+ background: "linear-gradient(160deg, #2a2a2e 0%, #18181b 100%)",
+ boxShadow: "inset 0 0 0 1px rgba(255,255,255,0.08), 0 8px 48px rgba(0,0,0,0.6)",
+ position: "relative",
+ overflow: "hidden",
+ }}
+ >
+ <div
+ style={{
+ position: "absolute",
+ top: "1.2%",
+ left: "50%",
+ transform: "translateX(-50%)",
+ width: "1.4%",
+ height: "0.88%",
+ borderRadius: "50%",
+ background: "#0d0d0f",
+ zIndex: 20,
+ }}
+ />
+ <div
+ style={{
+ position: "absolute",
+ left: "3.5%",
+ top: "2.2%",
+ width: "93%",
+ height: "95.6%",
+ borderRadius: "2.5% / 1.6%",
+ overflow: "hidden",
+ background: "#000",
+ }}
+ >
+ {src ? (
+ <img
+ src={img(src)}
+ alt={alt}
+ style={{ display: "block", width: "100%", height: "100%", objectFit: "cover", objectPosition: "top" }}
+ draggable={false}
+ />
+ ) : (
+ <EmptySlot />
+ )}
+ </div>
+ </div>
+ </div>
+ );
+}
+
+export function AndroidTabletL({ src, alt = "", style }: FrameProps) {
+ return (
+ <div style={{ position: "relative", aspectRatio: "8 / 5", ...style }}>
+ <div
+ style={{
+ width: "100%",
+ height: "100%",
+ borderRadius: "2.8% / 4.5%",
+ background: "linear-gradient(160deg, #2a2a2e 0%, #18181b 100%)",
+ boxShadow: "inset 0 0 0 1px rgba(255,255,255,0.08), 0 8px 48px rgba(0,0,0,0.6)",
+ position: "relative",
+ overflow: "hidden",
+ }}
+ >
+ <div
+ style={{
+ position: "absolute",
+ left: "1.2%",
+ top: "50%",
+ transform: "translateY(-50%)",
+ width: "0.88%",
+ height: "1.4%",
+ borderRadius: "50%",
+ background: "#0d0d0f",
+ zIndex: 20,
+ }}
+ />
+ <div
+ style={{
+ position: "absolute",
+ left: "2.2%",
+ top: "3.5%",
+ width: "95.6%",
+ height: "93%",
+ borderRadius: "1.6% / 2.5%",
+ overflow: "hidden",
+ background: "#000",
+ }}
+ >
+ {src ? (
+ <img
+ src={img(src)}
+ alt={alt}
+ style={{ display: "block", width: "100%", height: "100%", objectFit: "cover", objectPosition: "top" }}
+ draggable={false}
+ />
+ ) : (
+ <EmptySlot />
+ )}
+ </div>
+ </div>
+ </div>
+ );
+}
+
+export function IPad({ src, alt = "", style }: FrameProps) {
+ return (
+ <div style={{ position: "relative", aspectRatio: "770 / 1000", ...style }}>
+ <div
+ style={{
+ width: "100%",
+ height: "100%",
+ borderRadius: "5% / 3.6%",
+ background: "linear-gradient(180deg, #2C2C2E 0%, #1C1C1E 100%)",
+ position: "relative",
+ overflow: "hidden",
+ boxShadow: "inset 0 0 0 1px rgba(255,255,255,0.1), 0 8px 40px rgba(0,0,0,0.6)",
+ }}
+ >
+ <div
+ style={{
+ position: "absolute",
+ top: "1.2%",
+ left: "50%",
+ transform: "translateX(-50%)",
+ width: "0.9%",
+ height: "0.65%",
+ borderRadius: "50%",
+ background: "#111113",
+ zIndex: 20,
+ }}
+ />
+ <div
+ style={{
+ position: "absolute",
+ left: "4%",
+ top: "2.8%",
+ width: "92%",
+ height: "94.4%",
+ borderRadius: "2.2% / 1.6%",
+ overflow: "hidden",
+ background: "#000",
+ }}
+ >
+ {src ? (
+ <img
+ src={img(src)}
+ alt={alt}
+ style={{ display: "block", width: "100%", height: "100%", objectFit: "cover", objectPosition: "top" }}
+ draggable={false}
+ />
+ ) : (
+ <EmptySlot />
+ )}
+ </div>
+ </div>
+ </div>
+ );
+}
+
+function EmptySlot() {
+ return (
+ <div
+ style={{
+ width: "100%",
+ height: "100%",
+ display: "flex",
+ alignItems: "center",
+ justifyContent: "center",
+ color: "rgba(255,255,255,0.4)",
+ fontSize: "min(2vw, 14px)",
+ background: "linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%)",
+ textAlign: "center",
+ padding: "4%",
+ }}
+ >
+ Drop a screenshot here
+ </div>
+ );
+}
diff --git a/skills/app-store-screenshots/template/src/components/editor/inspector.tsx b/skills/app-store-screenshots/template/src/components/editor/inspector.tsx
new file mode 100644
index 0000000..f2ac05f
--- /dev/null
+++ b/skills/app-store-screenshots/template/src/components/editor/inspector.tsx
@@ -0,0 +1,112 @@
+"use client";
+import * as React from "react";
+import { Moon, Sun } from "lucide-react";
+import { Button } from "@/components/ui/button";
+import { Label } from "@/components/ui/label";
+import {
+ Select,
+ SelectContent,
+ SelectItem,
+ SelectTrigger,
+ SelectValue,
+} from "@/components/ui/select";
+import { Textarea } from "@/components/ui/textarea";
+import type { Slide, SlideLayout } from "@/lib/types";
+import { ScreenshotPicker } from "./screenshot-picker";
+
+const LAYOUTS: SlideLayout[] = [
+ "hero",
+ "device-bottom",
+ "device-top",
+ "two-devices",
+ "no-device",
+ "split-landscape",
+ "feature-graphic",
+];
+
+type Props = {
+ slide: Slide;
+ onChange: (patch: Partial<Slide>) => void;
+};
+
+export function Inspector({ slide, onChange }: Props) {
+ return (
+ <div className="flex h-full flex-col">
+ <div className="border-b p-3">
+ <h2 className="text-sm font-semibold">Slide settings</h2>
+ </div>
+
+ <div className="flex-1 space-y-4 overflow-y-auto p-3">
+ <div className="space-y-1.5">
+ <Label className="text-xs">Layout</Label>
+ <Select value={slide.layout} onValueChange={(v) => onChange({ layout: v as SlideLayout })}>
+ <SelectTrigger>
+ <SelectValue />
+ </SelectTrigger>
+ <SelectContent>
+ {LAYOUTS.map((l) => (
+ <SelectItem key={l} value={l}>
+ {l}
+ </SelectItem>
+ ))}
+ </SelectContent>
+ </Select>
+ </div>
+
+ <div className="space-y-1.5">
+ <Label className="text-xs">Label (caption)</Label>
+ <input
+ type="text"
+ value={slide.label}
+ onChange={(e) => onChange({ label: e.target.value })}
+ className="flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring"
+ placeholder="FEATURE 01"
+ />
+ </div>
+
+ <div className="space-y-1.5">
+ <Label className="text-xs">Headline (newlines are line breaks)</Label>
+ <Textarea
+ value={slide.headline}
+ onChange={(e) => onChange({ headline: e.target.value })}
+ rows={3}
+ placeholder={"One idea\nper slide."}
+ />
+ </div>
+
+ <div className="space-y-1.5">
+ <Label className="text-xs">Tone</Label>
+ <Button
+ type="button"
+ variant="outline"
+ className="w-full justify-start"
+ onClick={() => onChange({ inverted: !slide.inverted })}
+ >
+ {slide.inverted ? <Moon className="h-4 w-4" /> : <Sun className="h-4 w-4" />}
+ {slide.inverted ? "Dark variant" : "Light variant"}
+ </Button>
+ </div>
+
+ <div className="space-y-1.5">
+ <Label className="text-xs">Primary screenshot</Label>
+ <ScreenshotPicker
+ label="Primary"
+ value={slide.screenshot}
+ onChange={(v) => onChange({ screenshot: v })}
+ />
+ </div>
+
+ {slide.layout === "two-devices" && (
+ <div className="space-y-1.5">
+ <Label className="text-xs">Secondary screenshot</Label>
+ <ScreenshotPicker
+ label="Secondary (back layer)"
+ value={slide.screenshotSecondary || ""}
+ onChange={(v) => onChange({ screenshotSecondary: v })}
+ />
+ </div>
+ )}
+ </div>
+ </div>
+ );
+}
diff --git a/skills/app-store-screenshots/template/src/components/editor/preview-stage.tsx b/skills/app-store-screenshots/template/src/components/editor/preview-stage.tsx
new file mode 100644
index 0000000..1a295e5
--- /dev/null
+++ b/skills/app-store-screenshots/template/src/components/editor/preview-stage.tsx
@@ -0,0 +1,82 @@
+"use client";
+import * as React from "react";
+import type { Device, Orientation, Slide, Theme } from "@/lib/types";
+import { getCanvas } from "./slide-canvas";
+import { SlideCanvas } from "./slide-canvas";
+
+type Props = {
+ slide: Slide;
+ device: Device;
+ orientation: Orientation;
+ theme: Theme;
+ appName?: string;
+ appIcon?: string;
+ onLabelChange: (v: string) => void;
+ onHeadlineChange: (v: string) => void;
+};
+
+// Fits the full-resolution canvas inside its container by measuring the
+// container and applying transform: scale().
+export function PreviewStage({
+ slide,
+ device,
+ orientation,
+ theme,
+ appName,
+ appIcon,
+ onLabelChange,
+ onHeadlineChange,
+}: Props) {
+ const containerRef = React.useRef<HTMLDivElement>(null);
+ const [scale, setScale] = React.useState(0.2);
+ const { cW, cH } = getCanvas(device, orientation);
+
+ React.useEffect(() => {
+ const el = containerRef.current;
+ if (!el) return;
+ const update = () => {
+ const rect = el.getBoundingClientRect();
+ // Leave a little padding
+ const sx = (rect.width - 24) / cW;
+ const sy = (rect.height - 24) / cH;
+ setScale(Math.max(0.05, Math.min(sx, sy)));
+ };
+ update();
+ const ro = new ResizeObserver(update);
+ ro.observe(el);
+ return () => ro.disconnect();
+ }, [cW, cH]);
+
+ return (
+ <div
+ ref={containerRef}
+ className="relative flex h-full w-full items-center justify-center overflow-hidden bg-muted/40"
+ >
+ <div
+ style={{
+ width: cW,
+ height: cH,
+ transform: `scale(${scale})`,
+ transformOrigin: "center center",
+ flexShrink: 0,
+ boxShadow: "0 25px 50px -12px rgba(0,0,0,0.25)",
+ background: "white",
+ }}
+ >
+ <SlideCanvas
+ slide={slide}
+ device={device}
+ orientation={orientation}
+ theme={theme}
+ appName={appName}
+ appIcon={appIcon}
+ editable
+ edit={{ onLabelChange, onHeadlineChange }}
+ />
+ </div>
+ <div className="pointer-events-none absolute bottom-2 right-3 text-[10px] text-muted-foreground">
+ {cW}×{cH} · {(scale * 100).toFixed(0)}%
+ </div>
+ </div>
+ );
+}
diff --git a/skills/app-store-screenshots/template/src/components/editor/screenshot-editor.tsx b/skills/app-store-screenshots/template/src/components/editor/screenshot-editor.tsx
new file mode 100644
index 0000000..0b04b78
--- /dev/null
+++ b/skills/app-store-screenshots/template/src/components/editor/screenshot-editor.tsx
@@ -0,0 +1,262 @@
+"use client";
+import * as React from "react";
+import { toPng } from "html-to-image";
+import {
+ CANVAS,
+ EXPORT_SIZES,
+ EXPORT_SIZES_LANDSCAPE,
+ THEMES,
+} from "@/lib/constants";
+import { preloadImages } from "@/lib/image-cache";
+import { useProject } from "@/lib/storage";
+import type { Device, Slide, SlideLayout, ThemeId } from "@/lib/types";
+import { Inspector } from "./inspector";
+import { PreviewStage } from "./preview-stage";
+import { Sidebar } from "./sidebar";
+import { SlideCanvas, getCanvas } from "./slide-canvas";
+import { Toolbar } from "./toolbar";
+
+export function ScreenshotEditor() {
+ const { state, setState, hydrated, savedAt, reset } = useProject();
+ const [activeSlideId, setActiveSlideId] = React.useState<string | null>(null);
+ const [sizeIdx, setSizeIdx] = React.useState(0);
+ const [exporting, setExporting] = React.useState<string | null>(null);
+ const [ready, setReady] = React.useState(false);
+ const exportRefs = React.useRef<Record<string, HTMLDivElement | null>>({});
+
+ const currentSlides = state.slidesByDevice[state.device] || [];
+ const activeSlide =
+ currentSlides.find((s) => s.id === activeSlideId) || currentSlides[0] || null;
+ const theme = THEMES[state.themeId];
+
+ // When the active slide list changes, make sure we have a valid selection
+ React.useEffect(() => {
+ if (!hydrated) return;
+ if (!activeSlide && currentSlides.length > 0) {
+ setActiveSlideId(currentSlides[0].id);
+ }
+ }, [hydrated, currentSlides, activeSlide]);
+
+ // Reset size index when device changes
+ React.useEffect(() => {
+ setSizeIdx(0);
+ }, [state.device, state.orientation]);
+
+ // Pre-load all images referenced by all slides across all devices
+ React.useEffect(() => {
+ if (!hydrated) return;
+ const paths = new Set<string>();
+ paths.add("/mockup.png");
+ if (state.appIcon) paths.add(state.appIcon);
+ for (const dev of Object.values(state.slidesByDevice)) {
+ for (const s of dev) {
+ if (s.screenshot && !s.screenshot.startsWith("data:")) paths.add(s.screenshot);
+ if (s.screenshotSecondary && !s.screenshotSecondary.startsWith("data:"))
+ paths.add(s.screenshotSecondary);
+ }
+ }
+ preloadImages(Array.from(paths)).finally(() => setReady(true));
+ }, [hydrated, state.slidesByDevice, state.appIcon]);
+
+ // ---------- Mutations ----------
+
+ const patchSlide = (id: string, patch: Partial<Slide>) => {
+ setState((prev) => ({
+ ...prev,
+ slidesByDevice: {
+ ...prev.slidesByDevice,
+ [prev.device]: (prev.slidesByDevice[prev.device] || []).map((s) =>
+ s.id === id ? { ...s, ...patch } : s,
+ ),
+ },
+ }));
+ };
+
+ const reorderSlides = (next: Slide[]) => {
+ setState((prev) => ({
+ ...prev,
+ slidesByDevice: { ...prev.slidesByDevice, [prev.device]: next },
+ }));
+ };
+
+ const deleteSlide = (id: string) => {
+ setState((prev) => {
+ const next = (prev.slidesByDevice[prev.device] || []).filter((s) => s.id !== id);
+ return {
+ ...prev,
+ slidesByDevice: { ...prev.slidesByDevice, [prev.device]: next },
+ };
+ });
+ if (activeSlideId === id) setActiveSlideId(null);
+ };
+
+ const addSlide = (slide: Slide) => {
+ setState((prev) => ({
+ ...prev,
+ slidesByDevice: {
+ ...prev.slidesByDevice,
+ [prev.device]: [...(prev.slidesByDevice[prev.device] || []), slide],
+ },
+ }));
+ setActiveSlideId(slide.id);
+ };
+
+ // ---------- Export ----------
+
+ const isTablet = state.device === "android-7" || state.device === "android-10";
+ const currentSizes =
+ isTablet && state.orientation === "landscape"
+ ? EXPORT_SIZES_LANDSCAPE[state.device] || EXPORT_SIZES[state.device]
+ : EXPORT_SIZES[state.device];
+
+ async function exportAll() {
+ const size = currentSizes[sizeIdx];
+ if (!size) return;
+ for (let i = 0; i < currentSlides.length; i++) {
+ const slide = currentSlides[i];
+ setExporting(`${i + 1}/${currentSlides.length}`);
+ const el = exportRefs.current[slide.id];
+ if (!el) continue;
+ try {
+ const dataUrl = await captureSlide(el, size.w, size.h);
+ const a = document.createElement("a");
+ a.href = dataUrl;
+ a.download = `${String(i + 1).padStart(2, "0")}-${slide.layout}-${state.device}-${state.locale}-${size.w}x${size.h}.png`;
+ a.click();
+ await new Promise((r) => setTimeout(r, 250));
+ } catch (e) {
+ console.error("Export failed for slide", slide.id, e);
+ }
+ }
+ setExporting(null);
+ }
+
+ async function captureSlide(el: HTMLElement, w: number, h: number) {
+ el.style.left = "0px";
+ el.style.opacity = "1";
+ el.style.zIndex = "-1";
+ const opts = { width: w, height: h, pixelRatio: 1, cacheBust: true };
+ // Double call — first warms up fonts/images, second produces clean output
+ await toPng(el, opts);
+ const dataUrl = await toPng(el, opts);
+ el.style.left = "-9999px";
+ el.style.opacity = "";
+ el.style.zIndex = "";
+ return dataUrl;
+ }
+
+ // ---------- Render ----------
+
+ if (!hydrated || !ready) {
+ return (
+ <div className="flex h-screen items-center justify-center">
+ <p className="text-sm text-muted-foreground">Loading editor…</p>
+ </div>
+ );
+ }
+
+ const { cW, cH } = getCanvas(state.device, state.orientation);
+
+ return (
+ <div className="flex h-screen flex-col overflow-hidden bg-background">
+ <Toolbar
+ appName={state.appName}
+ setAppName={(v) => setState((p) => ({ ...p, appName: v }))}
+ themeId={state.themeId}
+ setThemeId={(v) => setState((p) => ({ ...p, themeId: v }))}
+ locale={state.locale}
+ setLocale={(v) => setState((p) => ({ ...p, locale: v }))}
+ device={state.device}
+ setDevice={(v) => setState((p) => ({ ...p, device: v }))}
+ orientation={state.orientation}
+ setOrientation={(v) => setState((p) => ({ ...p, orientation: v }))}
+ sizeIdx={sizeIdx}
+ setSizeIdx={setSizeIdx}
+ onExport={exportAll}
+ onReset={() => {
+ if (confirm("Reset all slides to defaults? This will clear your edits.")) reset();
+ }}
+ exporting={exporting}
+ savedAt={savedAt}
+ />
+
+ <div className="flex flex-1 overflow-hidden">
+ <aside className="w-72 shrink-0 border-r bg-card">
+ <Sidebar
+ slides={currentSlides}
+ activeId={activeSlide?.id || null}
+ device={state.device}
+ orientation={state.orientation}
+ theme={theme}
+ appName={state.appName}
+ appIcon={state.appIcon}
+ onReorder={reorderSlides}
+ onSelect={setActiveSlideId}
+ onDelete={deleteSlide}
+ onAdd={addSlide}
+ />
+ </aside>
+
+ <main className="flex flex-1 items-stretch overflow-hidden">
+ {activeSlide ? (
+ <PreviewStage
+ slide={activeSlide}
+ device={state.device}
+ orientation={state.orientation}
+ theme={theme}
+ appName={state.appName}
+ appIcon={state.appIcon}
+ onLabelChange={(v) => patchSlide(activeSlide.id, { label: v })}
+ onHeadlineChange={(v) => patchSlide(activeSlide.id, { headline: v })}
+ />
+ ) : (
+ <div className="flex flex-1 items-center justify-center text-sm text-muted-foreground">
+ Add a slide to get started.
+ </div>
+ )}
+ </main>
+
+ <aside className="w-80 shrink-0 border-l bg-card">
+ {activeSlide ? (
+ <Inspector slide={activeSlide} onChange={(patch) => patchSlide(activeSlide.id, patch)} />
+ ) : (
+ <div className="flex h-full items-center justify-center p-4 text-sm text-muted-foreground">
+ No slide selected
+ </div>
+ )}
+ </aside>
+ </div>
+
+ {/* Off-screen export container — full-resolution canvases for html-to-image */}
+ <div
+ aria-hidden
+ style={{
+ position: "absolute",
+ left: -99999,
+ top: 0,
+ pointerEvents: "none",
+ opacity: 0,
+ }}
+ >
+ {currentSlides.map((slide) => (
+ <div
+ key={slide.id}
+ ref={(el) => {
+ exportRefs.current[slide.id] = el;
+ }}
+ style={{ width: cW, height: cH, position: "absolute", left: -99999, top: 0 }}
+ >
+ <SlideCanvas
+ slide={slide}
+ device={state.device}
+ orientation={state.orientation}
+ theme={theme}
+ appName={state.appName}
+ appIcon={state.appIcon}
+ />
+ </div>
+ ))}
+ </div>
+ </div>
+ );
+}
diff --git a/skills/app-store-screenshots/template/src/components/editor/screenshot-picker.tsx b/skills/app-store-screenshots/template/src/components/editor/screenshot-picker.tsx
new file mode 100644
index 0000000..e02f34c
--- /dev/null
+++ b/skills/app-store-screenshots/template/src/components/editor/screenshot-picker.tsx
@@ -0,0 +1,86 @@
+"use client";
+import * as React from "react";
+import { Image as ImageIcon, X } from "lucide-react";
+import { Button } from "@/components/ui/button";
+import { setImage } from "@/lib/image-cache";
+
+type Props = {
+ label: string;
+ value: string;
+ onChange: (v: string) => void;
+};
+
+async function fileToDataUrl(file: File): Promise<string> {
+ return new Promise((resolve, reject) => {
+ const reader = new FileReader();
+ reader.onloadend = () => resolve(reader.result as string);
+ reader.onerror = reject;
+ reader.readAsDataURL(file);
+ });
+}
+
+export function ScreenshotPicker({ label, value, onChange }: Props) {
+ const inputRef = React.useRef<HTMLInputElement>(null);
+ const [dragging, setDragging] = React.useState(false);
+
+ async function handleFile(file: File) {
+ const dataUrl = await fileToDataUrl(file);
+ setImage(dataUrl, dataUrl);
+ onChange(dataUrl);
+ }
+
+ return (
+ <div
+ className={`flex items-center gap-2 rounded-md border ${dragging ? "border-primary bg-accent" : "border-input"} p-2 transition-colors`}
+ onDragOver={(e) => {
+ e.preventDefault();
+ setDragging(true);
+ }}
+ onDragLeave={() => setDragging(false)}
+ onDrop={async (e) => {
+ e.preventDefault();
+ setDragging(false);
+ const file = e.dataTransfer.files?.[0];
+ if (file && file.type.startsWith("image/")) await handleFile(file);
+ }}
+ >
+ <ImageIcon className="h-4 w-4 shrink-0 text-muted-foreground" />
+ <div className="flex min-w-0 flex-1 flex-col">
+ <span className="text-xs font-medium">{label}</span>
+ <span className="truncate text-[10px] text-muted-foreground">
+ {value
+ ? value.startsWith("data:")
+ ? "uploaded image"
+ : value
+ : "drop or click to upload"}
+ </span>
+ </div>
+ <input
+ ref={inputRef}
+ type="file"
+ accept="image/*"
+ className="hidden"
+ onChange={async (e) => {
+ const file = e.target.files?.[0];
+ if (file) await handleFile(file);
+ e.currentTarget.value = "";
+ }}
+ />
+ <Button type="button" variant="outline" size="sm" onClick={() => inputRef.current?.click()}>
+ Pick
+ </Button>
+ {value && (
+ <Button
+ type="button"
+ variant="ghost"
+ size="icon"
+ className="h-7 w-7"
+ onClick={() => onChange("")}
+ aria-label="Clear screenshot"
+ >
+ <X className="h-4 w-4" />
+ </Button>
+ )}
+ </div>
+ );
+}
diff --git a/skills/app-store-screenshots/template/src/components/editor/sidebar.tsx b/skills/app-store-screenshots/template/src/components/editor/sidebar.tsx
new file mode 100644
index 0000000..102431c
--- /dev/null
+++ b/skills/app-store-screenshots/template/src/components/editor/sidebar.tsx
@@ -0,0 +1,134 @@
+"use client";
+import * as React from "react";
+import {
+ DndContext,
+ PointerSensor,
+ closestCenter,
+ useSensor,
+ useSensors,
+ type DragEndEvent,
+} from "@dnd-kit/core";
+import { SortableContext, arrayMove, verticalListSortingStrategy } from "@dnd-kit/sortable";
+import { Plus } from "lucide-react";
+import { Button } from "@/components/ui/button";
+import {
+ Select,
+ SelectContent,
+ SelectItem,
+ SelectTrigger,
+ SelectValue,
+} from "@/components/ui/select";
+import type { Device, Orientation, Slide, SlideLayout, Theme } from "@/lib/types";
+import { newSlide } from "@/lib/defaults";
+import { SlideThumb } from "./slide-thumb";
+
+const ADD_LAYOUTS: SlideLayout[] = [
+ "hero",
+ "device-bottom",
+ "device-top",
+ "two-devices",
+ "no-device",
+ "split-landscape",
+];
+
+type Props = {
+ slides: Slide[];
+ activeId: string | null;
+ device: Device;
+ orientation: Orientation;
+ theme: Theme;
+ appName?: string;
+ appIcon?: string;
+ onReorder: (next: Slide[]) => void;
+ onSelect: (id: string) => void;
+ onDelete: (id: string) => void;
+ onAdd: (slide: Slide) => void;
+};
+
+export function Sidebar({
+ slides,
+ activeId,
+ device,
+ orientation,
+ theme,
+ appName,
+ appIcon,
+ onReorder,
+ onSelect,
+ onDelete,
+ onAdd,
+}: Props) {
+ const sensors = useSensors(useSensor(PointerSensor, { activationConstraint: { distance: 4 } }));
+
+ 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));
+ };
+
+ const [addLayout, setAddLayout] = React.useState<SlideLayout>("device-bottom");
+
+ return (
+ <div className="flex h-full flex-col">
+ <div className="border-b p-3">
+ <h2 className="text-sm font-semibold">Slides</h2>
+ <p className="text-xs text-muted-foreground">{slides.length} slide{slides.length === 1 ? "" : "s"}</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}
+ index={i}
+ active={slide.id === activeId}
+ device={device}
+ orientation={orientation}
+ theme={theme}
+ appName={appName}
+ appIcon={appIcon}
+ onSelect={() => onSelect(slide.id)}
+ onDelete={() => onDelete(slide.id)}
+ />
+ ))}
+ {slides.length === 0 && (
+ <p className="px-2 py-6 text-center text-xs text-muted-foreground">
+ No slides yet — add one below.
+ </p>
+ )}
+ </div>
+ </SortableContext>
+ </DndContext>
+ </div>
+
+ <div className="space-y-2 border-t p-3">
+ <Select value={addLayout} onValueChange={(v) => setAddLayout(v as SlideLayout)}>
+ <SelectTrigger className="w-full">
+ <SelectValue />
+ </SelectTrigger>
+ <SelectContent>
+ {ADD_LAYOUTS.map((l) => (
+ <SelectItem key={l} value={l}>
+ {l}
+ </SelectItem>
+ ))}
+ </SelectContent>
+ </Select>
+ <Button
+ type="button"
+ className="w-full"
+ variant="default"
+ onClick={() => onAdd(newSlide(addLayout))}
+ >
+ <Plus className="h-4 w-4" /> Add slide
+ </Button>
+ </div>
+ </div>
+ );
+}
diff --git a/skills/app-store-screenshots/template/src/components/editor/slide-canvas.tsx b/skills/app-store-screenshots/template/src/components/editor/slide-canvas.tsx
new file mode 100644
index 0000000..764e46e
--- /dev/null
+++ b/skills/app-store-screenshots/template/src/components/editor/slide-canvas.tsx
@@ -0,0 +1,509 @@
+"use client";
+import * as React from "react";
+import type { Device, Orientation, Slide, Theme } from "@/lib/types";
+import {
+ CANVAS,
+ ipadW,
+ phoneW,
+ phoneWSmall,
+ tabletLW,
+ tabletPW,
+} from "@/lib/constants";
+import { img } from "@/lib/image-cache";
+import {
+ AndroidPhone,
+ AndroidTabletL,
+ AndroidTabletP,
+ IPad,
+ Phone,
+} from "./device-frames";
+
+type FrameComp = React.ComponentType<{ src: string; alt?: string; style?: React.CSSProperties }>;
+
+export function getCanvas(device: Device, orientation: Orientation) {
+ const c = CANVAS[device];
+ if ((device === "android-7" || device === "android-10") && orientation === "landscape") {
+ return { cW: c.wL!, cH: c.hL! };
+ }
+ return { cW: c.w, cH: c.h };
+}
+
+export function getFrameForDevice(device: Device, orientation: Orientation): {
+ Comp: FrameComp;
+ widthFn: (cW: number, cH: number) => number;
+ smallWidthFn: (cW: number, cH: number) => number;
+} {
+ switch (device) {
+ case "iphone":
+ return { Comp: Phone, widthFn: phoneW, smallWidthFn: phoneWSmall };
+ case "ipad":
+ return { Comp: IPad, widthFn: ipadW, smallWidthFn: (cW, cH) => ipadW(cW, cH, 0.6) };
+ case "android":
+ return { Comp: AndroidPhone, widthFn: phoneW, smallWidthFn: phoneWSmall };
+ case "android-7":
+ case "android-10":
+ if (orientation === "landscape") {
+ return { Comp: AndroidTabletL, widthFn: tabletLW, smallWidthFn: (cW, cH) => tabletLW(cW, cH, 0.5) };
+ }
+ return { Comp: AndroidTabletP, widthFn: tabletPW, smallWidthFn: (cW, cH) => tabletPW(cW, cH, 0.62) };
+ default:
+ return { Comp: Phone, widthFn: phoneW, smallWidthFn: phoneWSmall };
+ }
+}
+
+type EditHandlers = {
+ onLabelChange?: (v: string) => void;
+ onHeadlineChange?: (v: string) => void;
+};
+
+type Props = {
+ slide: Slide;
+ device: Device;
+ orientation: Orientation;
+ theme: Theme;
+ appName?: string;
+ appIcon?: string;
+ editable?: boolean;
+ edit?: EditHandlers;
+};
+
+// ---------- Editable text helpers ----------
+
+function EditableText({
+ value,
+ editable,
+ onChange,
+ style,
+ multiline = false,
+ placeholder,
+}: {
+ value: string;
+ editable?: boolean;
+ onChange?: (v: string) => void;
+ style?: React.CSSProperties;
+ multiline?: boolean;
+ placeholder?: string;
+}) {
+ const ref = React.useRef<HTMLDivElement>(null);
+ // Sync prop -> DOM when the slide changes externally, but avoid clobbering
+ // the current selection while the user is typing.
+ React.useEffect(() => {
+ const el = ref.current;
+ if (!el) return;
+ const incoming = multiline ? value.replace(/\n/g, "<br/>") : value;
+ if (el.innerHTML !== incoming && document.activeElement !== el) {
+ el.innerHTML = incoming || "";
+ }
+ }, [value, multiline]);
+
+ const handleInput = (e: React.FormEvent<HTMLDivElement>) => {
+ if (!onChange) return;
+ const html = (e.currentTarget.innerHTML || "")
+ .replace(/<div>/gi, "\n")
+ .replace(/<\/div>/gi, "")
+ .replace(/<br\s*\/?>/gi, "\n")
+ .replace(/<[^>]+>/g, "")
+ .replace(/&nbsp;/g, " ")
+ .replace(/&amp;/g, "&")
+ .replace(/&lt;/g, "<")
+ .replace(/&gt;/g, ">");
+ onChange(multiline ? html : html.replace(/\n/g, ""));
+ };
+
+ return (
+ <div
+ ref={ref}
+ contentEditable={editable}
+ suppressContentEditableWarning
+ data-placeholder={placeholder}
+ onInput={handleInput}
+ style={{
+ outline: "none",
+ whiteSpace: multiline ? "pre-wrap" : "nowrap",
+ ...style,
+ }}
+ />
+ );
+}
+
+// ---------- Caption (label + headline) ----------
+
+function Caption({
+ cW,
+ slide,
+ theme,
+ editable,
+ edit,
+ align = "center",
+ inverted,
+}: {
+ cW: number;
+ slide: Slide;
+ theme: Theme;
+ editable?: boolean;
+ edit?: EditHandlers;
+ align?: "center" | "left";
+ inverted?: boolean;
+}) {
+ const fg = inverted ? theme.fgAlt : theme.fg;
+ const accent = theme.accent;
+ return (
+ <div style={{ textAlign: align, position: "relative" }}>
+ <EditableText
+ value={slide.label}
+ editable={editable}
+ onChange={edit?.onLabelChange}
+ placeholder="LABEL"
+ style={{
+ fontSize: cW * 0.028,
+ fontWeight: 600,
+ letterSpacing: cW * 0.0015,
+ color: accent,
+ textTransform: "uppercase",
+ marginBottom: cW * 0.018,
+ minHeight: cW * 0.03,
+ }}
+ />
+ <EditableText
+ value={slide.headline}
+ editable={editable}
+ multiline
+ onChange={edit?.onHeadlineChange}
+ placeholder="Headline goes here"
+ style={{
+ fontSize: cW * 0.092,
+ fontWeight: 700,
+ lineHeight: 0.96,
+ letterSpacing: -cW * 0.001,
+ color: fg,
+ }}
+ />
+ </div>
+ );
+}
+
+// ---------- Background ----------
+
+function backgroundFor(theme: Theme, inverted?: boolean, layout?: string) {
+ if (inverted) {
+ return `linear-gradient(160deg, ${theme.bgAlt} 0%, ${shade(theme.bgAlt, -8)} 100%)`;
+ }
+ return `linear-gradient(160deg, ${theme.bg} 0%, ${shade(theme.bg, -6)} 100%)`;
+}
+
+function shade(hex: string, percent: number) {
+ // very small darken/lighten — clamp to [0,255]
+ const c = hex.replace("#", "");
+ const num = parseInt(c.length === 3 ? c.split("").map((x) => x + x).join("") : c, 16);
+ let r = (num >> 16) & 0xff;
+ let g = (num >> 8) & 0xff;
+ let b = num & 0xff;
+ const amt = Math.round((255 * percent) / 100);
+ r = Math.max(0, Math.min(255, r + amt));
+ g = Math.max(0, Math.min(255, g + amt));
+ b = Math.max(0, Math.min(255, b + amt));
+ return `#${((r << 16) | (g << 8) | b).toString(16).padStart(6, "0")}`;
+}
+
+// ---------- Decorative blob (depth without distraction) ----------
+
+function Blob({
+ cW,
+ cH,
+ color,
+ x,
+ y,
+ size,
+ opacity = 0.4,
+}: {
+ cW: number;
+ cH: number;
+ color: string;
+ x: number;
+ y: number;
+ size: number;
+ opacity?: number;
+}) {
+ return (
+ <div
+ style={{
+ position: "absolute",
+ left: `${x}%`,
+ top: `${y}%`,
+ width: `${size}%`,
+ aspectRatio: "1 / 1",
+ background: color,
+ borderRadius: "50%",
+ filter: `blur(${cW * 0.06}px)`,
+ opacity,
+ pointerEvents: "none",
+ }}
+ />
+ );
+}
+
+// ---------- Main canvas ----------
+
+export function SlideCanvas({
+ slide,
+ device,
+ orientation,
+ theme,
+ appName,
+ appIcon,
+ editable,
+ edit,
+}: Props) {
+ const { cW, cH } = getCanvas(device, orientation);
+ const { Comp: Frame, widthFn, smallWidthFn } = getFrameForDevice(device, orientation);
+ const inverted = !!slide.inverted;
+ const bg = backgroundFor(theme, inverted, slide.layout);
+ const fw = widthFn(cW, cH) * 100;
+ const fwSmall = smallWidthFn(cW, cH) * 100;
+
+ // Special: feature-graphic layout — its own composition
+ if (slide.layout === "feature-graphic" || device === "feature-graphic") {
+ return (
+ <div
+ style={{
+ width: "100%",
+ height: "100%",
+ position: "relative",
+ overflow: "hidden",
+ background: `linear-gradient(135deg, ${theme.bgAlt} 0%, ${shade(theme.bgAlt, -10)} 50%, ${theme.accent} 200%)`,
+ display: "flex",
+ alignItems: "center",
+ padding: `0 ${cW * 0.06}px`,
+ color: theme.fgAlt,
+ }}
+ >
+ <Blob cW={cW} cH={cH} color={theme.accent} x={70} y={20} size={50} opacity={0.45} />
+ <div style={{ display: "flex", alignItems: "center", gap: cW * 0.03, zIndex: 2 }}>
+ {appIcon && (
+ <img
+ src={img(appIcon)}
+ alt=""
+ style={{
+ width: cW * 0.13,
+ height: cW * 0.13,
+ borderRadius: cW * 0.022,
+ boxShadow: "0 4px 16px rgba(0,0,0,0.3)",
+ }}
+ draggable={false}
+ />
+ )}
+ <div>
+ <div style={{ fontSize: cW * 0.06, fontWeight: 800, lineHeight: 1.05 }}>{appName || "App"}</div>
+ <EditableText
+ value={slide.headline}
+ editable={editable}
+ multiline
+ onChange={edit?.onHeadlineChange}
+ style={{
+ fontSize: cW * 0.028,
+ color: "rgba(255,255,255,0.85)",
+ marginTop: cW * 0.012,
+ lineHeight: 1.25,
+ }}
+ />
+ </div>
+ </div>
+ </div>
+ );
+ }
+
+ return (
+ <div
+ style={{
+ width: "100%",
+ height: "100%",
+ position: "relative",
+ overflow: "hidden",
+ background: bg,
+ color: inverted ? theme.fgAlt : theme.fg,
+ }}
+ >
+ <Blob cW={cW} cH={cH} color={theme.accent} x={-15} y={-10} size={55} opacity={inverted ? 0.25 : 0.32} />
+ <Blob cW={cW} cH={cH} color={theme.accent} x={70} y={75} size={45} opacity={inverted ? 0.18 : 0.25} />
+
+ {renderLayout(slide.layout, {
+ slide,
+ cW,
+ cH,
+ Frame,
+ fw,
+ fwSmall,
+ theme,
+ editable,
+ edit,
+ inverted,
+ })}
+ </div>
+ );
+}
+
+function renderLayout(
+ layout: Slide["layout"],
+ ctx: {
+ slide: Slide;
+ cW: number;
+ cH: number;
+ Frame: FrameComp;
+ fw: number;
+ fwSmall: number;
+ theme: Theme;
+ editable?: boolean;
+ edit?: EditHandlers;
+ inverted?: boolean;
+ },
+) {
+ const { slide, cW, cH, Frame, fw, fwSmall, theme, editable, edit, inverted } = ctx;
+ switch (layout) {
+ case "hero":
+ return (
+ <>
+ <div
+ style={{
+ position: "absolute",
+ top: "9%",
+ left: "8%",
+ right: "8%",
+ textAlign: "center",
+ zIndex: 2,
+ }}
+ >
+ <Caption cW={cW} slide={slide} theme={theme} editable={editable} edit={edit} inverted={inverted} />
+ </div>
+ <Frame
+ src={slide.screenshot}
+ style={{
+ position: "absolute",
+ bottom: 0,
+ left: "50%",
+ width: `${fw}%`,
+ transform: "translateX(-50%) translateY(15%)",
+ }}
+ />
+ </>
+ );
+
+ case "device-bottom":
+ return (
+ <>
+ <div style={{ position: "absolute", top: "8%", left: "8%", right: "8%", textAlign: "center", zIndex: 2 }}>
+ <Caption cW={cW} slide={slide} theme={theme} editable={editable} edit={edit} inverted={inverted} />
+ </div>
+ <Frame
+ src={slide.screenshot}
+ style={{
+ position: "absolute",
+ bottom: "-2%",
+ left: "50%",
+ width: `${fw}%`,
+ transform: "translateX(-50%)",
+ }}
+ />
+ </>
+ );
+
+ case "device-top":
+ return (
+ <>
+ <Frame
+ src={slide.screenshot}
+ style={{
+ position: "absolute",
+ top: "-10%",
+ left: "50%",
+ width: `${fw}%`,
+ transform: "translateX(-50%)",
+ }}
+ />
+ <div style={{ position: "absolute", bottom: "10%", left: "8%", right: "8%", textAlign: "center", zIndex: 2 }}>
+ <Caption cW={cW} slide={slide} theme={theme} editable={editable} edit={edit} inverted={inverted} />
+ </div>
+ </>
+ );
+
+ case "two-devices":
+ return (
+ <>
+ <div style={{ position: "absolute", top: "8%", left: "8%", right: "8%", textAlign: "center", zIndex: 2 }}>
+ <Caption cW={cW} slide={slide} theme={theme} editable={editable} edit={edit} inverted={inverted} />
+ </div>
+ <Frame
+ src={slide.screenshotSecondary || slide.screenshot}
+ style={{
+ position: "absolute",
+ bottom: "5%",
+ left: "-6%",
+ width: `${fwSmall}%`,
+ transform: "rotate(-5deg)",
+ opacity: 0.85,
+ }}
+ />
+ <Frame
+ src={slide.screenshot}
+ style={{
+ position: "absolute",
+ bottom: "-2%",
+ right: "-6%",
+ width: `${fw * 0.9}%`,
+ transform: "rotate(3deg)",
+ }}
+ />
+ </>
+ );
+
+ case "no-device":
+ return (
+ <>
+ <div
+ style={{
+ position: "absolute",
+ inset: 0,
+ display: "flex",
+ alignItems: "center",
+ justifyContent: "center",
+ padding: "10%",
+ textAlign: "center",
+ zIndex: 2,
+ }}
+ >
+ <Caption cW={cW} slide={slide} theme={theme} editable={editable} edit={edit} inverted={inverted} />
+ </div>
+ </>
+ );
+
+ case "split-landscape":
+ return (
+ <>
+ <div
+ style={{
+ position: "absolute",
+ top: "50%",
+ left: "5%",
+ width: "38%",
+ transform: "translateY(-50%)",
+ zIndex: 2,
+ }}
+ >
+ <Caption cW={cW} slide={slide} theme={theme} editable={editable} edit={edit} align="left" inverted={inverted} />
+ </div>
+ <Frame
+ src={slide.screenshot}
+ style={{
+ position: "absolute",
+ right: "-3%",
+ top: "50%",
+ width: `${fw}%`,
+ transform: "translateY(-50%)",
+ }}
+ />
+ </>
+ );
+
+ default:
+ return null;
+ }
+}
diff --git a/skills/app-store-screenshots/template/src/components/editor/slide-thumb.tsx b/skills/app-store-screenshots/template/src/components/editor/slide-thumb.tsx
new file mode 100644
index 0000000..f75fff8
--- /dev/null
+++ b/skills/app-store-screenshots/template/src/components/editor/slide-thumb.tsx
@@ -0,0 +1,122 @@
+"use client";
+import * as React from "react";
+import { useSortable } from "@dnd-kit/sortable";
+import { CSS } from "@dnd-kit/utilities";
+import { GripVertical, Trash2 } from "lucide-react";
+import { Button } from "@/components/ui/button";
+import type { Device, Orientation, Slide, Theme } from "@/lib/types";
+import { cn } from "@/lib/utils";
+import { SlideCanvas } from "./slide-canvas";
+
+type Props = {
+ slide: Slide;
+ index: number;
+ active: boolean;
+ device: Device;
+ orientation: Orientation;
+ theme: Theme;
+ appName?: string;
+ appIcon?: string;
+ onSelect: () => void;
+ onDelete: () => void;
+};
+
+export function SlideThumb({
+ slide,
+ index,
+ active,
+ device,
+ orientation,
+ theme,
+ appName,
+ appIcon,
+ onSelect,
+ onDelete,
+}: Props) {
+ const { attributes, listeners, setNodeRef, transform, transition, isDragging } = useSortable({
+ id: slide.id,
+ });
+
+ const style: React.CSSProperties = {
+ transform: CSS.Transform.toString(transform),
+ transition,
+ opacity: isDragging ? 0.5 : 1,
+ };
+
+ return (
+ <div
+ ref={setNodeRef}
+ style={style}
+ className={cn(
+ "group relative flex items-stretch gap-2 rounded-lg border bg-card p-1.5 transition-colors hover:bg-accent",
+ active && "border-primary ring-1 ring-primary",
+ )}
+ >
+ <button
+ type="button"
+ className="flex w-4 cursor-grab items-center justify-center text-muted-foreground hover:text-foreground active:cursor-grabbing"
+ {...attributes}
+ {...listeners}
+ aria-label="Drag to reorder"
+ >
+ <GripVertical className="h-4 w-4" />
+ </button>
+
+ <button
+ type="button"
+ onClick={onSelect}
+ className="flex flex-1 items-center gap-3 overflow-hidden text-left"
+ >
+ <div
+ className={cn(
+ "relative shrink-0 overflow-hidden rounded border bg-muted",
+ "h-16 w-10",
+ )}
+ >
+ <div
+ style={{
+ width: 200,
+ height: 320,
+ position: "absolute",
+ top: 0,
+ left: 0,
+ transformOrigin: "top left",
+ transform: "scale(0.2)",
+ pointerEvents: "none",
+ }}
+ >
+ <SlideCanvas
+ slide={slide}
+ device={device}
+ orientation={orientation}
+ theme={theme}
+ appName={appName}
+ appIcon={appIcon}
+ editable={false}
+ />
+ </div>
+ </div>
+ <div className="flex min-w-0 flex-1 flex-col">
+ <span className="text-xs text-muted-foreground">Slide {index + 1}</span>
+ <span className="truncate text-sm font-medium">
+ {slide.headline.split("\n")[0] || "Untitled"}
+ </span>
+ <span className="truncate text-[10px] uppercase tracking-wide text-muted-foreground">
+ {slide.layout}
+ </span>
+ </div>
+ </button>
+
+ <Button
+ type="button"
+ size="icon"
+ variant="ghost"
+ className="h-7 w-7 self-center opacity-0 transition-opacity group-hover:opacity-100"
+ onClick={onDelete}
+ aria-label="Delete slide"
+ >
+ <Trash2 className="h-4 w-4" />
+ </Button>
+ </div>
+ );
+}
diff --git a/skills/app-store-screenshots/template/src/components/editor/toolbar.tsx b/skills/app-store-screenshots/template/src/components/editor/toolbar.tsx
new file mode 100644
index 0000000..f4cd00a
--- /dev/null
+++ b/skills/app-store-screenshots/template/src/components/editor/toolbar.tsx
@@ -0,0 +1,183 @@
+"use client";
+import * as React from "react";
+import { Check, Cloud, Download, RotateCcw } from "lucide-react";
+import { Button } from "@/components/ui/button";
+import { Input } from "@/components/ui/input";
+import {
+ Select,
+ SelectContent,
+ SelectItem,
+ SelectTrigger,
+ SelectValue,
+} from "@/components/ui/select";
+import { Tabs, TabsList, TabsTrigger } from "@/components/ui/tabs";
+import {
+ DEVICE_LABEL,
+ EXPORT_SIZES,
+ EXPORT_SIZES_LANDSCAPE,
+ LOCALES,
+ THEMES,
+} from "@/lib/constants";
+import { detectPlatform } from "@/lib/defaults";
+import type { Device, Orientation, ThemeId } from "@/lib/types";
+
+type Props = {
+ appName: string;
+ setAppName: (v: string) => void;
+ themeId: ThemeId;
+ setThemeId: (v: ThemeId) => void;
+ locale: string;
+ setLocale: (v: string) => void;
+ device: Device;
+ setDevice: (v: Device) => void;
+ orientation: Orientation;
+ setOrientation: (v: Orientation) => void;
+ sizeIdx: number;
+ setSizeIdx: (i: number) => void;
+ onExport: () => void;
+ onReset: () => void;
+ exporting: string | null;
+ savedAt: number | null;
+};
+
+export function Toolbar(props: Props) {
+ const platform = detectPlatform(props.device);
+ const isTablet = props.device === "android-7" || props.device === "android-10";
+ const sizes =
+ isTablet && props.orientation === "landscape"
+ ? EXPORT_SIZES_LANDSCAPE[props.device] || EXPORT_SIZES[props.device]
+ : EXPORT_SIZES[props.device];
+
+ return (
+ <div className="flex items-center gap-3 border-b bg-background px-4 py-2">
+ <div className="flex shrink-0 items-center gap-2">
+ <Input
+ value={props.appName}
+ onChange={(e) => props.setAppName(e.target.value)}
+ className="h-8 w-44 text-sm font-semibold"
+ placeholder="App name"
+ />
+ </div>
+
+ <Tabs
+ value={platform}
+ onValueChange={(p) => props.setDevice(p === "ios" ? "iphone" : "android")}
+ >
+ <TabsList>
+ <TabsTrigger value="ios"></TabsTrigger>
+ <TabsTrigger value="android">Android</TabsTrigger>
+ </TabsList>
+ </Tabs>
+
+ <Select value={props.device} onValueChange={(v) => props.setDevice(v as Device)}>
+ <SelectTrigger className="h-8 w-40 text-xs">
+ <SelectValue />
+ </SelectTrigger>
+ <SelectContent>
+ {platform === "ios" ? (
+ <>
+ <SelectItem value="iphone">iPhone</SelectItem>
+ <SelectItem value="ipad">iPad</SelectItem>
+ </>
+ ) : (
+ <>
+ <SelectItem value="android">Android Phone</SelectItem>
+ <SelectItem value="android-7">Android 7" Tablet</SelectItem>
+ <SelectItem value="android-10">Android 10" Tablet</SelectItem>
+ <SelectItem value="feature-graphic">Feature Graphic</SelectItem>
+ </>
+ )}
+ </SelectContent>
+ </Select>
+
+ {isTablet && (
+ <Select value={props.orientation} onValueChange={(v) => props.setOrientation(v as Orientation)}>
+ <SelectTrigger className="h-8 w-32 text-xs">
+ <SelectValue />
+ </SelectTrigger>
+ <SelectContent>
+ <SelectItem value="portrait">Portrait</SelectItem>
+ <SelectItem value="landscape">Landscape</SelectItem>
+ </SelectContent>
+ </Select>
+ )}
+
+ <Select value={props.themeId} onValueChange={(v) => props.setThemeId(v as ThemeId)}>
+ <SelectTrigger className="h-8 w-36 text-xs">
+ <SelectValue />
+ </SelectTrigger>
+ <SelectContent>
+ {Object.values(THEMES).map((t) => (
+ <SelectItem key={t.id} value={t.id}>
+ {t.name}
+ </SelectItem>
+ ))}
+ </SelectContent>
+ </Select>
+
+ <Select value={props.locale} onValueChange={props.setLocale}>
+ <SelectTrigger className="h-8 w-20 text-xs">
+ <SelectValue />
+ </SelectTrigger>
+ <SelectContent>
+ {LOCALES.map((l) => (
+ <SelectItem key={l} value={l}>
+ {l.toUpperCase()}
+ </SelectItem>
+ ))}
+ </SelectContent>
+ </Select>
+
+ <Select
+ value={String(props.sizeIdx)}
+ onValueChange={(v) => props.setSizeIdx(Number(v))}
+ >
+ <SelectTrigger className="h-8 w-44 text-xs">
+ <SelectValue />
+ </SelectTrigger>
+ <SelectContent>
+ {sizes.map((s, i) => (
+ <SelectItem key={i} value={String(i)}>
+ {s.label} — {s.w}×{s.h}
+ </SelectItem>
+ ))}
+ </SelectContent>
+ </Select>
+
+ <div className="ml-auto flex shrink-0 items-center gap-2">
+ <SaveStatus savedAt={props.savedAt} />
+ <Button variant="ghost" size="sm" onClick={props.onReset} title="Reset to defaults">
+ <RotateCcw className="h-4 w-4" />
+ </Button>
+ <Button onClick={props.onExport} disabled={!!props.exporting} size="sm">
+ <Download className="h-4 w-4" />
+ {props.exporting ? `Exporting ${props.exporting}` : "Export all"}
+ </Button>
+ </div>
+ </div>
+ );
+}
+
+function SaveStatus({ savedAt }: { savedAt: number | null }) {
+ const [, setTick] = React.useState(0);
+ React.useEffect(() => {
+ const t = setInterval(() => setTick((x) => x + 1), 30_000);
+ return () => clearInterval(t);
+ }, []);
+
+ if (!savedAt) {
+ return (
+ <span className="flex items-center gap-1 text-xs text-muted-foreground">
+ <Cloud className="h-3.5 w-3.5" /> not saved yet
+ </span>
+ );
+ }
+ const seconds = Math.max(0, Math.round((Date.now() - savedAt) / 1000));
+ const label =
+ seconds < 5 ? "saved" : seconds < 60 ? `saved ${seconds}s ago` : `saved ${Math.round(seconds / 60)}m ago`;
+ return (
+ <span className="flex items-center gap-1 text-xs text-muted-foreground">
+ <Check className="h-3.5 w-3.5 text-green-500" /> {label}
+ </span>
+ );
+}
diff --git a/skills/app-store-screenshots/template/src/components/ui/button.tsx b/skills/app-store-screenshots/template/src/components/ui/button.tsx
new file mode 100644
index 0000000..e928171
--- /dev/null
+++ b/skills/app-store-screenshots/template/src/components/ui/button.tsx
@@ -0,0 +1,43 @@
+import * as React from "react";
+import { Slot } from "@radix-ui/react-slot";
+import { cva, type VariantProps } from "class-variance-authority";
+import { cn } from "@/lib/utils";
+
+const buttonVariants = cva(
+ "inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
+ {
+ variants: {
+ variant: {
+ default: "bg-primary text-primary-foreground shadow hover:bg-primary/90",
+ destructive: "bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",
+ outline: "border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",
+ secondary: "bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",
+ ghost: "hover:bg-accent hover:text-accent-foreground",
+ link: "text-primary underline-offset-4 hover:underline",
+ },
+ size: {
+ default: "h-9 px-4 py-2",
+ sm: "h-8 rounded-md px-3 text-xs",
+ lg: "h-10 rounded-md px-8",
+ icon: "h-9 w-9",
+ },
+ },
+ defaultVariants: { variant: "default", size: "default" },
+ },
+);
+
+export interface ButtonProps
+ extends React.ButtonHTMLAttributes<HTMLButtonElement>,
+ VariantProps<typeof buttonVariants> {
+ asChild?: boolean;
+}
+
+const Button = React.forwardRef<HTMLButtonElement, ButtonProps>(
+ ({ className, variant, size, asChild = false, ...props }, ref) => {
+ const Comp = asChild ? Slot : "button";
+ return <Comp className={cn(buttonVariants({ variant, size, className }))} ref={ref} {...props} />;
+ },
+);
+Button.displayName = "Button";
+
+export { Button, buttonVariants };
diff --git a/skills/app-store-screenshots/template/src/components/ui/card.tsx b/skills/app-store-screenshots/template/src/components/ui/card.tsx
new file mode 100644
index 0000000..5dbc4d0
--- /dev/null
+++ b/skills/app-store-screenshots/template/src/components/ui/card.tsx
@@ -0,0 +1,30 @@
+import * as React from "react";
+import { cn } from "@/lib/utils";
+
+const Card = React.forwardRef<HTMLDivElement, React.HTMLAttributes<HTMLDivElement>>(
+ ({ className, ...props }, ref) => (
+ <div ref={ref} className={cn("rounded-xl border bg-card text-card-foreground shadow", className)} {...props} />
+ ),
+);
+Card.displayName = "Card";
+
+const CardHeader = React.forwardRef<HTMLDivElement, React.HTMLAttributes<HTMLDivElement>>(
+ ({ className, ...props }, ref) => (
+ <div ref={ref} className={cn("flex flex-col space-y-1.5 p-6", className)} {...props} />
+ ),
+);
+CardHeader.displayName = "CardHeader";
+
+const CardTitle = React.forwardRef<HTMLDivElement, React.HTMLAttributes<HTMLDivElement>>(
+ ({ className, ...props }, ref) => (
+ <div ref={ref} className={cn("font-semibold leading-none tracking-tight", className)} {...props} />
+ ),
+);
+CardTitle.displayName = "CardTitle";
+
+const CardContent = React.forwardRef<HTMLDivElement, React.HTMLAttributes<HTMLDivElement>>(
+ ({ className, ...props }, ref) => <div ref={ref} className={cn("p-6 pt-0", className)} {...props} />,
+);
+CardContent.displayName = "CardContent";
+
+export { Card, CardHeader, CardTitle, CardContent };
diff --git a/skills/app-store-screenshots/template/src/components/ui/dialog.tsx b/skills/app-store-screenshots/template/src/components/ui/dialog.tsx
new file mode 100644
index 0000000..b0f9b89
--- /dev/null
+++ b/skills/app-store-screenshots/template/src/components/ui/dialog.tsx
@@ -0,0 +1,82 @@
+"use client";
+import * as React from "react";
+import * as DialogPrimitive from "@radix-ui/react-dialog";
+import { X } from "lucide-react";
+import { cn } from "@/lib/utils";
+
+const Dialog = DialogPrimitive.Root;
+const DialogTrigger = DialogPrimitive.Trigger;
+const DialogPortal = DialogPrimitive.Portal;
+const DialogClose = DialogPrimitive.Close;
+
+const DialogOverlay = React.forwardRef<
+ React.ElementRef<typeof DialogPrimitive.Overlay>,
+ React.ComponentPropsWithoutRef<typeof DialogPrimitive.Overlay>
+>(({ className, ...props }, ref) => (
+ <DialogPrimitive.Overlay
+ ref={ref}
+ className={cn(
+ "fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
+ className,
+ )}
+ {...props}
+ />
+));
+DialogOverlay.displayName = DialogPrimitive.Overlay.displayName;
+
+const DialogContent = React.forwardRef<
+ React.ElementRef<typeof DialogPrimitive.Content>,
+ React.ComponentPropsWithoutRef<typeof DialogPrimitive.Content>
+>(({ className, children, ...props }, ref) => (
+ <DialogPortal>
+ <DialogOverlay />
+ <DialogPrimitive.Content
+ ref={ref}
+ className={cn(
+ "fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 sm:rounded-lg",
+ className,
+ )}
+ {...props}
+ >
+ {children}
+ <DialogPrimitive.Close className="absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none">
+ <X className="h-4 w-4" />
+ <span className="sr-only">Close</span>
+ </DialogPrimitive.Close>
+ </DialogPrimitive.Content>
+ </DialogPortal>
+));
+DialogContent.displayName = DialogPrimitive.Content.displayName;
+
+const DialogHeader = ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>) => (
+ <div className={cn("flex flex-col space-y-1.5 text-center sm:text-left", className)} {...props} />
+);
+DialogHeader.displayName = "DialogHeader";
+
+const DialogTitle = React.forwardRef<
+ React.ElementRef<typeof DialogPrimitive.Title>,
+ React.ComponentPropsWithoutRef<typeof DialogPrimitive.Title>
+>(({ className, ...props }, ref) => (
+ <DialogPrimitive.Title ref={ref} className={cn("text-lg font-semibold leading-none tracking-tight", className)} {...props} />
+));
+DialogTitle.displayName = DialogPrimitive.Title.displayName;
+
+const DialogDescription = React.forwardRef<
+ React.ElementRef<typeof DialogPrimitive.Description>,
+ React.ComponentPropsWithoutRef<typeof DialogPrimitive.Description>
+>(({ className, ...props }, ref) => (
+ <DialogPrimitive.Description ref={ref} className={cn("text-sm text-muted-foreground", className)} {...props} />
+));
+DialogDescription.displayName = DialogPrimitive.Description.displayName;
+
+export {
+ Dialog,
+ DialogPortal,
+ DialogOverlay,
+ DialogClose,
+ DialogTrigger,
+ DialogContent,
+ DialogHeader,
+ DialogTitle,
+ DialogDescription,
+};
diff --git a/skills/app-store-screenshots/template/src/components/ui/dropdown-menu.tsx b/skills/app-store-screenshots/template/src/components/ui/dropdown-menu.tsx
new file mode 100644
index 0000000..edf0c9e
--- /dev/null
+++ b/skills/app-store-screenshots/template/src/components/ui/dropdown-menu.tsx
@@ -0,0 +1,98 @@
+"use client";
+import * as React from "react";
+import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu";
+import { Check } from "lucide-react";
+import { cn } from "@/lib/utils";
+
+const DropdownMenu = DropdownMenuPrimitive.Root;
+const DropdownMenuTrigger = DropdownMenuPrimitive.Trigger;
+const DropdownMenuGroup = DropdownMenuPrimitive.Group;
+const DropdownMenuPortal = DropdownMenuPrimitive.Portal;
+
+const DropdownMenuContent = React.forwardRef<
+ React.ElementRef<typeof DropdownMenuPrimitive.Content>,
+ React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Content>
+>(({ className, sideOffset = 4, ...props }, ref) => (
+ <DropdownMenuPrimitive.Portal>
+ <DropdownMenuPrimitive.Content
+ ref={ref}
+ sideOffset={sideOffset}
+ className={cn(
+ "z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
+ className,
+ )}
+ {...props}
+ />
+ </DropdownMenuPrimitive.Portal>
+));
+DropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;
+
+const DropdownMenuItem = React.forwardRef<
+ React.ElementRef<typeof DropdownMenuPrimitive.Item>,
+ React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Item>
+>(({ className, ...props }, ref) => (
+ <DropdownMenuPrimitive.Item
+ ref={ref}
+ className={cn(
+ "relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
+ className,
+ )}
+ {...props}
+ />
+));
+DropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName;
+
+const DropdownMenuCheckboxItem = React.forwardRef<
+ React.ElementRef<typeof DropdownMenuPrimitive.CheckboxItem>,
+ React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.CheckboxItem>
+>(({ className, children, checked, ...props }, ref) => (
+ <DropdownMenuPrimitive.CheckboxItem
+ ref={ref}
+ className={cn(
+ "relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground",
+ className,
+ )}
+ checked={checked}
+ {...props}
+ >
+ <span className="absolute left-2 flex h-3.5 w-3.5 items-center justify-center">
+ <DropdownMenuPrimitive.ItemIndicator>
+ <Check className="h-4 w-4" />
+ </DropdownMenuPrimitive.ItemIndicator>
+ </span>
+ {children}
+ </DropdownMenuPrimitive.CheckboxItem>
+));
+DropdownMenuCheckboxItem.displayName = DropdownMenuPrimitive.CheckboxItem.displayName;
+
+const DropdownMenuSeparator = React.forwardRef<
+ React.ElementRef<typeof DropdownMenuPrimitive.Separator>,
+ React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Separator>
+>(({ className, ...props }, ref) => (
+ <DropdownMenuPrimitive.Separator ref={ref} className={cn("-mx-1 my-1 h-px bg-muted", className)} {...props} />
+));
+DropdownMenuSeparator.displayName = DropdownMenuPrimitive.Separator.displayName;
+
+const DropdownMenuLabel = React.forwardRef<
+ React.ElementRef<typeof DropdownMenuPrimitive.Label>,
+ React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Label>
+>(({ className, ...props }, ref) => (
+ <DropdownMenuPrimitive.Label
+ ref={ref}
+ className={cn("px-2 py-1.5 text-sm font-semibold", className)}
+ {...props}
+ />
+));
+DropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName;
+
+export {
+ DropdownMenu,
+ DropdownMenuTrigger,
+ DropdownMenuContent,
+ DropdownMenuItem,
+ DropdownMenuCheckboxItem,
+ DropdownMenuSeparator,
+ DropdownMenuLabel,
+ DropdownMenuGroup,
+ DropdownMenuPortal,
+};
diff --git a/skills/app-store-screenshots/template/src/components/ui/input.tsx b/skills/app-store-screenshots/template/src/components/ui/input.tsx
new file mode 100644
index 0000000..14abe6b
--- /dev/null
+++ b/skills/app-store-screenshots/template/src/components/ui/input.tsx
@@ -0,0 +1,19 @@
+import * as React from "react";
+import { cn } from "@/lib/utils";
+
+const Input = React.forwardRef<HTMLInputElement, React.InputHTMLAttributes<HTMLInputElement>>(
+ ({ className, type, ...props }, ref) => (
+ <input
+ type={type}
+ className={cn(
+ "flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",
+ className,
+ )}
+ ref={ref}
+ {...props}
+ />
+ ),
+);
+Input.displayName = "Input";
+
+export { Input };
diff --git a/skills/app-store-screenshots/template/src/components/ui/label.tsx b/skills/app-store-screenshots/template/src/components/ui/label.tsx
new file mode 100644
index 0000000..a1217fa
--- /dev/null
+++ b/skills/app-store-screenshots/template/src/components/ui/label.tsx
@@ -0,0 +1,19 @@
+"use client";
+import * as React from "react";
+import * as LabelPrimitive from "@radix-ui/react-label";
+import { cva, type VariantProps } from "class-variance-authority";
+import { cn } from "@/lib/utils";
+
+const labelVariants = cva(
+ "text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",
+);
+
+const Label = React.forwardRef<
+ React.ElementRef<typeof LabelPrimitive.Root>,
+ React.ComponentPropsWithoutRef<typeof LabelPrimitive.Root> & VariantProps<typeof labelVariants>
+>(({ className, ...props }, ref) => (
+ <LabelPrimitive.Root ref={ref} className={cn(labelVariants(), className)} {...props} />
+));
+Label.displayName = LabelPrimitive.Root.displayName;
+
+export { Label };
diff --git a/skills/app-store-screenshots/template/src/components/ui/select.tsx b/skills/app-store-screenshots/template/src/components/ui/select.tsx
new file mode 100644
index 0000000..b1811eb
--- /dev/null
+++ b/skills/app-store-screenshots/template/src/components/ui/select.tsx
@@ -0,0 +1,83 @@
+"use client";
+import * as React from "react";
+import * as SelectPrimitive from "@radix-ui/react-select";
+import { Check, ChevronDown } from "lucide-react";
+import { cn } from "@/lib/utils";
+
+const Select = SelectPrimitive.Root;
+const SelectGroup = SelectPrimitive.Group;
+const SelectValue = SelectPrimitive.Value;
+
+const SelectTrigger = React.forwardRef<
+ React.ElementRef<typeof SelectPrimitive.Trigger>,
+ React.ComponentPropsWithoutRef<typeof SelectPrimitive.Trigger>
+>(({ className, children, ...props }, ref) => (
+ <SelectPrimitive.Trigger
+ ref={ref}
+ className={cn(
+ "flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",
+ className,
+ )}
+ {...props}
+ >
+ {children}
+ <SelectPrimitive.Icon asChild>
+ <ChevronDown className="h-4 w-4 opacity-50" />
+ </SelectPrimitive.Icon>
+ </SelectPrimitive.Trigger>
+));
+SelectTrigger.displayName = SelectPrimitive.Trigger.displayName;
+
+const SelectContent = React.forwardRef<
+ React.ElementRef<typeof SelectPrimitive.Content>,
+ React.ComponentPropsWithoutRef<typeof SelectPrimitive.Content>
+>(({ className, children, position = "popper", ...props }, ref) => (
+ <SelectPrimitive.Portal>
+ <SelectPrimitive.Content
+ ref={ref}
+ className={cn(
+ "relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
+ position === "popper" &&
+ "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",
+ className,
+ )}
+ position={position}
+ {...props}
+ >
+ <SelectPrimitive.Viewport
+ className={cn(
+ "p-1",
+ position === "popper" &&
+ "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]",
+ )}
+ >
+ {children}
+ </SelectPrimitive.Viewport>
+ </SelectPrimitive.Content>
+ </SelectPrimitive.Portal>
+));
+SelectContent.displayName = SelectPrimitive.Content.displayName;
+
+const SelectItem = React.forwardRef<
+ React.ElementRef<typeof SelectPrimitive.Item>,
+ React.ComponentPropsWithoutRef<typeof SelectPrimitive.Item>
+>(({ className, children, ...props }, ref) => (
+ <SelectPrimitive.Item
+ ref={ref}
+ className={cn(
+ "relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
+ className,
+ )}
+ {...props}
+ >
+ <span className="absolute right-2 flex h-3.5 w-3.5 items-center justify-center">
+ <SelectPrimitive.ItemIndicator>
+ <Check className="h-4 w-4" />
+ </SelectPrimitive.ItemIndicator>
+ </span>
+ <SelectPrimitive.ItemText>{children}</SelectPrimitive.ItemText>
+ </SelectPrimitive.Item>
+));
+SelectItem.displayName = SelectPrimitive.Item.displayName;
+
+export { Select, SelectGroup, SelectValue, SelectTrigger, SelectContent, SelectItem };
diff --git a/skills/app-store-screenshots/template/src/components/ui/tabs.tsx b/skills/app-store-screenshots/template/src/components/ui/tabs.tsx
new file mode 100644
index 0000000..c714110
--- /dev/null
+++ b/skills/app-store-screenshots/template/src/components/ui/tabs.tsx
@@ -0,0 +1,53 @@
+"use client";
+import * as React from "react";
+import * as TabsPrimitive from "@radix-ui/react-tabs";
+import { cn } from "@/lib/utils";
+
+const Tabs = TabsPrimitive.Root;
+
+const TabsList = React.forwardRef<
+ React.ElementRef<typeof TabsPrimitive.List>,
+ React.ComponentPropsWithoutRef<typeof TabsPrimitive.List>
+>(({ className, ...props }, ref) => (
+ <TabsPrimitive.List
+ ref={ref}
+ className={cn(
+ "inline-flex h-9 items-center justify-center rounded-lg bg-muted p-1 text-muted-foreground",
+ className,
+ )}
+ {...props}
+ />
+));
+TabsList.displayName = TabsPrimitive.List.displayName;
+
+const TabsTrigger = React.forwardRef<
+ React.ElementRef<typeof TabsPrimitive.Trigger>,
+ React.ComponentPropsWithoutRef<typeof TabsPrimitive.Trigger>
+>(({ className, ...props }, ref) => (
+ <TabsPrimitive.Trigger
+ ref={ref}
+ className={cn(
+ "inline-flex items-center justify-center whitespace-nowrap rounded-md px-3 py-1 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow",
+ className,
+ )}
+ {...props}
+ />
+));
+TabsTrigger.displayName = TabsPrimitive.Trigger.displayName;
+
+const TabsContent = React.forwardRef<
+ React.ElementRef<typeof TabsPrimitive.Content>,
+ React.ComponentPropsWithoutRef<typeof TabsPrimitive.Content>
+>(({ className, ...props }, ref) => (
+ <TabsPrimitive.Content
+ ref={ref}
+ className={cn(
+ "mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
+ className,
+ )}
+ {...props}
+ />
+));
+TabsContent.displayName = TabsPrimitive.Content.displayName;
+
+export { Tabs, TabsList, TabsTrigger, TabsContent };
diff --git a/skills/app-store-screenshots/template/src/components/ui/textarea.tsx b/skills/app-store-screenshots/template/src/components/ui/textarea.tsx
new file mode 100644
index 0000000..2b1b900
--- /dev/null
+++ b/skills/app-store-screenshots/template/src/components/ui/textarea.tsx
@@ -0,0 +1,18 @@
+import * as React from "react";
+import { cn } from "@/lib/utils";
+
+const Textarea = React.forwardRef<HTMLTextAreaElement, React.TextareaHTMLAttributes<HTMLTextAreaElement>>(
+ ({ className, ...props }, ref) => (
+ <textarea
+ ref={ref}
+ className={cn(
+ "flex min-h-[60px] w-full rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",
+ className,
+ )}
+ {...props}
+ />
+ ),
+);
+Textarea.displayName = "Textarea";
+
+export { Textarea };
diff --git a/skills/app-store-screenshots/template/src/components/ui/tooltip.tsx b/skills/app-store-screenshots/template/src/components/ui/tooltip.tsx
new file mode 100644
index 0000000..7099e9d
--- /dev/null
+++ b/skills/app-store-screenshots/template/src/components/ui/tooltip.tsx
@@ -0,0 +1,26 @@
+"use client";
+import * as React from "react";
+import * as TooltipPrimitive from "@radix-ui/react-tooltip";
+import { cn } from "@/lib/utils";
+
+const TooltipProvider = TooltipPrimitive.Provider;
+const Tooltip = TooltipPrimitive.Root;
+const TooltipTrigger = TooltipPrimitive.Trigger;
+
+const TooltipContent = React.forwardRef<
+ React.ElementRef<typeof TooltipPrimitive.Content>,
+ React.ComponentPropsWithoutRef<typeof TooltipPrimitive.Content>
+>(({ className, sideOffset = 4, ...props }, ref) => (
+ <TooltipPrimitive.Content
+ ref={ref}
+ sideOffset={sideOffset}
+ className={cn(
+ "z-50 overflow-hidden rounded-md bg-primary px-3 py-1.5 text-xs text-primary-foreground animate-in fade-in-0 zoom-in-95",
+ className,
+ )}
+ {...props}
+ />
+));
+TooltipContent.displayName = TooltipPrimitive.Content.displayName;
+
+export { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider };
diff --git a/skills/app-store-screenshots/template/src/lib/constants.ts b/skills/app-store-screenshots/template/src/lib/constants.ts
new file mode 100644
index 0000000..2f64c20
--- /dev/null
+++ b/skills/app-store-screenshots/template/src/lib/constants.ts
@@ -0,0 +1,132 @@
+import type { Device, Theme, ThemeId } from "./types";
+
+// ---------- Canvas dimensions (design at largest required resolution) ----------
+export const CANVAS: Record<Device, { w: number; h: number; wL?: number; hL?: number }> = {
+ iphone: { w: 1320, h: 2868 },
+ ipad: { w: 2064, h: 2752 },
+ android: { w: 1080, h: 1920 },
+ "android-7": { w: 1200, h: 1920, wL: 1920, hL: 1200 },
+ "android-10": { w: 1600, h: 2560, wL: 2560, hL: 1600 },
+ "feature-graphic": { w: 1024, h: 500 },
+};
+
+// ---------- Export sizes per device ----------
+export type ExportSize = { label: string; w: number; h: number };
+
+export const EXPORT_SIZES: Record<Device, ExportSize[]> = {
+ iphone: [
+ { label: '6.9"', w: 1320, h: 2868 },
+ { label: '6.5"', w: 1284, h: 2778 },
+ { label: '6.3"', w: 1206, h: 2622 },
+ { label: '6.1"', w: 1125, h: 2436 },
+ ],
+ ipad: [
+ { label: '13" iPad', w: 2064, h: 2752 },
+ { label: '12.9" iPad Pro', w: 2048, h: 2732 },
+ ],
+ android: [{ label: "Phone", w: 1080, h: 1920 }],
+ "android-7": [{ label: '7" Portrait', w: 1200, h: 1920 }],
+ "android-10": [{ label: '10" Portrait', w: 1600, h: 2560 }],
+ "feature-graphic": [{ label: "Feature Graphic", w: 1024, h: 500 }],
+};
+
+// Landscape sizes (tablets only)
+export const EXPORT_SIZES_LANDSCAPE: Partial<Record<Device, ExportSize[]>> = {
+ "android-7": [{ label: '7" Landscape', w: 1920, h: 1200 }],
+ "android-10": [{ label: '10" Landscape', w: 2560, h: 1600 }],
+};
+
+// ---------- Frame aspect ratios ----------
+export const MK_RATIO = 1022 / 2082; // iPhone PNG mockup
+export const TAB_P_RATIO = 0.667; // tablet portrait
+export const TAB_L_RATIO = 1.5; // tablet landscape
+export const IPAD_RATIO = 0.770; // iPad
+
+// iPhone mockup screen overlay (pre-measured)
+export const PHONE_SCREEN = {
+ L: (52 / 1022) * 100,
+ T: (46 / 2082) * 100,
+ W: (918 / 1022) * 100,
+ H: (1990 / 2082) * 100,
+ RX: (126 / 918) * 100,
+ RY: (126 / 1990) * 100,
+};
+
+// ---------- Width formula helpers ----------
+export type WidthFn = (cW: number, cH: number) => number;
+
+export function phoneW(cW: number, cH: number, clamp = 0.84) {
+ return Math.min(clamp, 0.72 * (cH / cW) * MK_RATIO);
+}
+export function phoneWSmall(cW: number, cH: number) {
+ return phoneW(cW, cH, 0.66);
+}
+export function tabletPW(cW: number, cH: number, clamp = 0.80) {
+ return Math.min(clamp, 0.72 * (cH / cW) * TAB_P_RATIO);
+}
+export function tabletLW(cW: number, cH: number, clamp = 0.62) {
+ return Math.min(clamp, 0.75 * (cH / cW) * TAB_L_RATIO);
+}
+export function ipadW(cW: number, cH: number, clamp = 0.75) {
+ return Math.min(clamp, 0.72 * (cH / cW) * IPAD_RATIO);
+}
+
+// ---------- Themes ----------
+export const THEMES: Record<ThemeId, Theme> = {
+ "clean-light": {
+ id: "clean-light",
+ name: "Clean Light",
+ bg: "#F6F1EA",
+ bgAlt: "#171717",
+ fg: "#171717",
+ fgAlt: "#F6F1EA",
+ accent: "#5B7CFA",
+ muted: "#6B7280",
+ },
+ "dark-bold": {
+ id: "dark-bold",
+ name: "Dark Bold",
+ bg: "#0B1020",
+ bgAlt: "#F8FAFC",
+ fg: "#F8FAFC",
+ fgAlt: "#0B1020",
+ accent: "#8B5CF6",
+ muted: "#94A3B8",
+ },
+ "warm-editorial": {
+ id: "warm-editorial",
+ name: "Warm Editorial",
+ bg: "#F7E8DA",
+ bgAlt: "#2B1D17",
+ fg: "#2B1D17",
+ fgAlt: "#F7E8DA",
+ accent: "#D97706",
+ muted: "#7C5A47",
+ },
+ "ocean-fresh": {
+ id: "ocean-fresh",
+ name: "Ocean Fresh",
+ bg: "#E0F2FE",
+ bgAlt: "#0C4A6E",
+ fg: "#0C4A6E",
+ fgAlt: "#E0F2FE",
+ accent: "#0284C7",
+ muted: "#475569",
+ },
+};
+
+export const LOCALES = ["en", "de", "es", "fr", "ja", "pt"] as const;
+export type Locale = typeof LOCALES[number];
+
+export const STORAGE_KEY = "app-store-screenshots:project:v1";
+
+export const DEVICE_LABEL: Record<Device, string> = {
+ iphone: "iPhone",
+ ipad: "iPad",
+ android: "Android Phone",
+ "android-7": 'Android 7" Tablet',
+ "android-10": 'Android 10" Tablet',
+ "feature-graphic": "Feature Graphic",
+};
+
+export const RTL_LOCALES = new Set(["ar", "he", "fa", "ur"]);
diff --git a/skills/app-store-screenshots/template/src/lib/defaults.ts b/skills/app-store-screenshots/template/src/lib/defaults.ts
new file mode 100644
index 0000000..6b65ca7
--- /dev/null
+++ b/skills/app-store-screenshots/template/src/lib/defaults.ts
@@ -0,0 +1,108 @@
+import type { Device, ProjectState, Slide } from "./types";
+
+let _id = 0;
+const nid = () => `s_${Date.now().toString(36)}_${(_id++).toString(36)}`;
+
+function makeStarterSlides(platform: "ios" | "android"): Slide[] {
+ const folder = platform === "ios" ? "apple/iphone" : "android/phone";
+ return [
+ {
+ id: nid(),
+ layout: "hero",
+ label: "MEET YOUR APP",
+ headline: "Sell one\nidea per slide.",
+ screenshot: `/screenshots/${folder}/en/01.png`,
+ },
+ {
+ id: nid(),
+ layout: "device-bottom",
+ label: "FEATURE 01",
+ headline: "Your headline\nlives here.",
+ screenshot: `/screenshots/${folder}/en/02.png`,
+ },
+ {
+ id: nid(),
+ layout: "two-devices",
+ label: "FEATURE 02",
+ headline: "Show two\nscreens at once.",
+ screenshot: `/screenshots/${folder}/en/03.png`,
+ screenshotSecondary: `/screenshots/${folder}/en/04.png`,
+ },
+ {
+ id: nid(),
+ layout: "device-top",
+ label: "FEATURE 03",
+ headline: "Flip the contrast\nfor visual rhythm.",
+ screenshot: `/screenshots/${folder}/en/05.png`,
+ inverted: true,
+ },
+ {
+ id: nid(),
+ layout: "no-device",
+ label: "MORE",
+ headline: "And so\nmuch more.",
+ screenshot: "",
+ },
+ ];
+}
+
+function ipadStarter(): Slide[] {
+ return [
+ {
+ id: nid(),
+ layout: "hero",
+ label: "MEET YOUR APP",
+ headline: "Made for\nthe big screen.",
+ screenshot: "/screenshots/apple/ipad/en/01.png",
+ },
+ ];
+}
+
+function fgStarter(): Slide[] {
+ return [
+ {
+ id: nid(),
+ layout: "feature-graphic",
+ label: "",
+ headline: "Your tagline goes here.",
+ screenshot: "",
+ },
+ ];
+}
+
+export const DEFAULT_PROJECT: ProjectState = {
+ appName: "My App",
+ tagline: "Your tagline here.",
+ themeId: "clean-light",
+ locale: "en",
+ device: "iphone",
+ orientation: "portrait",
+ appIcon: "/app-icon.png",
+ slidesByDevice: {
+ iphone: makeStarterSlides("ios"),
+ android: makeStarterSlides("android"),
+ ipad: ipadStarter(),
+ "android-7": [],
+ "android-10": [],
+ "feature-graphic": fgStarter(),
+ },
+};
+
+export function newSlide(layout: Slide["layout"] = "device-bottom"): Slide {
+ return {
+ id: nid(),
+ layout,
+ label: "NEW",
+ headline: "Edit this\nheadline.",
+ screenshot: "",
+ };
+}
+
+export const PLATFORM_TO_DEFAULT_DEVICE: Record<"ios" | "android", Device> = {
+ ios: "iphone",
+ android: "android",
+};
+
+export function detectPlatform(device: Device): "ios" | "android" {
+ return device === "iphone" || device === "ipad" ? "ios" : "android";
+}
diff --git a/skills/app-store-screenshots/template/src/lib/image-cache.ts b/skills/app-store-screenshots/template/src/lib/image-cache.ts
new file mode 100644
index 0000000..2ff3915
--- /dev/null
+++ b/skills/app-store-screenshots/template/src/lib/image-cache.ts
@@ -0,0 +1,46 @@
+"use client";
+// Pre-loads images as base64 data URIs so html-to-image exports without
+// non-deterministic image fetch races. Always use img(path) in render.
+
+const cache = new Map<string, string>();
+
+async function fetchAsDataUrl(path: string): Promise<string | null> {
+ try {
+ const resp = await fetch(path);
+ if (!resp.ok) return null;
+ const blob = await resp.blob();
+ return await new Promise<string>((resolve, reject) => {
+ const reader = new FileReader();
+ reader.onloadend = () => resolve(reader.result as string);
+ reader.onerror = reject;
+ reader.readAsDataURL(blob);
+ });
+ } catch {
+ return null;
+ }
+}
+
+export async function preloadImages(paths: string[]): Promise<void> {
+ await Promise.all(
+ paths
+ .filter(Boolean)
+ .filter((p) => !cache.has(p))
+ .map(async (p) => {
+ const data = await fetchAsDataUrl(p);
+ if (data) cache.set(p, data);
+ }),
+ );
+}
+
+export function img(path: string | undefined): string {
+ if (!path) return "";
+ return cache.get(path) || path;
+}
+
+export function setImage(path: string, dataUrl: string) {
+ cache.set(path, dataUrl);
+}
+
+export function hasImage(path: string): boolean {
+ return cache.has(path);
+}
diff --git a/skills/app-store-screenshots/template/src/lib/storage.ts b/skills/app-store-screenshots/template/src/lib/storage.ts
new file mode 100644
index 0000000..f2bdbb6
--- /dev/null
+++ b/skills/app-store-screenshots/template/src/lib/storage.ts
@@ -0,0 +1,63 @@
+"use client";
+import { useEffect, useRef, useState } from "react";
+import { STORAGE_KEY } from "./constants";
+import { DEFAULT_PROJECT } from "./defaults";
+import type { ProjectState } from "./types";
+
+function load(): ProjectState {
+ if (typeof window === "undefined") return DEFAULT_PROJECT;
+ try {
+ const raw = window.localStorage.getItem(STORAGE_KEY);
+ if (!raw) return DEFAULT_PROJECT;
+ const parsed = JSON.parse(raw) as ProjectState;
+ // Merge any new device decks added since last save
+ return {
+ ...DEFAULT_PROJECT,
+ ...parsed,
+ slidesByDevice: { ...DEFAULT_PROJECT.slidesByDevice, ...parsed.slidesByDevice },
+ };
+ } catch {
+ return DEFAULT_PROJECT;
+ }
+}
+
+function save(state: ProjectState) {
+ if (typeof window === "undefined") return;
+ try {
+ window.localStorage.setItem(STORAGE_KEY, JSON.stringify(state));
+ } catch (e) {
+ console.warn("Autosave failed", e);
+ }
+}
+
+export function useProject() {
+ const [state, setState] = useState<ProjectState>(DEFAULT_PROJECT);
+ const [hydrated, setHydrated] = useState(false);
+ const [savedAt, setSavedAt] = useState<number | null>(null);
+ const timer = useRef<ReturnType<typeof setTimeout> | null>(null);
+
+ // Hydrate once from localStorage
+ useEffect(() => {
+ setState(load());
+ setHydrated(true);
+ }, []);
+
+ // Debounced autosave
+ useEffect(() => {
+ if (!hydrated) return;
+ if (timer.current) clearTimeout(timer.current);
+ timer.current = setTimeout(() => {
+ save(state);
+ setSavedAt(Date.now());
+ }, 400);
+ return () => {
+ if (timer.current) clearTimeout(timer.current);
+ };
+ }, [state, hydrated]);
+
+ function reset() {
+ setState(DEFAULT_PROJECT);
+ }
+
+ return { state, setState, hydrated, savedAt, reset };
+}
diff --git a/skills/app-store-screenshots/template/src/lib/types.ts b/skills/app-store-screenshots/template/src/lib/types.ts
new file mode 100644
index 0000000..2bc1c7e
--- /dev/null
+++ b/skills/app-store-screenshots/template/src/lib/types.ts
@@ -0,0 +1,56 @@
+export type Device =
+ | "iphone"
+ | "ipad"
+ | "android"
+ | "android-7"
+ | "android-10"
+ | "feature-graphic";
+
+export type Orientation = "portrait" | "landscape";
+
+export type Platform = "ios" | "android";
+
+// Layouts the editor can render. Vary across slides for visual rhythm.
+export type SlideLayout =
+ | "hero" // centered device, headline above
+ | "device-bottom" // headline top, device bottom-center
+ | "device-top" // device top, headline bottom (contrast)
+ | "two-devices" // back + front phones, headline above
+ | "no-device" // big headline + decorative blob, no device
+ | "split-landscape" // landscape tablets only: caption left + device right
+ | "feature-graphic"; // 1024×500 banner with icon + name + tagline
+
+export type Slide = {
+ id: string;
+ layout: SlideLayout;
+ label: string; // tiny uppercase caption above headline
+ headline: string; // multi-line; newlines are intentional
+ screenshot: string; // path under /screenshots/ (or "" for none)
+ screenshotSecondary?: string; // for two-devices layout
+ inverted?: boolean; // dark background variant
+};
+
+export type ThemeId = "clean-light" | "dark-bold" | "warm-editorial" | "ocean-fresh";
+
+export type Theme = {
+ id: ThemeId;
+ name: string;
+ bg: string; // primary background
+ bgAlt: string; // inverted background
+ fg: string; // text on bg
+ fgAlt: string; // text on bgAlt
+ accent: string;
+ muted: string;
+};
+
+export type ProjectState = {
+ appName: string;
+ tagline: string;
+ themeId: ThemeId;
+ locale: string;
+ device: Device;
+ orientation: Orientation;
+ // Per-device slide decks so platform switching preserves work
+ slidesByDevice: Record<Device, Slide[]>;
+ appIcon?: string; // path under /public (e.g. /app-icon.png)
+};
diff --git a/skills/app-store-screenshots/template/src/lib/utils.ts b/skills/app-store-screenshots/template/src/lib/utils.ts
new file mode 100644
index 0000000..a5ef193
--- /dev/null
+++ b/skills/app-store-screenshots/template/src/lib/utils.ts
@@ -0,0 +1,6 @@
+import { clsx, type ClassValue } from "clsx";
+import { twMerge } from "tailwind-merge";
+
+export function cn(...inputs: ClassValue[]) {
+ return twMerge(clsx(inputs));
+}
diff --git a/skills/app-store-screenshots/template/tailwind.config.ts b/skills/app-store-screenshots/template/tailwind.config.ts
new file mode 100644
index 0000000..7fc6933
--- /dev/null
+++ b/skills/app-store-screenshots/template/tailwind.config.ts
@@ -0,0 +1,67 @@
+import type { Config } from "tailwindcss";
+
+const config: Config = {
+ darkMode: ["class"],
+ content: ["./src/**/*.{ts,tsx}"],
+ theme: {
+ container: { center: true, padding: "2rem", screens: { "2xl": "1400px" } },
+ extend: {
+ colors: {
+ border: "hsl(var(--border))",
+ input: "hsl(var(--input))",
+ ring: "hsl(var(--ring))",
+ background: "hsl(var(--background))",
+ foreground: "hsl(var(--foreground))",
+ primary: {
+ DEFAULT: "hsl(var(--primary))",
+ foreground: "hsl(var(--primary-foreground))",
+ },
+ secondary: {
+ DEFAULT: "hsl(var(--secondary))",
+ foreground: "hsl(var(--secondary-foreground))",
+ },
+ destructive: {
+ DEFAULT: "hsl(var(--destructive))",
+ foreground: "hsl(var(--destructive-foreground))",
+ },
+ muted: {
+ DEFAULT: "hsl(var(--muted))",
+ foreground: "hsl(var(--muted-foreground))",
+ },
+ accent: {
+ DEFAULT: "hsl(var(--accent))",
+ foreground: "hsl(var(--accent-foreground))",
+ },
+ popover: {
+ DEFAULT: "hsl(var(--popover))",
+ foreground: "hsl(var(--popover-foreground))",
+ },
+ card: {
+ DEFAULT: "hsl(var(--card))",
+ foreground: "hsl(var(--card-foreground))",
+ },
+ },
+ borderRadius: {
+ lg: "var(--radius)",
+ md: "calc(var(--radius) - 2px)",
+ sm: "calc(var(--radius) - 4px)",
+ },
+ keyframes: {
+ "accordion-down": {
+ from: { height: "0" },
+ to: { height: "var(--radix-accordion-content-height)" },
+ },
+ "accordion-up": {
+ from: { height: "var(--radix-accordion-content-height)" },
+ to: { height: "0" },
+ },
+ },
+ animation: {
+ "accordion-down": "accordion-down 0.2s ease-out",
+ "accordion-up": "accordion-up 0.2s ease-out",
+ },
+ },
+ },
+ plugins: [require("tailwindcss-animate")],
+};
+export default config;
diff --git a/skills/app-store-screenshots/template/tsconfig.json b/skills/app-store-screenshots/template/tsconfig.json
new file mode 100644
index 0000000..334fafd
--- /dev/null
+++ b/skills/app-store-screenshots/template/tsconfig.json
@@ -0,0 +1,21 @@
+{
+ "compilerOptions": {
+ "target": "ES2022",
+ "lib": ["dom", "dom.iterable", "esnext"],
+ "allowJs": true,
+ "skipLibCheck": true,
+ "strict": true,
+ "noEmit": true,
+ "esModuleInterop": true,
+ "module": "esnext",
+ "moduleResolution": "bundler",
+ "resolveJsonModule": true,
+ "isolatedModules": true,
+ "jsx": "preserve",
+ "incremental": true,
+ "plugins": [{ "name": "next" }],
+ "paths": { "@/*": ["./src/*"] }
+ },
+ "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
+ "exclude": ["node_modules"]
+}