-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathipad.html
More file actions
337 lines (295 loc) · 14.2 KB
/
Copy pathipad.html
File metadata and controls
337 lines (295 loc) · 14.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
<!doctype html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="color-scheme" content="light" />
<title>LaunchFrame · iPad App Store 宣传图</title>
<link rel="stylesheet" href="./styles.css?v=20260809-freelingo-promo" />
</head>
<body data-product="ipad">
<div class="workspace">
<aside class="controls" aria-label="iPad 宣传图设置">
<header class="controls-header">
<div class="product-mark" aria-hidden="true">LF</div>
<div>
<p class="eyebrow">LaunchFrame</p>
<h1>App Store 宣传图</h1>
</div>
</header>
<p class="intro">
添加一组 iPad 横屏截图,逐张编辑文案并导出对应的 App Store 宣传图。
</p>
<nav class="product-switcher" aria-label="设备类型">
<a href="./">iPhone</a>
<a href="./ipad.html" aria-current="page">iPad</a>
</nav>
<a
class="app-promo"
href="https://freelingo.ai/"
target="_blank"
rel="noopener noreferrer"
aria-label="访问 FreeLingo 官网:背过的单词,不该再忘。(新窗口打开)"
>
<span class="app-promo-mark" aria-hidden="true">FL</span>
<span class="app-promo-copy">
<small>也试试我们的语言学习 App</small>
<strong>FreeLingo</strong>
<span>背过的单词,不该再忘。</span>
</span>
<span class="app-promo-arrow" aria-hidden="true">↗</span>
</a>
<section class="control-section" aria-labelledby="screenshots-heading">
<div class="section-heading">
<span class="section-index">01</span>
<h2 id="screenshots-heading">截图组</h2>
<output id="pagePosition" class="page-position" aria-live="polite">1 / 1</output>
</div>
<div class="screenshot-add-row">
<input
id="screenshotInput"
class="visually-hidden"
type="file"
multiple
accept="image/png,image/jpeg,image/webp"
aria-describedby="screenshotHelp"
/>
<label id="screenshotAddButton" class="upload-button screenshot-add-button" for="screenshotInput">
+ 添加截图
</label>
<small id="screenshotHelp">可继续追加,最多 10 张</small>
</div>
<ol id="screenshotList" class="screenshot-list" aria-label="宣传图顺序"></ol>
<p id="screenshotName" class="current-screenshot-name"></p>
<div class="screenshot-order-actions" role="group" aria-label="当前截图操作">
<button id="moveScreenshotPrevious" class="secondary-button" type="button">← 前移</button>
<button id="moveScreenshotNext" class="secondary-button" type="button">后移 →</button>
<button id="deleteScreenshot" class="danger-button" type="button">删除</button>
</div>
<label class="field" for="fitSelect">
<span>当前截图填充方式</span>
<select id="fitSelect">
<option value="fill">拉伸贴合(不裁剪)</option>
<option value="cover">铺满屏幕(可能裁剪)</option>
<option value="contain">完整显示(可能留边)</option>
</select>
</label>
<p id="screenshotStatus" class="screenshot-status" role="status" aria-live="polite"></p>
</section>
<section class="control-section" aria-labelledby="content-heading">
<div class="section-heading">
<span class="section-index">02</span>
<h2 id="content-heading">文案</h2>
</div>
<label class="field" for="titleInput">
<span>主标题</span>
<textarea id="titleInput" rows="3" spellcheck="false"></textarea>
</label>
<label class="field" for="subtitleInput">
<span>说明文案</span>
<textarea id="subtitleInput" rows="3" spellcheck="false"></textarea>
</label>
</section>
<section id="layoutSection" class="control-section" aria-labelledby="templates-heading">
<div class="section-heading">
<span class="section-index">03</span>
<h2 id="templates-heading">排版模板</h2>
</div>
<div
id="layoutGallery"
class="layout-gallery"
role="radiogroup"
aria-label="iPad 宣传图排版模板"
></div>
<div class="layout-subsection">
<span class="layout-subsection-label">整组主题</span>
<div id="themeOptions" class="theme-options" role="radiogroup" aria-label="整组主题"></div>
</div>
<div id="slotAssignmentPanel" class="layout-subsection" hidden>
<span class="layout-subsection-label">图片槽位</span>
<div id="slotAssignments" class="slot-assignments"></div>
<p id="slotAssignmentHint" class="layout-hint"></p>
</div>
<div id="companionAssetPanel" class="layout-subsection companion-asset-panel" hidden>
<div class="companion-panel-heading">
<span class="layout-subsection-label">关联 iPhone 截图</span>
<span class="device-role-badge">辅助素材 · 不单独导出</span>
</div>
<input
id="iphoneScreenshotInput"
class="visually-hidden"
type="file"
multiple
accept="image/png,image/jpeg,image/webp"
/>
<label id="iphoneScreenshotAddButton" class="upload-button companion-upload-button" for="iphoneScreenshotInput">
+ 添加竖版 iPhone 截图
</label>
<div id="iphoneAssetList" class="companion-asset-list" role="radiogroup" aria-label="iPhone 辅助截图"></div>
<label class="field companion-fit-field" for="iphoneFitSelect">
<span>当前辅助截图填充方式</span>
<select id="iphoneFitSelect">
<option value="cover">铺满屏幕(可能裁剪)</option>
<option value="contain">完整显示(可能留边)</option>
</select>
</label>
<button id="deleteIphoneAsset" class="danger-button companion-delete-button" type="button">
移除当前辅助截图
</button>
<p id="iphoneScreenshotStatus" class="layout-hint" role="status" aria-live="polite"></p>
</div>
<div id="annotationPanel" class="layout-subsection" hidden>
<label class="toggle-field" for="annotationsToggle">
<span>显示步骤标注</span>
<input id="annotationsToggle" type="checkbox" />
</label>
<div id="annotationFields" class="annotation-fields" hidden></div>
<p id="annotationStatus" class="layout-hint" role="status" aria-live="polite"></p>
</div>
<p
id="layoutValidationStatus"
class="layout-hint"
role="status"
aria-live="polite"
></p>
</section>
<section class="control-section" aria-labelledby="device-heading">
<div class="section-heading">
<span class="section-index">04</span>
<h2 id="device-heading">设备</h2>
</div>
<label class="field" for="frameSelect">
<span>iPad 原机框</span>
<select id="frameSelect"></select>
</label>
<p class="layout-hint">默认使用 13″ 银色机框;需要时仍可切换 11″ 或深空黑色。</p>
<label id="iphoneFrameField" class="field companion-frame-field" for="iphoneFrameSelect" hidden>
<span>iPhone 辅助机框</span>
<select id="iphoneFrameSelect"></select>
<small>跨设备模板默认使用 Air 云白色机框。</small>
</label>
</section>
<section class="control-section" aria-labelledby="layout-heading">
<div class="section-heading">
<span class="section-index">05</span>
<h2 id="layout-heading">构图微调</h2>
</div>
<div id="classicLayoutControls" class="layout-control-group">
<label class="range-field" for="deviceWidthInput">
<span>
<span>iPad 宽度</span>
<output id="deviceWidthOutput" for="deviceWidthInput"></output>
</span>
<input id="deviceWidthInput" type="range" min="1500" max="2200" step="4" />
</label>
<label class="range-field" for="deviceTopInput">
<span>
<span>iPad 上边距</span>
<output id="deviceTopOutput" for="deviceTopInput"></output>
</span>
<input id="deviceTopInput" type="range" min="460" max="720" step="4" />
</label>
</div>
<div id="presetLayoutControls" class="layout-control-group" hidden>
<label class="range-field layout-tuning-control" data-tuning-control="scale" for="layoutScaleInput">
<span>
<span>整体缩放</span>
<output id="layoutScaleOutput" for="layoutScaleInput"></output>
</span>
<input id="layoutScaleInput" type="range" min="0.94" max="1.05" step="0.01" />
</label>
<label class="range-field layout-tuning-control" data-tuning-control="y" for="layoutYInput">
<span>
<span>垂直偏移</span>
<output id="layoutYOutput" for="layoutYInput"></output>
</span>
<input id="layoutYInput" type="range" min="-80" max="80" step="4" />
</label>
<label class="range-field layout-tuning-control" data-tuning-control="spread" for="layoutSpreadInput">
<span>
<span>展开度</span>
<output id="layoutSpreadOutput" for="layoutSpreadInput"></output>
</span>
<input id="layoutSpreadInput" type="range" min="0.9" max="1.1" step="0.01" />
</label>
<label class="range-field layout-tuning-control" data-tuning-control="tilt" for="layoutTiltInput">
<span>
<span>倾斜强度</span>
<output id="layoutTiltOutput" for="layoutTiltInput"></output>
</span>
<input id="layoutTiltInput" type="range" min="0" max="1" step="0.05" />
</label>
<label class="range-field layout-tuning-control" data-tuning-control="focusX" for="focusXInput">
<span>
<span>聚焦水平位置</span>
<output id="focusXOutput" for="focusXInput"></output>
</span>
<input id="focusXInput" type="range" min="0.2" max="0.8" step="0.02" />
</label>
<label class="range-field layout-tuning-control" data-tuning-control="focusY" for="focusYInput">
<span>
<span>聚焦垂直位置</span>
<output id="focusYOutput" for="focusYInput"></output>
</span>
<input id="focusYInput" type="range" min="0.2" max="0.8" step="0.02" />
</label>
<label class="toggle-field layout-tuning-control" data-tuning-control="mirror" for="layoutMirrorToggle">
<span>镜像构图</span>
<input id="layoutMirrorToggle" type="checkbox" />
</label>
<button id="resetLayoutButton" class="secondary-button reset-layout-button" type="button">
恢复本模板默认
</button>
</div>
</section>
<div id="controlsActions" class="controls-actions">
<button id="resetButton" class="secondary-button" type="button">恢复默认</button>
<button id="focusButton" class="secondary-button" type="button">专注预览</button>
<button id="exportButton" class="primary-button export-current" type="button" disabled>
导出当前 PNG
</button>
<button id="exportAllButton" class="secondary-button export-all" type="button" hidden>
导出全部(1)
</button>
</div>
<p id="multiDownloadHint" class="download-hint" hidden>
将逐张下载多个 PNG;浏览器可能询问是否允许多个下载。
</p>
<p id="exportStatus" class="export-status" role="status" aria-live="polite"></p>
<footer class="controls-footer">
<span>iPad 横屏画布</span>
<strong>2732 × 2048 px</strong>
<span id="zoomLabel" class="zoom-label"></span>
</footer>
</aside>
<main id="stage" class="stage" aria-label="iPad 宣传图预览区域">
<div id="canvasShell" class="canvas-shell">
<article id="artboard" class="artboard" aria-label="iPad App Store 宣传图画布">
<header class="poster-copy">
<h2 id="posterTitle"></h2>
<p id="posterSubtitle"></p>
</header>
<div id="compositionLayer" class="composition-layer" aria-hidden="true" hidden></div>
<div id="device" class="device" aria-label="iPad 预览">
<div id="deviceScreen" class="device-screen">
<img id="screenshotImage" crossorigin="anonymous" alt="应用截图" hidden />
<div id="screenPlaceholder" class="screen-placeholder">
<span>上传 iPad 横屏截图</span>
</div>
</div>
<img id="frameImage" class="frame-image" alt="" />
</div>
<div id="dropStatus" class="drop-status" role="status" aria-live="polite" hidden></div>
</article>
</div>
</main>
</div>
<div class="poster-copy export-text-measure" aria-hidden="true">
<h2 id="exportMeasureTitle"></h2>
<p id="exportMeasureSubtitle"></p>
</div>
<script src="./layouts.js?v=20260809-cross-device"></script>
<script src="./dragdrop.js?v=20260809-dragdrop-fix"></script>
<script src="./app.js?v=20260809-dragdrop-fix"></script>
</body>
</html>