toughhou commited on
Commit
ad450f7
·
verified ·
1 Parent(s): 8dad69f

undefined - Initial Deployment

Browse files
Files changed (2) hide show
  1. README.md +7 -5
  2. index.html +203 -19
README.md CHANGED
@@ -1,10 +1,12 @@
1
  ---
2
- title: Bob
3
- emoji: 🐢
4
- colorFrom: indigo
5
- colorTo: red
6
  sdk: static
7
  pinned: false
 
 
8
  ---
9
 
10
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
1
  ---
2
+ title: bob
3
+ emoji: 🐳
4
+ colorFrom: yellow
5
+ colorTo: yellow
6
  sdk: static
7
  pinned: false
8
+ tags:
9
+ - deepsite
10
  ---
11
 
12
+ Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
index.html CHANGED
@@ -1,19 +1,203 @@
1
- <!doctype html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8" />
5
- <meta name="viewport" content="width=device-width" />
6
- <title>My static Space</title>
7
- <link rel="stylesheet" href="style.css" />
8
- </head>
9
- <body>
10
- <div class="card">
11
- <h1>Welcome to your static Space!</h1>
12
- <p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p>
13
- <p>
14
- Also don't forget to check the
15
- <a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.
16
- </p>
17
- </div>
18
- </body>
19
- </html>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html lang="zh-CN">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>Bob AI 助手</title>
7
+ <script src="https://cdn.tailwindcss.com"></script>
8
+ <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
9
+ <style>
10
+ @import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;700&display=swap');
11
+
12
+ body {
13
+ font-family: 'Noto Sans SC', sans-serif;
14
+ background-color: #F7F8FC;
15
+ color: #1A1A1A;
16
+ }
17
+
18
+ .robot-avatar {
19
+ width: 48px;
20
+ height: 48px;
21
+ background: linear-gradient(135deg, #EDF5FF 0%, #E0ECFF 100%);
22
+ border-radius: 50%;
23
+ position: relative;
24
+ }
25
+
26
+ .robot-eye {
27
+ position: absolute;
28
+ width: 16px;
29
+ height: 8px;
30
+ background-color: #2476FF;
31
+ border-radius: 8px 8px 0 0;
32
+ top: 16px;
33
+ left: 16px;
34
+ }
35
+
36
+ .robot-smile {
37
+ position: absolute;
38
+ width: 24px;
39
+ height: 8px;
40
+ border-bottom: 2px solid #2476FF;
41
+ border-radius: 0 0 8px 8px;
42
+ bottom: 12px;
43
+ left: 12px;
44
+ }
45
+
46
+ .highlight-blue {
47
+ color: #2476FF;
48
+ }
49
+
50
+ .tool-card {
51
+ width: 72px;
52
+ height: 72px;
53
+ border-radius: 16px;
54
+ box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
55
+ }
56
+
57
+ .question-item::before {
58
+ content: "";
59
+ position: absolute;
60
+ width: 8px;
61
+ height: 8px;
62
+ background-color: #2476FF;
63
+ border-radius: 50%;
64
+ left: 16px;
65
+ top: 18px;
66
+ }
67
+
68
+ .input-bar {
69
+ height: 44px;
70
+ border-radius: 22px;
71
+ box-shadow: 0 2px 12px rgba(240, 241, 245, 0.8);
72
+ }
73
+
74
+ .send-button {
75
+ width: 32px;
76
+ height: 32px;
77
+ background-color: #2476FF;
78
+ }
79
+ </style>
80
+ </head>
81
+ <body class="min-h-screen flex flex-col">
82
+ <!-- 顶部导航栏 -->
83
+ <div class="h-14 flex items-center justify-between px-4 bg-[#F7F8FC]">
84
+ <i class="fas fa-arrow-left text-gray-800 text-xl"></i>
85
+ <i class="fas fa-cog text-gray-800 text-xl"></i>
86
+ </div>
87
+
88
+ <!-- 欢迎区域 -->
89
+ <div class="flex items-start px-6 py-4 h-18">
90
+ <div class="robot-avatar mr-4">
91
+ <div class="robot-eye"></div>
92
+ <div class="robot-smile"></div>
93
+ </div>
94
+ <div>
95
+ <h1 class="text-lg font-bold">HI!Bob是您的AI全能助理</h1>
96
+ <p class="text-sm text-gray-600">
97
+ 可以帮你<span class="highlight-blue">想策略</span>、<span class="highlight-blue">作分析</span>、<span class="highlight-blue">答问题</span>!快来试试吧!
98
+ </p>
99
+ </div>
100
+ </div>
101
+
102
+ <!-- AI工具区 -->
103
+ <div class="flex justify-between px-6 my-4">
104
+ <div class="tool-card flex flex-col items-center justify-center bg-white">
105
+ <i class="fas fa-pencil-alt text-green-500 text-xl mb-1"></i>
106
+ <span class="text-xs">AI创作</span>
107
+ </div>
108
+ <div class="tool-card flex flex-col items-center justify-center bg-white">
109
+ <i class="fas fa-robot text-blue-500 text-xl mb-1"></i>
110
+ <span class="text-xs">AI定制方案</span>
111
+ </div>
112
+ <div class="tool-card flex flex-col items-center justify-center bg-white">
113
+ <i class="fas fa-user-tie text-blue-400 text-xl mb-1"></i>
114
+ <span class="text-xs">AI预核保</span>
115
+ </div>
116
+ <div class="tool-card flex flex-col items-center justify-center bg-white">
117
+ <i class="fas fa-shield-alt text-orange-400 text-xl mb-1"></i>
118
+ <span class="text-xs">AI保障检视</span>
119
+ </div>
120
+ </div>
121
+
122
+ <!-- 热点问题区 -->
123
+ <div class="flex-1 px-6 mt-4">
124
+ <div class="flex justify-between items-center mb-3">
125
+ <h2 class="text-base font-bold">热点问题</h2>
126
+ <span class="text-xs text-blue-500">更多></span>
127
+ </div>
128
+
129
+ <div class="bg-white rounded-lg">
130
+ <div class="question-item relative py-3 pl-8 pr-4 flex justify-between items-center">
131
+ <span class="text-sm truncate">如何选择适合自己的保险产品?</span>
132
+ <i class="fas fa-chevron-right text-gray-400"></i>
133
+ </div>
134
+ <div class="question-item relative py-3 pl-8 pr-4 flex justify-between items-center">
135
+ <span class="text-sm truncate">重疾险和医疗险有什么区别?</span>
136
+ <i class="fas fa-chevron-right text-gray-400"></i>
137
+ </div>
138
+ <div class="question-item relative py-3 pl-8 pr-4 flex justify-between items-center">
139
+ <span class="text-sm truncate">投保后多久可以享受保障?</span>
140
+ <i class="fas fa-chevron-right text-gray-400"></i>
141
+ </div>
142
+ <div class="question-item relative py-3 pl-8 pr-4 flex justify-between items-center">
143
+ <span class="text-sm truncate">如何查询保单的现金价值?</span>
144
+ <i class="fas fa-chevron-right text-gray-400"></i>
145
+ </div>
146
+ <div class="question-item relative py-3 pl-8 pr-4 flex justify-between items-center">
147
+ <span class="text-sm truncate">保险理赔需要准备哪些材料?</span>
148
+ <i class="fas fa-chevron-right text-gray-400"></i>
149
+ </div>
150
+ <div class="question-item relative py-3 pl-8 pr-4 flex justify-between items-center">
151
+ <span class="text-sm truncate">保费可以分期支付吗?</span>
152
+ <i class="fas fa-chevron-right text-gray-400"></i>
153
+ </div>
154
+ </div>
155
+
156
+ <div class="text-center py-2">
157
+ <span class="text-xs text-gray-400">换一批</span>
158
+ </div>
159
+ </div>
160
+
161
+ <!-- 底部输入栏 -->
162
+ <div class="px-6 py-4 bg-[#F7F8FC]">
163
+ <div class="input-bar flex items-center bg-white px-4">
164
+ <i class="fas fa-microphone text-gray-400 mr-2"></i>
165
+ <input type="text" placeholder="有问题,找Bob" class="flex-1 text-sm text-gray-400 focus:outline-none">
166
+ <button class="send-button rounded-full flex items-center justify-center">
167
+ <i class="fas fa-paper-plane text-white text-sm"></i>
168
+ </button>
169
+ </div>
170
+ </div>
171
+
172
+ <script>
173
+ // 可以在这里添加交互逻辑
174
+ document.addEventListener('DOMContentLoaded', function() {
175
+ // 点击"换一批"按钮
176
+ const refreshBtn = document.querySelector('.text-center span');
177
+ refreshBtn.addEventListener('click', function() {
178
+ alert('正在加载新一批热点问题...');
179
+ // 实际应用中这里可以调用API获取新问题
180
+ });
181
+
182
+ // 点击发送按钮
183
+ const sendBtn = document.querySelector('.send-button');
184
+ sendBtn.addEventListener('click', function() {
185
+ const input = document.querySelector('input');
186
+ if (input.value.trim() !== '') {
187
+ alert('发送问题: ' + input.value);
188
+ input.value = '';
189
+ }
190
+ });
191
+
192
+ // 点击问题项
193
+ const questions = document.querySelectorAll('.question-item');
194
+ questions.forEach(question => {
195
+ question.addEventListener('click', function() {
196
+ const text = this.querySelector('span').textContent;
197
+ alert('正在查询: ' + text);
198
+ });
199
+ });
200
+ });
201
+ </script>
202
+ <p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=toughhou/bob" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
203
+ </html>