SPARK WORKFLOW

从灵感到现实
只需 5 分钟

无论你是编程小白还是资深极客,这里都有适合你的创作路径。

路径一:极速创作

推荐新手使用

无需离开网站,直接使用 Spark 内置的 AI 引擎。输入一句话,立刻生成可交互的应用预览。所见即所得。

进入创作向导

路径二:极客模式

适合高阶玩家

使用 ChatGPT、Claude 或 DeepSeek 等外部强力模型。配合 Spark 标准协议 Prompt,获得最极致的代码控制权。

极客模式详细流程

1

获取 Spark 协议 Prompt

为了确保生成的代码能完美适配 Spark 平台(移动端优化、单文件结构),请务必使用以下标准 Prompt 模板。

# Role
Expert React Developer (Single File Component Specialist).


# Task
Create a high-quality, production-ready [Tool Name: 你的工具名称] using React.


# Description
[在此处详细描述你的功能需求、交互逻辑和视觉风格。例如:"一个倒计时器,背景是动态的星空,倒计时结束时播放音效..."]


# Technical Specifications (Spark Standard)

1. Single File: All code (HTML, CSS, JS) must be in a SINGLE `.html` file.

2. React Stack: Use React 18, ReactDOM 18, and Babel Standalone via CDN.

3. Styling: Use Tailwind CSS (CDN) for all styling.

4. Icons: Use FontAwesome (CDN) for icons.


# Mobile-First & Native-Like Experience (CRITICAL)

1. Viewport: <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, viewport-fit=cover">

2. No Select: Disable text selection for app-like feel: body { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }

3. Touch Feedback: Add active states for all interactive elements (e.g., `active:scale-95`).

4. Full Height: Ensure `h-screen` and `overflow-hidden` on body to prevent browser bounce, use internal scrolling areas.

5. Safe Area: Handle `env(safe-area-inset-bottom)` for modern mobile devices.


# Design System (Neo-Brutalism / Modern)

- Background: Dark mode default (`bg-slate-900` or similar).

- Typography: Sans-serif, legible, high contrast.

- Components: Rounded corners, subtle shadows, polished transitions.


# Output Format
Return ONLY the raw HTML code. Do not wrap in markdown code blocks.

2

AI 铸造 (Generate)

将复制的 Prompt 发送给任意主流 AI 模型。等待它吐出完整的 HTML 代码。

D
DeepSeek
ChatGPT
C
Claude
3

本地保存 (Save)

将代码保存为 .html 文件,它就变成了真正的应用。

  1. 1新建文本文档 (.txt)
  2. 2粘贴 AI 生成的代码
  3. 3重命名为 app.html
4

上传增强 (Enhance)

为什么要把本地文件上传回 SparkVertex?因为我们会为你的代码注入灵魂。

  • 安全审计 (排除恶意代码)
  • 移动端触摸优化注入
  • AI 自动生成应用图标
  • 开启打赏与付费查看源码
立即上传增强