forked from Shravani1383/Snap_Text
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhtmlTemplates.py
59 lines (50 loc) · 1.19 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
css = '''
<style>
.chat-message {
padding: 1.5rem; border-radius: 0.5rem; margin-bottom: 1rem; display: flex
}
.chat-message.user {
background: linear-gradient(#9896F0, #FBC8D5);
}
.chat-message.bot {
background: linear-gradient(#71C5EE, #025091);
}
.chat-message .avatar {
width: 20%;
}
.chat-message .avatar img {
max-width: 78px;
max-height: 78px;
border-radius: 50%;
object-fit: cover;
}
.chat-message .message {
width: 80%;
padding: 0 1.5rem;
color: #fff;
}
'''
bot_template = '''
<div class="chat-message bot" style="color: black;">
<div class="avatar">
<img src="https://img.freepik.com/premium-vector/chat-bot-vector-logo-design-concept_418020-241.jpg" >
</div>
<div class="message">{{MSG}}</div>
</div>
'''
user_template = '''
<div class="chat-message user" style="color: black;">
<div class="avatar">
<img src="https://cdn-icons-png.flaticon.com/256/4825/4825038.png">
</div>
<div class="message">{{MSG}}</div>
</div>
'''
sidebar_custom_css = """
<style>
/* Set background color of sidebar */
[data-testid="stSidebar"] {
background-color: #FEBE9A; /* Change this color to your desired background color */
}
</style>
"""