@gnawbit/tabretake 0.0.0-stage → 0.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +89 -0
- package/LICENSE +21 -0
- package/README.md +569 -2
- package/README.zh-CN.md +532 -0
- package/SKILL.md +161 -0
- package/agents/openai.yaml +4 -0
- package/bin/demo-reel.mjs +2 -0
- package/bin/tabretake.mjs +12 -0
- package/examples/site/app.js +87 -0
- package/examples/site/index.html +168 -0
- package/examples/site/style.css +705 -0
- package/examples/stories/readme.json +34 -0
- package/examples/stories/release.json +48 -0
- package/examples/story-video.json +32 -0
- package/examples/story.json +46 -0
- package/package.json +62 -4
- package/references/rendering.md +77 -0
- package/references/story.md +80 -0
- package/schemas/story.schema.json +616 -0
- package/scripts/capabilities.mjs +22 -0
- package/scripts/cli.mjs +107 -0
- package/scripts/demo.mjs +39 -0
- package/scripts/doctor.mjs +83 -0
- package/scripts/init.mjs +118 -0
- package/scripts/lib/browser.mjs +208 -0
- package/scripts/lib/camera.mjs +63 -0
- package/scripts/lib/captions.mjs +39 -0
- package/scripts/lib/config.mjs +76 -0
- package/scripts/lib/ffmpeg.mjs +60 -0
- package/scripts/lib/fonts.mjs +36 -0
- package/scripts/lib/metadata.mjs +14 -0
- package/scripts/lib/navigation.mjs +26 -0
- package/scripts/lib/options.mjs +67 -0
- package/scripts/lib/report.mjs +42 -0
- package/scripts/lib/tty.mjs +18 -0
- package/scripts/plan.mjs +235 -0
- package/scripts/record.mjs +352 -0
- package/scripts/render.mjs +588 -0
- package/scripts/serve.mjs +74 -0
- package/scripts/setup.mjs +23 -0
- package/scripts/validate.mjs +18 -0
package/SKILL.md
ADDED
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: tabretake
|
|
3
|
+
description: Create repeatable product demo videos and README GIFs from a web app URL or an existing screen recording. Use when asked for a launch video, browser walkthrough, signup or onboarding demo, or to regenerate a demo after UI changes, including 产品演示、网页录屏、README 动图. Runs locally and exports MP4, GIF and posters in landscape or portrait. Requires a story script or recording marks. Not for general video editing, text-to-video generation, or browser test assertions.
|
|
4
|
+
license: MIT
|
|
5
|
+
metadata:
|
|
6
|
+
author: gnawbit
|
|
7
|
+
version: "0.4.1"
|
|
8
|
+
repository: https://github.com/gnawbit/tabretake
|
|
9
|
+
compatibility: Node.js 20.9+, Chromium via tabretake setup, Windows/macOS/Linux. Target app access is required. Rendering is local; dependency installation needs network access.
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
# TabRetake by gnawbit
|
|
13
|
+
|
|
14
|
+
Use `tabretake preview --config story.json --headless --json` to check steps
|
|
15
|
+
before recording. It executes real app changes; reset demo data before a retake.
|
|
16
|
+
It preserves recordings and writes only explicitly requested screenshots.
|
|
17
|
+
After `waitFor`, use a `focus` step with a selector, caption and pause to frame a
|
|
18
|
+
result instead of the last clicked control. Inspect the rendered clip for framing.
|
|
19
|
+
|
|
20
|
+
Create a repeatable product walkthrough from a web URL, or render an existing
|
|
21
|
+
screen recording with supplied timestamps. The canonical project is
|
|
22
|
+
https://github.com/gnawbit/tabretake.
|
|
23
|
+
Outputs are local MP4, GIF and PNG posters in landscape and optional portrait.
|
|
24
|
+
|
|
25
|
+
## Locate and check the CLI
|
|
26
|
+
|
|
27
|
+
Use an installed `tabretake` CLI when available. The commands below assume it is
|
|
28
|
+
on PATH. For a source checkout, replace `tabretake` with
|
|
29
|
+
`node /absolute/path/to/tabretake/bin/tabretake.mjs`; paths with spaces need quoting.
|
|
30
|
+
A copied Skill does not prove its runtime dependencies are installed. If needed,
|
|
31
|
+
run `npm install --global @gnawbit/tabretake@0.4.1` and `tabretake setup`, or follow the
|
|
32
|
+
[CLI installation instructions](https://github.com/gnawbit/tabretake#install).
|
|
33
|
+
The renamed CLI and Skill are available together from v0.4.0. Releases through
|
|
34
|
+
`v0.3.3` use the command and Skill name `demo-reel`.
|
|
35
|
+
|
|
36
|
+
```bash
|
|
37
|
+
tabretake --version
|
|
38
|
+
tabretake capabilities --json
|
|
39
|
+
tabretake doctor --json
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
Query capabilities before choosing flags: old releases may not support them.
|
|
43
|
+
On v0.2.0, fall back to `help` and plain `doctor`, or update before using the
|
|
44
|
+
JSON workflow. `doctor` reports required errors and optional font warnings;
|
|
45
|
+
it checks Chromium's presence, not browser launch or app access. For web
|
|
46
|
+
planning/recording, run `tabretake setup` for missing Chromium; Linux may need
|
|
47
|
+
`setup --with-deps`. Rendering an existing recording or saved timeline does not
|
|
48
|
+
need Chromium: if `chromium` is the only failed required check, continue to
|
|
49
|
+
validate/render without installing a browser. Fix other required errors first.
|
|
50
|
+
Node.js 20.9+ is required. Chinese captions need a CJK system font.
|
|
51
|
+
|
|
52
|
+
## Choose the input
|
|
53
|
+
|
|
54
|
+
- **Web app:** confirm the URL and intended flow. `plan` inventories controls;
|
|
55
|
+
it does not write a story. Use a test account and non-sensitive demo data.
|
|
56
|
+
- **Existing recording:** get the file and moments to highlight. Read
|
|
57
|
+
[recording input and branding](references/rendering.md); do not invent marks.
|
|
58
|
+
- **Example requested:** `tabretake demo --story readme|onboarding|release --port 0`
|
|
59
|
+
runs a fictional bundled app. It is a template, not evidence of external adoption.
|
|
60
|
+
|
|
61
|
+
Ask only for missing details that affect the result, such as the target flow or
|
|
62
|
+
output orientation. Adapt the story length to the user's request; a few visible
|
|
63
|
+
state changes are usually enough for a short launch clip.
|
|
64
|
+
|
|
65
|
+
## Record a web flow
|
|
66
|
+
|
|
67
|
+
1. Inspect controls and create a starter if no story exists:
|
|
68
|
+
|
|
69
|
+
```bash
|
|
70
|
+
tabretake plan --url https://your-app.com --out plan.json --json
|
|
71
|
+
tabretake init --url https://your-app.com --out demo.json --auto --json
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
2. Read the plan file from its returned artifact path. If `--auto` was used, inspect
|
|
75
|
+
the generated steps; otherwise replace the starter's wait-only steps with the
|
|
76
|
+
requested flow. For actions, locator choices and timing units, read
|
|
77
|
+
[story authoring](references/story.md). `init` will not overwrite an existing story.
|
|
78
|
+
From v0.3.3, use `label` to identify form controls and native select `options`
|
|
79
|
+
to inspect their labels, values and disabled states. Older versions omit these
|
|
80
|
+
fields; use the plan screenshot and existing control metadata instead.
|
|
81
|
+
The plan's `name` is an HTML attribute, not necessarily an accessible name;
|
|
82
|
+
use `selector` when needed.
|
|
83
|
+
On v0.3.3 and earlier, use a scoped selector for overlapping labels: a
|
|
84
|
+
“Clear completed” button can match `text: "Completed"` before that exact link.
|
|
85
|
+
v0.4.0 prefers exact button/link labels and respects an explicit role;
|
|
86
|
+
see [locator behavior](references/story.md) before relying on this change.
|
|
87
|
+
|
|
88
|
+
3. Validate, record and render:
|
|
89
|
+
|
|
90
|
+
```bash
|
|
91
|
+
tabretake validate --config demo.json --json
|
|
92
|
+
tabretake record --config demo.json --out demo --json
|
|
93
|
+
tabretake render --config demo/record.json --vertical --json
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
Omit `--vertical` for landscape only; add `--no-gif` if GIFs are unnecessary.
|
|
97
|
+
Use the returned timeline path if output goes elsewhere. Paths are resolved
|
|
98
|
+
from the current working directory unless documented otherwise; use absolute
|
|
99
|
+
paths when the CLI and target app live in different directories.
|
|
100
|
+
|
|
101
|
+
From v0.3.2, portrait cards fit the source aspect ratio. For a mobile flow,
|
|
102
|
+
inspect and record at a narrow viewport (for example `390x844`); use
|
|
103
|
+
`--zoom 1` to preserve the full viewport. Wide desktop text may still be small.
|
|
104
|
+
From v0.4.1, `vertical-zoom` is supported: use
|
|
105
|
+
`--vertical --zoom 1 --vertical-zoom 1.8` for portrait focus magnification
|
|
106
|
+
while retaining landscape overview. `vertical.zoom` saves the portrait
|
|
107
|
+
setting in config; the flag overrides it. `zoom: false` remains overview.
|
|
108
|
+
|
|
109
|
+
4. Inspect the poster and video, then return links to the actual generated
|
|
110
|
+
artifacts. Re-record after flow changes; re-render the saved timeline after
|
|
111
|
+
caption, zoom or branding changes. Fonts and encoder versions can affect
|
|
112
|
+
appearance across machines. Output videos have no audio.
|
|
113
|
+
|
|
114
|
+
For caption reading time, use action `pause` on v0.3.1 or newer; on v0.3.0
|
|
115
|
+
use `pause: 0` followed by `wait`. Older recordings need to be recorded again
|
|
116
|
+
to adopt the corrected caption timing; re-rendering preserves their timestamps.
|
|
117
|
+
|
|
118
|
+
## Interpret results and recover
|
|
119
|
+
|
|
120
|
+
`--json` writes one object to stdout; stderr carries progress. Check the exit
|
|
121
|
+
code and `ok`, then read `artifacts` for absolute paths, kinds and byte sizes.
|
|
122
|
+
Only a successful result describes the current run; failed runs may leave
|
|
123
|
+
partial files. `schemaVersion` identifies the response format, not the CLI release.
|
|
124
|
+
|
|
125
|
+
- `INVALID_CONFIG`: fix each `error.issues[].path` using the packaged
|
|
126
|
+
[JSON Schema](schemas/story.schema.json). The standalone `validate` command
|
|
127
|
+
returns an `errors` array for schema failures and an `error` object for file
|
|
128
|
+
or JSON syntax failures. It does not verify selectors, login or media access.
|
|
129
|
+
- `TARGET_NOT_FOUND`, `STEP_TIMEOUT`, `STEP_FAILED`: inspect `error.step.path`
|
|
130
|
+
and its zero-based index. Re-run `plan` with the same login state, update the
|
|
131
|
+
target or wait condition and retry. Do not repeat an unchanged failing command.
|
|
132
|
+
From v0.3.3, `click` also waits for an enabled, unobstructed
|
|
133
|
+
target using step `timeout` (milliseconds; default 20,000). v0.3.2 and earlier
|
|
134
|
+
do not reliably wait for clickable targets; inspect the resulting page.
|
|
135
|
+
- `PAGE_UNREACHABLE`: check the URL, local app server and browser network/proxy
|
|
136
|
+
access. `PAGE_HTTP_ERROR`: inspect `error.status`; fix the route/server or use
|
|
137
|
+
authorized login state for 401/403. These codes are available in v0.3.1 or newer;
|
|
138
|
+
older versions may return `COMMAND_FAILED`. Dependency checks do not prove
|
|
139
|
+
page access, and an HTTP error page is not a completed demo.
|
|
140
|
+
- Missing runtime or fonts: inspect `doctor --json` and its recovery hints.
|
|
141
|
+
- Captcha, anti-bot block, iframe-only or canvas-only flow: use a user-provided
|
|
142
|
+
recording with marks instead of trying to bypass the restriction.
|
|
143
|
+
|
|
144
|
+
## Protected pages and privacy
|
|
145
|
+
|
|
146
|
+
Manual login needs an interactive terminal without `--json`:
|
|
147
|
+
|
|
148
|
+
From v0.3.2, login navigation errors also omit the target URL. HTTP 401/403
|
|
149
|
+
pages stay open for sign-in; other HTTP errors stop the command.
|
|
150
|
+
|
|
151
|
+
```bash
|
|
152
|
+
tabretake plan --url https://your-app.com --login
|
|
153
|
+
tabretake record --config demo.json --storage-state auth.json --json
|
|
154
|
+
```
|
|
155
|
+
|
|
156
|
+
`auth.json` is created in the login command's working directory and is never
|
|
157
|
+
implicitly loaded by later commands. Use an absolute state path after changing
|
|
158
|
+
directories. If it expires, let the user log in again; do not request passwords
|
|
159
|
+
or 2FA codes in chat. Do not upload or commit login state or private recordings.
|
|
160
|
+
Stories and recorded timelines retain typed values, so use synthetic data.
|
|
161
|
+
Record only authorized pages; the workflow does not authorize publishing assets.
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import { main } from "../scripts/cli.mjs";
|
|
3
|
+
import { commandOptions } from "../scripts/lib/options.mjs";
|
|
4
|
+
import { errorReport } from "../scripts/lib/report.mjs";
|
|
5
|
+
|
|
6
|
+
main(process.argv.slice(2)).catch((err) => {
|
|
7
|
+
const [command, ...args] = process.argv.slice(2);
|
|
8
|
+
if (commandOptions[command]?.json && args.includes("--json")) {
|
|
9
|
+
console.log(JSON.stringify(errorReport(command, err)));
|
|
10
|
+
} else console.error(err?.stack || err?.message || String(err));
|
|
11
|
+
process.exitCode = 1;
|
|
12
|
+
});
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
const bars = document.getElementById("bars");
|
|
2
|
+
const heights = [34, 52, 44, 68, 58, 76, 62, 84, 72, 92, 66, 78, 88, 96];
|
|
3
|
+
|
|
4
|
+
heights.forEach((height, index) => {
|
|
5
|
+
const bar = document.createElement("div");
|
|
6
|
+
bar.className = "bar";
|
|
7
|
+
bar.style.height = `${height}%`;
|
|
8
|
+
bar.style.animationDelay = `${index * 28}ms`;
|
|
9
|
+
bars.appendChild(bar);
|
|
10
|
+
});
|
|
11
|
+
|
|
12
|
+
const modal = document.getElementById("modal");
|
|
13
|
+
const newProjectButton = document.getElementById("new-project");
|
|
14
|
+
const closeModalButton = document.getElementById("close-modal");
|
|
15
|
+
const createProjectButton = document.getElementById("create-project");
|
|
16
|
+
const projectNameInput = document.getElementById("project-name");
|
|
17
|
+
const projectGrid = document.getElementById("project-grid");
|
|
18
|
+
const toast = document.getElementById("toast");
|
|
19
|
+
|
|
20
|
+
function openModal() {
|
|
21
|
+
modal.classList.add("open");
|
|
22
|
+
modal.setAttribute("aria-hidden", "false");
|
|
23
|
+
setTimeout(() => projectNameInput.focus(), 80);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
function closeModal() {
|
|
27
|
+
modal.classList.remove("open");
|
|
28
|
+
modal.setAttribute("aria-hidden", "true");
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
newProjectButton.addEventListener("click", openModal);
|
|
32
|
+
closeModalButton.addEventListener("click", closeModal);
|
|
33
|
+
|
|
34
|
+
modal.addEventListener("click", (event) => {
|
|
35
|
+
if (event.target === modal) closeModal();
|
|
36
|
+
});
|
|
37
|
+
|
|
38
|
+
document.addEventListener("keydown", (event) => {
|
|
39
|
+
if (event.key === "Escape") closeModal();
|
|
40
|
+
});
|
|
41
|
+
|
|
42
|
+
document.querySelectorAll(".template").forEach((button) => {
|
|
43
|
+
button.addEventListener("click", () => {
|
|
44
|
+
document.querySelectorAll(".template").forEach((item) => item.classList.remove("active"));
|
|
45
|
+
button.classList.add("active");
|
|
46
|
+
});
|
|
47
|
+
});
|
|
48
|
+
|
|
49
|
+
function showToast(message) {
|
|
50
|
+
toast.textContent = message;
|
|
51
|
+
toast.classList.add("show");
|
|
52
|
+
clearTimeout(showToast.timer);
|
|
53
|
+
showToast.timer = setTimeout(() => toast.classList.remove("show"), 2400);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
function createProject() {
|
|
57
|
+
const name = projectNameInput.value.trim() || "Untitled project";
|
|
58
|
+
|
|
59
|
+
const card = document.createElement("article");
|
|
60
|
+
card.className = "project-card";
|
|
61
|
+
card.innerHTML = `
|
|
62
|
+
<div class="project-icon violet">◈</div>
|
|
63
|
+
<div class="project-name"></div>
|
|
64
|
+
<div class="project-meta">New · 0 tasks left</div>
|
|
65
|
+
<div class="progress"><span style="width: 4%"></span></div>
|
|
66
|
+
`;
|
|
67
|
+
card.querySelector(".project-name").textContent = name;
|
|
68
|
+
|
|
69
|
+
projectGrid.prepend(card);
|
|
70
|
+
projectNameInput.value = "";
|
|
71
|
+
closeModal();
|
|
72
|
+
showToast(`“${name}” created`);
|
|
73
|
+
|
|
74
|
+
card.animate(
|
|
75
|
+
[
|
|
76
|
+
{ transform: "translateY(-8px) scale(.98)", opacity: 0.2 },
|
|
77
|
+
{ transform: "translateY(0) scale(1)", opacity: 1 },
|
|
78
|
+
],
|
|
79
|
+
{ duration: 360, easing: "cubic-bezier(.2,.8,.2,1)" },
|
|
80
|
+
);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
createProjectButton.addEventListener("click", createProject);
|
|
84
|
+
|
|
85
|
+
projectNameInput.addEventListener("keydown", (event) => {
|
|
86
|
+
if (event.key === "Enter") createProject();
|
|
87
|
+
});
|
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8" />
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
6
|
+
<title>Northstar — Demo workspace</title>
|
|
7
|
+
<link rel="stylesheet" href="./style.css" />
|
|
8
|
+
</head>
|
|
9
|
+
<body>
|
|
10
|
+
<div class="app">
|
|
11
|
+
<aside class="sidebar">
|
|
12
|
+
<div class="brand">
|
|
13
|
+
<div class="brand-mark">N</div>
|
|
14
|
+
<div>
|
|
15
|
+
<div class="brand-name">Northstar</div>
|
|
16
|
+
<div class="brand-sub">Workspace</div>
|
|
17
|
+
</div>
|
|
18
|
+
</div>
|
|
19
|
+
|
|
20
|
+
<nav class="nav">
|
|
21
|
+
<a class="nav-item active" href="#"><span class="nav-icon">◈</span> Overview</a>
|
|
22
|
+
<a class="nav-item" href="#"><span class="nav-icon">▤</span> Projects</a>
|
|
23
|
+
<a class="nav-item" href="#"><span class="nav-icon">◔</span> Analytics</a>
|
|
24
|
+
<a class="nav-item" href="#"><span class="nav-icon">◉</span> Team</a>
|
|
25
|
+
<a class="nav-item" href="#"><span class="nav-icon">⚙</span> Settings</a>
|
|
26
|
+
</nav>
|
|
27
|
+
|
|
28
|
+
<div class="sidebar-card">
|
|
29
|
+
<div class="sidebar-card-title">Pro plan</div>
|
|
30
|
+
<div class="sidebar-card-text">Unlimited projects and guests.</div>
|
|
31
|
+
<button class="ghost-button">Manage plan</button>
|
|
32
|
+
</div>
|
|
33
|
+
|
|
34
|
+
<div class="user">
|
|
35
|
+
<div class="avatar">AL</div>
|
|
36
|
+
<div>
|
|
37
|
+
<div class="user-name">Alex Lee</div>
|
|
38
|
+
<div class="user-mail">alex@northstar.app</div>
|
|
39
|
+
</div>
|
|
40
|
+
</div>
|
|
41
|
+
</aside>
|
|
42
|
+
|
|
43
|
+
<main class="main">
|
|
44
|
+
<header class="topbar">
|
|
45
|
+
<div class="search">
|
|
46
|
+
<span class="search-icon">⌕</span>
|
|
47
|
+
<input aria-label="Search" placeholder="Search projects, tasks, people…" />
|
|
48
|
+
<span class="kbd">⌘K</span>
|
|
49
|
+
</div>
|
|
50
|
+
<div class="topbar-actions">
|
|
51
|
+
<button class="icon-button" aria-label="Notifications">◔</button>
|
|
52
|
+
<button id="new-project" class="primary-button">
|
|
53
|
+
<span class="plus">+</span> New project
|
|
54
|
+
</button>
|
|
55
|
+
</div>
|
|
56
|
+
</header>
|
|
57
|
+
|
|
58
|
+
<section class="hero">
|
|
59
|
+
<div>
|
|
60
|
+
<h1>Good morning, Alex</h1>
|
|
61
|
+
<p>Here’s what’s moving across your workspace today.</p>
|
|
62
|
+
</div>
|
|
63
|
+
<div class="hero-meta">
|
|
64
|
+
<span class="pulse"></span>
|
|
65
|
+
All systems operational
|
|
66
|
+
</div>
|
|
67
|
+
</section>
|
|
68
|
+
|
|
69
|
+
<section class="stats">
|
|
70
|
+
<article class="stat-card">
|
|
71
|
+
<div class="stat-label">Active projects</div>
|
|
72
|
+
<div class="stat-value">12</div>
|
|
73
|
+
<div class="stat-delta up">+3 this week</div>
|
|
74
|
+
</article>
|
|
75
|
+
<article class="stat-card">
|
|
76
|
+
<div class="stat-label">Tasks completed</div>
|
|
77
|
+
<div class="stat-value">87<span>%</span></div>
|
|
78
|
+
<div class="stat-delta up">+12.4%</div>
|
|
79
|
+
</article>
|
|
80
|
+
<article class="stat-card">
|
|
81
|
+
<div class="stat-label">Hours saved</div>
|
|
82
|
+
<div class="stat-value">42<span>h</span></div>
|
|
83
|
+
<div class="stat-delta">vs. last month</div>
|
|
84
|
+
</article>
|
|
85
|
+
</section>
|
|
86
|
+
|
|
87
|
+
<section class="panel chart-panel">
|
|
88
|
+
<div class="panel-head">
|
|
89
|
+
<div>
|
|
90
|
+
<div class="panel-title">Team velocity</div>
|
|
91
|
+
<div class="panel-sub">Tasks shipped per day, last 14 days</div>
|
|
92
|
+
</div>
|
|
93
|
+
<div class="legend"><span class="dot"></span> Shipped</div>
|
|
94
|
+
</div>
|
|
95
|
+
<div class="chart">
|
|
96
|
+
<div class="bars" id="bars"></div>
|
|
97
|
+
<div class="chart-baseline"></div>
|
|
98
|
+
</div>
|
|
99
|
+
</section>
|
|
100
|
+
|
|
101
|
+
<section class="panel projects-panel">
|
|
102
|
+
<div class="panel-head">
|
|
103
|
+
<div>
|
|
104
|
+
<div class="panel-title">Projects</div>
|
|
105
|
+
<div class="panel-sub">Your team’s active work</div>
|
|
106
|
+
</div>
|
|
107
|
+
<button class="text-button">View all →</button>
|
|
108
|
+
</div>
|
|
109
|
+
<div class="project-grid" id="project-grid">
|
|
110
|
+
<article class="project-card">
|
|
111
|
+
<div class="project-icon violet">◈</div>
|
|
112
|
+
<div class="project-name">Website refresh</div>
|
|
113
|
+
<div class="project-meta">Design · 8 tasks left</div>
|
|
114
|
+
<div class="progress"><span style="width: 72%"></span></div>
|
|
115
|
+
</article>
|
|
116
|
+
<article class="project-card">
|
|
117
|
+
<div class="project-icon green">▤</div>
|
|
118
|
+
<div class="project-name">Q4 launch</div>
|
|
119
|
+
<div class="project-meta">Marketing · 14 tasks left</div>
|
|
120
|
+
<div class="progress"><span style="width: 46%"></span></div>
|
|
121
|
+
</article>
|
|
122
|
+
<article class="project-card">
|
|
123
|
+
<div class="project-icon amber">◔</div>
|
|
124
|
+
<div class="project-name">Mobile onboarding</div>
|
|
125
|
+
<div class="project-meta">Product · 3 tasks left</div>
|
|
126
|
+
<div class="progress"><span style="width: 88%"></span></div>
|
|
127
|
+
</article>
|
|
128
|
+
</div>
|
|
129
|
+
</section>
|
|
130
|
+
</main>
|
|
131
|
+
</div>
|
|
132
|
+
|
|
133
|
+
<div class="modal-backdrop" id="modal" aria-hidden="true">
|
|
134
|
+
<div class="modal" role="dialog" aria-modal="true" aria-labelledby="modal-title">
|
|
135
|
+
<div class="modal-head">
|
|
136
|
+
<div>
|
|
137
|
+
<div class="modal-kicker">Create</div>
|
|
138
|
+
<h2 id="modal-title">New project</h2>
|
|
139
|
+
</div>
|
|
140
|
+
<button class="icon-button" id="close-modal" aria-label="Close">×</button>
|
|
141
|
+
</div>
|
|
142
|
+
|
|
143
|
+
<label class="field">
|
|
144
|
+
<span>Project name</span>
|
|
145
|
+
<input id="project-name" name="project-name" placeholder="e.g. Q4 Launch" autocomplete="off" />
|
|
146
|
+
</label>
|
|
147
|
+
|
|
148
|
+
<div class="field">
|
|
149
|
+
<span>Template</span>
|
|
150
|
+
<div class="template-row">
|
|
151
|
+
<button class="template active" type="button">Blank</button>
|
|
152
|
+
<button class="template" type="button">Sprint</button>
|
|
153
|
+
<button class="template" type="button">Campaign</button>
|
|
154
|
+
</div>
|
|
155
|
+
</div>
|
|
156
|
+
|
|
157
|
+
<div class="modal-foot">
|
|
158
|
+
<div class="modal-hint">You can invite teammates later.</div>
|
|
159
|
+
<button id="create-project" class="primary-button">Create project</button>
|
|
160
|
+
</div>
|
|
161
|
+
</div>
|
|
162
|
+
</div>
|
|
163
|
+
|
|
164
|
+
<div class="toast" id="toast">Project created</div>
|
|
165
|
+
|
|
166
|
+
<script src="./app.js"></script>
|
|
167
|
+
</body>
|
|
168
|
+
</html>
|