rbbist commited on
Commit
1916620
·
verified ·
1 Parent(s): 0dfdf39

Create htmlTemplates.py

Browse files
Files changed (1) hide show
  1. htmlTemplates.py +30 -0
htmlTemplates.py ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ css = '''
2
+ <style>
3
+ .chat-message {
4
+ padding: 1rem;
5
+ border-radius: 0.5rem;
6
+ margin-bottom: 1rem;
7
+ display: flex;
8
+ }
9
+ .chat-message.user {
10
+ background-color: #DCF8C6;
11
+ justify-content: flex-end;
12
+ }
13
+ .chat-message.bot {
14
+ background-color: #F1F0F0;
15
+ justify-content: flex-start;
16
+ }
17
+ </style>
18
+ '''
19
+
20
+ user_template = '''
21
+ <div class="chat-message user">
22
+ <div class="message">{{MSG}}</div>
23
+ </div>
24
+ '''
25
+
26
+ bot_template = '''
27
+ <div class="chat-message bot">
28
+ <div class="message">{{MSG}}</div>
29
+ </div>
30
+ '''