-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhtmlTemplates.py
68 lines (60 loc) · 1.31 KB
/
htmlTemplates.py
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
css = ''''
<style>
.chat-container {
max-width: 800px; /* Adjusted max-width */
margin: 0 auto;
padding: 20px;
background-color: #f0f0f0; /* Changed background color */
border-radius: 20px; /* Increased border radius */
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
.chat-message {
padding: 1rem;
border-radius: 1rem; /* Increased border radius */
margin-bottom: 1rem;
display: flex;
align-items: center;
}
.chat-message.user {
background-color: #ffffff; /* Changed background color */
border: 1px solid #dddddd; /* Changed border color */
}
.chat-message.bot {
background-color: #e0e0e0; /* Changed background color */
}
.chat-message .avatar {
flex: 0 0 auto;
margin-right: 1rem;
width: 60px;
height: 60px;
overflow: hidden;
border-radius: 50%;
}
.chat-message .avatar img {
width: 100%;
height: 100%;
object-fit: cover;
}
.chat-message .message {
flex: 1;
padding: 0 1.5rem;
color: #333333; /* Changed text color */
}
</style>
'''
bot_template = '''
<div class="chat-message bot">
<div class="avatar">
🤖
</div>
<div class="message">{{MSG}}</div>
</div>
'''
user_template = '''
<div class="chat-message user">
<div class="avatar">
👤
</div>
<div class="message">{{MSG}}</div>
</div>
'''