Skip to content

Commit 6254f19

Browse files
committed
docs: embed real demo videos in README + website
Drops the last placehold.co stand-ins. Four real demos shipping: - app-showcase — multi-view app tour, hero loop - claude-code-import — one-click config import, most differentiated feature - generate-from-scratch — full flow from blank prompt to finished artifact - artifact-walkthrough — section / tab / hover interactions README hero uses the app-showcase loop; README Quick Demo section pairs claude-code-import (differentiation) + generate-from-scratch (full story). Both English and 简体中文 mirrored. Website: DemoVideo component wraps the public-folder URL through VitePress's `useData().site.base` at runtime, because raw <source src="/demos/..."> triggered Rollup to resolve the path as a module import and `$withBase` is not a global. The hero slot autoplays muted; the body slot ships with user controls so visitors can pause the 86-second walkthrough. All four GIFs fit under GitHub's 10 MB README embed limit. MP4 encoded at CRF 23 / preset slow; 2.5–3× speed-up on the static demos, 5× on the generation demo where LLM wait time dominated.
1 parent 760fe17 commit 6254f19

15 files changed

Lines changed: 130 additions & 12 deletions

README.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@
77
[Website](https://opencoworkai.github.io/open-codesign/) · [Quickstart](#quickstart) · [vs Claude Design](https://opencoworkai.github.io/open-codesign/claude-design-alternative) · [Docs](https://opencoworkai.github.io/open-codesign/quickstart) · [Contributing](./CONTRIBUTING.md) · [Security](./SECURITY.md)
88

99
<p align="center">
10-
<img src="https://placehold.co/1200x600/E8E5DE/0E0E10?text=open-codesign+demo" alt="Open CoDesign — prompt to prototype (demo coming soon)" width="900" />
11-
<!-- Hero placeholder via placehold.co — real screenshot coming before launch -->
10+
<img src="https://raw.githubusercontent.com/OpenCoworkAI/open-codesign/main/website/public/demos/app-showcase.gif" alt="Open CoDesign — multi-view app tour" width="900" />
1211
</p>
1312

1413
<p align="center">
@@ -30,12 +29,15 @@ Open CoDesign turns a natural-language prompt into a polished HTML prototype, sl
3029

3130
---
3231

33-
## Quick demo (60 s)
32+
## Quick demo
3433

35-
_Demo video coming soon._
34+
Already using Claude Code? Your providers, models, and API keys import in one click:
3635

37-
![Prompt to prototype in seconds](https://placehold.co/800x450/f5f0eb/c96442?text=Demo+GIF+coming+soon)
38-
<!-- Replace with real demo GIF before launch -->
36+
![Import from Claude Code in one click](https://raw.githubusercontent.com/OpenCoworkAI/open-codesign/main/website/public/demos/claude-code-import.gif)
37+
38+
From a blank prompt to a finished design — watch the agent plan, write, and self-check, then hand you back an artifact that already has hover states, tabs, and empty states wired up:
39+
40+
![Generate a design from scratch](https://raw.githubusercontent.com/OpenCoworkAI/open-codesign/main/website/public/demos/generate-from-scratch.gif)
3941

4042
---
4143

README.zh-CN.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@
77
[官网](https://opencoworkai.github.io/open-codesign/) · [快速开始](#快速开始) · [对比 Claude Design](https://opencoworkai.github.io/open-codesign/zh/claude-design-alternative) · [贡献指南](./CONTRIBUTING.md) · [安全政策](./SECURITY.md)
88

99
<p align="center">
10-
<img src="https://placehold.co/1200x600/E8E5DE/0E0E10?text=open-codesign+demo" alt="Open CoDesign — 提示词到原型(演示即将上线)" width="900" />
11-
<!-- Hero 占位(placehold.co)— 正式发布前替换为真实截图 -->
10+
<img src="https://raw.githubusercontent.com/OpenCoworkAI/open-codesign/main/website/public/demos/app-showcase.gif" alt="Open CoDesign — 多视图应用展示" width="900" />
1211
</p>
1312

1413
<p align="center">
@@ -30,12 +29,15 @@ Open CoDesign 把自然语言提示词变成精美的 HTML 原型、幻灯片或
3029

3130
---
3231

33-
## 快速演示(60 秒)
32+
## 快速演示
3433

35-
_演示视频即将上线。_
34+
已经在用 Claude Code?一键把 providers、模型、API key 全部导进来:
3635

37-
![几秒内从提示词到原型](https://placehold.co/800x450/f5f0eb/c96442?text=演示+GIF+即将上线)
38-
<!-- 发布前替换为真实 GIF -->
36+
![一键导入 Claude Code 配置](https://raw.githubusercontent.com/OpenCoworkAI/open-codesign/main/website/public/demos/claude-code-import.gif)
37+
38+
从一条 prompt 到完整 design——看 agent 规划、写代码、自检,最后交回一个 hover / tab / 空状态都已接好的交互式 artifact:
39+
40+
![从零生成一个 design](https://raw.githubusercontent.com/OpenCoworkAI/open-codesign/main/website/public/demos/generate-from-scratch.gif)
3941

4042
---
4143

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
<script setup lang="ts">
2+
import { useData } from 'vitepress';
3+
import { computed } from 'vue';
4+
5+
/**
6+
* Thin wrapper around <video> that resolves a public-folder URL through
7+
* VitePress's `base` config at runtime. Using `<source src="/demos/foo.mp4">`
8+
* directly in markdown triggers Rollup to resolve it as a module import,
9+
* which fails with the site's `/open-codesign/` base prefix.
10+
*/
11+
const props = defineProps<{
12+
/** Path under `website/public`, e.g. `/demos/app-showcase.mp4`. */
13+
src: string;
14+
/** Poster image, also public-folder relative. */
15+
poster?: string;
16+
/** Autoplay loop muted (hero variant); otherwise show controls. */
17+
hero?: boolean;
18+
/** Label read by screen readers / UA. */
19+
label?: string;
20+
}>();
21+
22+
const { site } = useData();
23+
24+
const base = computed(() => site.value.base.replace(/\/$/, ''));
25+
const url = computed(() => `${base.value}${props.src}`);
26+
const posterUrl = computed(() =>
27+
props.poster ? `${base.value}${props.poster}` : undefined,
28+
);
29+
</script>
30+
31+
<template>
32+
<video
33+
v-if="hero"
34+
autoplay
35+
loop
36+
muted
37+
playsinline
38+
preload="metadata"
39+
:poster="posterUrl"
40+
:aria-label="label"
41+
>
42+
<source :src="url" type="video/mp4" />
43+
</video>
44+
<video
45+
v-else
46+
controls
47+
preload="metadata"
48+
:poster="posterUrl"
49+
:aria-label="label"
50+
>
51+
<source :src="url" type="video/mp4" />
52+
</video>
53+
</template>

website/.vitepress/theme/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
import DefaultTheme from 'vitepress/theme';
2+
import DemoVideo from './DemoVideo.vue';
23
import SmartDownload from './SmartDownload.vue';
34
import './style.css';
45

56
export default {
67
extends: DefaultTheme,
78
enhanceApp({ app }: { app: import('vue').App }) {
89
app.component('SmartDownload', SmartDownload);
10+
app.component('DemoVideo', DemoVideo);
911
},
1012
};

website/.vitepress/theme/style.css

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -283,3 +283,30 @@ body {
283283
background: var(--color-accent-hover);
284284
transform: translateY(-1px);
285285
}
286+
287+
/* ── Demo video blocks ──────────────────────────────────────────────────── */
288+
289+
/* Hero autoplay loop — sits between the VitePress hero and SmartDownload. */
290+
.codesign-hero-video {
291+
max-width: 1080px;
292+
margin: 2rem auto 0.5rem;
293+
padding: 0 1.5rem;
294+
}
295+
.codesign-hero-video video {
296+
width: 100%;
297+
border-radius: 14px;
298+
display: block;
299+
box-shadow: 0 2px 0 rgba(0, 0, 0, 0.04), 0 16px 40px -16px rgba(26, 26, 26, 0.28);
300+
}
301+
302+
/* Full-length demo with controls (generate-from-scratch walkthrough). */
303+
.codesign-demo-video {
304+
max-width: 960px;
305+
margin: 1.5rem auto 0;
306+
}
307+
.codesign-demo-video video {
308+
width: 100%;
309+
border-radius: 12px;
310+
display: block;
311+
box-shadow: 0 2px 0 rgba(0, 0, 0, 0.04), 0 12px 32px -12px rgba(26, 26, 26, 0.24);
312+
}

website/index.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,10 @@ features:
6161
details: HTML (inlined CSS), PDF (via your local Chrome), PPTX, ZIP, and Markdown — all generated on-device. No Canva detour.
6262
---
6363

64+
<div class="codesign-hero-video">
65+
<DemoVideo hero src="/demos/app-showcase.mp4" label="Open CoDesign multi-view app tour" />
66+
</div>
67+
6468
<SmartDownload />
6569

6670
<div class="codesign-section">
@@ -89,6 +93,18 @@ features:
8993

9094
<div class="codesign-section">
9195

96+
## Watch a design come to life
97+
98+
<p class="lede">From a blank prompt to a finished artifact — the agent plans, writes, self-checks, and hands you something with hover states, tabs, and empty states already wired up.</p>
99+
100+
<div class="codesign-demo-video">
101+
<DemoVideo src="/demos/generate-from-scratch.mp4" label="Generate a design from scratch" />
102+
</div>
103+
104+
</div>
105+
106+
<div class="codesign-section">
107+
92108
## How it compares
93109

94110
<p class="lede">We are not faster than Claude Design. We are different — open, multi-model, and local-first. The open-source alternative for teams that can't afford subscription lock-in or cloud data exposure.</p>
6.32 MB
Loading
966 KB
Binary file not shown.
4.27 MB
Loading
1.44 MB
Binary file not shown.

0 commit comments

Comments
 (0)