forked from comeonzhj/article2card
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
51 lines (49 loc) · 2.67 KB
/
index.html
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>AI Summary Tool</title>
<link href="assets/css/tailwind.min.css" rel="stylesheet">
<script src="assets/js/html2canvas.min.js"></script>
<script src="assets/js/FileSaver.js"></script>
<link rel="stylesheet" href="assets/css/style.css">
<link rel="icon" href="assets/img/favicon.png" type="image/png">
</head>
<body class="bg-gray-100">
<div class="w-full h-screen flex">
<div class="w-1/4 flex flex-col p-5 pr-0">
<div class="mb-4">
<input type="text" id="kimiInput" class="w-full p-2 text-gray-700 border border-gray-300 rounded-lg focus:outline-none focus:border-blue-500 mb-2" placeholder="输入要分析的内容">
<button id="kimiBtn" class="w-full bg-purple-500 text-white font-bold py-2 px-4 rounded-lg hover:bg-purple-700">发送到 Kimi 分析</button>
</div>
<textarea id="jsonInput" class="flex-1 w-full p-2 text-gray-700 border border-gray-300 rounded-lg focus:outline-none focus:border-blue-500" placeholder="输入 AI 帮你总结的结构化文本"></textarea>
<div class="flex items-center gap-2 mb-4">
<label for="templateSelector" class="text-gray-700">选择背景模板:</label>
<select id="templateSelector" class="p-2 border border-gray-300 rounded-lg">
<option value="default">默认</option>
<option value="Climber">Climber</option>
</select>
</div>
<div class="flex gap-4 mt-4">
<button id="convertBtn" class="flex-1 bg-blue-500 text-white font-bold py-2 px-4 rounded-lg hover:bg-blue-700">点击预览</button>
<button id="generatePicBtn" class="flex-1 bg-green-500 text-white font-bold py-2 px-4 rounded-lg hover:bg-green-700">没毛病出图</button>
</div>
</div>
<div class="w-3/4 flex flex-col">
<div class="w-full flex flex-col flex-1 p-5">
<h2 class="mb-1">预览区</h2>
<div class="preview-area flex-1 bg-white rounded p-4">
<div id="previewArea" class="flex gap-4 thumb1">
</div>
</div>
</div>
<div class="w-full flex flex-col flex-1 p-5 pt-0">
<h2 class="mb-1">出图区</h2>
<div id="pictureArea" class="flex-1 p-4 bg-white rounded-lg canvas-area"></div>
</div>
</div>
</div>
<script src="assets/js/script.js"></script>
</body>
</html>