Spaces:
Configuration error
Configuration error
File size: 3,323 Bytes
1a47215 |
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 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 |
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: Arial, sans-serif;
background-color: #f0f2f5;
}
.container {
max-width: 1200px;
margin: 0 auto;
padding: 20px;
height: 100vh;
}
.chat-container {
background-color: #343541;
color: #fff;
border-radius: 10px;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
height: 90vh;
display: flex;
flex-direction: column;
}
.chat-header {
padding: 20px;
border-bottom: 1px solid #e0e0e0;
background-color: #202123;
}
.chat-header h1 {
color: #fff;
font-size: 24px;
}
.chat-messages {
flex: 1;
overflow-y: auto;
padding: 20px;
}
.message {
margin-bottom: 20px;
max-width: 70%;
}
.user-message {
margin-left: auto;
background-color: #343541;
color: #fff;
padding: 10px 15px;
border-radius: 15px;
border: 1px solid #565869;
}
.bot-message {
background-color: #444654;
color: #fff;
padding: 10px 15px;
border-radius: 15px;
animation: fadeIn 0.3s ease-in;
}
@keyframes fadeIn {
from {
opacity: 0;
transform: translateY(10px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.chat-input {
padding: 20px;
border-top: 1px solid #e0e0e0;
display: flex;
gap: 10px;
}
#user-input {
flex: 1;
padding: 10px;
border: 1px solid #565869;
border-radius: 5px;
resize: none;
height: 50px;
background-color: #40414f;
color: #fff;
}
#user-input::placeholder {
color: #8e8ea0;
}
#send-button {
padding: 10px 20px;
background-color: #19c37d;
color: white;
border: none;
border-radius: 5px;
cursor: pointer;
transition: background-color 0.3s;
}
#send-button:hover {
background-color: #1a8870;
}
.typing-indicator {
display: flex;
align-items: center;
padding: 10px 15px;
}
.typing-indicator span {
height: 8px;
width: 8px;
background: #fff;
border-radius: 50%;
margin: 0 2px;
display: inline-block;
animation: bounce 1.3s linear infinite;
}
.typing-indicator span:nth-child(2) {
animation-delay: 0.15s;
}
.typing-indicator span:nth-child(3) {
animation-delay: 0.3s;
}
@keyframes bounce {
0%, 60%, 100% {
transform: translateY(0);
}
30% {
transform: translateY(-4px);
}
}
.code-block-container {
position: relative;
background-color: #1e1e1e;
border-radius: 8px;
margin: 10px 0;
padding: 10px;
}
.code-block-container pre {
margin: 0;
padding: 10px;
overflow-x: auto;
color: #d4d4d4;
font-family: 'Consolas', 'Monaco', monospace;
}
.code-block-container code {
display: block;
white-space: pre-wrap;
}
.copy-btn {
position: absolute;
top: 10px;
right: 10px;
padding: 5px 10px;
background-color: #19c37d;
color: white;
border: none;
border-radius: 5px;
cursor: pointer;
font-size: 12px;
transition: background-color 0.3s;
}
.copy-btn:hover {
background-color: #1a8870;
}
/* Add syntax highlighting colors */
.code-block-container .keyword { color: #569cd6; }
.code-block-container .string { color: #ce9178; }
.code-block-container .comment { color: #6a9955; }
.code-block-container .function { color: #dcdcaa; }
|