Spaces:
Runtime error
Runtime error
Create templates/chat.html (Facebook Theme)
Browse files
templates/chat.html (Facebook Theme)
ADDED
|
@@ -0,0 +1,100 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html lang="en">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8">
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title>ThutoAI - Chat Assistant</title>
|
| 7 |
+
<style>
|
| 8 |
+
* {
|
| 9 |
+
margin: 0;
|
| 10 |
+
padding: 0;
|
| 11 |
+
box-sizing: border-box;
|
| 12 |
+
}
|
| 13 |
+
|
| 14 |
+
body {
|
| 15 |
+
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
| 16 |
+
background: #f0f2f5;
|
| 17 |
+
height: 100vh;
|
| 18 |
+
display: flex;
|
| 19 |
+
flex-direction: column;
|
| 20 |
+
}
|
| 21 |
+
|
| 22 |
+
.navbar {
|
| 23 |
+
background: #1877f2;
|
| 24 |
+
color: white;
|
| 25 |
+
padding: 1rem 2rem;
|
| 26 |
+
display: flex;
|
| 27 |
+
justify-content: space-between;
|
| 28 |
+
align-items: center;
|
| 29 |
+
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
|
| 30 |
+
}
|
| 31 |
+
|
| 32 |
+
.navbar .logo {
|
| 33 |
+
font-size: 24px;
|
| 34 |
+
font-weight: bold;
|
| 35 |
+
}
|
| 36 |
+
|
| 37 |
+
.navbar .nav-links {
|
| 38 |
+
display: flex;
|
| 39 |
+
gap: 20px;
|
| 40 |
+
align-items: center;
|
| 41 |
+
}
|
| 42 |
+
|
| 43 |
+
.navbar .nav-links a {
|
| 44 |
+
color: white;
|
| 45 |
+
text-decoration: none;
|
| 46 |
+
padding: 8px 16px;
|
| 47 |
+
border-radius: 6px;
|
| 48 |
+
transition: background 0.3s;
|
| 49 |
+
}
|
| 50 |
+
|
| 51 |
+
.navbar .nav-links a:hover {
|
| 52 |
+
background: rgba(255,255,255,0.2);
|
| 53 |
+
}
|
| 54 |
+
|
| 55 |
+
.chat-container {
|
| 56 |
+
flex: 1;
|
| 57 |
+
display: flex;
|
| 58 |
+
max-width: 1000px;
|
| 59 |
+
margin: 2rem auto;
|
| 60 |
+
background: white;
|
| 61 |
+
border-radius: 8px;
|
| 62 |
+
box-shadow: 0 1px 2px rgba(0,0,0,0.1);
|
| 63 |
+
overflow: hidden;
|
| 64 |
+
}
|
| 65 |
+
|
| 66 |
+
.chat-sidebar {
|
| 67 |
+
width: 300px;
|
| 68 |
+
background: #f0f2f5;
|
| 69 |
+
padding: 1.5rem;
|
| 70 |
+
border-right: 1px solid #dadde1;
|
| 71 |
+
}
|
| 72 |
+
|
| 73 |
+
.chat-sidebar h3 {
|
| 74 |
+
color: #1877f2;
|
| 75 |
+
margin-bottom: 1rem;
|
| 76 |
+
}
|
| 77 |
+
|
| 78 |
+
.quick-questions {
|
| 79 |
+
display: flex;
|
| 80 |
+
flex-direction: column;
|
| 81 |
+
gap: 10px;
|
| 82 |
+
}
|
| 83 |
+
|
| 84 |
+
.quick-question {
|
| 85 |
+
padding: 10px;
|
| 86 |
+
background: white;
|
| 87 |
+
border: 1px solid #dadde1;
|
| 88 |
+
border-radius: 6px;
|
| 89 |
+
cursor: pointer;
|
| 90 |
+
transition: all 0.3s;
|
| 91 |
+
font-size: 0.9rem;
|
| 92 |
+
}
|
| 93 |
+
|
| 94 |
+
.quick-question:hover {
|
| 95 |
+
border-color: #1877f2;
|
| 96 |
+
background: #e7f3ff;
|
| 97 |
+
}
|
| 98 |
+
|
| 99 |
+
.chat-main {
|
| 100 |
+
flex:
|