> ## Documentation Index
> Fetch the complete documentation index at: https://docs.replit.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Generate App Store screenshots

> Use Replit's built-in image generation to create PixelGames' store screenshots.

export const PromptActions = ({prompt = "", campaign = "docs-prompt-actions"}) => {
  const LZ_SRC = "https://cdnjs.cloudflare.com/ajax/libs/lz-string/1.5.0/lz-string.min.js";
  const ensureLZString = () => {
    if (typeof document === "undefined") return;
    if (window.LZString) return;
    if (document.querySelector(`script[src="${LZ_SRC}"]`)) return;
    const s = document.createElement("script");
    s.src = LZ_SRC;
    s.async = true;
    document.head.appendChild(s);
  };
  const handleCopy = async e => {
    const btn = e.currentTarget;
    if (!prompt) return;
    try {
      await navigator.clipboard.writeText(prompt);
    } catch {
      const ta = document.createElement("textarea");
      ta.value = prompt;
      document.body.appendChild(ta);
      ta.select();
      try {
        document.execCommand("copy");
      } catch {}
      document.body.removeChild(ta);
    }
    const original = btn.dataset.label || btn.innerText;
    btn.dataset.label = original;
    btn.innerText = "Copied!";
    setTimeout(() => {
      if (btn.isConnected) btn.innerText = original;
    }, 1500);
  };
  const handleBuild = () => {
    if (!prompt || typeof window === "undefined") return;
    const utm = `utm_source=replit-docs&utm_medium=docs&utm_campaign=${encodeURIComponent(campaign)}&utm_content=prompt-actions`;
    let url;
    if (window.LZString) {
      const encoded = window.LZString.compressToEncodedURIComponent(prompt);
      url = `https://replit.com/?prompt=${encoded}&referrer=replit-docs&${utm}`;
    } else {
      url = `https://replit.com/?prompt=${encodeURIComponent(prompt)}&referrer=replit-docs&${utm}`;
    }
    window.open(url, "_blank", "noopener,noreferrer");
  };
  ensureLZString();
  const baseButtonStyle = {
    display: "inline-flex",
    alignItems: "center",
    gap: "6px",
    padding: "8px 16px",
    borderRadius: "8px",
    fontSize: "14px",
    fontWeight: 500,
    cursor: "pointer",
    lineHeight: 1.2,
    fontFamily: "inherit",
    textDecoration: "none"
  };
  return <div style={{
    display: "flex",
    gap: "12px",
    margin: "16px 0",
    flexWrap: "wrap",
    alignItems: "center"
  }}>
      <button type="button" onClick={handleCopy} style={{
    ...baseButtonStyle,
    background: "transparent",
    color: "inherit",
    border: "1px solid rgba(127,127,127,0.4)"
  }}>
        Copy the prompt
      </button>
      <button type="button" onClick={handleBuild} style={{
    ...baseButtonStyle,
    background: "#F26207",
    color: "#FFFFFF",
    border: "1px solid #F26207"
  }}>
        Build on Replit ↗
      </button>
    </div>;
};

export const AiPrompt = ({children}) => {
  return <CodeBlock className="relative block font-sans whitespace-pre-wrap break-words">
      <div className="pr-7">
        {children}
      </div>
    </CodeBlock>;
};

export const appStoreScreenshotsPrompt = "Create 5 beautiful, engaging App Store screenshots at 1284x2778 px that make users want to download the app.";
export const featureGraphicPrompt = "Generate a 1024x500 feature graphic for PixelGames' Google Play listing, using the same Game Boy theme as the app icon.";

Both stores also require screenshots, and Google Play a feature graphic, before they'll accept
a submission. Replit can turn real screenshots of PixelGames into polished marketing images
directly.

## What each store needs

* **App Store:** at least one screenshot at **1284×2778 px**, the 6.5" iPhone size.
* **Google Play:** at least two phone screenshots, plus a 1024×500 feature graphic shown at
  the top of the listing.

## Generate marketing screenshots

<AiPrompt>
  {appStoreScreenshotsPrompt}
</AiPrompt>

<PromptActions prompt={appStoreScreenshotsPrompt} campaign="docs-mobile-store-screenshots" />

<Frame caption="Five App Store marketing screenshots Agent generated for PixelGames, each with its own headline and color theme.">
  <img src="https://mintcdn.com/replit/WuaQIOfW5oxRlxex/images/pixelgames/mobile/appstore-screenshot.png?fit=max&auto=format&n=WuaQIOfW5oxRlxex&q=85&s=ef52c550538e76ec81d8dd6ad2a1f8f6" alt="Five generated PixelGames App Store marketing screenshots with headlines and phone frames" data-path="images/pixelgames/mobile/appstore-screenshot.png" width="1917" height="990" data-path="images/pixelgames/mobile/appstore-screenshot.png" />
</Frame>

## Generate a feature graphic (Google Play)

<AiPrompt>
  {featureGraphicPrompt}
</AiPrompt>

<PromptActions prompt={featureGraphicPrompt} campaign="docs-mobile-store-screenshots" />

## What's next

<CardGroup cols={2}>
  <Card title="Generate an app icon" icon="image" href="/build/mobile-app-icon">
    Create the icon each store needs.
  </Card>

  <Card title="Submit to Google Play" icon="android" href="/build/mobile-publish-android">
    Use these assets in the Play Console listing.
  </Card>
</CardGroup>

## Related

* [Preview and test on your phone](/build/mobile-preview-testing)
