Update htmlTemplates.py
Browse files- htmlTemplates.py +14 -8
htmlTemplates.py
CHANGED
|
@@ -26,19 +26,25 @@ css = '''
|
|
| 26 |
'''
|
| 27 |
|
| 28 |
bot_template = '''
|
| 29 |
-
<div
|
| 30 |
-
<div
|
| 31 |
-
<img src="https://
|
|
|
|
|
|
|
|
|
|
|
|
|
| 32 |
</div>
|
| 33 |
-
<div class="message">{{MSG}}</div>
|
| 34 |
</div>
|
| 35 |
'''
|
| 36 |
|
| 37 |
user_template = '''
|
| 38 |
-
<div
|
| 39 |
-
<div
|
| 40 |
-
<img src="https://
|
|
|
|
| 41 |
</div>
|
| 42 |
-
<div
|
|
|
|
|
|
|
| 43 |
</div>
|
| 44 |
'''
|
|
|
|
| 26 |
'''
|
| 27 |
|
| 28 |
bot_template = '''
|
| 29 |
+
<div style="display: flex; align-items: center; margin-bottom: 10px; background-color: #B22222; padding: 10px; border-radius: 10px; border: 1px solid #7A0000;">
|
| 30 |
+
<div style="flex-shrink: 0; margin-right: 10px;">
|
| 31 |
+
<img src="https://raw.githubusercontent.com/AalaaAyman24/Test/main/chatbot.png"
|
| 32 |
+
style="max-height: 50px; max-width: 50px; object-fit: cover;">
|
| 33 |
+
</div>
|
| 34 |
+
<div style="background-color: #B22222; color: white; padding: 10px; border-radius: 10px; max-width: 75%; word-wrap: break-word; overflow-wrap: break-word;">
|
| 35 |
+
{{MSG}}
|
| 36 |
</div>
|
|
|
|
| 37 |
</div>
|
| 38 |
'''
|
| 39 |
|
| 40 |
user_template = '''
|
| 41 |
+
<div style="display: flex; align-items: center; margin-bottom: 10px; justify-content: flex-end;">
|
| 42 |
+
<div style="flex-shrink: 0; margin-left: 10px;">
|
| 43 |
+
<img src="https://raw.githubusercontent.com/AalaaAyman24/Test/main/question.png"
|
| 44 |
+
style="max-height: 50px; max-width: 50px; border-radius: 50%; object-fit: cover;">
|
| 45 |
</div>
|
| 46 |
+
<div style="background-color: #757882; color: white; padding: 10px; border-radius: 10px; max-width: 75%; word-wrap: break-word; overflow-wrap: break-word;">
|
| 47 |
+
{{MSG}}
|
| 48 |
+
</div>
|
| 49 |
</div>
|
| 50 |
'''
|