8
8
@click =" toggleChat"
9
9
:class =" { 'chat-open': showChat }"
10
10
>
11
- <svg
11
+ <img
12
12
v-if =" !showChat"
13
- viewBox =" 0 0 16 16"
14
- xmlns =" http://www.w3.org/2000/svg"
15
- fill =" #ffffff"
16
- >
17
- <g id =" SVGRepo_iconCarrier" >
18
- <path fill-rule =" evenodd" clip-rule =" evenodd" d =" M8.48 4h4l.5.5v2.03h.52l.5.5V8l-.5.5h-.52v3l-.5.5H9.36l-2.5 2.76L6 14.4V12H3.5l-.5-.64V8.5h-.5L2 8v-.97l.5-.5H3V4.36L3.53 4h4V2.86A1 1 0 0 1 7 2a1 1 0 0 1 2 0 1 1 0 0 1-.52.83V4zM12 8V5H4v5.86l2.5.14H7v2.19l1.8-2.04.35-.15H12V8zm-2.12.51a2.71 2.71 0 0 1-1.37.74v-.01a2.71 2.71 0 0 1-2.42-.74l-.7.71c.34.34.745.608 1.19.79.45.188.932.286 1.42.29a3.7 3.7 0 0 0 2.58-1.07l-.7-.71zM6.49 6.5h-1v1h1v-1zm3 0h1v1h-1v-1z" ></path >
19
- </g >
20
- </svg >
13
+ src =" ../assets/icons/bot-icon.webp"
14
+ alt =" Bot icon"
15
+ class =" bot-icon"
16
+ />
21
17
<svg
22
18
v-else
23
19
xmlns =" http://www.w3.org/2000/svg"
34
30
</button >
35
31
36
32
<div v-if =" !showChat" class =" highlight-container" >
37
- <div class =" tooltip-text" >Try our new Virtual Assistant! </div >
33
+ <div class =" tooltip-text" >< b >Need help?</ b >< br >I'm an AI chatbot, trained to answer all your questions. </div >
38
34
</div >
39
35
</div >
40
36
@@ -162,8 +158,8 @@ mobile-breakpoint = 768px
162
158
163
159
.chat-toggle {
164
160
position : relative
165
- background : $primary-color
166
- border : none
161
+ background : white
162
+ border : 2 px solid $primary-color
167
163
border-radius : 50%
168
164
width : 56px
169
165
height : 56px
@@ -174,9 +170,18 @@ mobile-breakpoint = 768px
174
170
box-shadow : 0 4px 12px rgba (0 ,0 ,0 ,0.15 )
175
171
transition : transform 0.3s ease , box-shadow 0.3s ease
176
172
z-index : 10000
173
+ padding : 0
174
+ overflow : hidden
175
+
176
+ .bot-icon {
177
+ width : calc (100% - 4px )
178
+ height : calc (100% - 4px )
179
+ border-radius : 50%
180
+ object-fit : cover
181
+ }
177
182
178
183
svg {
179
- color : white
184
+ color : $primary-color
180
185
width : 32px
181
186
height : 32px
182
187
}
@@ -201,18 +206,19 @@ mobile-breakpoint = 768px
201
206
}
202
207
203
208
.tooltip-text {
204
- background : $primary-color ;
205
- color : white ;
206
- padding : 8 px 16 px ;
209
+ background : white ;
210
+ color : black ;
211
+ padding : 12 px 20 px ;
207
212
border-radius : 20px ;
208
213
font-size : 0.95rem ; /* Increase this value to make the tooltip text larger */
209
214
animation : float 3s ease-in-out infinite ;
210
215
position : relative ;
211
- text-align : center ;
212
- white-space : nowrap ;
216
+ text-align : right ;
217
+ white-space : normal ;
213
218
font-weight : 500 ;
214
- box-shadow : 0 4px 12px rgba (0 ,0 ,0 ,0.1 );
215
- max-width : 90vw ;
219
+ box-shadow : 0 0 15px $primary-color ;
220
+ max-width : 250px ;
221
+ min-width : 200px ;
216
222
overflow : visible ;
217
223
text-overflow : clip ;
218
224
}
@@ -384,8 +390,10 @@ mobile-breakpoint = 768px
384
390
385
391
.tooltip-text {
386
392
font-size : 0.9rem ; /* Adjust this value to change the tooltip text size on mobile devices */
387
- padding : 6px 12px ;
388
- white-space : nowrap ;
393
+ padding : 10px 16px ;
394
+ white-space : normal ;
395
+ max-width : 90vw ;
396
+ min-width : 180px ;
389
397
}
390
398
}
391
399
</style >
0 commit comments